//告知var notice="上津深江八坂神社裸まつり ・  ・  ・ 初午大祭 ・  ・  ・ 春の陶器市 ・  ・  ・ 苓北じゃっと祭　天草れいほくペ｜ロン大会 ・  ・  ・ 吟詠 泊天草洋 全国大会 ・  ・  ・ ・  ・  ・ ";//フラグ・時間var fflag=1;var fps=-50;var nh=new Date();var nh=nh.getHours();//nh=18;var indexsf=false;//?WinIEif(navigator.appName.charAt(0)=="M"&&navigator.platform.indexOf("Win")!=-1)wmsief=true;else wmsief=false;//?MacIEif(navigator.appName.charAt(0)=="M"&&navigator.platform.indexOf("Mac")!=-1)mmsief=true;else mmsief=false;//更新日lday=new Date(document.lastModified);var ly=lday.getFullYear();var lm=lday.getMonth()+1;var ld=lday.getDate();if(!isNaN(ly)&&ly>2000)Wlday='更新日：'+ly+'/'+lm+'/'+ld;else Wlday='';//初期設定function setup(){ //背景if(nh==6||nh==18){ document.body.background="image/backimgS.jpg"; fflag=0; }else{ document.body.background="image/backimg.jpg"; } //船fse=Math.floor(window.innerWidth);if(isNaN(fse))fse=Math.floor(window.document.body.clientWidth);if(isNaN(fse))fse=Math.floor(screen.width);if(nh==6){ document.getElementById("fship").src="image/shipB.gif"; fps=fse; } //告知板ne=notice.length;n1="";for(var i=1;i<=ne;i++){n1+=notice.substring(i-1,i)+"　";}notice=n1;ne=notice.length;//タイマー処理へmnotice();}//タイマー処理function mnotice(){ // 告知板notice=notice.substring(1,ne)+notice.substring(0,1);document.getElementById("noticebox").innerHTML=notice;document.getElementById("noticeboxr").innerHTML=notice; //船if(fflag==0){ if(nh==18){  document.getElementById("fship").style.left=fps+"px";  if(fps>=fse){fflag=1;document.getElementById("fship").style.display="none";}  else fps+=10;  } else{  document.getElementById("fship").style.left=fps+"px";  if(fps<=-50){fflag=1;document.getElementById("fship").style.display="none";}  else fps-=10;  } }//タイマー設定noticeT=setTimeout("mnotice()",300);}//小見出し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);}//MacIE対策function MacIEs(){if(mmsief){ document.getElementById("indexs").style.width=758+"px"; }}