
//タイトル表示//
msg = "【"+document.title+"】";
stcnt = 0
guideSw=true
function typing()
{
stcnt += 2
status=msg.substring(0,stcnt);
if(stcnt <= msg.length) guideSw=setTimeout("typing()",50);
}
typing()
function jump(sel) {
  if (sel.options[sel.selectedIndex].value) {
    location.href = sel.options[sel.selectedIndex].value;
  }
}
//文字表示//
function makeArray(n)
{
	this.length = n;
	for (i=0; i<n; i++) this[i]="";
}
mcnt = 0;
comment = "";
stcount=0;
function wiper()
{
	stcount++;
	if (stcount>msgspd.innerText)
	{
		stcount = 0;
		comment += document.message.substring(mcnt,mcnt+1);
		mcnt++;
		if (mcnt > document.message.length) { mcnt=0;comment="";checkend();return false;}
	}
	csr = " ";
	if (stcount & 1) csr =" ";
	document.form1.textbox.value = comment+csr;
	timeID = window.setTimeout("wiper()",5);
}

//画像変更//
function showform(url){url.style.visibility='visible';}
function hideform(url){url.style.visibility='hidden';}

//リミットブレイク設定//

lbreakname=getCookie("BREAK");
if(lbreakname=="" || lbreakname==null){lbreakname="リミットブレイク";}

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";
 }
}

//LOADING//
function load() {
  history.forward();
    if(document.all){
      loading.style.visibility = "hidden";
      content.style.visibility = "visible";
      return 0;
    }
}