//layer-script:

var layerRef	="";
var styleSwitch	="";
if (window.opera) OP = 1;
else OP=0;

if (document.layers) {
	hilk1="";
	hilk2="";
	layerRef="document.layers.";
	styleSwitch="";
}
if (document.all) {
	hilk1="";
	hilk2="";
	layerRef="";
	styleSwitch=".style";
}

if(document.getElementById){
	hilk1="";
	hilk2="";
	layerRef='document.getElementById("';
	styleSwitch='").style';
}

function setAttrib(layerName0, name, neuWert) {
	if (layerName0){
		if (navigator.appName == "Netscape"){
			eval(layerRef+hilk1+layerName0+hilk2+styleSwitch+'.'+name+'=neuWert');
		}else{
			eval(layerRef+hilk1+layerName0+hilk2+styleSwitch+'.setAttribute("'+name+'","'+neuWert+'","false")');
		}
	}
}


function popup(FContent, FWidth, FHeight, FTitel, FScroll) {
 	window.open(FContent,FTitel,'width='+FWidth+',height='+FHeight+',resizable=no,scrollbars='+FScroll+',scrolling='+FScroll+',resizable=yes');
 }
 
 
 
 //mouseoverscript start
 function imgHersteller() { 
   var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.osrc;i++) x.src=x.osrc;
 }
 function Bildwechsel() { 
   var i,j=0,x,a=Bildwechsel.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=findeObj(a[i]))!=null){document.sr[j++]=x; if(!x.osrc) x.osrc=x.src; x.src=a[i+2];}
 }
 function findeObj(n, d) { 
   var p,i,x;  if(!d) d=document; if((p=n.indexOf('?'))>0&&parent.frames.length) {
     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findeObj(n,d.layers[i].document); return x;
 }
 
 
 
 function lister(was) {
 		
 		setAttrib('off1', 'display', 'none');
 		setAttrib('off3', 'display', 'none');
 		setAttrib('off4', 'display', 'none');
 		setAttrib('raute1', 'display', 'none');
 		setAttrib('raute2', 'display', 'none');
 		setAttrib('raute3', 'display', 'none');
 		setAttrib('raute4', 'display', 'none');
 		setAttrib('raute5', 'display', 'none');
 		setAttrib('raute6', 'display', 'none');
 		setAttrib('raute7', 'display', 'none');
 		setAttrib('raute8', 'display', 'none');
 		setAttrib('raute9', 'display', 'none');
 		setAttrib('default', 'display', 'none');
 		
 		setAttrib('reiterplogsties', 'backgroundColor', '#ffffff');
 		setAttrib('reitersemjan', 'backgroundColor', '#ffffff');
 		setAttrib('reitergrahl', 'backgroundColor', '#ffffff');
 		setAttrib('reitermemyself', 'backgroundColor', '#ffffff');
 		setAttrib('reiterdag', 'backgroundColor', '#ffffff');
 		setAttrib('reitersophie', 'backgroundColor', '#ffffff');
 		setAttrib('reiterrucki', 'backgroundColor', '#ffffff');
 		setAttrib('reiterhunger', 'backgroundColor', '#ffffff');
 		setAttrib('reiteroff4', 'backgroundColor', '#ffffff');
 		setAttrib('reiterallstars', 'backgroundColor', '#ffffff');
 		setAttrib('reiteracht', 'backgroundColor', '#ffffff');
 		setAttrib('reiterneun', 'backgroundColor', '#ffffff');
 		
 		if(was=='raute1') {
 			document.hiddenForm.jahr2006.focus();
	 		var x;
			if (document.all && document.all.raute1.style.getAttribute) {
			x = document.all.raute1.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("raute1").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('raute1', 'display', 'block');
			}
			else {
					setAttrib('raute1', 'display', 'none');
			}
			
			setAttrib('raute8', 'display', 'block');
			setAttrib('reiterplogsties', 'backgroundColor', '#08FF00');
			
			
		}

		if(was=='off1') {
			document.hiddenForm.jahr2006.focus();
	 		var x;
			if (document.all && document.all.off1.style.getAttribute) {
			x = document.all.off1.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("off1").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('off1', 'display', 'block');
			}
			else {
					setAttrib('off1', 'display', 'none');
			}
			
			setAttrib('raute8', 'display', 'block');
			setAttrib('reitersemjan', 'backgroundColor', '#08FF00');
		}
	
		if(was=='raute2') {
			document.hiddenForm.jahr2006.focus();
	 		var x;
			if (document.all && document.all.raute2.style.getAttribute) {
			x = document.all.raute2.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("raute2").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('raute2', 'display', 'block');
			}
			else {
					setAttrib('raute2', 'display', 'none');
			}
			
			setAttrib('raute8', 'display', 'block');
			setAttrib('reitergrahl', 'backgroundColor', '#08FF00');
		}

		if(was=='off3') {
			document.hiddenForm.jahr2006.focus();
	 		var x;
			if (document.all && document.all.off3.style.getAttribute) {
			x = document.all.off3.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("off3").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('off3', 'display', 'block');
			}
			else {
					setAttrib('off3', 'display', 'none');
			}
			
			setAttrib('raute8', 'display', 'block');
			setAttrib('reitermemyself', 'backgroundColor', '#08FF00');
		}
		
		if(was=='raute3') {
			document.hiddenForm.jahr2006.focus();
	 		var x;
			if (document.all && document.all.raute3.style.getAttribute) {
			x = document.all.raute3.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("raute3").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('raute3', 'display', 'block');
			}
			else {
					setAttrib('raute3', 'display', 'none');
			}
			
			setAttrib('raute8', 'display', 'block');
			setAttrib('reiterdag', 'backgroundColor', '#08FF00');
		}
		
		if(was=='raute4') {

	 		var x;
			if (document.all && document.all.raute4.style.getAttribute) {
			x = document.all.raute4.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("raute4").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('raute4', 'display', 'block');
			}
			else {
					setAttrib('raute4', 'display', 'none');
			}
			
			setAttrib('reitersophie', 'backgroundColor', '#08FF00');
			setAttrib('default', 'display', 'block');
		}
		if(was=='raute5') {
	 		var x;
			if (document.all && document.all.raute5.style.getAttribute) {
			x = document.all.raute5.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("raute5").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('raute5', 'display', 'block');
			}
			else {
					setAttrib('raute5', 'display', 'none');
			}
			
			setAttrib('reiterrucki', 'backgroundColor', '#08FF00');
			setAttrib('default', 'display', 'block');
		}
		
		if(was=='raute6') {
	 		var x;
			if (document.all && document.all.raute6.style.getAttribute) {
			x = document.all.raute6.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("raute6").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('raute6', 'display', 'block');
			}
			else {
					setAttrib('raute6', 'display', 'none');
			}
			
			setAttrib('reiterhunger', 'backgroundColor', '#08FF00');
			setAttrib('default', 'display', 'block');
		}
		
		if(was=='off4') {
	 		var x;
			if (document.all && document.all.off4.style.getAttribute) {
			x = document.all.off4.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("raute6").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('off4', 'display', 'block');
			}
			else {
					setAttrib('off4', 'display', 'none');
			}
			
			setAttrib('reiteroff4', 'backgroundColor', '#08FF00');
			setAttrib('default', 'display', 'block');
		}
		
		if(was=='raute7') {
	 		var x;
			if (document.all && document.all.raute7.style.getAttribute) {
			x = document.all.raute7.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("raute7").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('raute7', 'display', 'block');
			}
			else {
					setAttrib('raute7', 'display', 'none');
			}
			
			setAttrib('reiterallstars', 'backgroundColor', '#08FF00');
			setAttrib('default', 'display', 'block');
		}
		
		if(was=='raute8') {
	 		var x;
			if (document.all && document.all.raute8.style.getAttribute) {
			x = document.all.raute8.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("raute8").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('raute8', 'display', 'block');
			}
			else {
					setAttrib('raute8', 'display', 'none');
			}
			
			setAttrib('reiteracht', 'backgroundColor', '#08FF00');
			setAttrib('default', 'display', 'block');
		}
		
		if(was=='raute9') {
	 		var x;
			if (document.all && document.all.raute9.style.getAttribute) {
			x = document.all.raute9.style.getAttribute("display", "false");
			} else if (document.getElementById) {
			x = document.getElementById("raute9").style.display;
			}
			//alert(x);
			
			if(x=="none") {
					setAttrib('raute9', 'display', 'block');
			}
			else {
					setAttrib('raute9', 'display', 'none');
			}
			
			setAttrib('reiteneun', 'backgroundColor', '#08FF00');
			setAttrib('default', 'display', 'block');
		}

 }
