/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

"Design is not just what it looks like and feels like. Design is how it works." - Steave Jobs

Author : extradna (http://www.extradna.com) 

Last modified : Mar-11, 2011

※ソースを引用／流用する場合はこのサイト、または作成者からの引用／流用であることがわかるよう明記して下さい。

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/*
==================================================
OSがWindowsの時、windows.cssを読込ませる。
==================================================
*/

if (navigator.platform.indexOf("Win") != -1) {
document.write("<link rel=\"stylesheet\" href=\"css/windows.css\" type=\"text/css\" />");
}

/*
==================================================
予告編再生 by shadowbox
==================================================
*/

function showTrailer(){
	Shadowbox.open({
	content:'http://www.youtube.com/v/txoY0AmHHKA&amp;hl=ja_JP&amp;fs=0&amp;rel=0&amp;autoplay=1',
	player:"swf",
	title:"映画『ゲゲゲの女房』予告編",
	width:640,
	height:385
	});
	pageTracker._trackPageview('/trailer/yokoku/');
}

/* shadowbox初期化 */
Shadowbox.init({
animSequence:"wh",
overlayOpacity:0.95,
resizeDuration:0.5,
fadeDuration:0.75,
overlayColor:"#000",
troubleElements:["select","canvas"]
});


/*
==================================================
テキストの表示・非表示切り替え
==================================================
*/
function txtShowHide(showID,hideID){
	if(document.all || document.getElementById){
		if(document.all){
		document.all(showID).style.display = "block";
		document.all(hideID).style.display = "none";
		}
		else if(document.getElementById){
		document.getElementById(showID).style.display = "block";
		document.getElementById(hideID).style.display = "none";
		}
	}
}

/*
==================================================
jquery読込後実行
==================================================
*/
if(navigator.userAgent.indexOf("iPhone") != -1 || navigator.userAgent.indexOf("iPad") != -1){
//iPhone & iPad
} else {
//その他全ての端末
$(document).ready(function() {	

/* ボタン用：フェイドアウトエフェクト */
$(".fadeEffect").hover(function(){
	$(this).fadeTo(250,0);
	},
	function(){
	$(this).fadeTo(250,1);
	}
);

/* ブリンクエフェクト */
$(".blinkEffect").hover(function(){
	$(this).fadeTo(0,0.25);
	$(this).fadeTo(500,1);
	},
	function(){
	$(this).fadeTo(0,1);
	}
);

/* ホームへ戻る表示用：フェイドインアウト */
$("#logo a").hover(function(){
	$("#tooltipHome").fadeIn(300);
	},
	function(){
	$("#tooltipHome").fadeOut(300);
	}
);

});

}
