function initPage(){
	illuSpace=illuPanelSpace();
	if(illuSpace<630){
		document.getElementById("illu_oben").style.visibility = "hidden";
		if(illuSpace<410){
			document.getElementById("illu_mitte").style.visibility = "hidden";
		}
	}
	document.getElementById(menueID+"_bn").src = "images/base/"+menueID+"_over.gif";
}

function illuPanelSpace(){
  if(window.innerHeight){
    return (window.innerHeight-120);
  }else if(document.body.offsetHeight){
    return (document.body.offsetHeight-120);
  }else{
    return 450;
  }
}

function setIllustrationPanel(){
	if (illuSpace && illuSpace != illuPanelSpace()){
		illuSpace = illuPanelSpace();
		if(illuSpace<630){
			document.getElementById("illu_oben").style.visibility = "hidden";
			if(illuSpace<410){
				document.getElementById("illu_mitte").style.visibility = "hidden";
			}else{
				document.getElementById("illu_mitte").style.visibility = "visible";
			}
		}else{
			document.getElementById("illu_oben").style.visibility = "visible";
			document.getElementById("illu_mitte").style.visibility = "visible";
		}
	}
	return false;
}

function menuAction(status, id){
	switch (status){
		case "over":
			if(id!=menueID){
				document.getElementById(id+"_bn").src = "images/base/"+id+"_over.gif";
			}
			break;
		case "out":
			if(id!=menueID){
				document.getElementById(id+"_bn").src = "images/base/"+id+".gif";
			}
	}
	return false;
}

function popUp(id){
	var sXPos = window.pageXOffset;
	var sYPos = window.pageYOffset;
	if(document.getElementById("pc"+id).style.visibility == "visible"){
		document.getElementById("pc"+id).style.visibility = "hidden";
		document.getElementById("pc"+id).style.position = "absolute";
		document.getElementById("pb"+id).style.background = "url(images/base/popup_min.gif) no-repeat";
	}else{
		document.getElementById("pc"+id).style.visibility = "visible";
		document.getElementById("pc"+id).style.position = "relative";
		document.getElementById("pb"+id).style.background = "url(images/base/popup_max.gif) no-repeat";
	}
	window.scrollTo(sXPos, sYPos);
}

function fenster(ziel, breite, hoehe){
	if(!breite){
		breite=800;
		hoehe=650;
	}
	if (window.screen.availHeight-60 >= hoehe){
		var popup=window.open((ziel), "Zoom", "width="+breite+", height="+hoehe+", left=30, top=50, toolbar=no, menubar=no, status=no, resizable=no, scrollbars=no, location=no");
	}else{
		var popup=window.open((ziel), "Zoom", "width="+(breite+16)+", height="+(window.screen.availHeight-60)+", left=30, top=50, toolbar=no, menubar=no, status=no, resizable=no, scrollbars=yes, location=no");
	}
}
