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