onerror = null;
var ie4 = (document.all) ? true : false;
var nn4 = (document.layers) ? true : false;
var nn6 = (document.getElementById) ? true : false;

if (nn4) {
    document.writeln('<style type="text/css">');
    document.writeln('body { margin-top : -10px } ');
    document.writeln('</style>');
}

if (nn6) {
    document.writeln('<style type="text/css">');
    document.writeln('body { margin-top : -0px } ');
    document.writeln('</style>');
}

var pTimerID = null;
var aktiv    = false;
var delayD   = 1000;

function hide(menuID){
    if (nn4) { document.layers[menuID].visibility = 'hide'; }
    if (nn6) { document.getElementById(menuID).style.visibility = 'hidden'; }
    if (ie4) { document.all[menuID].style.visibility = 'hidden'; }
}

function show(menuID){
    hide_all();
    resetTimer();

    if (nn4) { document.layers[menuID].visibility = 'show'; }
    if (nn6) { document.getElementById(menuID).style.visibility = 'visible'; }
    if (ie4) { document.all[menuID].style.visibility = 'visible'; }
}

function timer() {
    if (!aktiv) {
        pTimerID = setTimeout("hide_menus(); aktiv = false;", delayD);
        aktiv = true;
    }
}

function resetTimer() {
    if (pTimerID) {
        clearTimeout(pTimerID);
        aktiv = false;
    }
}

