function mail(theEvent){
x = screen.availWidth;
y = screen.availHeight;
px = (x - 455) / 2;
py = (y - 420) / 2;
theEvent=window.open("mail/index.html","mail","left="+px+",top="+py+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=455,height=420");
theEvent.focus();
}

function mail2(theEvent){
x = screen.availWidth;
y = screen.availHeight;
px = (x - 455) / 2;
py = (y - 420) / 2;
theEvent=window.open("mail/index-e.html","mail","left="+px+",top="+py+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=455,height=420");
theEvent.focus();
}

function mail3(theEvent){
x = screen.availWidth;
y = screen.availHeight;
px = (x - 455) / 2;
py = (y - 420) / 2;
theEvent=window.open("mail/index-c.html","mail","left="+px+",top="+py+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=455,height=420");
theEvent.focus();
}

function link(theEvent){
x = screen.availWidth;
y = screen.availHeight;
px = (x - 455) / 2;
py = (y - 580) / 2;
theEvent=window.open("banner/index.html","link","left="+px+",top="+py+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=455,height=580");
theEvent.focus();
}

function link2(theEvent){
x = screen.availWidth;
y = screen.availHeight;
px = (x - 455) / 2;
py = (y - 580) / 2;
theEvent=window.open("banner/index-e.html","link","left="+px+",top="+py+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=455,height=580");
theEvent.focus();
}

function link3(theEvent){
x = screen.availWidth;
y = screen.availHeight;
px = (x - 455) / 2;
py = (y - 580) / 2;
theEvent=window.open("banner/index-c.html","link","left="+px+",top="+py+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=455,height=580");
theEvent.focus();
}

function mobile(theEvent){
x = screen.availWidth;
y = screen.availHeight;
px = (x - 980) / 2;
py = (y - 680) / 2;
theEvent=window.open("mobile/index.html","middle","left="+px+",top="+py+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=980,height=680");
theEvent.focus();
}

function earthdayWin(theEvent){
x = screen.availWidth;
y = screen.availHeight;
px = (x - 980) / 2;
py = (y - 680) / 2;
theEvent=window.open("http://www.earthday-tokyo.org/2006/event/index.php?e=29","_blank","left="+px+",top="+py+",toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=980,height=680");
theEvent.focus();
}

function earthMovWin(theEvent){
x = screen.availWidth;
y = screen.availHeight;
px = (x - 320) / 2;
py = (y - 240) / 2;
theEvent=window.open("movie/earthday/index.html","320","left="+px+",top="+py+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=320,height=240");
theEvent.focus();
}

function oWin(n){
x = screen.availWidth;
y = screen.availHeight;
px = (x - 980) / 2;
py = (y - 680) / 2;
window.open(n,"main","left="+px+",top="+py+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=980,height=680");
theEvent.focus();
}

function reWin(){
window.resizeTo(1020,840);
}

function greetingWin(theEvent){
x = screen.availWidth;
y = screen.availHeight;
px = (x - 980) / 2;
py = (y - 680) / 2;
theEvent=window.open("greeting/index.html","main","left="+px+",top="+py+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=980,height=680");
theEvent.focus();
}

