function adjustLayout()
{
// Get natural heights
var cHeight = xHeight("col1");
var lHeight = xHeight("col2");
var rHeight = xHeight("col3");

// Find the maximum height
var maxHeight =
Math.max(cHeight, Math.max(lHeight, rHeight));

// Assign maximum height to all columns
xHeight("col1", maxHeight);
xHeight("col2", maxHeight);
xHeight("col3", maxHeight);

// Show the footer
xShow("footer");
}

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