var indexsf=false;
var nd=new Date();
var nh=nd.getHours();
//nh=18;
var fps=-50;
fflag=false;
function m_ship(){
if(nh==6||nh==18){
 document.body.background="image/backimgS.jpg";//夕背景
 fflag=true;
 if(navigf!='MSIE')fse=Math.floor(window.innerWidth);
 else{
 fse=Math.floor(window.document.body.clientWidth);
 if(isNaN(fse))fse=Math.floor(screen.width);
 }
 if(nh==18){
  document.getElementById("main").innerHTML+='<img src="image/shipB.gif" alt="" galleryImg="no" width="50" height="20" id="fship" />';
  fps=fse;
  }
 else{document.getElementById("main").innerHTML+='<img src="image/ship.gif" alt="" galleryImg="no" width="50" height="20" id="fship" />';}
 mship();
 }
else{document.body.background="image/backimg.jpg";}//昼背景
}
//船タイマー処理
function mship(){
document.getElementById("fship").style.left=fps+"px";
if(nh==18){
 if(fps<=-50){fflag=false;}
 else fps-=15;
 }
else{
 if(fps>=fse){fflag=false;}
 else fps+=15;
 }
if(fflag){Shipt=setTimeout("mship()",300);}/*タイマー設定*/
else{document.getElementById("fship").style.display="none";clearTimeout(Shipt);}
}

//小見出し
function dindex(){
document.getElementById("indexs").style.display="block";
}
function eindex(){
indext=setTimeout('eindex1()',0);
}
function eindex1(i){
if(!indexsf)document.getElementById("indexs").style.display="none";
clearTimeout(indext);
}