function showLayer(name) {
    if (W3C) {
        document.getElementById(name).style.visibility = "visible";
    }
    if (NS) {
        //alert("Show:" + name);
        document.layers[name].visibility = "show";
    }
}

function hideLayer(name) {
    if (W3C) {
        document.getElementById(name).style.visibility = "hidden";
    }
    if (NS) {
//      alert("Hide:" + name);
        document.layers[name].visibility = "hide";
    }
}

function goback() {
//  loadPage('content', lastpage);
    loadPage('content', firstpage);
//  if (lastpage == firstpage) {
        hideLayer('backbutton');
//  }
}

var pulldown = new Array();
pulldown['ausstellungsnavig'] = 0;
pulldown['themenpulldown'] = 0;
//var pdlineheight = ( navigator.appName.indexOf('Win') != -1 ) ? 40 : 23;
var pdheight = new Array();
pdheight['themenpulldown'] = 500;
pdheight['ausstellungsnavig'] = 150;
// alert (pdlineheight);
// alert(pdheight['ausstellungsnavig']);
function hidePullDown(e) {
    if (pulldown['themenpulldown'] == 1) {
        var x = (window.event) ? window.event.x : e.pageX;
        var y = (window.event) ? window.event.y : e.pageY;
        window.status = 'x=' + x + '; y=' + y;
    //  if (x > 235 || y > (numOfTopics*pdlineheight + 20) ) {
        if (x > 300 || y > pdheight['themenpulldown'])  {
            hideLayer('themenpulldown');
            pulldown['themenpulldown'] = 0;
        }
    }
    if (pulldown['ausstellungsnavig'] == 1) {
        var x = (window.event) ? window.event.x : e.pageX;
        var y = (window.event) ? window.event.y : e.pageY;
        window.status = 'x=' + x + '; y=' + y + '; pdh=' + pdheight['ausstellungsnavig'];
        if (x < 500 || x > 650 || y > pdheight['ausstellungsnavig'])  {
            hideLayer('ausstellungsnavig');
            pulldown['ausstellungsnavig'] = 0;
        }
    }
    return true ;
}
document.onmousemove = hidePullDown;


function showPullDown(name) {
    if (!name) {
        name = "themenpulldown";
    }
    pulldown[name] = 1;
    showLayer(name);
}



