// layout2.js
// Cross-Browser.com & SitePoint.com - Equal Column Height Demo

if (document.getElementById || document.all) { // minimum dhtml support required
  
  document.write("<"+"style type='text/css'>#footer{visibility:invisible;}<"+"/style>");
  window.onload = winOnLoad;
}
function winOnLoad()
{
  var ele = xGetElementById('spalte_links');
  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 = xClientHeight() - xHeight('header') - xHeight('footer')- 4;
  var lHeight = xClientHeight() - xHeight('header') - xHeight('footer')- 4;
  var rHeight = xClientHeight() - xHeight('header') - xHeight('footer')- 4;
 // var clHeight = xClientHeight() - xHeight('header') - xHeight('footer') -xHeight('navigation')-2;



  // Assign maximum height to all columns
  xHeight('spalte_links', lHeight);
  xHeight('spalte_mitte', cHeight);
  xHeight('spalte_rechts', rHeight);


  
  // Show the footer
    xShow('footer');
 
}

