// 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;

		}

	}

}*/

//-----------------------------------------------------------------
function movieShow()
{
	document.getElementById('movieArea').style.display = "block";
	document.getElementById('movieArea').style.zIndex = "10";
}
//-----------------------------------------------------------------
function movieClose()
{
	document.getElementById('movieArea').style.display = "none";
	document.getElementById('movieArea').style.zIndex = "-10";
}



//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";
	swfObjSet();
	swfObjSet2();
}

function bodyScroll(){
	document.getElementById('index').style.display = "block";
	//document.getElementById('container').style.height = "";
	document.body.style.overflowY = "visible";
	document.body.style.overflowX = "auto";
	document.body.style.background = "url(../images/common/gnavi_bg.jpg) repeat-x top center";
	movieClose();
	swfObjSet();
	swfObjSet2();
}





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";
	swfObjSet();
	swfObjSet2();
}





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";
	swfObjSet();
	swfObjSet2();
}

