function id(idString){

	if(document.getElementById(idString)){

		document.getElementById(idString).hide = function(){
			document.getElementById(idString).style.visibility="hidden";
		}
		
		document.getElementById(idString).show = function(){
			document.getElementById(idString).style.visibility="visible";
		}

		document.getElementById(idString).remove = function(){
			var nodeToBeDeleted = document.getElementById(idString);
			document.getElementById(idString).parentNode.removeChild(nodeToBeDeleted);
		}
		
		document.getElementById(idString).getOuterHTML = function(){
			if(navigator.appName=="Microsoft Internet Explorer"){
				return this.outerHTML;
			} else {
				var thisOriginalInnerHTML = document.getElementById(idString).innerHTML;
				var marker = '<!-- outerHTMLmarker //-->';
				document.getElementById(idString).innerHTML =  marker + document.getElementById(idString).innerHTML;
				var newBodyInnerHTML = tg('body')[0].innerHTML;
				var markerPosition = newBodyInnerHTML.indexOf(marker);
				var codeBeforeMarker = newBodyInnerHTML.substring(0,markerPosition);
				var posOfLastLarr = codeBeforeMarker.lastIndexOf("<");
				document.getElementById(idString).innerHTML = thisOriginalInnerHTML;
				return codeBeforeMarker.substring(posOfLastLarr,codeBeforeMarker.length) +  thisOriginalInnerHTML + "<\/" + document.getElementById(idString).tagName + ">";					
			}
		}			

		document.getElementById(idString).scrollToTop = function(){
			var testedNode = id(idString).firstChild;
			if(testedNode.nextSibling){
				while(testedNode.nodeType!=1){
					testedNode = testedNode.nextSibling;
				}
				id(idString).getElementsByTagName(testedNode.nodeName)[0].scrollIntoView(true);
			}
		}

		document.getElementById(idString).scrollToBottom = function(){
			var testedNode = id(idString).lastChild;
			if(testedNode){
				if(testedNode.previousSibling){
					while(testedNode.nodeType!=1){
						testedNode = testedNode.previousSibling;
					}
					// Zeige letzten Knoten innerhalb des Elements an:
					id(idString).getElementsByTagName(testedNode.nodeName)[id(idString).getElementsByTagName(testedNode.nodeName).length-1].scrollIntoView(false);
				}
			}
		}

		document.getElementById(idString).addUploader = function(targetDir,buttonTitle){
			id(idString).innerHTML += 	'<form class="uploadElementAjaxFileSystem" action="ajaxFileSystem.php?action=upload&target='+targetDir+'" method="post" enctype="multipart/form-data" target="uploadOutput" style="display:inline;">'+
								'<input type="file" name="datei">'+
								'<input type="submit" value="'+buttonTitle+'">'+
								'<iframe name="uploadOutput" style="display:none;"></iframe>'+
								'</form>';
			return id(idString).getElementsByTagName("form")[id(idString).getElementsByTagName("form").length-1];
		}
		

		document.getElementById(idString).onkeypress = function(k){
			if((typeof id(idString).onenter)=="function" || (typeof id(idString).onenter)=="string"){
				if(k){
					if(k.which==13) // "13" steht für Entertaste
						setTimeout(id(idString).onenter,1);
				} else if(window.event.keyCode){
					if(window.event.keyCode==13) // "13" steht für Entertaste
						setTimeout(id(idString).onenter,1);
				}
			}
		};	
		
		return document.getElementById(idString);
		
	}else{
	
		return null;
		
	}
}


