times=getCookie("Times");
if (times ==""){
times =1;
//document.write("一回目");
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="860" height="344" id="top" align="middle" wmode="transparent">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<param name="movie" value="../flash/tokyo-sports/top.swf">');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../flash/tokyo-sports/top.swf" wmode="transparent" quality="high" width="860" height="344" name="top" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');

times++;
}
else if(times >= 1){
//document.write("二回目以降");	 
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="860" height="344" id="top" align="middle" wmode="transparent">');
document.write('<param name="wmode" value="transparent" />');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="../flash/tokyo-sports/top.swf" />');
document.write('<param name="quality" value="high" />');

document.write('<param name="flashVars" value="actime=sectime">');
document.write('<embed src="../flash/tokyo-sports/top.swf" wmode="transparent" quality="high" width="860" height="344" name="top" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashVars="actime=sectime" />');
document.write('</object>');
}


setCookie("Times",times);
function getCookie(key){
	tmp=document.cookie+";";
	tmp1=tmp.indexOf(key,0);
	if(tmp1!=-1){
	tmp=tmp.substring(tmp1,tmp.length);
	start=tmp.indexOf("=",0)+1;
	end=tmp.indexOf(";",start);
	return(unescape(tmp.substring(start,end)));
}
return("");
}
function setCookie(key,val){
	tmp=key+"="+escape(val)+";";
	/*tmp+="expires=Fri,31-Dec-2030 23:59:59;";*/
	document.cookie=tmp;
	}
