function skalieren() {
//Hoehe des Browserfensters ermitteln	
	var iBrowserHoehe = window.innerHeight;
	
	if(navigator.appName == "Microsoft Internet Explorer"){ 
		iBrowserHoehe = document.documentElement.clientHeight;
	}
//ENDE Hoehe des Browserfensters ermitteln

//Skalierungsfaktor ermitteln	
	var iFaktorHoehe = iBrowserHoehe / 768;
//ENDE Skalierungsfaktor ermitteln

//Hoehen und Positionen der Hintergrundelemente neu berechnen

	//hg1 Haupthintergrund
	document.getElementById("hg1").height = (768 * iFaktorHoehe) - 20;
	document.getElementById("hg1").style.top = (10 * iFaktorHoehe) + "px";
	document.getElementById("hg1").style.left = (10 * iFaktorHoehe) + "px";
	
	//hg2 Menuehintergrund
	document.getElementById("hg2").height = (670 * iFaktorHoehe) - 20;
	document.getElementById("hg2").style.top = (55 * iFaktorHoehe) + "px";
	document.getElementById("hg2").style.left = (70 * iFaktorHoehe) + "px";
	
	//hg3 Inhaltshintergrund
	document.getElementById("hg3").height = (670 * iFaktorHoehe) - 20;
	document.getElementById("hg3").width = (710 * iFaktorHoehe) - 20;
	
	//div inhalt
	document.getElementById("inhalt").style.height = (670 * iFaktorHoehe) - 20 + "px";
	document.getElementById("inhalt").style.width = (710 * iFaktorHoehe) - 20 + "px";
	document.getElementById("inhalt").style.top = (55 * iFaktorHoehe) + "px";
	document.getElementById("inhalt").style.left = (300 * iFaktorHoehe) + "px";		
	
//ENDE Hoehen und Positionen der Hintergrundelemente neu berechnen

//Hoehen und Positionen der Menueelemente neu berechnen

	//Logo
	document.getElementById("logomenue").height = (170 * iFaktorHoehe) - 20;					//Hoehe
	document.getElementById("logomenue").style.top = (65 * iFaktorHoehe) + "px";				//Position oben
	document.getElementById("logomenue").style.left = (135 * iFaktorHoehe) + "px";				//Position links
	
	//navigation
	document.getElementById("navigation").style.height = (370 * iFaktorHoehe) - 20 + "px";		//Hoehe
	document.getElementById("navigation").style.width = (180 * iFaktorHoehe) - 20 + "px";		//Weite
	document.getElementById("navigation").style.top = (280 * iFaktorHoehe) + "px";				//Position oben
	document.getElementById("navigation").style.left = (95 * iFaktorHoehe) + "px";				//Position links
	document.getElementById("navigation").style.fontSize = (24 * iFaktorHoehe) + "px";			//Schriftgroesse
	
//ENDE Hoehen und Positionen der Menueelemente neu berechnen
}
