// 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);
                }
        }

    var imgpath = '../../IMAGES/';
 //Funktion zum Ein- und Ausblenden der Roll-over-Bilder
        function over(item,number,sprache){

                var bild = item+"_"+number ;
                document[bild].src=imgpath+sprache+"/"+bild+"_2.gif" ;
        }


        function out(item,number,sprache){
                var bild = item+"_"+number ;
                document[bild].src=imgpath+sprache+"/"+bild+"_1.gif" ;
        }


    window.onresize = doresize;
 //Wird nicht gebraucht und macht daher gar nichts;
 //Könnte gebraucht werden, wenn Layer onload positioniert werden sollen;
        function doresize()
        {
        var leftspace=(getWinWidth()-761)/2;
                if(getWinWidth()>828)
                 {
                  }
        }

// Rollover-Bilder vorladEN// Aufruf: preloadImages('sprachversion')

        function preloadImages (sprache)
        {
        var sprache = sprache + "/";
        if (document.images)
                {

                var preloaded_oben = new Array(4);
                for (i=1;i<5;i++)
                        {
                        preloaded_oben[i] = new Image();
                        preloaded_oben[i].src = imgpath + sprache + "oben_" + i + "_2.gif";
                        //alert(preloaded_oben[i].src);
                        }

                var preloaded_unten = new Array(6);
                for (i=1;i<7;i++)
                        {
                        preloaded_unten[i] = new Image();
                        preloaded_unten[i].src = imgpath + sprache + "unten_" + i + "_2.gif";
                        //alert(preloaded_unten[i].src);
                        }

                }
        }


         function openup(datei, fenster, groesse)  {
                var Win=window.open(datei,fenster,groesse);
                if(Win.closed!=true){
                        Win.focus();
                }
        }

        function openpage(datei, fenster)  {
            var Win=window.open(datei,fenster,'width=710,height=580,left=31,top=20,scrollbars=1,resizable=1');
                if(Win.closed!=true){
                        Win.focus();
                }
        }




 