var blaX=1440;
var blaY=850;

function groessenAendern()
{
	var windowHeight;
	var windowWidth;
	if(navigator.appName == "Microsoft Internet Explorer") {
		windowHeight=document.body.clientHeight;
		windowWidth=document.body.clientWidth;
		//alert("IE " + windowHeight);
	} else {
		windowHeight=window.innerHeight;
		windowWidth=window.innerWidth;
		//alert("FF " + windowHeight);
	}

	if(windowWidth > 1440 || windowHeight > 850) {
		var svF=(windowWidth/windowHeight);
		var svB=(blaX/blaY);

		//alert("Bild: " + svB + " | fenster: " + svF);

		if(svB>svF) {
			//document.getElementById('image2')
			document.images.image2.height=windowHeight;
			document.images.image2.width=(blaX*windowHeight)/blaY;
		} else {
			document.images.image2.height=(windowWidth*blaY)/blaX;
			document.images.image2.width=windowWidth;
		}
	}
	document.images.image2.style.visibility="visible";
}
