function cascadedstyle(el, cssproperty, csspropertyNS)
{
	if (el.currentStyle) //if IE5+
	return el.currentStyle[cssproperty]
	else if (window.getComputedStyle)
	{ //if NS6+
		var elstyle=window.getComputedStyle(el, "")
		return elstyle.getPropertyValue(csspropertyNS)
	}
}

function resize()
{
	var width = document.body.clientWidth - parseInt(cascadedstyle(document.getElementById('left'), "width", "width")) - 70;
	var height = 550 * width / 796;
	document.getElementById('topHeader').style.width = width + "px";
	document.getElementById('bottomHeader').style.width = width + "px";
	document.getElementById('footer').style.width = width + "px";
	document.getElementById('game').width = width;
	document.getElementById('game').height = height;
}

