//var warten = setTimeout('anzeigen()',18000);
function anzeigen()
{
document.getElementById("info").style.visibility="hidden";
}
function schliessen()
{
document.getElementById("info").style.visibility="hidden";
}

function fenster(url, name, breite, hoehe, scroll, links, oben)
{
    if (!links){
        links = (screen.availWidth - breite) / 2;
    }
    if (!oben){
        oben = (screen.availHeight - hoehe) / 2;
    }
    window.open(url, name, 'width='+breite+',height='+hoehe+'resizeable=yes,scrollbars=' + scroll + ',top='+oben+',left='+links);
}


function findPosX(obj) {
    var curleft = 0;
    if (obj.offsetParent) {
        while (obj.offsetParent) {
            curleft += obj.offsetLeft
            obj = obj.offsetParent;
        }
    } else if (obj.x)
    curleft += obj.x;
    return curleft;
}

function findPosY(obj) {
    var curtop = 0;
    if (obj.offsetParent) {
        while (obj.offsetParent) {
            curtop += obj.offsetTop
            obj = obj.offsetParent;
        }
    } else if (obj.y)
    curtop += obj.y;
    return curtop;
}

function showFRANDiv(id) {
    oDiv = document.getElementById(id);
    if(oDiv) {
        oElement = document.getElementById('item_' + id);
        sTop = findPosY(oElement) + '';
        if(sTop.indexOf('0')==0) {
            window.setTimeout('showFRANDiv(' + id + ');',100);
        } else {
            if(oElement.getAttribute('parentId')=='0') {
                oDiv.style.left = findPosX(oElement);
                oDiv.style.top = findPosY(oElement) + 15;
            } else {
                oDiv.style.left = findPosX(oElement) + 167;
                oDiv.style.top = findPosY(oElement);
            }
            oDiv.style.zIndex = glbCounter--;
            oDiv.style.display = 'inline';
            oDiv.style.visibility = 'visible';
            oDiv.style.width = '180px';
        }
    }
}

function hideFRANDiv(id) {
    oDiv = document.getElementById(id);
    if (oDiv) {
        oDiv.style.display = 'none';
        oDiv.style.visibility = 'hidden';
    }
}

var glbCounter = 0;
var delayed = 0;

function hideAllMenuDivs() {
    oDivs = document.getElementsByTagName('DIV');
    for (i=0; i<oDivs.length; i++) {
        if(oDivs[i].getAttribute('menuId')) {
            hideFRANDiv(oDivs[i].getAttribute('id'));
        }
    }
}

function showAllParent(oObj) {
    glbCounter = 100;
    oObj = document.getElementById(oObj.id);
    if(delayed) window.clearTimeout(delayed);
    hideAllMenuDivs();
    var list = new Array();
    while(oObj.getAttribute('parentId')!=0) {
        list[list.length] = oObj;
        oObj = document.getElementById('item_' + oObj.getAttribute('parentId'));
    }
    showFRANDiv(oObj.getAttribute('menuId'));
    for (k=0;k>list.length;k++) {
        showFRANDiv(list[k].getAttribute('menuId'));
    }
}

function menuover(oObj) {
    showAllParent(oObj);
}

function hideAllParent(oObj) {
    while(oObj.parentId!=0) {
        hideFRANDiv(oObj.menuId);
        oObj = document.getElementById('item_' + oObj.parentId);
    }
}

function menuout(oObj) {
    delayed = window.setTimeout("hideAllMenuDivs()", 1000);
}
