if (document.getElementById || document.all) { // minimum dhtml support required // Hide the footer //document.write("<"+"style type='text/css'>#footer{visibility:hidden;}<"+"/style>"); // Start the listener xAddEventListener(window, 'load', winOnLoad, false); } function winOnLoad(){ var ele = xGetElementById('LokNav'); 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('LokNav'); var lHeight = xHeight('Inhalt'); //var rHeight = xHeight('Inhalt'); // Find the maximum height //var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight)); // 3 column layout var maxHeight = Math.max(cHeight, lHeight); // 2 column layout // Assign maximum height to all columns xHeight('LokNav',maxHeight-5); xHeight('Inhalt',maxHeight); //xHeight('rightColumn',maxHeight); // Show the footer //xGetElementById('footer').style.visibility = 'visible'; } function xAddEventListener(e,eT,eL,cap){ if(!(e=xGetElementById(e)))return; eT=eT.toLowerCase(); if(e.addEventListener)e.addEventListener(eT,eL,cap||false); else if(e.attachEvent)e.attachEvent('on'+eT,eL); else { var o=e['on'+eT]; e['on'+eT]=typeof o=='function' ? function(v){o(v);eL(v);} : eL; } }