﻿/* send mail animation */
var img_mailon = new Image();
img_mailon.src = "images/team_waratte2.gif";
var img_mailoff = new Image();
img_mailoff.src = "images/team_waratte.gif";

function On(name) {
  if (document.images) {
    document.images[name].src = eval(name + 'on.src');
  }
}

function Off(name) {
  if (document.images) {
    document.images[name].src = eval(name + 'off.src');
  }
}

/* index.html */
function open_contact(){
window.open("contact.html","","menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=yes,width=380,height=450,left=100,top=50");
}
function open_pompuman(){
window.open("pompuman_heart.html","","menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=yes,width=380,height=465,left=150,top=50");
}

var img_pompon = new Image();
img_pompon.src = "images/pompman_hascome2.png";
var img_pompoff = new Image();
img_pompoff.src = "images/pompman_hascome.png";

var img_editoron = new Image();
img_editoron.src = "images/editors_note2.png";
var img_editoroff = new Image();
img_editoroff.src = "images/editors_note.png";

function imgOn(name) {
  if (document.images) {
    document.images[name].src = eval(name + 'on.src');
  }
}

function imgOff(name) {
  if (document.images) {
    document.images[name].src = eval(name + 'off.src');
  }
}

function pompuman_win(sx,sy,ur){
if(document.all){
wx=screen.width;
wy=screen.height;
}
if(document.layers){
wx=screen.availWidth;
wy=screen.availHeight;
}
px=(wx - sx) / 2;
py=(wy - sy) / 2;
myWin=window.open("pompuman_heart.html","","width="+sx+",height="+sy);
myWin.moveTo(px,py);
}
function contact_win(sx,sy,ur){
if(document.all){
wx=screen.width;
wy=screen.height;
}
if(document.layers){
wx=screen.availWidth;
wy=screen.availHeight;
}
px=(wx - sx) / 2;
py=(wy - sy) / 2;
myWin=window.open("contact.html","","width="+sx+",height="+sy);
myWin.moveTo(px,py);
}

function Clock(){
youbi=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
myDate=new Date();
myyear=myDate.getFullYear();
mymonth=myDate.getMonth()+1;
myday=myDate.getDate();
myyoubi=youbi[myDate.getDay()];
myhour=myDate.getHours();
myminute=myDate.getMinutes();
mysecond=myDate.getSeconds();
if (mymonth<10) {mymonth="0"+mymonth}
if (myday<10) {myday="0"+myday}
if (myhour<10) {myhour="0"+myhour}
if (myminute<10) {myminute="0"+myminute}
if (mysecond<10) {mysecond="0"+mysecond}
window.status=""+myyear+"/"+mymonth+"/"+myday+" ("+myyoubi+") "+myhour+":"+myminute+":"+mysecond+"";
setTimeout("Clock()",1000);
}
