// JavaScript Document

/*if (document.cookie) {
	var cookies = document.cookie.split("; ");
	for (var i = 0; i < cookies.length; i++) {
		var str = cookies[i].split("=");
		if (str[0] == 'topflashcheck') {
			var cookie_value = unescape(str[1]);
			break;
		}
	}
}*/

//if( cookie_value != '1' ){
	(function() {
		document.body.style.display = "none";
		document.body.style.overflow = "hidden";
		document.body.style.background = "url(../images/index/dammyBack.gif) no-repeat";
	})()
//}else {
	//document.body.style.background = "url(../images/common/gnavi_bg.jpg) repeat-x top center";
//}
function bodyShow(){
	document.body.style.display = "block";
}
function bodyScroll(){
	document.getElementById('index').style.display = "block";
	document.getElementById('container').style.height = "";
	document.body.style.overflowY = "scroll";
	document.body.style.overflowX = "auto";
	document.body.style.background = "url(../images/common/gnavi_bg.jpg) repeat-x top center";
	Shadowbox.close();
	Shadowbox.setup("a.gw_popup", {
        animate: true,
		fadeDuration: 0.35,
		overlayOpacity: 0.2,
		overlayColor: '#000'
    });
}


function bodyShow2(){
	var h = Math.max( document.body.clientHeight , document.body.scrollHeight );  
	h = Math.max( h , document.documentElement.scrollHeight );  
	h = Math.max( h , document.documentElement.clientHeight );  
	h = h -250;
	document.body.style.display = "block";
	document.getElementById('container').style.height = h + 'px';
	document.getElementById('index').style.display = "none";
}


function bodyShow3(){
	var h = Math.max( document.body.clientHeight , document.body.scrollHeight );  
	h = Math.max( h , document.documentElement.scrollHeight );  
	h = Math.max( h , document.documentElement.clientHeight );  
	h = h -900;
	document.body.style.display = "block";
	document.getElementById('container').style.height = h + 'px';
	document.getElementById('index').style.display = "none";
}