function tg(tagString){

	if(document.getElementsByTagName(tagString)){
	
			// .hide()-Funktion:
			for(var j=0; j<document.getElementsByTagName(tagString).length; j++){
				document.getElementsByTagName(tagString)[j].hide = function(){
					this.style.visibility="hidden";
				};
			}
			
			// .show()-Funktion:
			for(var j=0; j<document.getElementsByTagName(tagString).length; j++){
				document.getElementsByTagName(tagString)[j].show = function(){
					this.style.visibility="visible";
				}
			}
			
			// .remove()-Funktion:
			for(var j=0; j<document.getElementsByTagName(tagString).length; j++){
				document.getElementsByTagName(tagString)[j].remove = function(){
					var nodeToBeDeleted = this;
					this.parentNode.removeChild(nodeToBeDeleted);
				}
			}

			
			// .getOuterHTML()-Funktion:
			for(var j=0; j<document.getElementsByTagName(tagString).length; j++){
				document.getElementsByTagName(tagString)[j].getOuterHTML = function(){
					for(var k=0; k<document.getElementsByTagName(tagString).length; k++){
						if(navigator.appName=="Microsoft Internet Explorer"){
							return this.outerHTML;
						} else {
							var thisOriginalInnerHTML = this.innerHTML;
							var marker = '<!-- outerHTMLmarker //-->';
							this.innerHTML =  marker + this.innerHTML;
							var newBodyInnerHTML = tg('body')[0].innerHTML;
							var markerPosition = newBodyInnerHTML.indexOf(marker);
							var codeBeforeMarker = newBodyInnerHTML.substring(0,markerPosition);
							var posOfLastLarr = codeBeforeMarker.lastIndexOf("<");
							this.innerHTML = thisOriginalInnerHTML;
							return codeBeforeMarker.substring(posOfLastLarr,codeBeforeMarker.length) +  thisOriginalInnerHTML + "<\/" + this.tagName + ">";					
						}
					}
				}
			}
			
			for(var j=0; j<document.getElementsByTagName(tagString).length; j++){
				document.getElementsByTagName(tagString)[j].onkeypress = function(k){
					for(var i=0; i<document.getElementsByTagName(tagString).length; i++){
						if((typeof tg(tagString)[i].onenter)=="function" || (typeof tg(tagString)[i].onenter)=="string"){
							if(k){
								if(k.which==13) // "13" steht für Entertaste
									setTimeout(tg(tagString)[i].onenter,1);
							} else if(window.event.keyCode){
								if(window.event.keyCode==13) // "13" steht für Entertaste
									setTimeout(tg(tagString)[i].onenter,1);
							}
						}
					}
				};
			}
			
		return document.getElementsByTagName(tagString);
		
	}else{
	
		return null;
		
	}
}

function newWindow(url, w, h, x, y) {
	var options ;
	options = "width=" + w + ",height=" + h + ",";
	options += "left=" + x + ",top=" + y + ",";
	options +="resizable=no,scrollbars=yes,status=no,";
	options += "menubar=no,toolbar=no,location=no,directories=no";
	if(newWin)				// falls schon ein Neufenster existiert, dann schließen, um neue Fenstergröße zu erzielen
		newWin.close();
	newWin = window.open(url, 'id'+Math.round(Math.random()*10000), options);
	newWin.focus();
} var newWin;

function codeToNewWindow(code,x,y,w,h){
	var options ;
	options = "width=" + w + ",height=" + h + ",";
	options += "left=" + x + ",top=" + y + ",";
	options +="resizable=yes,scrollbars=yes,status=no,";
	options += "menubar=no,toolbar=no,location=no,directories=no";	
	var targetWin = window.open("about:blank", 'id'+Math.round(Math.random()*10000), options);
	targetWin.document.writeln('<html><body leftmargin="0" topmargin="0">'+code+'</body></html>');
	window.setTimeout(function(){
		targetWin.stop();
	},10000);
}

function codeInNewWindow(code,w,h,x,y){
	var options ;
	options = "width=" + w + ",height=" + h + ",";
	options += "left=" + x + ",top=" + y + ",";
	options +="resizable=yes,scrollbars=yes,status=no,";
	options += "menubar=no,toolbar=no,location=no,directories=no";	
	var targetWin = window.open("about:blank", 'id'+Math.round(Math.random()*10000), options);
	targetWin.document.writeln('<html><body leftmargin="0" topmargin="0">'+code+'</body></html>');
	window.setTimeout(function(){
		targetWin.stop();
	},10000);
}

