//give back the computed style
function getStyle(obj,Attribute) {
	if (obj) {
		if (obj.currentStyle)
			var value = eval('obj.currentStyle.'+Attribute)
		else
			var value = eval('document.defaultView.getComputedStyle(obj, null).'+Attribute)
		return parseInt(value);
	}
}

function setHeight() {
	var content 		= document.getElementById('body');
	var maintable 		= document.getElementById('maintable');
	var menu 			= document.getElementById('menu');
	var content			= document.getElementById('content');
	
	if (!content || !maintable || !menu)
		return false;
	
	var minheight	= 316 + menu.offsetHeight; //to prevent the menu lying above the landscape image
	var height		= minheight;
	
	if (maintable.offsetHeight > minheight)
		height = maintable.offsetHeight + getStyle(content,'paddingBottom');
	
	content.style.height = height + 'px';
}
