    //Frameset check
    //var ZielDatei = "/home/de/html/index.phtml?url=" + window.location;
    
	//start
	
	var ZielDatei = "/home/de/html/index.phtml?url=" + window.location.pathname + window.location.search;

    var old_onerror = window.onerror;
    window.onerror = reloadTop;
    if (!top.FramesetGeladen || top.location.protocol != window.location.protocol) {
        top.location.replace(ZielDatei);
    }
    window.onerror = old_onerror;

    function reloadTop() {
    	top.location.replace(ZielDatei);
	return true;
    }
    
	//end
    //prueft ob der topframe geladen ist
    var aktiv;
    function SetTopMenu(x,y){
        
        //top.mainrubrik=x;
        //top.subrubrik=y;
        
        if(parent.topStatus){
            parent.topFrame.UpdateTopMenu(x,y);
            window.clearTimeout(aktiv);
        }else{
            aktiv = window.setTimeout("SetTopMenu(" + x + "," + y + ")",100);
        }
    }
	
    
    // ************** Start Browsercheck **************
    function BrowserCheck() {
        this.NS = document.layers;
        this.NS6 = (!document.all && document.getElementById)
        this.IE = document.all;
    }
    is = new BrowserCheck();

    // ************** Image Allgemein **************
    function preload(imageObj,imageSrc) {
        if (document.images) {
            eval(imageObj+' = new Image();');
            eval(imageObj+'.src = "'+imageSrc+'";');
        }
    }

    function changeImage(imageName,imageObj) {
        if (document.images) {
            document.images[imageName].src = eval(imageObj+".src");
        }
    }
    
    //Layer
    function vSwitch(LayerName,aBool) {
        if(is.NS) { document.layers[LayerName].visibility = (aBool == 0) ? 'hide' : 'show'; }
        if(is.IE) { document.all[LayerName].style.visibility = (aBool == 0) ? "hidden" : "visible"; }
        if(is.NS6) { document.getElementById(LayerName).style.visibility= (aBool == 0) ? "hidden" : "visible"; }
    }
    
    function writeLayer(LayerName,LayerInhalt) {
        if (is.NS) { document.layers[LayerName].document.open(); document.layers[LayerName].document.write(LayerInhalt); document.layers[LayerName].document.close();}
        if (is.IE) {document.all[LayerName].innerHTML = LayerInhalt;}
        if (is.NS6) {document.getElementById(LayerName).innerHTML = LayerInhalt;}
        vSwitch(LayerName,1)
    }
	

// Dies ist das neue Script, wenn die Projekte dynamisch generiert werden:
function projektmenue(id){
    if (document.forms[0].elements[id].options[document.forms[0].elements[id].selectedIndex].value != "0") {
    	var myUrl = document.forms[0].elements[id].options[document.forms[0].elements[id].selectedIndex].value;
        if(myUrl.toLowerCase().indexOf('http')!=-1){
            window.open(myUrl); 
        }else{
            document.location=myUrl;
        }
    }
}


function openPopup(url, name, parameter){
	 pop = window.open(url, name, parameter);
     pop.focus();
}

function popup(url) {
    if (url == "/popup/de/html/fs_popup.html?eshop") {
		// var eShop_Window liegt in fs_root.html
        if (top.eShop_Window == "not_yet_loaded") {
            top.eShop_Window = "loaded_once";
            // bewirkt, dass das eshop-PopUp nur ein einziges Mal pro Sitzung angezeigt wird
            pop = window.open(url,"popup","width=461,height=401,resizable=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no");
            pop.focus();
        }
  	} else if(url == "/popup/de/html/fs_popup.html?tvspot") {
		// var tvspot_Window liegt in fs_root.html
        if (top.tvspot_Window == "not_yet_loaded") {
            top.tvspot_Window = "loaded_once";
            // bewirkt, dass das tvspot-PopUp nur ein einziges Mal pro Sitzung angezeigt wird
            pop = window.open(url,"popup","width=461,height=401,resizable=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no");
            pop.focus();
		} 
  	} else if(url == "/popup/de/html/fs_popup_xmas.html?xmas") {
		// var xmas_Window liegt in fs_root.html
        if (top.xmas_Window == "not_yet_loaded") {
            top.xmas_Window = "loaded_once";
            // bewirkt, dass das xmas-PopUp nur ein einziges Mal pro Sitzung angezeigt wird
            pop = window.open(url,"popup","width=550,height=480,resizable=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no");
            pop.focus();
		}  
	}  else {
        pop = window.open(url,"popup","width=461,height=401,resizable=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no");
        pop.focus();
    }
} 

function popup_baustelle(url,name,w,h,s) {
neu = window.open(url,name,w,h,s,'marginwidth=0,marginheight=0,resizable=0,status=0,toolbar=0,menubar=0,location=0');
neu.focus();              
}

function popupZoom(url) {
        pop = window.open(url,"popup","width=461,height=401,resizable=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no");
        pop.focus();
}

function popupFanshop(url) {
        pop = window.open(url,"popup","width=461,height=523,resizable=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no");
        pop.focus();
}

