/*================================================================================*/$(document).ready(function(){	//$.preloadCssImages();		$('body').hide();		//すべて隠す	$("#background-img>img"	).stop(true, false).animate({ opacity: 0 }, 0 );	$("#title-images>p"		).stop(true, false).animate({ opacity: 0 }, 0 );	$("#navi>ul"			).stop(true, false).animate({ opacity: 0 }, 0 );	$(document).bind("contextmenu",function(e){ return false; });});/*================================================================================*/jQuery(window).load(function(){	//すべて隠す	$("#background-img>img"	).stop(true, false).animate({ opacity: 0 }, 0 );	$("#title-images>p"		).stop(true, false).animate({ opacity: 0 }, 0 );	$("#navi>ul"			).stop(true, false).animate({ opacity: 0 }, 0 );		$('body').show();			$("#background-img").backgroundScale({				imageSelector: ".bgmaximage",			centerAlign: false,			containerPadding: 0	});					//var numberOfArts = 3;	//var mt = new MersenneTwister();	//var rand = mt.nextInt(0, numberOfArts); // 0 以上 3 未満の整数	rand = 0;	 	//X番目の絵を抽出	var currentArt = $("#background-img>img:eq("+rand+")");	//X番目以外の絵をすべて隠す	//$("#background-img>img:gt("+rand+")").hide();	//$("#background-img>img:lt("+rand+")").hide();		$(currentArt).stop(true, false).animate({ opacity: 1 }, 1000 );	//X番目の絵に対応する文字色	var menuColor_cA = currentArt.attr("menucolor");		//X番目の絵に適合するタイトルとメニューを表示	$("#title-images>p[menucolor="+menuColor_cA+"]").animate({ opacity: 1 }, 1000 );	$("#navi>ul[menucolor="+menuColor_cA+"]").animate({ opacity: 1 }, 1000 );});/*================================================================================*/$(function(){	setInterval(function(){		var currentArt = $("#background-img>img:eq(0)");		var nextArt    = $("#background-img>img:eq(1)");		var menuColor_cA = currentArt.attr("menucolor");		var menuColor_nA = nextArt.attr("menucolor");				currentArt.stop(true, false).animate({ opacity: 0 }, 2000 );		nextArt.stop(true, false).animate({ opacity: 1 }, 1000 );		currentArt.appendTo("#background-img"); 		if( menuColor_cA != menuColor_nA ){					$("#title-images>p[menucolor="+menuColor_cA+"]").stop(true, false).animate({ opacity: 0 }, 1000 );			$("#title-images>p[menucolor="+menuColor_nA+"]").stop(true, false).animate({ opacity: 1 }, 1000 );						$("#navi>ul[menucolor="+menuColor_cA+"]").stop(true, false).animate({ opacity: 0 }, 1000 );			$("#navi>ul[menucolor="+menuColor_nA+"]").stop(true, false).animate({ opacity: 1 }, 1000 );		}			}, 		10000	);});
