// Adjust page layout according to highest column
function adjustLayout()  
{  
 // Get natural heights  
 var cHeight = xHeight("centerCol");  
 var lHeight = xHeight("leftCol");  
 //var rHeight = xHeight("rightCol"); 
 var rHeight = 0 
 
 // Find the maximum height  
 var maxHeight =  
   Math.max(cHeight, Math.max(lHeight, rHeight));  
 
 // Assign maximum height to all columns  
 xHeight("centerCol", maxHeight);  
 xHeight("leftCol", maxHeight);  
 //xHeight("rightCol", maxHeight);  
 
 // Show the footer  
 xShow("footer");  
}

//listen for when the adjustment should be made
window.onload = function()  
{  
 xAddEventListener(window, "resize",  
   adjustLayout, false);  
 adjustLayout();  
}  