if (window.addEventListener) { window.addEventListener("load", setupPage, false); }
else if (window.attachEvent) { window.attachEvent("onload", setupPage, false); }

function setupPage() {
	oBody	= document.getElementsByTagName('body')[0];
	if (oBody.offsetWidth > 1024) { oBody.style.width = '1024px'; }
}

function getScreenData() {
	var x,y;
	if (self.innerHeight) // all except Explorer
	{
		x = self.innerWidth;
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	
	result = new Array(x, y);
	return result;
}
