///Connie

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



function submenue(d){
	var j,Nummer;
	alert("1");
	for(j=2;j<4;j++){
		alert(j)
		Nummer = document.getElementById('submenue'+j);
		alert("Nummer= "+Nummer);
		Nummer.style.display='block';
	}
	//tA.className="unsichtbar";

	//submenue2.style.display='none';
	//return;
	
}





function aktuelle_markieren(){
	var i,ab,tA,tB,wH;
	wH=window.location.href;
	for(k=1;k<5;k++){
		if(document.getElementById('p7ABw1_'+k)){
		ab='p7ABw1_'+k;
		//alert('ab= '+ab);
		break;
		
		}
	}
	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="p7ap_currentmark";
		//alert('ta= '+tA[i].className);
		}
	}

}




function P7_ABauto(){
	var i,k,ab,tB,wH,tr,pp;
	wH=window.location.href;
	for(k=1;k<4;k++){
		tr=null;
		ab='p7ABW'+k;
		tB=document.getElementById(ab);
		alert(tB);
		if(tB&&tB.p7Aba[5]&&tB.p7Aba[5]==1){
			tA=tB.getElementsByTagName('A');
			if(tA){
				for(i=0;i<tA.length;i++){
					if(tA[i].href==wH){
						if(tA[i].p7ABpr){
							tr=tA[i].id.replace('p7ABt','');
							break;
						}
						else{
							tA[i].className="p7ap_currentmark";
							pp=tA[i].parentNode;
							while(pp){
								if(pp.id&&pp.id.indexOf('p7ABc')==0){
									tr=pp.id.replace('p7ABc','');
									break;
								}
								pp=pp.parentNode;
							}
							break;
						}
					}
				}
				if(tr){
					P7_ABopen(tr);
				}
				else{
					if(typeof(p7ABcm)!='undefined'&&p7ABcm.length){
						for(i=0;i<p7ABcm.length;i++){
							if(p7ABcm[i]&&p7ABcm[i].length>0){
								if(k==p7ABcm[i].charAt(0)){
									P7_ABopen(p7ABcm[i]);
								}
							}
						}
					}
				}
			}
		}
	}
}

