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