
		// ブリンク指定
		function blink() {
		  if (!document.all) { return; }
		  for (i = 0; i < document.all.length; i++) {
		    obj = document.all(i);
		    if (obj.className == "blink") {
		      if (obj.style.visibility == "visible") {
		        obj.style.visibility = "hidden";
		      } else {
		        obj.style.visibility = "visible";
		      }
		    }
		  }
		  setTimeout("blink()", 300);
		}

		// ステータスに文字を流す
		function marqueeStatus() {
		  var copy = "Copyright(c)2004-2007 Sae";
		  msg = msg.substring(1, msg.length) + msg.substring(0, 1);

		  d = new Date();
		  year = d.getYear(); if (year < 2000) { year += 1900; }
		  mon = d.getMonth() + 1; if (mon < 10) { mon = "0" + mon; }
		  date = d.getDate(); if (date < 10) { date = "0" + date; }
		  hour = d.getHours(); if (hour < 10) { hour = "0" + hour; }
		  min = d.getMinutes(); if (min < 10) { min = "0" + min; }
		  sec = d.getSeconds(); if (sec < 10) { sec = "0" + sec; }
		  tokei =
		     " " + year + "/" + mon + "/" + date +
		     " "+ hour + ":" + min + ":" + sec;

		  window.status = tokei + "     " + msg + "     " + copy;
		  setTimeout("marqueeStatus(msg)", 300);
	}

		// 誕生日
		function display() {
		  var today=new Date();
		  var y=today.getYear();
		  var m=today.getMonth();
		  var d=today.getDate();
		  if(m>bm-1) y++;
		  if(m==bm-1 && d>=bd) y++;

		  var bday=new Date(y,bm-1,bd);

		  days = Math.floor((bday.getTime()-today.getTime())/(24*60*60*1000));
		  timeD = Math.floor(((bday-today)%(24*60*60*1000))/(60*60*1000));
		  timeM = Math.floor(((bday-today)%(24*60*60*1000))/(60*1000))%60;
		  timeS = Math.floor(((bday-today)%(24*60*60*1000))/635)%60%60;
		  if (days > 335 ){
		    if (y-by> 24){
		      document.form1.days.value = hito + "誕生日おめでとう！！";
		    }
		    else {
		      document.form1.days.value = hito + "の " + (y-by-1) + " 才の誕生日おめでとう！！";
		    }
		  }
		  else{
		    if (y-by > 24){
		      document.form1.days.value = hito + "の誕生日まであと" + days + "日" + "と" + timeD + "時間" + timeM + "分" + timeS + "秒"
		    }
		    else {
		      document.form1.days.value = hito + "の " + (y-by) + " 才の誕生日まであと" + days + "日" + "と" + timeD + "時間" + timeM + "分" + timeS + "秒"
		    }
		  }
		setTimeout("display()", 1000)
		}



		// 新しいウィンドウを開
		function wopen(wintl,wincd,winno){
		var wo1;
		  wo1=window.open("","poto","toolbar=0,location=0,directories=0,status=0,resizable=0,menubar=0,scrollbars=1,width=800,height=900");
		  wo1.document.write("<"+"HTML><HEAD><TITLE>"+wintl+"</TITLE>");
wo1.document.write("<"+"script Language='JavaScript'>");
wo1.document.write("function mdown(e) {");
wo1.document.write("if (navigator.appName == 'Microsoft Internet Explorer') {")
wo1.document.write("if (event.button & 2) {")
wo1.document.write("alert('右クリックは使用できません');")
wo1.document.write("return(false);")
wo1.document.write("}")
wo1.document.write("} else if (navigator.appName == 'Netscape') {")
wo1.document.write("if (e.which == 3) {")
wo1.document.write("alert('右クリックは使用できません');")
wo1.document.write("return(false);")
wo1.document.write("}")
wo1.document.write("}")
wo1.document.write("}");
wo1.document.write("if (document.all) {")
wo1.document.write("document.onmousedown = mdown;")
wo1.document.write("}");
wo1.document.write("if (document.layers) {")
wo1.document.write("window.onmousedown = mdown;")
wo1.document.write("window.captureEvents(Event.MOUSEDOWN);")
wo1.document.write("}");
wo1.document.write("<"+"/script>");
		  wo1.document.write("<"+"/head>");
		  wo1.document.write("<"+"body bgcolor='#ffccff' text='#000099' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' link='#ff6633' vlink='#999999' >");
		  wo1.document.write("<"+"basefont face='ＭＳ 明朝' size='2'"+">");
		  wo1.document.write("<"+"div align='center'>");
		  wo1.document.write("<"+"table width='750' border='0' cellspacing='0' cellpadding='0' height='750'>");
		  wo1.document.write("<"+"tr>");
		  wo1.document.write("<"+"td align='center'>");
		  wo1.document.write("<"+"table width='700' height='720' border='0' cellspacing='0' cellpadding='1' bgcolor='#ffccff'>");
		  wo1.document.write("<"+"tr>");
		  wo1.document.write("<"+"td align='center'><IMG src='"+wincd+winno+".jpg' name='poto' border='0' ></td>");
		  wo1.document.write("<"+"/tr>");
		  wo1.document.write("<"+"/table>");
		  wo1.document.write("<"+"table width='400' border='0' cellspacing='0' cellpadding='0'>");
		  wo1.document.write("<"+"tr>");
		  wo1.document.write("<"+"td align='center'><font size='2'>"+wintl+"</font></td>");
		  wo1.document.write("<"+"/tr>");
		  wo1.document.write("<"+"tr>");
		  wo1.document.write("<"+"td align='center'><FONT color='#ff00ff' size='2'>画像のあらゆる二次使用、流用を堅くお断りします。</font></td>");
		  wo1.document.write("<"+"/tr>");
		  wo1.document.write("<"+"tr>");
		  wo1.document.write("<"+"td align='center'><a href='javascript:window.close()'><font size='2'>閉じる</font></td>");
		  wo1.document.write("<"+"/tr>");
		  wo1.document.write("<"+"/table>");
		  wo1.document.write("<"+"/td>");
		  wo1.document.write("<"+"/tr>");
		  wo1.document.write("<"+"/table>");
		  wo1.document.write("<"+"/div>");
		  wo1.document.write("<"+"/body>");
		  wo1.document.write("<"+"/html>");
		  wo1.document.close();
		}

function imgchange(){
imgframe.filters.blendTrans.Apply();
imgframe.filters.blendTrans.duration=time;
imgframe.src=image[i];
imgframe.filters.blendTrans.Play();
i=i+1;
if (i>img_cnt) i=0;
t=setTimeout('imgchange()',rtime);
}
