if (narray){
	for (id in narray[0]){
		document.write("<div id=\"Nav" + id + "\" class=\"NavL2\" onmouseout=\"narray[" + id + "]['hide']='true'; setTimeout('hideNav2(" + id + ")', 2000);\"><span>");
		if (narray[id]){
			document.write("<ul>");
			for (l2id in narray[id]){
				if (l2id!="hide"){
					document.write("<li onmouseover=\"narray[" + id + "]['hide']='false'; document.getElementById('Nav" + id + "').style.display='block'; this.style.background='#cccccc';\" onmouseout=\"this.style.background='none';\"><a href=\"" + narray[id][l2id]['Href'] + "\" target=\"_self\" title=\"" + narray[id][l2id]['Titel'] + "\">" + narray[id][l2id]['Titel'] + "</a></li>");
				}
			}
			document.write("</ul>");
		}
		document.write("</span></div>");
	}
}
var curL2id = '';
// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.body.scrollLeft
tempY = event.clientY + document.body.scrollTop
} else { // grab the x-y pos.s if browser is NS
tempX = e.pageX
tempY = e.pageY
}
// catch possible negative values in NS4
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
// show the position values in the form named Show
// in the text fields named MouseX and MouseY
return true
}
function showNav2(id){
	if (id != curL2id && curL2id !=""){
		document.getElementById('Nav' + curL2id).style.display='none';
		narray[curL2id]['hide']="true"
		
	}
	if (narray[id]){		
		narray[id]['hide']="false"
		//if (document.getElementById('Nav' + id).style.display != 'block'){
			document.getElementById('Nav' + id).style.top = document.getElementById('NavL1' + id).offsetTop + 20 + 'px';
        	if (IE){
				document.getElementById('Nav' + id).style.left = document.getElementById('NavL1' + id).offsetLeft + document.getElementById('div_wrapper').offsetLeft + 'px';
        	}
        	else {
        		document.getElementById('Nav' + id).style.left = document.getElementById('NavL1' + id).offsetLeft + 'px';
        	}
			document.getElementById('Nav' + id).style.display='block';
			curL2id = id; // Derzeitiges praesentiertes Level2 Element.
		//}
	}
}
function hideNav2(id){
	if (narray[id]['hide']=="true"){
		document.getElementById('Nav' + id).style.display = 'none';
	}
}