// layout2.js
// Cross-Browser.com & SitePoint.com - Equal Column Height

if (document.getElementById || document.all) { // minimum dhtml support required
  document.write("<"+"script type='text/javascript' src='javascript/x_core.js'><"+"/script>");
  document.write("<"+"script type='text/javascript' src='javascript/x_event.js'><"+"/script>");
 document.write("<"+"style type='text/css'>#thinline-footer{visibility:hidden;}<"+"/style>");
  window.onload = winOnLoad;
}

function winOnLoad()
{


 
    xAddEventListener(window, 'resize', winOnResize, false);
	   adjustLayout();
  }


function winOnResize()
{
  adjustLayout();
}

function adjustLayout()
{
  // Get content heights
  var nHeight = xHeight('linksContent');
  var cHeight = xHeight('mitteContent');
  var rHeight = xHeight('rechtsContent');

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

  // Assign maximum height to all columns
  xHeight('links', maxHeight);
  xHeight('mitte', maxHeight);
  xHeight('rechts', maxHeight);

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