/* Skripte zur Unterscheidung, ob man ausserhalb der USA wohnt. Zur Zeit nicht genutzt.

function setCountryIR(country) {
   	top.countryIR = country; 
	if ( top.countryIR != 'USA' && top.countryIR != '') {
        location.href = 'cont_company_ir_start.html';
    } else { 
        location.href = 'cont_company_ir_usa.html';
    }
}

function selectIR() {
    if (top.countryIR == "not_yet_loaded") {
    	location.href = '/company/de/html/cont_company_ir.html';
    }else if (top.countryIR == "USA") {
    	location.href = '/company/de/html/cont_company_ir_usa.html';
    }else {
    	location.href = '/company/de/html/cont_company_ir_start.html';
    }
}

function setCountryPress(country) {
   	top.countryIR = country; 
	if ( top.countryIR != 'USA' && top.countryIR != '') {
        location.href = '/internet/steuerung/de/pressem_deutsch.html';
    } else { 
        location.href = 'cont_company_presse_usa.html';
    }
}
function selectPress() {
    if (top.countryIR == "not_yet_loaded") {
    	location.href = '/company/de/html/cont_company_presse.html';
    }else if (top.countryIR == "USA") {
    	location.href = '/company/de/html/cont_company_presse_usa.html';
    }else {
    	location.href = '/internet/steuerung/de/pressem_deutsch.html';
    }
}*/


/****************************  PlugIn-Check fuer Flash *****************************/
/****************************  Aufruf über Funktion weiter()  **********************/
		/*function weiter(urlFlash, urlNoFlash) {
			if ( isFlash()) {
				document.location.href=urlFlash; // Link auf neue Seite mit Flash
			} else {
		        document.location.href=urlNoFlash; // Link auf neue Seite mit HTML		       
			}
		}*/
		
		function isFlash(ver, subver) {
			// gueltig ist alles ueber Version 7.0
		    //wert = false;
			var hasCorrectVersion = DetectFlashVer(ver, subver);
			if ( hasCorrectVersion != true ) {
				wert = false;
			} else {
		        wert = true;
			}
			//alert(wert); 
			return wert;
		}		
		
		///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		// If called with no parameters this function returns a floating point value 
		// which should be the version of the Flash Player or 0.0 
		// ex: Flash Player 6r65 returns 6.65
		// If called with reqMajorVer, reqMinorVer this function returns true if that version or greater is installed
		function DetectFlashVer(reqMajorVer, reqMinorVer) 
		{
		      reqVer = parseFloat(reqMajorVer + "." + reqMinorVer);
		      	// loop backwards through the versions until we find the newest version   
				// Zukunftssicher bis Version 25 von Flash...   
				 for (i=25;i>0;i--) { 
					if (isIE && isWin && !isOpera) {;
		                  versionStr = VBGetSwfVer(i);
						  // nur IE
						 // alert("IE " + versionStr)
		            } else {
		                  versionStr = JSGetSwfVer(i);
						  // Mozilla Firefox Netscape
						  //alert("Netscape, Mozilla, Firefox " + versionStr)
		            }
		            if (versionStr == -1) {
							return false;
					  } else if (versionStr != 0) {
		                  if(isIE && isWin && !isOpera) {
		                        tempArray = versionStr.split(" ");
		                        tempString = tempArray[1];
		                        versionArray = tempString .split(",");
		                        
		                        versionMajor = versionArray[0];
		                        versionMinor   = versionArray[2];
		                        
		                        versionString = versionMajor + "." + versionMinor;
		                        versionNum = parseFloat(versionString);
		                  } else {
		                         versionNum = versionStr;
		                  }
						  return (versionNum >= reqVer ? true : false );            
		            }
		      }
		      
		      return (reqVer ? false : 0.0);
		}
		
		
		// Detect Client Browser type
		var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
		var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
		var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
		
		// JavaScript helper required to detect Flash Player PlugIn version information
		function JSGetSwfVer(i){
		      // NS/Opera version >= 3 check for Flash plugin in plugin array
		      if (navigator.plugins != null && navigator.plugins.length > 0) {
		            if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
		                  var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
		                        var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
		                        descArray = flashDescription.split(" ");
		                        tempArrayMajor = descArray[2].split(".");
		                        versionMajor = tempArrayMajor[0];
		                  if ( descArray[3] != "" ) {
		                        tempArrayMinor = descArray[3].split("r");
		                  } else {
		                        tempArrayMinor = descArray[4].split("r");
		                  }
		                        versionMinor = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
		                        flashVer = parseFloat(versionMajor + "." + versionMinor);
		            } else {
		                  flashVer = -1;
		            }
		      }
		      // MSN/WebTV 2.6 supports Flash 4
		      else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
		      // WebTV 2.5 supports Flash 3
		      else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
		      // older WebTV supports Flash 2
		      else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
		      // Can't detect in all other cases
		      else {
		            
		            flashVer = -1;
		      }
		      return flashVer;
		}
		
		
		
	 
/************************************************************************************************************/
