/* © 2010 Elektrotechnik Walter Traxler GmbH &amp; Co KG */

function bgloader(glu2){
	var width = document.body.offsetWidth;
	var height = document.body.offsetHeight;
	if(width<=1152&&height<=768) document.getElementsByTagName("body")[0].style.backgroundImage = "url(img/Mast800.jpg)";
	else if(width<=1536&&height<=1024) document.getElementsByTagName("body")[0].style.backgroundImage = "url(img/Mast1024.jpg)" ;
	else if(width<=1680&&height<=1120) document.getElementsByTagName("body")[0].style.backgroundImage = "url(img/Mast1680.jpg)" ;
	else if(width<=1920&&height<=1280) document.getElementsByTagName("body")[0].style.backgroundImage = "url(img/Mast1920.jpg)" ;
	else document.getElementsByTagName("body")[0].style.backgroundImage = "url(../img/mast.jpg)";
	
	if(navigator.appName != "Microsoft Internet Explorer"){
		document.getElementsByTagName("body")[0].style.overflow = "scroll";
	}
	else{
		var BVersion = navigator.userAgent.toLowerCase();
		if (BVersion.indexOf("msie 7")>-1){}
		else if (BVersion.indexOf("msie 6")>-1){
			for(var i=1; i<=7; i++){
				if(i==glu2) window.document.getElementById("glu"+i).src = "img/glu2i.jpg";
				else window.document.getElementById("glu"+i).src = "img/glu1i.jpg";
			}
			window.document.getElementById("glu8").src = "img/glu3i.jpg";
		}
		
	}
}
