	function adjustLayout() {
		
		var cHeight = xHeight("nav");
		var dHeight = xHeight("inhalt");
		var dHeight = xHeight("inhalt1");
		var eHeight = xHeight("rightpanel");
		
		var headerHeight = xHeight("header");
		
		var maxHeight = Math.max(cHeight,dHeight,eHeight);
		
		var windowHeight = xClientHeight() - headerHeight;
		
		if (maxHeight < windowHeight) {
			xHeight("inhalt",windowHeight);
			xHeight("inhalt1",windowHeight);
			xHeight("nav",windowHeight);
			xHeight("rightpanel",windowHeight);
		}else{	
			xHeight("inhalt",maxHeight);
			xHeight("inhalt1",maxHeight);
			xHeight("nav",maxHeight);
			xHeight("rightpanel",maxHeight);
		}
	}
