/* Copyright (c) 2006 Tandler.com */

fitHeight = function()
{
/* TODO: */
//document.getElementById("klein").style.height = document.getElementById("gross").offsetHeight+"px";
//document.getElementsByName("fitH")[0]
}

function setClass(node, sClass)
{

    node.onmouseover=function()
    {
        this.className += sClass;
    }
    node.onmouseout=function()
    {
        this.className=this.className.replace(sClass, "");
    }
}

function startList()
{
    if (document.all && document.getElementById)
    {
        langRoot = document.getElementById("langInternational");
        if (langRoot) {
            setClass(langRoot, " jsDrop");
        }

        navRoot = document.getElementById("leiste");
        if (navRoot)
        {
            for (i = 0; i < navRoot.childNodes.length; i++)
            {
                node = navRoot.childNodes[i];
                if (node.nodeName == "LI") {
                    setClass(node, " jsDrop");

                    for (j = 0; j < node.childNodes.length; j++) {
                        node1 = node.childNodes[j];
                        if (node1.nodeName == "UL") {
                            for (k = 0; k < node1.childNodes.length; k++) {
                                node2 = node1.childNodes[k];
                                if (node2.nodeName == "LI") {
                                    setClass(node2, " jsHover");
                                }
                            }
                        }
                    }
                }
            }
        }
     }
}

function initList()
{
    startList();
    fitHeight();
}