function codeToChildWindow(code,x,y,w,h){
	var localAdress = location.href;
	var options ;
	var targetWin;
	options = "width=" + w + ",height=" + h + ",";
	options += "left=" + x + ",top=" + y + ",";
	options +="resizable=yes,scrollbars=yes,status=no,";
	options += "menubar=no,toolbar=no,location=no,directories=no";	
	if(navigator.appName=="Microsoft Internet Explorer"){
		targetWin = window.open(location.href, 'id'+Math.round(Math.random()*10000), options);
		var schleife = function(){
			if(targetWin.location.href==localAdress  && targetWin.document.getElementsByTagName("body")[0]){
					targetWin.document.getElementsByTagName("body")[0].innerHTML = code;
			} else {
				setTimeout(schleife,1);
			}
		}; schleife();
	} else {
		targetWin = window.open('about:blank', 'id'+Math.round(Math.random()*10000), options);
		var schleife = function(){
			if(targetWin.location.href=="about:blank" && targetWin.document.getElementsByTagName("body")[0]){
				targetWin.stop();
				targetWin.document.getElementsByTagName('head')[0].innerHTML = tg('head')[0].innerHTML;
				targetWin.document.getElementsByTagName('body')[0].innerHTML = code;
			} else {
				setTimeout(schleife,1);
			}
		}; schleife();
	}
}

function setMinimumWindowInnerSize(x,y) {
	if(getWindowInnerWidth(self)<x||getWindowInnerHeight(self)<y){
		if (navigator.appName=="Microsoft Internet Explorer") {
			window.moveTo(0,0);
			top.window.resizeTo(screen.availWidth,screen.availHeight);
		} else {
			window.moveTo(0,0);
			window.resizeTo(screen.availWidth,screen.availHeight);
		}
	}
}

function getWindowInnerWidth(win) {
	if (win == undefined)
		win = window;
	if (win.innerWidth) {
		return win.innerWidth;
	} else {
		if (win.document.documentElement && win.document.documentElement.clientWidth) {
			return win.document.documentElement.clientWidth;
		}
		return win.document.documentElement.offsetWidth;
	}
}

function getWindowInnerHeight(win) {
	if (win == undefined)
		win = window;
	if (win.innerHeight) {
		return win.innerHeight;
	} else {
		if (win.document.documentElement && win.document.documentElement.clientHeight) {
			return win.document.documentElement.clientHeight;
		}
		return win.document.documentElement.offsetHeight;
	}
}
			
function parallelLoad(url, setFocus){
	var zusatzCode = "";
	if(setFocus == true)
		zusatzCode = "window.focus();";
	else
		zusatzCode = "";
	window.setInterval(zusatzCode+"location.href='"+url+"'",2000);
}


function getElementsByClassName(class_name) {
	var all_obj,ret_obj=new Array(),j=0,teststr;
	if(document.all)all_obj=document.all;
	else if(document.getElementsByTagName && !document.all)
		all_obj=document.getElementsByTagName("*");
	for(objIndex=0;objIndex<all_obj.length;objIndex++) {
		if(all_obj[objIndex].className.indexOf(class_name)!=-1) {
			teststr=","+all_obj[objIndex].className.split(" ").join(",")+",";
			if(teststr.indexOf(","+class_name+",")!=-1) {
				ret_obj[j]=all_obj[objIndex];
				j++;
			}
		}
	}
	return ret_obj;
}	

function layerChange(selectedLayerId){
	getElementsByClassName("mainLayer")[0].style.visibility = "hidden";
	if(currentLayerId!="")
		document.getElementById(currentLayerId).style.visibility = "hidden";
	document.getElementById(selectedLayerId).style.visibility = "visible";
	currentLayerId = selectedLayerId;
} currentLayerId = "";


function mailValid(mail) {
	var regexist = false;
	var res = false;
	if(typeof(RegExp) == 'function') {
		var testregex = new RegExp('abc');
		if(testregex.test('abc') == true) {
			regexist = true;
		}
	}

	if(regexist == true) {
		reg = new RegExp('^([a-zA-Z0-9\\-\\.\\_]+)(\\@)([a-zA-Z0-9\\-\\.]+)(\\.)([a-zA-Z]{2,4})$');
		res = (reg.test(mail));
	} else {
		res = (mail.search('@') >= 1 && mail.lastIndexOf('.') > mail.search('@') && mail.lastIndexOf('.') >= mail.length-5)
	}
	return(res);
}


function replaceString(suchwort, ersatzwort, satz){
	if(satz.indexOf(suchwort)>-1){
		satz = satz.substring(0,satz.indexOf(suchwort)) + ersatzwort + satz.substring(satz.indexOf(suchwort)+suchwort.length,satz.length);
		return satz;
	} else {
		return satz;
	}
}

