// JavaScript Document
function resetBoxSizes() {
	gamelayer 		= document.getElementById("gameLayer");
	gamecontent		= document.getElementById("gameContent");
	gamelistings	= document.getElementById("gameListings");

	var IE6=(navigator.userAgent.toLowerCase().indexOf('msie 6') != -1) && (navigator.userAgent.toLowerCase().indexOf('msie 7') == -1);
	if (IE6)
	{
		winW = document.body.offsetWidth;
		winH = document.body.offsetHeight;
		
		gamelayer.style.width = (winW-272)+"px";
		gamelayer.style.height = (winH-200)+"px";
		gamecontent.style.width = (winW - 298)+"px";
		gamecontent.style.height = (winH - 165)+"px";
		gamelistings.style.height = (winH - 157)+"px";
	}
	else
	{
		if (navigator.appName=="Netscape")
		{
			winW = window.innerWidth;
			winH = window.innerHeight;
			
			container		= document.getElementById("container");
	
			container.style.width = (winW)+"px";
			container.style.height = (winH)+"px";
			gamelayer.style.width = (winW-272)+"px";
			gamelayer.style.height = (winH-97)+"px";
			gamecontent.style.width = (winW - 298)+"px";
			gamecontent.style.height = (winH - 133)+"px";
			gamelistings.style.height = (winH - 155)+"px";
		}

		if (navigator.appName.indexOf("Microsoft")!=-1)
		{
			winW = document.body.offsetWidth;
			winH = document.body.offsetHeight;
			
			gamelayer.style.width = (winW-272)+"px";
			gamelayer.style.height = (winH-97)+"px";
			gamecontent.style.width = (winW - 298)+"px";
			gamecontent.style.height = (winH - 134)+"px";
			gamelistings.style.height = (winH - 148)+"px";
		}
	}
	return true;
}
