/* Sobotta DHTML-Script von Michael Auer, 25.05.2000*/
/* Netscape 6.0 hinzugefügt, geändert 11.01.2001, sp*/


	var ns = 0;
	var ie = 0;
	var ns6 = 0;

	/* Ueberprueft die Browserversion
	   und setzt entsprechend den Wert der Variablen */


	if (document.layers)  {
	     ns = 1;
		 ie = 0;
		 ns6 = 0;

	}

	if (document.all){
	     ie = 1;
		 ns = 0;
		 ns6 = 0;
	} else if (document.getElementById){
	     ie = 0;
		 ns = 0;
		 ns6 = 1;
	}

	//alert ("ns " + ns + " ie " + ie + " ns6 " + ns6);
	function swaplh(id) {
		if (ns){
		document.layers['h'+id].visibility = "show";
		document.layers['l'+id].visibility = "hide";
	    }

	    if (ie) {
//	    	alert ("swaplh " + document.all + " id " + id);
			document.all['h'+id].style.visibility = "visible";
			document.all['l'+id].style.visibility = "hidden";
		}
		if (ns6) {
		document.getElementById('h'+id).style.visibility = "visible";
		document.getElementById('l'+id).style.visibility = "hidden";
		}
	}


	function swaphl(id) {
		if (ns){
	    document.layers['l'+id].visibility = "show";
		document.layers['h'+id].visibility = "hide";
	    }

	    if (ie) {
	//    	alert ("swaphl " + document.all + " id " + id);
	    	document.all['l'+id].style.visibility = "visible";
			document.all['h'+id].style.visibility = "hidden";
		}
		if (ns6) {
		document.getElementById('l'+id).style.visibility = "visible";
		document.getElementById('h'+id).style.visibility = "hidden";
		}

	}

	var legend=0;

	function legende() {
		if (legend==0){
			if (ns){
		    	document.layers['legende'].visibility = "show";
		    	legend=1;
			}

		    if (ie) {
		    	document.all['legende'].style.visibility = "visible";
		    	legend=1;
			}
			if (ns6) {
		    	document.getElementById('legende').style.visibility = "visible";
		    	legend=1;
			}
		}
		else{
			if (ns){
		    	document.layers['legende'].visibility = "hide";
		    	legend=0;
			}

		    if (ie) {
		    	document.all['legende'].style.visibility = "hidden";
		    	legend=0;
			}
			if (ns6) {
		    	document.getElementById('legende').style.visibility = "hidden";
		    	legend=0;
			}
		}
	}






	  var aktiv=0;


	   function high(layer){

	   		if (aktiv!=layer){
				if (ns){
				document.liste.document.layers['H'+aktiv].visibility = "hide";
				document.liste.document.layers['H'+layer].visibility = "show";
				}

				if (ie){
				document.all['H'+aktiv].style.visibility = "hidden";
				document.all['H'+layer].style.visibility = "visible";
				}
				if (ns6){
				document.getElementById('H'+aktiv).style.visibility = "hidden";
				document.getElementById('H'+layer).style.visibility = "visible";
				}
			}
		aktiv=layer;
		}




		var currtop = 50;

		function scrollup(){
			currtop -= 35;

			if(ns){
			document.layers['liste'].top = currtop;
			}
			if(ie){
			document.all['liste'].style.top = currtop;
			}
			if(ns6){
			document.getElementById('liste').top = currtop;
			}


		}

		function scrolldown(){
			currtop += 35;

			if(ie){
			document.all['liste'].style.top = currtop;
			}

			if(ns){
			document.layers['liste'].top = currtop;
			}
			if(ns6){
			document.getElementById('liste').style.top = currtop;
			}

		}
