<!--
var update = 20040101; //更新日：年(4桁)月(2桁)日(2桁)

//====================================
// これより下は編集しないで下さい。
// Alpha Create.Co.LTD 

var date   = GetCookie("MIYAWAKIDATE");

update < date || DelCookie();

SetCookie("MIYAWAKIDATE", getWriteDate());

// 年月日を取得
function getWriteDate(){
	var ndate = new Date();
	var year  = ndate.getYear();
	var month = ndate.getMonth() + 1;
	var day   = ndate.getDate();
	if(year < 1900){year += 1900;}
	if(month < 10){month = "0" + month;}
	if(day < 10){day = "0" + day;}
	return (year+month+day)*1;
}

// Cookieを取得
function GetCookie(key){
	var tmp = document.cookie + ";";
	var index1 = tmp.indexOf(key, 0);
	if(index1 != -1){
		tmp = tmp.substring(index1,tmp.length);
		var index2 = tmp.indexOf("=",0) + 1;
		var index3 = tmp.indexOf(";",index2);
		return(unescape(tmp.substring(index2,index3)));
	}
	return("");
}

// Cookieを書込
function SetCookie(key, val){
	document.cookie = key + "=" + escape(val) + ";expires=Tue, 14-Oct-2004 03:15:00;";
}

// Cookieを削除
function DelCookie(){
	tmpCookie=document.cookie.split(";");
	for(i=0;i<tmpCookie.length;i++){
		document.cookie = tmpCookie[i].split("=")[0] + "=del"+ ";expires=Fri, 01-Jan-2001 12:00:00;";
	}
}

function chkCookie(name,url){
	flag=0;
	flag=GetCookie(name);
	if(flag == 1){
		if(url != ""){
			location.href=url;
		}else{
			ChangeScene(name);
		}
	}else{
		SetCookie(name, "1");
	}
}

//シーン移動
function ChangeScene(id){
	try{
		try{
			num=whichB(id).TotalFrames-1;
		}catch(e){
			num=whichB(id).TotalFrames()-1;
		}
		whichB(id).GotoFrame(num);
	}catch(e){
		window.status=id+" FLASH id ERROR!!";
	}
}

//ブラウザ選別【FLASHオブジェクト】
function whichB(objName){
	if (navigator.appName=="Netscape"){
		return window.document[objName];
	}else{
		return window[objName];
	}
}

//-->
