function checkBrowser()
{
        this.ver = navigator.appVersion;
        this.dom = document.getElementById?1:0;
        this.ie7 = (this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
        this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
        this.ie55 = (this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?1:0;
        this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
        this.ie4 = (document.all && !this.dom)?1:0;
        this.ns5 = (this.dom && parseInt(this.ver) >= 5) ?1:0;
        this.ns4 = (document.layers)?1:0;
        this.bw  = (this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ie55);
        this.os  = (this.ver.indexOf("Macintosh")>-1)? "mac":"pc";
        this.ie  = (this.ie5 || this.ie4 || this.ie55 || this.ie6 || this.ie7);
        this.ns  = (this.ns4 || this.ns5);
        this.win = (this.ver.indexOf("Win")>-1) ? 1:0;
        this.mac = (this.ver.indexOf("Mac")>-1) ? 1:0;
        this.lin = ((this.ver.indexOf("Lin")>-1) || (this.ver.indexOf("X11")>-1)) ? 1:0;
        return this;
}

var is = new checkBrowser();



	function changeBgOver(obj) {
		obj.style.backgroundColor = '#999933';
		obj.style.color = '#ffffff';
	}
	
	function changeBgOut(obj) {
		obj.style.backgroundColor = '#efefef';
		obj.style.filter = '';
		obj.style.color = '#000000';
	}

	function wOpen (Adresse) {
  		newWindow = window.open(Adresse, "", "");
  		newWindow.focus();
	}

	function goto (Adresse) {
  		window.location.href = Adresse;
	}


	menu_anz = 4;

	function hideAll(){
		for (i=1; menu_anz+1 > i; i++) {
			if (document.getElementById){
				// Unterstützt DOM
				document.getElementById('menu'+ eval(i)).style.visibility = 'hidden';
			}
			else {
				// Unterstützt kein DOM
				if ( eval('document.all.menu' + i)) eval('document.all.menu' + i).style.visibility = 'hidden';
			}
		}
		document.getElementById('menu1g').src = '/image/menu1i.gif'; 
		document.getElementById('menu2g').src = '/image/menu2i.gif'; 
		document.getElementById('menu3g').src = '/image/menu3i.gif'; 
		document.getElementById('menu4g').src = '/image/menu4i.gif'; 
	}
	
	function show(id){
			hideAll();
			
			if (document.getElementById) {
				document.getElementById(id).style.visibility='visible';
			}
			else{
				eval('document.all.' + id + '.style.visibility="visible"' );
			}
	}
	
function getIncludes() {
	if (window.XMLHttpRequest) { // Mozilla, Safari, ...
		xmlhttp_Navigation = new XMLHttpRequest();
	} else if (window.ActiveXObject) { // IE
		xmlhttp_Navigation = new ActiveXObject("Microsoft.XMLHTTP");
	}				
	xmlhttp_Navigation.open("Get", "/includes/navigation_main.asp", true);
	xmlhttp_Navigation.onreadystatechange=writeHTTPRequest_getNavigation;
	xmlhttp_Navigation.send(null);	

	if (window.XMLHttpRequest) { // Mozilla, Safari, ...
		xmlhttp_Navigation2 = new XMLHttpRequest();
	} else if (window.ActiveXObject) { // IE
		xmlhttp_Navigation2 = new ActiveXObject("Microsoft.XMLHTTP");
	}				
	xmlhttp_Navigation2.open("Get", "/includes/navigation_footer.asp", true);
	xmlhttp_Navigation2.onreadystatechange=writeHTTPRequest_getNavigation2;
	xmlhttp_Navigation2.send(null);	

	if (window.XMLHttpRequest) { // Mozilla, Safari, ...
		xmlhttp_KeyVisual = new XMLHttpRequest();
	} else if (window.ActiveXObject) { // IE
		xmlhttp_KeyVisual = new ActiveXObject("Microsoft.XMLHTTP");
	}				
	xmlhttp_KeyVisual.open("Get", "/includes/getKeyVisual.asp", true);
	xmlhttp_KeyVisual.onreadystatechange=writeHTTPRequest_getKeyVisual;
	xmlhttp_KeyVisual.send(null);			
	
	//if (window.XMLHttpRequest) { // Mozilla, Safari, ...
	//	xmlhttp_ShopBox = new XMLHttpRequest();
	//} else if (window.ActiveXObject) { // IE
	//	xmlhttp_ShopBox = new ActiveXObject("Microsoft.XMLHTTP");
	//}				
	//xmlhttp_ShopBox.open("Get", "includes/getShopBox.asp", true);
	//xmlhttp_ShopBox.onreadystatechange=writeHTTPRequest_getShopBox;
	//xmlhttp_ShopBox.send(null);
	
}

loaded = 0;

function writeHTTPRequest_getShopBox(){
	
	if (xmlhttp_ShopBox.readyState==4)
	{
		if (xmlhttp_ShopBox.status==200){
			//document.getElementById("shopbox").innerHTML = xmlhttp_ShopBox.responseText;
			//document.getElementById("shopbox").style.visibility='visible';
			loaded = loaded + 1;
			showScreen();
		} else { }
	}
}

function writeHTTPRequest_getNavigation(){
	
	if (xmlhttp_Navigation.readyState==4)
	{
		if (xmlhttp_Navigation.status==200){
			document.getElementById("menu").innerHTML = xmlhttp_Navigation.responseText;
			loaded = loaded + 1;
			showScreen();			
		} else { }
	}
}

function writeHTTPRequest_getNavigation2(){
	
	if (xmlhttp_Navigation2.readyState==4)
	{
		if (xmlhttp_Navigation2.status==200){
			document.getElementById("navi_footer").innerHTML = xmlhttp_Navigation2.responseText;
			loaded = loaded + 1;
			showScreen();			
		} else { }
	}
	
}

function writeHTTPRequest_getKeyVisual(){
	
	if (xmlhttp_KeyVisual.readyState==4)
	{
		if (xmlhttp_KeyVisual.status==200){
			document.getElementById("keyvisual").innerHTML = xmlhttp_KeyVisual.responseText;
			loaded = loaded + 1;
			showScreen();			
		} else { }
	}
}

function showScreen(){
	//if (loaded > 0) {
		
		document.getElementById("workscreen").style.visibility='visible';
		if (document.getElementById('footerreflection_extended')) {
			document.getElementById('footerreflection').className = 'reflactiv';
		};
	//}
}



