if (document.getElementById || document.all) { // minimum dhtml support required
  document.write("<"+"script type='text/javascript' src='fileadmin/site/scripts/x_lib/x_core.js'><"+"/script>");
  document.write("<"+"script type='text/javascript' src='fileadmin/site/scripts/x_lib/x_event.js'><"+"/script>");
  document.write("<"+"style type='text/css'>#footer{visibility:hidden;}<"+"/style>");
  window.onload = winOnLoad;
}
function winOnLoad()
{
  var ele = xGetElementById('leftColumn');
  if (ele && xDef(ele.style, ele.offsetHeight)) { // another compatibility check
    adjustLayout();
    xAddEventListener(window, 'resize', winOnResize, false);
  }
}
function winOnResize()
{
  adjustLayout();
}
function adjustLayout()
{
 var topbarHeight = xHeight("topbar");
 var brHeight = xHeight("breadcrumbs");
 var bHeight = xHeight("bereich");
 var ipHeight = xHeight("inhalt_plus");  
 var cHeight = xHeight("inhalt");  
 var rHeight = xHeight("rechtespalte");
 var dhtmlHeight = xHeight("dhtmlmenu");
 var impressumHeight = xHeight("impressum");

 var wHeight = xClientHeight()-topbarHeight-bHeight-brHeight-dhtmlHeight-impressumHeight+21;

// alert('Topbar: '+topbarHeight+' '+'Breadcrums: '+brHeight+' '+'Bereich: '+bHeight+' '+'Inhalt_plus: '+ipHeight+' '+'Inhalt: '+cHeight+' '+'Rechtespalte: '+rHeight+' '+'Impressum: '+impressumHeight+' '+'xClientHeight(): '+xClientHeight()+' '+'wHeight: '+wHeight );


 // Find the maximum height  
 var maxHeight =  Math.max(cHeight, Math.max(rHeight, wHeight));

// alert('maxHeight: '+maxHeight);
 
 // Assign maximum height to all columns  
 xHeight("inhalt_plus", maxHeight);  
// xHeight("inhalt", maxHeight); 
 xHeight("rechtespalte", maxHeight);  

}
