﻿if (document.getElementById || document.all) { // minimum dhtml support required
  document.write("<"+"style type='text/css'>#footer{visibility:hidden;}<"+"/style>");
  window.onload = winOnLoad;
}
function winOnLoad()
{
  var ele = xGetElementById('left');
  if (ele && xDef(ele.style, ele.offsetHeight)) { // another compatibility check
    adjustLayout();
    xAddEventListener(window, 'resize', winOnResize, false);
  }
}
function winOnResize()
{
  adjustLayout();
}
function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("centercontent");
  var lHeight = xHeight("leftcontent");

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

  // Assign maximum height to all columns
  xHeight("center", maxHeight);
  xHeight("left", maxHeight);

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