function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("maincontent");
  var lHeight = xHeight("leftcolumn");
  var rHeight = xHeight("rightcolumn");

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

  // Assign maximum height to all columns
  xHeight("maincontent", maxHeight);
  xHeight("leftcolumn", maxHeight);
  xHeight("rightcolumn", maxHeight);

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


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