
//タイトル表示//

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";
 }
}

function ff_t1(wt){
  document.write('<TABLE border="0" width='+wt+'>');
  document.write('<TBODY><TR><TD><TABLE cellspacing="0" cellpadding="0" border="0"><TBODY><TR>');
  document.write('<TD style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; PADDING-LEFT: 2px; BORDER-LEFT: #ffffff 2px solid; BORDER-BOTTOM: #ffffff 2px solid">');
  document.write('<TABLE bgcolor="#846dff" style="FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorstr=#846dff,endColorstr=#00009C);margin-left : -2px" width='+wt+'>');
}

function ff_t2(wt,ht,sd){
  ws=eval(wt)-eval(sd);
  document.write('</TABLE></TD><TD valign="bottom" width='+sd+'>');
  document.write('<TABLE cellspacing="0" cellpadding="0" bgcolor="#ffc0c0" border="0">');
  document.write('<TBODY><TR><TD width='+sd+' bgcolor="#000000" height='+ht+'></TD></TR></TBODY></TABLE></TD></TR><TR>');
  document.write('<TD valign="top" align="right" height='+sd+'><TABLE cellspacing="0" cellpadding="0" border="0">');
  document.write('<TBODY><TR><TD valign="top" width='+ws+' bgcolor="#000000" height='+sd+'></TD>');
  document.write('</TR></TBODY></TABLE></TD><TD width='+sd+' bgcolor="#000000" height='+sd+'></TD>');
  document.write('</TR></TBODY></TABLE></TD></TR></TBODY></TABLE>');
}
function ff_f1(){
  document.write('<TBODY><TR><TD>');
  document.write('<DIV style="FILTER: dropshadow(offx=2,offy=2,color=#00007d); POSITION: relative; HEIGHT: 10px"><SPAN style="FONT-SIZE: 13px"><B>');
}
function ff_f2(){
  document.write('</B></SPAN></DIV></TD></TR></TBODY>');
}
function ff_f3(wd){
  ff_f1();
  document.write(wd);
  ff_f2();
}