	ebenen=new Array("subprodukte","subcompany","subdownload");
	linkswerte=new Array(270,560,623);
	function posebene() {
		breite=800;
		if (document.layers) {
		//posmy=window.innerHeight;
			fensterbreite=window.innerWidth;
		}
		else if(document.all){
			//posmy=document.body.clientHeight;
			fensterbreite=document.body.clientWidth;
		}
		else {
			//posmy=self.innerHeight;
			fensterbreite=self.innerWidth;
		}
		if (fensterbreite<800)
			linksnull=0;
		else
			linksnull=(fensterbreite/2)-(breite/2);
		
		//alert(fensterbreite+" "+linksnull);
		for (i=0;i<ebenen.length;i++) {
			poslinks=linksnull+linkswerte[i];
			//alert(linksnull);
			if (document.layers) {
				if (fensterbreite>800)
					poslinks-=7;
				obj=document[ebenen[i]].left=poslinks;
			}
			else if (document.all) 
				obj=document.all[ebenen[i]].style.left=poslinks;
			else 
				obj=document.getElementById(ebenen[i]).style.left=poslinks;
			//alert (posmx+" "+posmy);
		}
	}	
	function untermenu(div,zustand) {

		closeum();
		if (document.layers) {
			obj=document[div];
		}
		else if (document.all) {
			obj=document.all[div].style;
		}
		else {
			obj=document.getElementById(div).style;
		}		
		obj.visibility=zustand;
		offen=div;
		window.setTimeout("closeum()",1000);
	}
	function closeum() {
		if (offen!="" && zustand==1) {
			if (document.layers) 
				obj=document[offen];
			else if (document.all) 
				obj=document.all[offen].style;
			else 
				obj=document.getElementById(offen).style;
			obj.visibility="hidden";
			offen="";
			zustand=0;
		}
		else {
			window.setTimeout("closeum()",1000);
		}
	}
	var offen="";
	var zustand=0;

	
	function OpenPopup(file,width,height) {
		var now = new Date();
		var remote = window.open(file, "popup" + now.getTime(), "width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,alwaysRaised=yes,resizable=0,status=0,menubar=no,scrollbars=no,top=50,left=50");
	}
	function OpenPopupScroll(file,width,height) {
		var now = new Date();
		var remote = window.open(file, "popup" + now.getTime(), "width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,alwaysRaised=yes,resizable=0,status=0,menubar=no,scrollbars=yes,top=50,left=50");
	}

	function OpenPopupScroll2(file) {
		var width = 850;
		var height = 600;
		var now = new Date();
		var remote = window.open(file, "popup" + now.getTime(), "width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,alwaysRaised=yes,resizable=1,status=0,menubar=no,scrollbars=yes,top=50,left=50");
	}

	function OpenPopupPosition(file,width,height,top,left) {
		var now = new Date();
		var remote = window.open(file, "popup" + now.getTime(), "width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,alwaysRaised=yes,resizable=0,status=0,menubar=no,scrollbars=no,top="+ top +",left="+left);
	}
	function bildwechsel(bildnamen,bildquellen) {
		for (i=0;i<bildnamen.length;i++){
			document.images[bildnamen[i]].src=bildquellen[i];
		}
	}
	