function replaceStrings(suchwort, ersatzwort, satz){
	while(satz.indexOf(suchwort)>-1)
		satz = satz.substring(0,satz.indexOf(suchwort)) + ersatzwort + satz.substring(satz.indexOf(suchwort)+suchwort.length,satz.length);
	return satz;
}

function replaceWords(suchwort, ersatzwort, satz){
	while(satz.toLowerCase().indexOf(suchwort.toLowerCase())>-1){
		satz = satz.substring(0,satz.toLowerCase().indexOf(suchwort.toLowerCase())) + ersatzwort + satz.substring(satz.toLowerCase().indexOf(suchwort.toLowerCase())+suchwort.length,satz.length);
	}
	return satz;
}


function dirFromPath(path){
	if(path.indexOf("\\")>-1)
		return path.substring(0,path.lastIndexOf("\\")+1);
	else if(path.indexOf("/")>-1)
		return path.substring(0,path.lastIndexOf("/")+1);
	else return path;
}


function activateCenterVertical(){
	var suchwort, ersatzwort;
	if(navigator.appName=="Microsoft Internet Explorer"){
			suchwort = '<!-- [centerVertical] //-->';
			ersatzwort = '<div style="position:relative; height:100%;"><div style="position:absolute; top:50%;"><div style="position:relative; top:-50%">';
			document.getElementsByTagName("BODY")[0].innerHTML = replaceWords(suchwort, ersatzwort, document.getElementsByTagName("BODY")[0].innerHTML);
			suchwort = '<!-- [/centerVertical] //-->';
			ersatzwort = '</div></div></div>';
			document.getElementsByTagName("BODY")[0].innerHTML = replaceWords(suchwort, ersatzwort, document.getElementsByTagName("BODY")[0].innerHTML);
	} else {
			suchwort = '<!-- [centerVertical] //-->';
			ersatzwort = '<div style="position:relative; height:100%;"><div style="position:absolute; top:50%;height:1px;"><div class="centeredVertical" style="position:relative;">';
			document.getElementsByTagName("BODY")[0].innerHTML = replaceWords(suchwort, ersatzwort, document.getElementsByTagName("BODY")[0].innerHTML);
			suchwort = '<!-- [/centerVertical] //-->';
			ersatzwort = '</div></div></div>';
			document.getElementsByTagName("BODY")[0].innerHTML = replaceWords(suchwort, ersatzwort, document.getElementsByTagName("BODY")[0].innerHTML);
			var cvNumber = getElementsByClassName("centeredVertical").length;
			for(var cvIndex=0; cvIndex < cvNumber; cvIndex++)
				getElementsByClassName("centeredVertical")[cvIndex].style.top -= getElementsByClassName("centeredVertical")[cvIndex].offsetHeight / 2;
	}
} 

function skypeInstalled(){
	var activex = ((navigator.userAgent.indexOf('Win')  != -1) && (navigator.userAgent.indexOf('MSIE') != -1) && (parseInt(navigator.appVersion) >= 4 ));
	if(activex){	// Falls es ein AcitiveX-Browser ist (also IE auf Windows-PCs)
		document.write('<script language="VBScript">Function vbsFoundSkype : on error resume next : Set oSkype = CreateObject("Skype.Detection") : vbsFoundSkype = IsObject(oSkype) : Set oSkype = nothing : End Function<\/script>'); 
		if(vbsFoundSkype())
			return 1;
	}else if(getBrowserName()=="Mozilla Firefox"){	// Falls es Firefox ist
		if(typeof(navigator.mimeTypes["application/x-skype"])=="object")
			return 1;
		else
			return 0;
	} else {
		return 0;
	}
}


function javaActive(codebase){
	if((typeof codebase)=="undefined") codebase=dirFromPath(location.href);
	if(!document.getElementById('javaDetecting')) document.getElementsByTagName("body")[0].innerHTML+= '<div id="javaDetecting" style="position:absolute; visibility:hidden"></div>';
	document.getElementById('javaDetecting').innerHTML='<applet code="JavaDetecting" width="0" height="0" mayscript="mayscript" name="detectingApplet"></applet>';
	try{
		detectingApplet.testMethod("xy");
		return 1;
	}catch(e){
		return 0;
	}
}


