function adjustLayout()  
{  
 // Get natural heights  
 var cHeight = xHeight("contentcontent");
if (xHeight("nieuwsleft")>0){
	  cHeight = cHeight+xHeight("nieuwsleft")+30;
}
if (xHeight("listwrap")>0){
	  cHeight = cHeight+xHeight("listwrap")+30;
}
if (xHeight("flashheader")>0){
	  cHeight = cHeight+xHeight("flashheader")+1100;
}
 var lHeight = xHeight("leftcontent");  
 var rHeight = xHeight("rightcontent");  
 
 // Find the maximum height  
 var maxHeight = 270+  
   Math.max(cHeight, Math.max(lHeight, rHeight));
if (maxHeight<xClientHeight()){
	maxHeight=xClientHeight();
}  
// alert(lHeight+":"+cHeight+":"+rHeight+"":"+fHeight+"__"+maxHeight);
// Assign maximum height to all columns
  xHeight("mainwrap", maxHeight);   
// xHeight("content", maxHeight);  
// xHeight("left", maxHeight);  
// xHeight("right", maxHeight);
 
}

window.onload = function()  
{  
 xAddEventListener(window, "resize",  
   adjustLayout, false);  
 adjustLayout();  
}  