/* script from cross-browser.com for auto-sizing all columns to same height in multi-col layout */
/* requires x.js library */

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('leftcol');
  if (ele && xDef(ele.style, ele.offsetHeight)) { // another compatibility check
    adjustLayout();
    xAddEventListener(window, 'resize', winOnResize, false);
  }
}
function winOnResize()
{
  adjustLayout();
}
function adjustLayout()
{
  // Get content heights
  var cHeight = xHeight('rightcolcontent');
  var lHeight = xHeight('leftcolcontent');

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

  // Assign maximum height to all columns
  xHeight('leftcol', maxHeight);
  xHeight('rightcol', maxHeight);

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