function playSound(soundFilename) {

	var Ausgabebereich = document.getElementsByTagName("Body")[0];

	var absoluteContainer = document.createElement("div");
	absoluteContainer.style.position = "absolute";
	absoluteContainer.style.left = "0";
	absoluteContainer.style.top = "0";
	Ausgabebereich.appendChild(absoluteContainer);

	var embedElement = document.createElement("embed");
	embedElement.setAttribute("type","application/x-mplayer2");
	embedElement.setAttribute("src",soundFilename);
	embedElement.setAttribute("autostart","1");
	embedElement.setAttribute("loop","false");
	embedElement.setAttribute("width","0");
	embedElement.setAttribute("height","0");
	embedElement.setAttribute("ShowStatusBar","0");
	embedElement.setAttribute("ShowControls","0");
	if(navigator.appName=="Microsoft Internet Explorer")
		embedElement.setAttribute("hidden","true");
	absoluteContainer.appendChild(embedElement);
}

function getBrowserName(){
	if(document.ids)browserName = 'nc4';
	else if( document.all && !document.getElementById )browserName = 'Microsoft Internet Explorer 4';
	else if(window.pkcs11&&window.XML)browserName = 'Mozilla Firefox';
	else if(navigator.userAgent.indexOf("Safari")>-1) browserName="Safari";
	else if( window.getSelection && window.atob )browserName = 'Netscape Navigator 7';
	else if( window.getSelection && !document.compatMode )browserName = 'Netscape Navigator 6';
	else if( window.clipboardData && document.compatMode )
	  browserName = window.XMLHttpRequest? 'Microsoft Internet Explorer 7' : 'Microsoft Internet Explorer 6';
	else if( window.clipboardData ){browserName = 'Microsoft Internet Explorer 5';
	     if( !document.createDocumentFragment ) x+='.5';
	     if( document.doctype && !window.print ) x+='m';}
	else if( document.images && !document.all ) browserName = 'Netscape Navigator 3';
	else if(document.clientWidth&&!window.RegExp)browserName = 'Konqueror 2';
	else if( window.opera && !document.createElement )browserName = 'Opera 5';
	else if( window.opera && window.getComputedStyle )  {
		  if(document.createRange)browserName = 'Opera 8';
		    else if(window.navigate)browserName = 'Opera 7.5';
				     else browserName = 'Opera 7.2';                   }
	else if( window.opera && document.compatMode )browserName = 'Opera 7';
	else if( window.opera && document.releaseEvents )browserName = 'Opera 6';
	else if( document.contains && !window.opera )browserName = 'Opera 3';
	else if( document.getElementById && !document.all ) browserName = 'Opera 4';
	else browserName = '???';
	return browserName;
}


function urlSelectsLayer(){
	if(typeof (urlParameter("layer"))!="undefined")
		layerChange(urlParameter("layer"));
}

function urlParameter(varName){
	var parameters = new Array();
	var paramListString = window.location.search;
	paramListString = paramListString.substring(1,paramListString.length);
	var expressions = paramListString.split("&");
	for(var i=0; i<expressions.length;i++){
		var varAndVal = expressions[i].split("=");
		parameters[varAndVal[0]] = varAndVal[1];
	}
	return parameters[varName];
}			


//ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\
//	== A D V A N C E D -  L O O P - F E A T U R E ==

	/*Damit die verschiedenen Intervalle sich beim ggs. Ausschalten nicht in die Quere kommen,
	    bekommt jeder Intervall eine Stelle in einem Array: */
		
		breakingLoopInterval = new Array();
		for(brLoIndex=1;brLoIndex<25000;brLoIndex++){
			breakingLoopInterval[brLoIndex]=-1;
		}
		continuingCode = new Array();
		loopIndex = -1;
		
		function endBreakingLoop(loopIndex){
			window.clearInterval(breakingLoopInterval[loopIndex]);
			breakingLoopInterval[loopIndex] = 0;
		}
		
		function breakingLoop(code){
			loopIndex++;
			while(code.search(/finishLoop/)>-1)
				code = code.replace(/finishLoop/,	"endBreakingLoop("+loopIndex+")");
			breakingLoopInterval[loopIndex] = window.setInterval(code,1);
		}
		
		
		
		function continueAfterLoop(code){
			try{
				//window.clearInterval(continuingCode[loopIndex-1]);
			} catch(e){}
			continuingCode[loopIndex] = window.setInterval(
				"if(breakingLoopInterval["+loopIndex+"]==0)	{			"+
				"	breakingLoopInterval["+loopIndex+"] = -1; 			"+
					code										 +
				"	window.clearInterval(continuingCode["+loopIndex+"]);	"+
				"}											"
			,1);
		}

