function adjustLayout()  
{  
 // Get natural heights
 var cHeight = xHeight("rightcolumn");  
 var lHeight = xHeight("leftcolumn");    
 
 // Find the maximum height  
 var maxHeight =  
   Math.max(cHeight, Math.max(lHeight));  
 
 // Assign maximum height to all columns  
 xHeight("rightcolumnwrap", maxHeight);  
 xHeight("leftcolumnwrap", maxHeight); 
 xHeight("leftcolumn", maxHeight);
 xHeight("rightcolumn", maxHeight);
 
 
 // Show the footer 
 xShow("footer");  
}
window.onload = function()  
{  
 xAddEventListener(window, "resize",  
   adjustLayout, false);  
 adjustLayout();  
}
