function popWindow(url, name, width, height)
{
	var str = "status,scrollbars,height=" + height + ",innerHeight=" + height;
	str += ",width=" + width + ",innerWidth=" + width;
	if (window.screen)
	{
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;

		var xc = (aw - width) / 2;
		var yc = (ah - height) / 2;

		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
	}
	return window.open(url, name, str);
}

function voteWindow(url)
{
	var rainbowVote = popWindow(url, "rainbowVote", 485, 420);
	rainbowVote.focus();
}

function bookWindow(url)
{
	var rainbowBook = popWindow(url, "rainbowBook", 485, 400);
	rainbowBook.focus();
}

function mapWindow(url)
{
	var rainbowMap = popWindow(url, "rainbowMap", 835, 360);
	rainbowMap.focus();
}

function regWindow(url)
{
	var rainbowReg = popWindow(url, "rainbowReg", 820, 700);
	rainbowReg.focus();
}

function pwdWindow(url)
{
	var rainbowPwd = popWindow(url, "rainbowPwd", 485, 280);
	rainbowPwd.focus();
}

function termsWindow(url)
{
	var rainbowTerms = popWindow(url, "rainbowTerms", 580, 360);
	rainbowTerms.focus();
}

function gamesWindow(url)
{
	var rainbowGames = popWindow(url, "rainbowGames", 680, 600);
	rainbowGames.focus();
}

function popPrintWindow(url, width, height)
{
	var str = "scrollbars,height=" + height + ",innerHeight=" + height;
	str += ",width=" + width + ",innerWidth=" + width;
	if (window.screen)
	{
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;

		var xc = (aw - width) / 2;
		var yc = (ah - height) / 2;

		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
	}
	var rainbowPrint = window.open("", "rainbowPrint", str);
	rainbowPrint.document.open();
	rainbowPrint.document.write("<head><title></title></head><body style='background-color:#ffffff; margin:5pt 0pt 0pt 0pt;'><center><img src='"+url+"' alt='' border='0' style='border-width:1pt;border-color:#5D5D5D;' vspace='5'><br><a href='javascript:window.print();'><img src='/rainbow/fun/images/btn_print.gif' alt='' border='0'></a><a href='javascript:window.close();'><img src='/rainbow/fun/images/btn_close.gif' alt='' border='0'></a><br><br></center></body>");
	rainbowPrint.document.close();
	rainbowPrint.focus();
}

function posterWindow(url)
{
	var rainbowPoster = popWindow(url, "rainbowPoster", 600, 550);
	rainbowPoster.focus();
}