$(function() {
var Image_Browser_50_100_started = "false";
var Image_Browser_50_100_timer_id_B = "false";
var Image_Browser_50_100_create_thumb_flag = "false";
var Image_Browser_50_100_repeat_flag = "false";
var Image_Browser_50_100_set_pagewrap_width = 0;
var Image_Browser_50_100_create_thumbs_i = 0;
var Image_Browser_50_100_imgURL = "";
var Image_Browser_50_100_thumb_imgURL = "";
var Image_Browser_50_100_imgTITLE = "";
var Image_Browser_50_100_imgDESCRIPTION = "";
Image_Browser_50_100_past_i = -1;
Image_Browser_50_100_create_img_i = 0;
Image_Browser_50_100_preload_i = 0;
Image_Browser_50_100_imgWIDTH = 0;
function Image_Browser_50_100_initialize(){
Image_Browser_50_100_thumb_width = 30;
Image_Browser_50_100_thumb_height = 30;
Image_Browser_50_100_thumb_total_width = (Image_Browser_50_100_thumb_width +6)*(Image_Browser_50_100_media_max_num);
$("#Image_Browser_50_100 .pageWrap").css("width", Image_Browser_50_100_thumb_total_width);
$("#Image_Browser_50_100 .pageWrap").css("height", Image_Browser_50_100_thumb_height +6);
$("#Image_Browser_50_100 .pageHolder").css("height", Image_Browser_50_100_thumb_height +6);
$("#Image_Browser_50_100 .arrow_box_page_left, #Image_Browser_50_100 .arrow_box_page_right").css("width", Image_Browser_50_100_thumb_width +6 );
$("#Image_Browser_50_100 .arrow_box_page_left, #Image_Browser_50_100 .arrow_box_page_right").css("height", Image_Browser_50_100_thumb_height +6 );
$("#Image_Browser_50_100 .thumb_box").css("width", Image_Browser_50_100_thumb_width+6);
$("#Image_Browser_50_100 .thumb_box").css("height", Image_Browser_50_100_thumb_height+6);
$("#Image_Browser_50_100 .thumb_box a").css("width", Image_Browser_50_100_thumb_height );
$("#Image_Browser_50_100 .thumb_box a").css("height", Image_Browser_50_100_thumb_height );
if(Image_Browser_50_100_media_max_num == 1){
Image_Browser_50_100_thumb_width = 0;
Image_Browser_50_100_thumb_height = 0;
$("#Image_Browser_50_100").css("margin-bottom", 0 );
$("#Image_Browser_50_100 .controller > div").remove();
$("#Image_Browser_50_100 .pageHolder").remove();
$("#Image_Browser_50_100 .arrow_box_page_left").remove();
$("#Image_Browser_50_100 .arrow_box_page_right").remove();
}
Image_Browser_50_100_create_img();
Image_Browser_50_100_resizeContainer();
Image_Browser_50_100_arrow_show_hide();
$(window).bind("resize", Image_Browser_50_100_resizeContainer);
if( Image_Browser_50_100_started == "false" ){
Image_Browser_50_100_initialize_action();
}
}
function Image_Browser_50_100_initialize_action(){
Image_Browser_50_100_started = "true";
Image_Browser_50_100_resizeContainer();
}
function Image_Browser_50_100_control_show( set_interval ){
if( Image_Browser_50_100_timer_id_B != "false" ){
clearInterval( Image_Browser_50_100_timer_id_B );
}
$("#Image_Browser_50_100 .controller:not(:animated)").animate({opacity: 1},400,
function() {
Image_Browser_50_100_timer_id_B = setInterval(Image_Browser_50_100_control_hide, set_interval);
}
);
}
function Image_Browser_50_100_control_hide(){
$("#Image_Browser_50_100 .controller:not(:animated)").animate({opacity: 0.6}, 400);
clearInterval( Image_Browser_50_100_timer_id_B );
}
$("#Image_Browser_50_100").mousemove(function(e){
Image_Browser_50_100_control_show( 2000 );
});
$("#Image_Browser_50_100 .pageHolder .pageWrap a").click(function(){
Image_Browser_50_100_create_img_i = $(this).attr("id");
Image_Browser_50_100_create_img();
Image_Browser_50_100_repeat_flag = "false";
Image_Browser_50_100_scrCtr();
return false;
})
function Image_Browser_50_100_create_img(){
if( Image_Browser_50_100_past_i != Image_Browser_50_100_create_img_i ){
$("#Image_Browser_50_100 .text").stop().animate({opacity : 0},100,
function() {
var Image_Browser_50_100_imgCaption = Image_Browser_50_100_media_array[ Image_Browser_50_100_create_img_i ][2];
var Image_Browser_50_100_imgDescription = Image_Browser_50_100_media_array[ Image_Browser_50_100_create_img_i ][3];
$(this).parent().find(".caption").html( Image_Browser_50_100_imgCaption );
$(this).parent().find(".description").html( Image_Browser_50_100_imgDescription );
}
);
var Image_Browser_50_100_imgURL = Image_Browser_50_100_media_array[ Image_Browser_50_100_create_img_i ][0];
var Image_Browser_50_100_thumb_imgURL = Image_Browser_50_100_media_array[ Image_Browser_50_100_create_img_i ][1];
var imgClass = Image_Browser_50_100_media_array[ Image_Browser_50_100_create_img_i ][6];
Image_Browser_50_100_switch_thumbs();
var Image_Browser_50_100_past_set_img_div = "Image_Browser_50_100_img_div_" + Image_Browser_50_100_past_i;
var Image_Browser_50_100_past_target = $("#Image_Browser_50_100 div#" + Image_Browser_50_100_past_set_img_div);
Image_Browser_50_100_past_i = Image_Browser_50_100_create_img_i;
Image_Browser_50_100_set_img_div = "Image_Browser_50_100_img_div_" + Image_Browser_50_100_create_img_i;
$("#Image_Browser_50_100 #main").append("
");
var setLINK = Image_Browser_50_100_media_array[ Image_Browser_50_100_create_img_i ][7];
$("#Image_Browser_50_100 .controller a").remove();
if( setLINK != "" ){
$("#Image_Browser_50_100 .controller").append("");
}else{
$("#Image_Browser_50_100 .controller").append("");
}
Image_Browser_50_100_target = $("div#" + Image_Browser_50_100_set_img_div);
Image_Browser_50_100_target.find("img.low").load(function () {
Image_Browser_50_100_target.find("img.high").load(function () {
$(this).css("width", Image_Browser_50_100_target.find("img.low").width());
$(this).css("height", Image_Browser_50_100_target.find("img.low").height());
$(this).parent().parent().fadeIn(600, "swing");
Image_Browser_50_100_resizeContainer();
});
Image_Browser_50_100_target.find("img.high").attr("src", Image_Browser_50_100_imgURL);
Image_Browser_50_100_past_target.fadeOut(
1000,
function () {
$(this).remove();
}
);
$("#Image_Browser_50_100 .text").animate({opacity : 1},600);
if( Image_Browser_50_100_create_thumb_flag == "false"){
Image_Browser_50_100_create_thumb_flag = "true";
Image_Browser_50_100_create_thumbs();
}
Image_Browser_50_100_target.fadeIn(600, "swing");
Image_Browser_50_100_resizeContainer();
Image_Browser_50_100_preload_image();
Image_Browser_50_100_scrCtr();
});
Image_Browser_50_100_target.find("img.low").attr("src", Image_Browser_50_100_thumb_imgURL);
}
}
function Image_Browser_50_100_preload_image(){
if( Image_Browser_50_100_preload_i ){
$("#Image_Browser_50_100 img#pre_" + Image_Browser_50_100_preload_i).remove();
}
Image_Browser_50_100_preload_i = eval(Image_Browser_50_100_create_img_i)+1;
if( Image_Browser_50_100_preload_i < Image_Browser_50_100_media_max_num ){
var next_imgURL = Image_Browser_50_100_media_array[ Image_Browser_50_100_preload_i ][0];
$("#Image_Browser_50_100 #main").append("");
var next_target = $("#Image_Browser_50_100 img#pre_" + Image_Browser_50_100_preload_i );
next_target.attr("src", next_imgURL);
}
}
function Image_Browser_50_100_create_thumbs(){
if( Image_Browser_50_100_create_thumbs_i < Image_Browser_50_100_media_max_num ){
var Image_Browser_50_100_thumb_imgURL = Image_Browser_50_100_media_array[ Image_Browser_50_100_create_thumbs_i ][1];
$("#Image_Browser_50_100 .pageHolder a#"+ Image_Browser_50_100_create_thumbs_i + " img" ).load(function () {
var Image_Browser_50_100_imgHEIGHT = eval(Image_Browser_50_100_media_array[ Image_Browser_50_100_create_thumbs_i ][4]);
var Image_Browser_50_100_imgWIDTH = eval(Image_Browser_50_100_media_array[ Image_Browser_50_100_create_thumbs_i ][5]);
if( Image_Browser_50_100_imgHEIGHT < Image_Browser_50_100_imgWIDTH ){
$(this).css("height", Image_Browser_50_100_thumb_height);
$(this).css("width", Image_Browser_50_100_thumb_height/Image_Browser_50_100_imgHEIGHT*Image_Browser_50_100_imgWIDTH);
$(this).css("margin-left", -(Image_Browser_50_100_thumb_height/Image_Browser_50_100_imgHEIGHT*Image_Browser_50_100_imgWIDTH - Image_Browser_50_100_thumb_width)/2 );
}else{
$(this).css("height", Image_Browser_50_100_thumb_width/Image_Browser_50_100_imgWIDTH*Image_Browser_50_100_imgHEIGHT);
$(this).css("width", Image_Browser_50_100_thumb_width);
$(this).css("margin-top", -(Image_Browser_50_100_thumb_width/Image_Browser_50_100_imgWIDTH*Image_Browser_50_100_imgHEIGHT - Image_Browser_50_100_thumb_height)/2 );
}
Image_Browser_50_100_create_thumbs_i ++;
$(this).fadeIn(500);
setTimeout(function(){
Image_Browser_50_100_resizeContainer();
Image_Browser_50_100_create_thumbs();
},10);
});
$("#Image_Browser_50_100 .pageHolder a#"+ Image_Browser_50_100_create_thumbs_i + " img" ).attr("src", Image_Browser_50_100_thumb_imgURL);
}
}
$("#Image_Browser_50_100 .pageHolder img").mouseover(function(){
$(this).stop().animate({
opacity : 0.6
},100)
}
)
$("#Image_Browser_50_100 .pageHolder img").mouseout(function(){
$(this).stop().animate({
opacity : 1
},400)
}
)
function Image_Browser_50_100_switch_thumbs(){
$.each(Image_Browser_50_100_media_array, function(i) {
if( i != Image_Browser_50_100_create_img_i ){
$( "#Image_Browser_50_100 .pageHolder a#"+i).parent().fadeTo(100, 1);
$( "#Image_Browser_50_100 .pageHolder a#"+i).parent().css("width", Image_Browser_50_100_thumb_width+6);
$( "#Image_Browser_50_100 .pageHolder a#"+i).parent().css("height", Image_Browser_50_100_thumb_height+6);
$( "#Image_Browser_50_100 .pageHolder a#"+i).parent().css("border", "none");
$( "#Image_Browser_50_100 .pageHolder a#"+i).css("cursor", "pointer");
$( "#Image_Browser_50_100 .pageHolder a#"+i).css("margin", 6/2 + "px");
}else{
$( "#Image_Browser_50_100 .pageHolder a#"+i).parent().fadeTo(100, 0.4);
$( "#Image_Browser_50_100 .pageHolder a#"+i).parent().css("width", Image_Browser_50_100_thumb_width+6-2);
$( "#Image_Browser_50_100 .pageHolder a#"+i).parent().css("height", Image_Browser_50_100_thumb_height+6-2);
$( "#Image_Browser_50_100 .pageHolder a#"+i).parent().css("border", "1px solid #AAA");
$( "#Image_Browser_50_100 .pageHolder a#"+i).css("cursor", "default");
$( "#Image_Browser_50_100 .pageHolder a#"+i).css("margin", 6/2-1 + "px");
}
});
}
function Image_Browser_50_100_resizeContainer(e) {
set_Image_Browser_50_100_width = $("#Image_Browser_50_100").width();
set_Image_Browser_50_100_height = Math.round(set_Image_Browser_50_100_width/100*50);
set_Image_Browser_50_100_root_height = set_Image_Browser_50_100_height + Image_Browser_50_100_thumb_height + $(".text").height() +6;
if(Image_Browser_50_100_media_max_num == 1){
if( 0.5 >= Image_Browser_50_100_media_array[Image_Browser_50_100_create_img_i ][4]/Image_Browser_50_100_media_array[ Image_Browser_50_100_create_img_i ][5] ){
set_Image_Browser_50_100_width = $("#Image_Browser_50_100").width();
set_Image_Browser_50_100_height = set_Image_Browser_50_100_width*Image_Browser_50_100_media_array[Image_Browser_50_100_create_img_i ][4]/Image_Browser_50_100_media_array[ Image_Browser_50_100_create_img_i ][5];
set_Image_Browser_50_100_root_height = set_Image_Browser_50_100_height + $(".text").height();
}
}
if( Image_Browser_50_100_started == "true" ){
$("#Image_Browser_50_100").css("height", set_Image_Browser_50_100_root_height );
}
$("#Image_Browser_50_100 .image_wrapper").css("height", set_Image_Browser_50_100_height);
$("#Image_Browser_50_100 .controller").css("height", set_Image_Browser_50_100_height);
$("#Image_Browser_50_100 #main").css("height", set_Image_Browser_50_100_height);
$("#Image_Browser_50_100 .image_wrapper div.cell").css("width", set_Image_Browser_50_100_width);
$("#Image_Browser_50_100 .image_wrapper div.cell").css("height", set_Image_Browser_50_100_height);
$("#Image_Browser_50_100 .image_wrapper:first-child img.high").css("width", $("#Image_Browser_50_100 .image_wrapper:first-child img.low").width());
$("#Image_Browser_50_100 .image_wrapper:first-child img.high").css("height", $("#Image_Browser_50_100 .image_wrapper:first-child img.low").height());
$("#Image_Browser_50_100 #watermark").css("width", set_Image_Browser_50_100_width);
$("#Image_Browser_50_100 #watermark").css("height", set_Image_Browser_50_100_height);
Image_Browser_50_100_thumb_area_width = set_Image_Browser_50_100_width;
$("#Image_Browser_50_100 .pageHolder").css("width", set_Image_Browser_50_100_width+"px");
Image_Browser_50_100_arrow_show_hide();
}
$("#Image_Browser_50_100 div.arrow_box_page_right").click(function(){
if(-(Image_Browser_50_100_set_pagewrap_width-set_Image_Browser_50_100_width) + Image_Browser_50_100_thumb_area_width >= Image_Browser_50_100_thumb_total_width){
Image_Browser_50_100_set_pagewrap_width += Image_Browser_50_100_thumb_area_width-(Image_Browser_50_100_thumb_total_width+Image_Browser_50_100_set_pagewrap_width);
}else{
Image_Browser_50_100_set_pagewrap_width -= set_Image_Browser_50_100_width-120;
}
$("#Image_Browser_50_100 .pageHolder .pageWrap").animate({
marginLeft : Image_Browser_50_100_set_pagewrap_width+"px"
},200)
Image_Browser_50_100_arrow_show_hide();
})
$("#Image_Browser_50_100 div.arrow_box_page_left").click(function(){
if(Image_Browser_50_100_set_pagewrap_width+set_Image_Browser_50_100_width-120 >= 0){
Image_Browser_50_100_set_pagewrap_width = 0;
}else{
Image_Browser_50_100_set_pagewrap_width += set_Image_Browser_50_100_width-120;
}
$("#Image_Browser_50_100 .pageHolder .pageWrap").animate({
marginLeft : Image_Browser_50_100_set_pagewrap_width+"px"
},200)
Image_Browser_50_100_arrow_show_hide();
})
$("#Image_Browser_50_100 div.arrow_box_photo_right").click(function(){
Image_Browser_50_100_create_img_i ++;
if( Image_Browser_50_100_create_img_i == Image_Browser_50_100_media_max_num){
Image_Browser_50_100_create_img_i = 0;
}
Image_Browser_50_100_create_img();
Image_Browser_50_100_scrCtr();
})
$("#Image_Browser_50_100 div.arrow_box_photo_left").click(function(){
if( Image_Browser_50_100_create_img_i == 0){
Image_Browser_50_100_create_img_i = Image_Browser_50_100_media_max_num;
}
Image_Browser_50_100_create_img_i --;
Image_Browser_50_100_create_img();
Image_Browser_50_100_scrCtr();
})
$("#Image_Browser_50_100 .arrow_box_page_left, #Image_Browser_50_100 .arrow_box_page_right, #Image_Browser_50_100 div.arrow_box_photo_right, #Image_Browser_50_100 div.arrow_box_photo_left ,#Image_Browser_50_100 div.controller_btn").mouseover(function(){
$(this).stop().animate({
opacity : 1
},200)
}
)
$("#Image_Browser_50_100 .arrow_box_page_left, #Image_Browser_50_100 .arrow_box_page_right, #Image_Browser_50_100 div.arrow_box_photo_right, #Image_Browser_50_100 div.arrow_box_photo_left ,#Image_Browser_50_100 div.controller_btn").mouseout(function(){
$(this).stop().animate({
opacity : 0.6
},400)
}
)
$("#Image_Browser_50_100 .arrow_box_page_left, #Image_Browser_50_100 .arrow_box_page_right, #Image_Browser_50_100 div.arrow_box_photo_right, #Image_Browser_50_100 div.arrow_box_photo_left ,#Image_Browser_50_100 div.controller_btn").animate({
opacity : 0.6
},100)
$("#Image_Browser_50_100 div.play_box").click(function(){
Image_Browser_50_100_repeat_flag = "true";
Image_Browser_50_100_slidePlay();
})
$("#Image_Browser_50_100 div.stop_box").click(function(){
Image_Browser_50_100_repeat_flag = "false";
Image_Browser_50_100_scrCtr();
})
function Image_Browser_50_100_arrow_show_hide() {
if(Image_Browser_50_100_thumb_area_width >= Image_Browser_50_100_thumb_total_width){
$("#Image_Browser_50_100 .arrow_box_page_left").fadeOut(200);
$("#Image_Browser_50_100 .arrow_box_page_right").fadeOut(200);
$("#Image_Browser_50_100 .pageHolder .pageWrap").css("margin-left", (set_Image_Browser_50_100_width-Image_Browser_50_100_thumb_total_width)/2);
}else if(Image_Browser_50_100_set_pagewrap_width == 0){
$("#Image_Browser_50_100 .arrow_box_page_left").fadeOut(200);
$("#Image_Browser_50_100 .arrow_box_page_right").fadeIn(200);
}else if(-Image_Browser_50_100_set_pagewrap_width + Image_Browser_50_100_thumb_area_width >= Image_Browser_50_100_thumb_total_width){
$("#Image_Browser_50_100 .arrow_box_page_left").fadeIn(200);
$("#Image_Browser_50_100 .arrow_box_page_right").fadeOut(200);
Image_Browser_50_100_set_pagewrap_width += -Image_Browser_50_100_set_pagewrap_width + Image_Browser_50_100_thumb_area_width - Image_Browser_50_100_thumb_total_width;
$("#Image_Browser_50_100 .pageHolder .pageWrap").css("margin-left", Image_Browser_50_100_set_pagewrap_width);
}else{
$("#Image_Browser_50_100 .arrow_box_page_left").fadeIn(200);
$("#Image_Browser_50_100 .arrow_box_page_right").fadeIn(200);
}
}
function Image_Browser_50_100_scrCtr(){
if( typeof( Image_Browser_50_100_Repeater ) != 'undefined' ){
clearTimeout( Image_Browser_50_100_Repeater );
}
if( Image_Browser_50_100_repeat_flag == "true" ){
$("#Image_Browser_50_100 div.play_box").css("display", "none");
$("#Image_Browser_50_100 div.stop_box").css("display", "block");
Image_Browser_50_100_Repeater = setTimeout(
function(){
Image_Browser_50_100_slidePlay();
}
, 5000);
}else{
$("#Image_Browser_50_100 div.play_box").css("display", "block");
$("#Image_Browser_50_100 div.stop_box").css("display", "none");
}
}
function Image_Browser_50_100_slidePlay(){
Image_Browser_50_100_create_img_i ++;
if( Image_Browser_50_100_create_img_i == Image_Browser_50_100_media_max_num){
Image_Browser_50_100_create_img_i = 0;
Image_Browser_50_100_repeat_flag = "false";
}
Image_Browser_50_100_create_img();
}
Image_Browser_50_100_media_array = [['https://s3.media-nisor.site/image/tarumae_entry_2013_0506_112727_8991.jpg', 'https://s3.media-nisor.site/image_thumbs/tarumae_entry_2013_0506_112727_8991.jpg', '', '', '50', '36', 'vertically', '' ]];
Image_Browser_50_100_media_max_num = 1;
$(window).load(function() {
Image_Browser_50_100_initialize();
});
var SUPPORTERS_Browser_14_24_started = "false";
function SUPPORTERS_Browser_14_24_initialize(){
SUPPORTERS_Browser_14_24_set_slide_speed = 4000;
SUPPORTERS_Browser_14_24_set_fade_speed = 1000;
SUPPORTERS_Browser_14_24_start_flag = "false";
SUPPORTERS_Browser_14_24_repeat_flag = "true";
SUPPORTERS_Browser_14_24_repeat_limit = 0;
SUPPORTERS_Browser_14_24_repeat_limit_max = 50;
SUPPORTERS_Browser_14_24_past_topic_i = -1;
SUPPORTERS_Browser_14_24_preload_topic_i = 0;
SUPPORTERS_Browser_14_24_create_topic_i = rnd( SUPPORTERS_Browser_14_24_supporters_max_num-1 );
SUPPORTERS_Browser_14_24_past_target = "";
SUPPORTERS_Browser_14_24_past_topicDESCRIPTION = "";
SUPPORTERS_Browser_14_24_media_max_num = SUPPORTERS_Browser_14_24_supporters_array[ SUPPORTERS_Browser_14_24_create_topic_i ].length;
SUPPORTERS_Browser_14_24_timer_id = "false";
SUPPORTERS_Browser_14_24_timer_id_B = "false";
SUPPORTERS_Browser_14_24_resizeContainer();
$(window).bind("resize", SUPPORTERS_Browser_14_24_resizeContainer);
if( SUPPORTERS_Browser_14_24_started == "false" ){
SUPPORTERS_Browser_14_24_create_topic();
SUPPORTERS_Browser_14_24_initialize_action();
}
}
function SUPPORTERS_Browser_14_24_initialize_action(){
$("#SUPPORTERS_Browser_14_24").animate({"height": set_SUPPORTERS_Browser_14_24_height}, 500, "swing",
function() {
}
);
}
function SUPPORTERS_Browser_14_24_reset(){
SUPPORTERS_Browser_14_24_media_max_num = SUPPORTERS_Browser_14_24_supporters_array[ SUPPORTERS_Browser_14_24_create_topic_i ].length;
SUPPORTERS_Browser_14_24_past_i = "start";
if( SUPPORTERS_Browser_14_24_started == "false" ){
SUPPORTERS_Browser_14_24_create_img_i = rnd( SUPPORTERS_Browser_14_24_media_max_num-1 );
SUPPORTERS_Browser_14_24_started = "true";
}else{
SUPPORTERS_Browser_14_24_create_img_i = 0;
}
SUPPORTERS_Browser_14_24_preload_i = 0;
var imgURL_high = "";
var imgURL_low = "";
var imgTITLE = "";
var topicDESCRIPTION = "";
SUPPORTERS_Browser_14_24_create_img();
}
function SUPPORTERS_Browser_14_24_reset_max(){
SUPPORTERS_Browser_14_24_media_max_num = SUPPORTERS_Browser_14_24_supporters_array[ SUPPORTERS_Browser_14_24_create_topic_i ].length;
SUPPORTERS_Browser_14_24_past_i = "start";
SUPPORTERS_Browser_14_24_create_img_i = SUPPORTERS_Browser_14_24_media_max_num - 1;
SUPPORTERS_Browser_14_24_preload_i = 0;
var imgURL_high = "";
var imgTITLE = "";
var topicDESCRIPTION = "";
SUPPORTERS_Browser_14_24_create_img();
}
function SUPPORTERS_Browser_14_24_control_show( set_interval ){
if( SUPPORTERS_Browser_14_24_timer_id_B != "false" ){
clearInterval( SUPPORTERS_Browser_14_24_timer_id_B );
}
$("#SUPPORTERS_Browser_14_24 .controller:not(:animated)").animate({
opacity: 1
},
400,
function() {
SUPPORTERS_Browser_14_24_timer_id_B = setInterval( SUPPORTERS_Browser_14_24_control_hide, set_interval);
}
);
}
function SUPPORTERS_Browser_14_24_control_hide(){
$("#SUPPORTERS_Browser_14_24 .controller:not(:animated)").animate({
opacity: 0
},
400
);
clearInterval( SUPPORTERS_Browser_14_24_timer_id_B );
}
$("#SUPPORTERS_Browser_14_24").mousemove(function(e){
SUPPORTERS_Browser_14_24_control_show( 2000 );
});
function SUPPORTERS_Browser_14_24_create_topic(){
if( SUPPORTERS_Browser_14_24_past_topic_i != SUPPORTERS_Browser_14_24_create_topic_i ){
SUPPORTERS_Browser_14_24_past_topic_i = SUPPORTERS_Browser_14_24_create_topic_i;
SUPPORTERS_Browser_14_24_reset();
}
}
function SUPPORTERS_Browser_14_24_create_topic_max(){
SUPPORTERS_Browser_14_24_past_topic_i = SUPPORTERS_Browser_14_24_create_topic_i;
SUPPORTERS_Browser_14_24_reset_max();
}
function SUPPORTERS_Browser_14_24_create_img(){
if( SUPPORTERS_Browser_14_24_past_i != SUPPORTERS_Browser_14_24_create_img_i ){
var imgCAPTION = "";
$("#SUPPORTERS_Browser_14_24 .caption span").fadeOut(200,
function() {
var imgCAPTION = SUPPORTERS_Browser_14_24_supporters_array[ SUPPORTERS_Browser_14_24_create_topic_i ][ SUPPORTERS_Browser_14_24_create_img_i ][2];
$(this).text( imgCAPTION );
}
);
var imgURL_high = SUPPORTERS_Browser_14_24_supporters_array[ SUPPORTERS_Browser_14_24_create_topic_i ][ SUPPORTERS_Browser_14_24_create_img_i ][0];
var imgURL_low = SUPPORTERS_Browser_14_24_supporters_array[ SUPPORTERS_Browser_14_24_create_topic_i ][ SUPPORTERS_Browser_14_24_create_img_i ][1];
var imgClass = SUPPORTERS_Browser_14_24_supporters_array[ SUPPORTERS_Browser_14_24_create_topic_i ][ SUPPORTERS_Browser_14_24_create_img_i ][6];
SUPPORTERS_Browser_14_24_past_i = SUPPORTERS_Browser_14_24_create_img_i;
var set_img_div = "img_div_" + SUPPORTERS_Browser_14_24_create_topic_i + "_" + SUPPORTERS_Browser_14_24_create_img_i;
$("#SUPPORTERS_Browser_14_24 #main").append("");
var setLINK = SUPPORTERS_Browser_14_24_supporters_array[ SUPPORTERS_Browser_14_24_create_topic_i ][ SUPPORTERS_Browser_14_24_create_img_i ][7];
$("#SUPPORTERS_Browser_14_24 .controller a").remove();
if( setLINK != "" ){
$("#SUPPORTERS_Browser_14_24 .controller").append("");
}
var target = $("#SUPPORTERS_Browser_14_24 div#" + set_img_div);
target.find("img.low").load(function () {
if( SUPPORTERS_Browser_14_24_past_target != "" ){
SUPPORTERS_Browser_14_24_past_target.fadeOut(
500,
function () {
$(this).remove();
}
);
}else{
$("#SUPPORTERS_Browser_14_24 div.TOPICS_Browser_bg").stop().animate({
opacity : 1
},500)
}
SUPPORTERS_Browser_14_24_past_target = target;
var topicDESCRIPTION = SUPPORTERS_Browser_14_24_supporters_array[ SUPPORTERS_Browser_14_24_create_topic_i ][ SUPPORTERS_Browser_14_24_create_img_i ][3];
if( topicDESCRIPTION != SUPPORTERS_Browser_14_24_past_topicDESCRIPTION ){
$("div#SUPPORTERS_Browser_14_24 .description").fadeOut(
500,
function () {
$(this).empty().append(htmlDecode(topicDESCRIPTION).replace(/'/g, "\'")).fadeIn(500);
}
);
SUPPORTERS_Browser_14_24_past_topicDESCRIPTION = topicDESCRIPTION;
}
if( topicDESCRIPTION == "TITLE" ){
$("#SUPPORTERS_Browser_14_24 #watermark").stop().animate({
opacity : 1
},500)
}else{
$("#SUPPORTERS_Browser_14_24 #watermark").stop().animate({
opacity : 0
},500)
}
if( imgClass == "text" ){
$("#SUPPORTERS_Browser_14_24 .caption span").fadeIn(200);
}
target.fadeIn( SUPPORTERS_Browser_14_24_set_fade_speed, "swing");
SUPPORTERS_Browser_14_24_resizeContainer();
SUPPORTERS_Browser_14_24_scrCtr();
SUPPORTERS_Browser_14_24_preload_image();
});
target.find("img.low").attr("src", imgURL_low);
}
}
function SUPPORTERS_Browser_14_24_preload_image(){
$("#SUPPORTERS_Browser_14_24 #main > img").remove();
SUPPORTERS_Browser_14_24_preload_topic_i = eval(SUPPORTERS_Browser_14_24_create_topic_i);
SUPPORTERS_Browser_14_24_preload_i = eval(SUPPORTERS_Browser_14_24_create_img_i)+1;
if( SUPPORTERS_Browser_14_24_preload_i >= SUPPORTERS_Browser_14_24_media_max_num ){
SUPPORTERS_Browser_14_24_preload_topic_i = eval(SUPPORTERS_Browser_14_24_create_topic_i) +1;
SUPPORTERS_Browser_14_24_preload_i = 0;
}
if( SUPPORTERS_Browser_14_24_preload_topic_i >= SUPPORTERS_Browser_14_24_supporters_max_num ){
SUPPORTERS_Browser_14_24_preload_topic_i = 0;
}
var next_imgURL_high = SUPPORTERS_Browser_14_24_supporters_array[ SUPPORTERS_Browser_14_24_preload_topic_i ][ SUPPORTERS_Browser_14_24_preload_i ][0];
$("#SUPPORTERS_Browser_14_24 #main").append("");
var next_target = $("#SUPPORTERS_Browser_14_24 img#pre_" + SUPPORTERS_Browser_14_24_preload_topic_i + "_" + SUPPORTERS_Browser_14_24_preload_i );
next_target.attr("src", next_imgURL_high);
}
function SUPPORTERS_Browser_14_24_resizeContainer(e) {
set_SUPPORTERS_Browser_14_24_width = $("#SUPPORTERS_Browser_14_24").width();
set_SUPPORTERS_Browser_14_24_height = Math.round(set_SUPPORTERS_Browser_14_24_width/240*140);
if( SUPPORTERS_Browser_14_24_started == "true" ){
$("#SUPPORTERS_Browser_14_24").css("height", set_SUPPORTERS_Browser_14_24_height);
}
$("#SUPPORTERS_Browser_14_24 .image_wrapper").css("height", set_SUPPORTERS_Browser_14_24_height);
$("#SUPPORTERS_Browser_14_24 .controller").css("width", set_SUPPORTERS_Browser_14_24_width);
$("#SUPPORTERS_Browser_14_24 .controller").css("height", set_SUPPORTERS_Browser_14_24_height);
$("#SUPPORTERS_Browser_14_24 #main").css("width", set_SUPPORTERS_Browser_14_24_width);
$("#SUPPORTERS_Browser_14_24 #main").css("height", set_SUPPORTERS_Browser_14_24_height);
$("#SUPPORTERS_Browser_14_24 .image_wrapper div").css("width", set_SUPPORTERS_Browser_14_24_width);
$("#SUPPORTERS_Browser_14_24 .image_wrapper div").css("height", set_SUPPORTERS_Browser_14_24_height);
$("#SUPPORTERS_Browser_14_24 #watermark").css("width", set_SUPPORTERS_Browser_14_24_width);
$("#SUPPORTERS_Browser_14_24 #watermark").css("height", set_SUPPORTERS_Browser_14_24_height);
$("#SUPPORTERS_Browser_14_24 .description").css("width", set_SUPPORTERS_Browser_14_24_width);
$("#SUPPORTERS_Browser_14_24 .caption").css("width", set_SUPPORTERS_Browser_14_24_width);
$("#SUPPORTERS_Browser_14_24 .caption").css("height", set_SUPPORTERS_Browser_14_24_height);
$("#SUPPORTERS_Browser_14_24 .caption").css("margin-top", -set_SUPPORTERS_Browser_14_24_height);
}
$("#SUPPORTERS_Browser_14_24 div.arrow_box_photo_right").click(function(){
SUPPORTERS_Browser_14_24_create_img_i ++;
if( SUPPORTERS_Browser_14_24_create_img_i == SUPPORTERS_Browser_14_24_media_max_num){
SUPPORTERS_Browser_14_24_create_img_i = 0;
SUPPORTERS_Browser_14_24_create_topic_i ++;
if( SUPPORTERS_Browser_14_24_create_topic_i == SUPPORTERS_Browser_14_24_supporters_max_num ){
SUPPORTERS_Browser_14_24_create_topic_i = 0;
}
if( SUPPORTERS_Browser_14_24_supporters_max_num != 1 ){
SUPPORTERS_Browser_14_24_create_topic();
}else{
SUPPORTERS_Browser_14_24_create_img();
}
}
SUPPORTERS_Browser_14_24_create_img();
})
$("#SUPPORTERS_Browser_14_24 div.arrow_box_photo_left").click(function(){
if( SUPPORTERS_Browser_14_24_create_img_i == 0){
if( SUPPORTERS_Browser_14_24_create_topic_i == 0 ){
SUPPORTERS_Browser_14_24_create_topic_i = SUPPORTERS_Browser_14_24_supporters_max_num - 1;
}else{
SUPPORTERS_Browser_14_24_create_topic_i --;
}
SUPPORTERS_Browser_14_24_create_topic_max();
}else{
SUPPORTERS_Browser_14_24_create_img_i --;
SUPPORTERS_Browser_14_24_create_img();
}
})
$("#SUPPORTERS_Browser_14_24 .arrow_box_photo_right, #SUPPORTERS_Browser_14_24 .arrow_box_photo_left").mouseover(function(){
$(this).stop().animate({
opacity : 1
},200)
}
)
$("#SUPPORTERS_Browser_14_24 .arrow_box_photo_right, #SUPPORTERS_Browser_14_24 .arrow_box_photo_left").mouseout(function(){
$(this).stop().animate({
opacity : 0.6
},400)
}
)
$("#SUPPORTERS_Browser_14_24 .arrow_box_photo_right, #SUPPORTERS_Browser_14_24 .arrow_box_photo_left").animate({
opacity : 0.6
},100)
function SUPPORTERS_Browser_14_24_scrCtr(){
if( SUPPORTERS_Browser_14_24_start_flag == "false" ){
SUPPORTERS_Browser_14_24_start_flag = "true";
}else{
clearTimeout( SUPPORTERS_Browser_14_24_Repeater );
}
if( SUPPORTERS_Browser_14_24_repeat_flag == "true" ){
SUPPORTERS_Browser_14_24_Repeater = setTimeout(
function(){
SUPPORTERS_Browser_14_24_slidePlay();
}
, SUPPORTERS_Browser_14_24_set_slide_speed);
}
}
function SUPPORTERS_Browser_14_24_slidePlay(){
SUPPORTERS_Browser_14_24_create_img_i ++;
if( SUPPORTERS_Browser_14_24_create_img_i == SUPPORTERS_Browser_14_24_media_max_num){
SUPPORTERS_Browser_14_24_create_topic_i ++;
SUPPORTERS_Browser_14_24_create_img_i = 0;
if( SUPPORTERS_Browser_14_24_create_topic_i == SUPPORTERS_Browser_14_24_supporters_max_num ){
SUPPORTERS_Browser_14_24_create_topic_i = 0;
if( SUPPORTERS_Browser_14_24_repeat_limit > SUPPORTERS_Browser_14_24_repeat_limit_max ){
SUPPORTERS_Browser_14_24_repeat_flag = "false";
}
}
if( SUPPORTERS_Browser_14_24_supporters_max_num != 1 ){
SUPPORTERS_Browser_14_24_create_topic();
}else{
SUPPORTERS_Browser_14_24_create_img();
}
}else{
SUPPORTERS_Browser_14_24_create_img();
}
}
SUPPORTERS_Browser_14_24_supporters_array = [];
SUPPORTERS_Browser_14_24_supporters_max_num = 0;
$(window).load(function() {
SUPPORTERS_Browser_14_24_initialize();
});
$("footer a").mouseover(function(){
$(this).stop().animate({
color: "#FFFFFF"
},10)
})
$("footer a").mouseout(function(){
$(this).stop().animate({
color: "#AAA"
},500)
})
function fadein_fast( target ){
target.fadeIn("fast");
}
function fadeout_fast( target ){
target.fadeOut("fast");
}
function animate_alpha_0( target ){
target.stop().animate({
opacity : 0
},200)
}
function animate_alpha_10( target ){
target.stop().animate({
opacity : 0.1
},200)
}
function animate_alpha_20( target ){
target.stop().animate({
opacity : 0.2
},200)
}
function animate_alpha_30( target ){
target.stop().animate({
opacity : 0.3
},200)
}
function animate_alpha_40( target ){
target.stop().animate({
opacity : 0.4
},200)
}
function animate_alpha_50( target ){
target.stop().animate({
opacity : 0.5
},200)
}
function animate_alpha_60( target ){
target.stop().animate({
opacity : 0.6
},200)
}
function animate_alpha_70( target ){
target.stop().animate({
opacity : 0.7
},200)
}
function animate_alpha_80( target ){
target.stop().animate({
opacity : 0.8
},200)
}
function animate_alpha_90( target ){
target.stop().animate({
opacity : 0.9
},200)
}
function animate_alpha_100( target ){
target.stop().animate({
opacity : 1
},200)
}
var scroll_flag = false;
var set_scroll_trigger = 500;
$(window).scroll(function(){
var scroll_val = $(window).scrollTop();
if( scroll_val > set_scroll_trigger && scroll_flag == false ){
fadein_fast( $("#return_top") );
scroll_flag = true;
}else if( scroll_val < set_scroll_trigger && scroll_flag == true ){
fadeout_fast( $("#return_top") );
scroll_flag = false;
}
});
$("#return_top").mouseover(function(){
animate_alpha_90( $(this) );
})
$("#return_top").mouseout(function(){
animate_alpha_60( $(this) );
})
$("#return_top").click(function(){
$('html,body').animate({
scrollTop: 0
}, 'slow');
fadeout_fast( $(this) )
})
animate_alpha_60( $("#return_top") );
function htmlEncode(value){
return $('').text(value).html();
}
function htmlDecode(value){
return $('').html(value).text();
}
$("header nav li a").mouseover(function(){
$(this).stop().animate({
opacity : 0.5
},100)
})
$("header nav li a").mouseout(function(){
$(this).stop().animate({
opacity : 1
},500)
})
$("aside li a").mouseover(function(){
$(this).stop().animate({
opacity : 0.7
},100)
})
$("aside li a").mouseout(function(){
$(this).stop().animate({
opacity : 1
},500)
})
$("article ul#archive_list_news li > a").mouseover(function(){
$(this).stop().animate({
borderColor : "#000"
},10)
})
$("article ul#archive_list_news li > a").mouseout(function(){
$(this).stop().animate({
borderColor : "#AAA"
},200)
})
$("article ul#archive_list_schedule li > a").mouseover(function(){
$(this).stop().animate({
opacity : 0.7
},100)
})
$("article ul#archive_list_schedule li > a").mouseout(function(){
$(this).stop().animate({
opacity : 1
},500)
})
$("article ul#archive_list li > a").mouseover(function(){
$(this).stop().animate({
borderColor : "#000"
},10)
})
$("article ul#archive_list li > a").mouseout(function(){
$(this).stop().animate({
borderColor : "#AAA"
},200)
})
function window_resize(e) {
var target = $("#container #main_article article ul#archive_list_schedule li.large a div.img");
target.css("height", target.width()/2);
var target = $("#container #main_article article ul#archive_list_schedule li.small a div.img");
target.css("height", target.width());
var target = $("#container #main_article article ul#archive_list_schedule div.img img.vertically");
target.each(function(){
var target_height = $(this).closest("div.img").height();
var target_width = $(this).closest("div.img").width();
var read_height = $(this).height();
var read_width = $(this).width();
var set_margin = -(read_height-target_height)/4;
$(this).css("margin-top", set_margin+"px");
});
var target = $("#container #main_article article ul#archive_list_schedule div.img img.horizontally");
target.each(function(){
var target_height = $(this).closest("div.img").height();
var target_width = $(this).closest("div.img").width();
var read_height = $(this).height();
var read_width = $(this).width();
var set_margin = -(read_width-target_width)/2;
$(this).css("margin-left", set_margin+"px");
});
}
$(window).bind("resize", window_resize);
$(window).load(function() {
window_resize();
});
$("img:not('.loaded')").each(function(){
$(this).imagesLoaded(function(){
$(this).addClass("loaded");
window_resize();
});
});
function rnd(n){
return Math.floor(Math.random()*(n+1));
}
var iframe_started = 0;
$("#iframe").load(function(){
if( iframe_started >= 2 ){
var scrolltolist = $('#iframe').offset().top;
$('html,body').animate({
scrollTop: scrolltolist
}, '1000');
}else{
iframe_started += 1;
}
});
$("#iframe").triggerHandler('load');
});