/*
\________________/\_________________/\_________________/\_____________________/\____________________/*/




//ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\
//	== S U B M E N U  -  F E A T U R E ==

		function useSubmenus(){
			if(getElementsByClassName("submenu")) {
				firstSubmenuEntryHappened = new Array(); var j=0;
				for(j=0; j < getElementsByClassName("submenu").length; j++)
					firstSubmenuEntryHappened[j] = false;
				if(navigator.appName=="Microsoft Internet Explorer"){
					breakingLoop(
						'for(submenuNo=0; submenuNo < getElementsByClassName("submenu").length; submenuNo++){								'+
						'	getElementsByClassName("submenu")[submenuNo].childNodes[0].childNodes[0].nextSibling.nextSibling.style.visibility = "hidden";	'+
						'	getElementsByClassName("submenu")[submenuNo].childNodes[0].childNodes[0].nextSibling.nextSibling.style.position = "absolute";	'+
						'	getElementsByClassName("submenu")[submenuNo].childNodes[0].childNodes[0].nextSibling.nextSibling.style.left = "0px";		'+
						'	getElementsByClassName("submenu")[submenuNo].outerHTML = replaceString("<LI ","<LI onmouseover=\\"javascript:enterSubmenu("+submenuNo+")\\" ", getElementsByClassName("submenu")[submenuNo].outerHTML);	'+
						'	getElementsByClassName("submenu")[submenuNo].outerHTML = replaceString("<LI ","<LI onmouseout=\\"javascript:exitSubmenu("+submenuNo+")\\" ", getElementsByClassName("submenu")[submenuNo].outerHTML);	'+
						'	finishLoop;																					'+
						'}'
					);
				} else {
					breakingLoop(
						'for(submenuNo=0; submenuNo < getElementsByClassName("submenu").length; submenuNo++){								'+
						'	getElementsByClassName("submenu")[submenuNo].childNodes[0].childNodes[0].nextSibling.nextSibling.style.visibility = "hidden";	'+
						'	getElementsByClassName("submenu")[submenuNo].childNodes[0].childNodes[0].nextSibling.nextSibling.style.position = "absolute";	'+
						'	getElementsByClassName("submenu")[submenuNo].childNodes[0].childNodes[0].nextSibling.nextSibling.style.left = "0px";		'+
						'	getElementsByClassName("submenu")[submenuNo].setAttribute("onmouseover","javascript:enterSubmenu("+submenuNo+")");		'+
						'	getElementsByClassName("submenu")[submenuNo].setAttribute("onmouseout","javascript:exitSubmenu("+submenuNo+")");		'+
						'	finishLoop;																					'+
						'}'
					);				
				}
			}
		}
	
		function enterSubmenu(submenuNo){
			
			if(navigator.appName=="Microsoft Internet Explorer" && !firstSubmenuEntryHappened[submenuNo]){
				getElementsByClassName("submenu")[submenuNo].childNodes[0].childNodes[0].nextSibling.nextSibling.innerHTML = "<br>" + getElementsByClassName("submenu")[submenuNo].childNodes[0].childNodes[0].nextSibling.nextSibling.innerHTML;
				firstSubmenuEntryHappened[submenuNo] = true;
			}
			getElementsByClassName("submenu")[submenuNo].childNodes[0].childNodes[0].nextSibling.nextSibling.style.visibility = "visible";
		}
		
		function exitSubmenu(submenuNo){
			getElementsByClassName("submenu")[submenuNo].childNodes[0].childNodes[0].nextSibling.nextSibling.style.visibility = "hidden";
		}

/*
\________________/\_________________/\_________________/\_____________________/\____________________/*/


