function adjustLayout()
		{
			var cHeight = xHeight("div5");
			var lHeight = xHeight("div4");
			var navHeight = xHeight("mainnav");
			var leftHeight= lHeight+navHeight;
			var rHeight = xHeight("div6");
			var maxHeight = Math.max(cHeight, Math.max(leftHeight, rHeight));
			//alert ("Max height: " + maxHeight + " lHeight: " + lHeight + " rHeight: " + rHeight + " cheight: " + cHeight);
			
			
			if(maxHeight<500){
				maxHeight=500;
				
			}
			
			
			
			xHeight("div5", maxHeight);
			xHeight("div4", maxHeight-navHeight);
			xHeight("div6", maxHeight);
			xShow("div4");
			xShow("footer");
		}

		window.onload = function()
		{
			xAddEventListener(window, "resize", adjustLayout, false);
			adjustLayout();
		}
		
function navhover(a) {

 a.style.cursor = 'pointer';
}
