// Konfiguration der ID's,
// welche auf eine H&ouml;he gebracht werden sollen
rel_id = new Array();
rel_id[0] = 'inhalt';
rel_id[1] = 'aktuelles';
rel_id[2] = 'navigation';

var max_hoehe = 0;
var nn = '' ;
function setDivHeight(pxOffset)
{
// return true;
    // Pr&uuml;fung, ob alle konfigurierten ID auch tats&auml;chlich im HTML vorkommen
    // gleichzeitig ermitteln der Offset-H&ouml;he,
    // um sp&auml;ter die ID auf den gemeinsamen h&ouml;chsten Wert stellen
    for (var i = 0; i < rel_id.length; i++) {
        if (!document.getElementById(rel_id[i])) {
            return true;
        } else {
            var hoehevals = document . getElementById(rel_id[i]).offsetHeight;
            nn = nn + ' ' + hoehevals;
            if (hoehevals > max_hoehe) {
                max_hoehe = hoehevals;
            }
        }
    }

//    max_hoehe = '' + max_hoehe / 10 + 'em';
    max_hoehe = '' + (max_hoehe + 40) + 'px';

    //alert ( fade_hoehe);
    for (var i = 0; i < rel_id . length; i++) {
        setHeight(rel_id[i], max_hoehe);
    }

}

function setHeight(elem, hoehe)
{
    document . getElementById(elem) . style . height = hoehe;
         // document.getElementById('fade'). style . height = hoehe;

}

function init(func)
{
    if (1) {
        var oldonload = window . onload;
        if (typeof window . onload != 'function') {
            window . onload = func;
        }
    }
}

init(
    function()
    {
        setDivHeight(0);
    }
    );
/******************************************************/
// Funktion Navigationslayer Fixieren nur fuer IE
function navFixed(){
        var wBody = document.body.offsetWidth;
        var wHomepage = document.all.homepage.offsetWidth;
        var startX = Math.round((wBody-wHomepage)/2)-8;
        startX = (Browser.IE5)? startX : startX+19;
        var startY = (Browser.IE5)? 120:124;
        var d = document;
        var px = "px";

myDiv     = function(id){
        var element=d.getElementById?d.getElementById(id):d.all[id];
        element.startPos = function(x,y){
                   this.style.left=x+px;
                   this.style.top=y+px;
                };
                element.x = startX;
                element.y = startY;
                return element;
}
window.scrollPos = function(){
                      var posY = document.body.scrollTop;
                      navObj.y += (posY + startY - navObj.y)/8;
                      navObj.startPos(navObj.x, navObj.y);
                      setTimeout("scrollPos()", 0.1);
                   }
        navObj = myDiv("nav");
        scrollPos();
}