// layout3.js
// Cross-Browser.com & SitePoint.com - Equal Column Height Demo (3 Column)

if (document.getElementById || document.all) { // minimum dhtml support required
  document.write("<"+"style type='text/css'>#footersection{visibility:hidden;}<"+"/style>");
  window.onload = winOnLoad;
}
function winOnLoad()
{
  var ele = xGetElementById('homerightcolumn');
  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('homecenterolumn');
  var lHeight = xHeight('homeleftcolumn');
  var rHeight = xHeight('homerightcolumn');

  // Find the maximum height
  var maxHeight = Math.max(lHeight, rHeight);
// var maxHeight = Math.max(lHeight, Math.max(cHeight, rHeight));
 
  // Assign maximum height to all columns
  //xHeight('homeleftcolumn', maxHeight);
  xHeight('contentsection', maxHeight +40);  //MMD added +XX
  xHeight('homecentercolumn', maxHeight);
  xHeight('homeleftcolumn', maxHeight);
  
  // Show the footer
  xShow('footersection');
}


