// copyright 2000 Aperto Multimedia GmbH
// Version 0.0

	function PlattformCheck() {
		var p = (navigator.platform).toLowerCase().indexOf("mac");
		if (p>=0) { this.p = "mac" ; }
		else if (p<=-1) { this.p = "win" ; }
		this.mac = (this.p=="mac") ;
		this.win = (this.p=="win") ;
		this.min = (this.mac||this.win) ;
	}
	plattform = new PlattformCheck();

		function BrowserCheck() {
		var b = navigator.appName;
		if (b=="Netscape") { this.b = "ns" ;}
		else if (b=="Microsoft Internet Explorer") { this.b = "ie" ; }
		else { this.b = b ; }
		this.version = navigator.appVersion;
		this.v = parseInt(this.version);
		this.ns = (this.b=="ns" && this.v>=4);
		this.ns4 = (this.b=="ns" && this.v==4);
		this.ns6 = (this.b=="ns" && this.v==5);
		this.ie = (this.b=="ie" && this.v>=4);
		this.ie4 = (this.version.indexOf('MSIE 4')>0);
		this.ie5 = (this.version.indexOf('MSIE 5')>0);
		this.min = (this.ns||this.ie);
	}
	browser = new BrowserCheck();

	var css_path = "../../../css/" ;
	
	if (browser.ns && plattform.win){	css_path += "global.css";	}		
	else if (browser.ie && plattform.win){	css_path += "global_ie.css";	}	
	else if (browser.ns && plattform.mac){	css_path += "global_mac.css";	}	
	else if (browser.ie && plattform.mac){	css_path += "global_mac_ie.css";	}	
		
	document.writeln("<link rel='STYLESHEET' type='text/css' href="+css_path+">")
	

	function getWinWidth() {
  		if (document.layers){
    		   return(window.innerWidth);
			}
  		else if (browser.ie){
                   return(document.body.offsetWidth)-2;
                        }
        else if (browser.ns6){
    		return(null);
		}
	}
	
	function getLayer(name) {
  		if (document.layers){
    		return(document.layers[name]);
		}
  		else if (document.all) {
    		layer = eval('document.all.' + name + '.style');
    		return(layer);
  		}
  		else if (document.getElementByID) {
    		return(null);
		}
	}
		
   
		
 //Funktion zum Ein- und Ausblenden der Roll-over-Bilder
	function over(item,number,sprache){
		
		var bild = item+"_"+number ;
		document[bild].src="../../../IMAGES/"+sprache+"/"+bild+"_2.gif" ;
	}
	
	
	function out(item,number,sprache){
		var bild = item+"_"+number ;
		document[bild].src="../../../IMAGES/"+sprache+"/"+bild+"_1.gif" ;
	}
	
	
    window.onresize = doresize;
	function doresize()
        {
	var leftspace=(getWinWidth()-761)/2;
		if(getWinWidth()>828)
                 {
                  }
	}
	


 	function openup(datei, fenster, groesse)  {
		var Win=window.open(datei,fenster,groesse);
		if(Win.closed!=true){
			Win.focus();	
		}
	}

