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 popWhats() {
	popWin("whatsnew/index.html", "whats", 500, 520,"no", "no");
}
function popTheaters() {
	popWin("kanto.html", "theaters", 510, 515,"yes", "no");
}
function popContest() {
	popWin("contest.html", "contest", 484, 515,"yes", "no");
}
function popBBS() {
	popWin("https://www.foxrelease.com/movies/inhershoes/bbs/", "bbs", 660, 515,"yes", "no");
}
function popTrailer(num) {
	popWin("trailers/"+num+".html", "trailer", 700, 500,"no", "no");
}
function popShoes(num) {
	popWin("shoes"+num+".html", "Shoes", 600, 640,"no", "no");
}
function popEvent() {
	popWin("japan.html", "japan", 620, 515,"yes", "no");
}
function popEvent2() {
	popWin("../japan.html", "japan", 620, 515,"yes", "no");
}
function popDesiner() {
	popWin("shoes_p.html", "shoes_p", 660, 515,"yes", "no");
}
function popShoesmain() {
	popWin("https://www.foxrelease.com/movies/inhershoes/shoes.html", "shoesmain", 660, 515,"yes", "no");
}
