///Connie
var sub_aktuell=0;

function initSub(){
	//alert("init");
	var i,j,wH,tA,Ha,Elemente,Zaehler,Kinder;
	wH=window.location.href;
	
	for(i=1;i<9;i++){
		Zaehler=0;
		if (document.getElementById('submenue'+i)){
			Elemente = document.getElementById('submenue'+i);
			tA=Elemente.getElementsByTagName('A');	
			//alert("tA= "+tA.length);
			//alert(wH);
			
			Ha = document.getElementById("cr1_"+i);
			if(Ha.href==wH){
				Zaehler++
				sub_aktuell=i;
			}
			for(j=0;j<tA.length;j++){
				if(tA[j].href==wH){
					Zaehler++
				}
			}
						
			if(Zaehler>0){
				Elemente.style.display='block'
				sub_aktuell=i;
			}
			else{
				Elemente.style.display='none'
			}
		}
		else{
			Ha = document.getElementById("cr1_"+i);
			if(Ha.href==wH){
				sub_aktuell=i;
			}
			
		}
		
		
	}
	aktuelle_markieren();
}




function aktuelle_markieren(){
	var i,ab,tA,tB,wH,Ha;
	wH=window.location.href;
		
	//alert("a= "+sub_aktuell);
	//Hauptmenuepunkt markieren hier einfügen
	Ha=document.getElementById('cr1_'+sub_aktuell);
	Ha.className="Menuebutton_down";
	
	//submenuepunkt markieren
	if (document.getElementById('submenue'+sub_aktuell)){
		ab='submenue'+sub_aktuell;
	
		tB=document.getElementById(ab);
		//alert('tB= '+tB.id);
	
	
		tA=tB.getElementsByTagName('A');	
		for(i=0;i<tA.length;i++){
			if(tA[i].href==wH){
			tA[i].className="cr_currentmark";
			//alert('ta= '+tA[i].className);
			}
		}
	}

}








