var out;
		
eb = new Array ("un0","un1","un2","un3","un4");
// Styles
		function show(nb){
				ebene = eb[nb];
			if(document.layers) {

			 		document.layers[ebene].visibility="show";
					check(nb);
			}	
							
			if (document.getElementById) {
					document.getElementById(ebene).style.visibility = "visible";
					check(nb);
				}
			if (document.all && !document.getElementById){
					document.all[ebene].style.visibility="visible";
					check(nb);
				}
			}
		function check(nb){
			if (out && out!=nb){
				hide();
			}
			out = nb;	
		}
		
	function hide(nb){

			ebene = eb[out];
			if(document.layers) {
			 	document.layers[ebene].visibility="hide";
			}	
			if (document.getElementById){
					document.getElementById(ebene).style.visibility = "hidden";
				}
			if (document.all && !document.getElementById){
					document.all[ebene].style.visibility= "hidden";
				}
			}
		
		function hideall(nb){

					if (document.getElementById){
						document.getElementById("un1").style.visibility = "hidden";
						document.getElementById("un2").style.visibility = "hidden";
						document.getElementById("un3").style.visibility = "hidden";
						document.getElementById("un4").style.visibility = "hidden";
					}
					if (document.all && !document.getElementById){
						document.all["un1"].style.visibility= "hidden";
						document.all["un2"].style.visibility= "hidden";
						document.all["un3"].style.visibility= "hidden";
						document.all["un4"].style.visibility= "hidden";
					}
					if(document.layers) {
					 	document.layers["un1"].visibility="hide";
						document.layers["un2"].visibility="hide";
						document.layers["un3"].visibility="hide";
						document.layers["un4"].visibility="hide";
					}	
//			}
		}
				  
function NewFarbe(n1,n2,n3,n4,n5,n6){


if (document.getElementById) // IE 5.x und NN 6
		{
			document.getElementById("box1").style.backgroundColor=n1;
			// document.getElementById("box2").style.backgroundColor=n2; //presse
			document.getElementById("box3").style.backgroundColor=n3;
			document.getElementById("box4").style.backgroundColor=n4;
			document.getElementById("box5").style.backgroundColor=n5;
			document.getElementById("box6").style.backgroundColor=n6;
			for (i=0;i<11;i++){
				if (document.getElementById(ze[i])) {
					document.getElementById(ze[i]).style.backgroundColor=fa2;
				}
			}
		}
		
if (document.all && !document.getElementById) // IE 4
        {
			document.all[box1].style.backgroundColor=n1;
			document.all[box2].style.backgroundColor=n2;
			document.all[box3].style.backgroundColor=n3;
			document.all[box4].style.backgroundColor=n4;
			document.all[box5].style.backgroundColor=n5;
			document.all[box6].style.backgroundColor=n6;
			for (i=0;i<11;i++){
				if (document.getElementById(ze[i])) {
					document.all[ze[i]].style.backgroundColor=fa2;
				}
			}
		}

}

