
//タイトル表示//

status="Now Loading...";

function comp(){
msg = "【"+document.title+"】";
stcnt = 0;
guideSw=true;
typing();
}
function typing(){
stcnt += 2;
status=msg.substring(0,stcnt);
if(stcnt <= msg.length){ guideSw=setTimeout("typing()",50);}
}

//画像変更//
function showform(url){url.style.visibility='visible';}
function hideform(url){url.style.visibility='hidden';}

function getCookie(keyname){
  tmp=document.cookie +";";
  index1=tmp.indexOf(keyname,0)
  if(index1!=-1){
    tmp=tmp.substring(index1,tmp.length);
    index2=tmp.indexOf("=",0)+1;
    index3=tmp.indexOf(";",index2);
    return(unescape(tmp.substring(index2,index3)));
  }
  return("");
}

function setCookie(keyname,val){
  var expdate = new Date ();
  expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000 * 30 * 1));
  tmp=keyname+"="+escape(val)+";";
  tmp+="expires="+expdate.toGMTString()+";";
  document.cookie=tmp;
}

//メニュー//

function menulist(id) {
var disp = document.all(id).style.display;

if(disp != "none" || disp == "") {
  document.all(id).style.display = "none";
 }
else {
  document.all(id).style.display = "block";
 }
}