/**********************************************************
        Funktionen für die Menüsteuerung
        Browserbestimmung, Arraybelegung, ...
**********************************************************/

var DOM = (document.getElementById)? true : false;
var Opera = (window.opera)? true : false;
var Opera5 = (Opera && DOM)? true : false;
var Netscape = (window.outerWidth && !Opera)? true : false;
var Netscape6 = (Netscape && DOM)? true : false;
var Netscape4 = (Netscape && !DOM)? true : false;
var InternetExplorer = (document.all && !Opera)? true : false;
var InternetExplorer5 = (InternetExplorer && DOM)? true : false;
var InternetExplorer4 = (InternetExplorer && !DOM)? true : false;

thePopups = new Array(0,0,0,0,0,0,0,0);
theFolie=0;

function mpInitMenu() {
	if (Netscape4){
		thePopups[0]=0;
		thePopups[1]=0;
		thePopups[2]=document.popup3;
		thePopups[3]=document.popup4;
		thePopups[4]=0;
		thePopups[5]=document.popup6;
		thePopups[6]=0;
		thePopups[7]=0;
		theFolie=document.folie;
		}
	if (InternetExplorer4){
		thePopups[0]=0;
		thePopups[1]=0;
		thePopups[2]=document.all.popup3.style;
		thePopups[3]=document.all.popup4.style;
		thePopups[4]=0;
		thePopups[5]=document.all.popup6.style;
		thePopups[6]=0;
		thePopups[7]=0;
		theFolie=document.all.folie.style;
		}
	if (Opera5 || Netscape6 || InternetExplorer5){
		thePopups[0]=0;
		thePopups[1]=0;
		thePopups[2]=document.getElementById('popup3').style;
		thePopups[3]=document.getElementById('popup4').style;
		thePopups[4]=0;
		thePopups[5]=document.getElementById('popup6').style;
		thePopups[6]=0;
		thePopups[7]=0;
		theFolie=document.getElementById('folie').style;
		}
}
/**********************************************************
        Unsichtbare Folie ausblenden
**********************************************************/
function hideFolie(){
	if (Netscape4){
		theFolie.visibility="hide";
	}
	if (InternetExplorer4){
		theFolie.visibility="hidden";
	}
	if (Opera5 || Netscape6 || InternetExplorer5){
		theFolie.visibility="hidden";
	}
}
/**********************************************************
        Unsichtbare Folie anzeigen
**********************************************************/
function showFolie(){
	if (Netscape4){
		theFolie.visibility="show";
	}
	if (InternetExplorer4){
		theFolie.visibility="visible";
	}
	if (Opera5 || Netscape6 || InternetExplorer5){
		theFolie.visibility="visible";
	}
}
/**********************************************************
        Alle Popups ausblenden
**********************************************************/
function mpHideAllPopups() {
	if (Netscape4){
		for(i = 0; i < thePopups.length; i++){
			if (thePopups[i] != 0){
			thePopups[i].visibility = "hide";
			}
		}
	}

	if (InternetExplorer4){
		for(i = 0; i < thePopups.length; i++){
			if (thePopups[i] != 0){
				thePopups[i].visibility = "hidden";
			}
		}
	}

	if (Opera5 || Netscape6 || InternetExplorer5){
		for(i = 0; i < thePopups.length; i++){
			if (thePopups[i] != 0){
				thePopups[i].visibility = "hidden";
			}
		}
	}
}
/**********************************************************
        Alle Popups aus dem angegebenen ausblenden
**********************************************************/
function mpHideOtherPopups(thePopupNum) {
	if (Netscape4){
		for(i = 0; i < thePopups.length; i++){
			if (i+1 != thePopupNum){
				if (thePopups[i] != 0){
					thePopups[i].visibility = "hide";
				}
			}
		}
	}

	if (InternetExplorer4){
		for(i = 0; i < thePopups.length; i++){
			if (i+1 != thePopupNum){
				if (thePopups[i] != 0){
					thePopups[i].visibility = "hidden";
				}
			}
		}
	}

	if (Opera5 || Netscape6 || InternetExplorer5){
		for(i = 0; i < thePopups.length; i++){
			if (i+1 != thePopupNum){
				if (thePopups[i] != 0){
					thePopups[i].visibility = "hidden";
				}
			}
		}
	}
}
/**********************************************************
        Angegebenes Popup anzeigen
**********************************************************/
function mpShowPopup(thePopupNum) {
	if (Netscape4){
		thePopups[thePopupNum-1].visibility = "show";
		}
	if (InternetExplorer4){
		thePopups[thePopupNum-1].visibility = "visible";
		}
	if (Opera5 || Netscape6 || InternetExplorer5){
		thePopups[thePopupNum-1].visibility = "visible";
		}
	showFolie();
}