net = (document.layers && true);
widgetBuf = (net) ? 0:50

function popWin(url, name, width, height, scroll, resizable) {
	bWidth = (net) ? top.innerWidth:parseInt(top.document.body.clientWidth);
	bHeight = (net) ? top.innerHeight:parseInt(top.document.body.clientHeight);
	bLeft = (net) ? top.screenX:parseInt(top.screenLeft);
	bTop = (net) ? top.screenY:parseInt(top.screenTop);
	if (!bLeft) {
		bLeft = 0;
		bWidth = screen.width;
	}
	if (!bTop) {
		bTop = 0;
		bHeight = screen.height;
	}
	xer = bLeft + ((bWidth/2) - width/2);
	yer = (bTop - widgetBuf) + ((bHeight/2) - height/2);
	if (xer < 2) {
		xer = 2;
	}
	if (xer < 2) {
		xer = 2;
	}
	paramStr = "width=" + width + ",height=" + height + ",screenX=" + xer + ",screenY=" + yer + ",left=" + xer + ",top=" + yer + ",dependent=1,directories=0,location=0,menubar=0,resizable="+resizable+",scrollbars="+scroll+",toolbar=0";
	top[name] = window.open(url, name, paramStr);
}


function popPrivacy() {
	popWin("/movies/privacy.html", "sub", 350, 500,"yes", "no");
}
function popTerm() {
	popWin("/movies/term.html", "sub", 350, 500,"yes", "no");
}
function popTrailer(num) {
	popWin("trailer/trailer_"+num+".html", "trailer", 750, 490,"no", "no");
}
function popClip(num) {
	popWin("trailer/featurette_"+num+".html", "trailer", 750, 490,"no", "no");
}
function popContest(num) {
	popWin("contest"+num+".html", "contest", 520, 570,"no", "no");
}


function popWpaper_1280(num) {
	popWin("wallpapers/wp_"+num+"1280.html", "Wp1280", 1280, 1024,"no", "no");
}
function popWpaper_1024(num) {
	popWin("wallpapers/wp_"+num+"1024.html", "Wp1024", 1024, 768,"no", "no");
}
function popWpaper_800(num) {
	popWin("wallpapers/wp_"+num+"800.html", "Wp800", 800, 600,"no", "no");
}
function popPreview() {
	popWin("preview.html", "preview", 266, 227,"no", "no");
}
function popBanner() {
	popWin("banner.html", "banner", 500, 570,"no", "no");
}
function popEvent01() {
	popWin("event1.html", "event01", 626, 570,"yes", "no");
}
function popEvent02() {
	popWin("contest.html", "event02", 538, 570,"yes", "no");
}
function popEvent03() {
	popWin("event2.html", "event02", 616, 570,"yes", "no");
}
function popEvent04() {
	popWin("event3.html", "event03", 616, 570,"yes", "no");
}
function popEvent05() {
	popWin("event4.html", "event04", 616, 570,"yes", "no");
}
function popToda() {
	popWin("event5.html", "toda", 616, 570,"yes", "no");
}
function popCity() {
	popWin("cityfreeze/cityFreeze.html", "City", 600, 530,"no", "no");
}
function popWatch() {
	popWin("globalwatch/index.html", "Watch", 640, 563,"no", "no");
}
function popTheater() {
	popWin("theaters.html", "theaters", 616, 563,"yes", "no");
}
function popBbs() {
	popWin("http://www.foxjapan.com/movies/dayaftertomorrow/bbs.cgi", "bbs", 616, 563,"yes", "no");
}
function popForm() {
	popWin("form.html", "form", 476, 450,"yes", "no");
}
function popForm2() {
	popWin("http://www.foxjapan.com/movies/dayaftertomorrow/quiz_form.cgi", "form2", 476, 450,"yes", "no");
}
function popSURVIVAL() {
	popWin("http://202.229.59.176/registration.html", "SURVIVAL", 600, 426,"no", "no");
}
