// JavaScript Document
// (C)ペタビット株式会社

var start_opacity=0;
var value_opacity;
function boxopen(wm,chiku,c_no,n_Y,n_M,n_D){
var rand=Math.floor(Math.random()*1000);
var elem=document.createElement("div");
var style="width:100%;height:100%;top:0;left:0;position:fixed;z-index:1234;";
var hidden="visibility:hidden;";
var flash_obj=document.getElementsByTagName("object");
for(var i=0;i<flash_obj.length;i++){
if(flash_obj.item(i).getAttribute("id")!="tide"){
if(document.all){flash_obj.item(i).style.cssText=hidden;}
else{flash_obj.item(i).setAttribute("style",hidden);}
}
}
if(document.all){elem.style.cssText=style;}
else{elem.setAttribute("style",style);}
elem.setAttribute("id","tide_flash");
document.getElementsByTagName('body').item(0).appendChild(elem);
value_opacity=start_opacity;
setOpacityZero();
elem.innerHTML='<div style="position:absolute;width:100%;height:100%;top:0;left:0;background:#111111;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" name="tide_month" width="100%" height="100%" align="middle" id="tide_month">\n'+
'<param name="allowScriptAccess" value="always" />\n'+
'<param name="allowFullScreen" value="false" />\n'+
'<param name="movie" value="http://www.golden-mean.co.jp/js/tide_month.swf?wm='+wm+'&chiku='+unescape(chiku)+'&c_no='+c_no+'&n_Y='+n_Y+'&n_M='+n_M+'&n_D='+n_D+'&rand='+rand+'" /><param name="quality" value="high" /><param name="bgcolor" value="#333333" />\n'+
'<param name="wmode" value="transparent" />\n'+
'<embed src="http://www.golden-mean.co.jp/js/tide_month.swf?wm='+wm+'&chiku='+unescape(chiku)+'&c_no='+c_no+'&n_Y='+n_Y+'&n_M='+n_M+'&n_D='+n_D+'&rand='+rand+'" width="100%" height="100%" align="middle" quality="high" bgcolor="#333333" name="tide_month" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_jp" wmode="transparent" />\n'+
'</object></div>';
}

function get_tide_HOST() {
return location.host;
}


function get_tide_URI() {
return location.href;
}

function get_tide_RF() {
return document.referrer;
}


function WINclose(){
var flash_obj=document.getElementsByTagName("object");
for(var i=0;i<flash_obj.length;i++){
flash_obj.item(i).style.visibility="";
}
document.getElementsByTagName('body').item(0).removeChild(document.getElementById("tide_flash"));
}
function setOpacityZero(){
if(value_opacity<9){
value_opacity+=1;
var set_T=setTimeout('setOpacityZero()',10);
setOpacity();
}
else{
clearTimeout(set_T);
}
}
function setOpacity(){
document.getElementById('tide_flash').style.filter='alpha(opacity='+(value_opacity*10)+')';
document.getElementById('tide_flash').style.MozOpacity=value_opacity/10;
document.getElementById('tide_flash').style.opacity=value_opacity/10;
}
document.write(' <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="175" height="261" id="tide" align="middle">\n'+
' <param name="allowScriptAccess" value="always" />\n'+
' <param name="allowFullScreen" value="false" />\n'+
' <param name="movie" value="http://www.golden-mean.co.jp/js/tide_2nd.swf?now_host='+get_tide_HOST()+'&now_uri='+get_tide_URI()+'&now_rf='+get_tide_RF()+'" /><param name="quality" value="high" /><param name="bgcolor" value="#333333" />\n'+
' <param name="wmode" value="transparent" />\n'+
' <param name="menu" value="false" />\n'+
' <embed src="http://www.golden-mean.co.jp/js/tide_2nd.swf?now_host='+get_tide_HOST()+'&now_uri='+get_tide_URI()+'&now_rf='+get_tide_RF()+'" width="175" height="261" align="middle" quality="high" bgcolor="#333333" name="tide" allowScriptAccess="always" menu="false" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_jp" wmode="transparent" />\n'+
' </object>');