<!---
//User設定
 var movietype = 1; //アニメーションのタイプ。0だと一行ずつ。1だと1文字ずつ。
 var gourl = "top.htm"; //飛ぶURL
 var textcolor= "#afafaf"; //<body>textの色
 var bgcolor  = "#000000"; //<body>背景色
 var fontstyle= "<font size=6 color=#afafaf face='Times New Roman,Times'><b>"; //表示文章の設定
 var posA = "<table width=100% height=90%><tr valign=center><td align=center>"; //表示位置調整
 var posB = "<BR><P><BR><P><BR></td></tr></table>";         //タグ閉じ
 var a_time = 70;  //type:1の時のメッセージタイプの速度。1000=1秒。この場合0.1秒。
 var c_time = 1000; //次のメッセージを表示するまでの時間。1000=1秒。この場合4秒。

 var msg = new Array();
 /* お好みのメッセージを入れてください。 */
 msg[0] = "Welcome";
 msg[1] = "to";

 /* メッセージを増やしたい場合、
    msg[6]="..."; msg[7]="....";　と続ける事もできます。 */


 function cancel() {
   playcheck = false;
   if(SID != null) { clearTimeout(SID); }
   location.href = gourl;
 }

 function makeHTML(str,e) {
   var html = "<HTML>";
   html += "<BODY bgColor=" +bgcolor+ " text=" +textcolor+ ">";
   html += (e) ? "<a href='javascript:parent.cancel()'></a>" : "  ";
   html +=  posA + fontstyle + str + posB;
   html += "</BODY></HTML>";
   return html;
 }

 var playcheck = true;
 var temphtml="<HTML><BODY bgColor=" +bgcolor+ " text=" +textcolor+ "></BODY></HTML>";
 var current = 0; 
 var currentchat= 0;
 var output  = "";
 var SID;

 function movieplay() {
  if(!playcheck) { return; }
  if(movietype == 0) {
    if(!msg[current]) { location.href = gourl; return; }
    var str = msg[current];
    output = makeHTML(str,true);
    parent.f1.location.href = "javascript:parent.output";
    current++;
    SID = setTimeout("movieplay()",c_time);
  } else {
   if(SID != null) { clearTimeout(SID); }
   if(!msg[current]) { location.href = gourl; return; }
   var str = msg[current];
   var exit= (currentchat+1 > str.length) ? true : false;
   output = makeHTML(str.substring(0, currentchat),exit);
   parent.f1.location.href = "javascript:parent.output";
   currentchat++;
   if(currentchat > str.length) {
     current++;
     currentchat = 0;
    if(!playcheck) { return; }
     SID = setTimeout("movieplay()",c_time);
   }
   else {
    if(!playcheck) { return; }
     SID = setTimeout("movieplay()",a_time);
   }
  }
 }

document.write('<frameset rows="100%, *" frameborder="no" border=0 onLoad="movieplay()">');
document.write('<frame src="javascript:parent.temphtml" name="f1">');
document.write('</frameset>');

//-->