    //Frameset check
   /*var ZielDatei = "/home/ch/html/fs_root.html?url=" + window.location;

    if (!top.FramesetGeladen){
        top.location.replace(ZielDatei); 
    }*/
    
    //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)
    }
/*	Altes Script
	function projektmenue() {
	    var Wert = document.ProjektMenue.projektmenueTargets.selectedIndex;
	    if (Wert == 1) {
			location.href="/projects/de/html/cont_tapeten_wischtechnik_start.html";
	    } else if (Wert == 2) {
	        location.href="/projects/de/html/cont_tapeten_holzschutz_start.html";
	    } else if (Wert == 3) {
	        location.href="/projects/de/html/cont_baustoffe_infrarotkabine_start.html";
	    } else if (Wert == 4) {
	        location.href="/projects/de/html/cont_baustoffe_zwischenwaende_start.html";
	    } else if (Wert == 5) {
	        location.href="/projects/de/html/cont_baustoffe_dachdaemmung_start.html";
	    } else if (Wert == 6) {
	        location.href="/projects/de/html/cont_baustoffe_sonnenschutz_start.html";
	    } else if (Wert == 7) {
	        location.href="/projects/de/html/cont_baustoffe_vollwaerme_start.html";
	    } else if (Wert == 8) {
	        location.href="/projects/de/html/cont_baustoffe_sauna_start.html";
		} else if (Wert == 9) {
	        location.href="/projects/de/html/cont_baustoffe_laminat_start.html";
	    } else if (Wert == 10) {
	        location.href="/projects/de/html/cont_fliesen_boden_start.html";
	    } else if (Wert == 11) {
	        location.href="/projects/de/html/cont_fliesen_wand_start.html";
	    } else if (Wert == 12) {
	        location.href="/projects/de/html/cont_garten_aquarium_start.html";
	    } else if (Wert == 13) {
	        location.href="/projects/de/html/cont_garten_gartenteich_start.html";
	    }
	}
*/
	

// Dies ist das neue Script, wenn die Projekte dynamisch generiert werden:
function projektmenue(){
    if (document.ProjektMenue.projektmenueTargets.options[document.ProjektMenue.projektmenueTargets.selectedIndex].value != "0") {
    	location.href = document.ProjektMenue.projektmenueTargets.options[document.ProjektMenue.projektmenueTargets.selectedIndex].value
    }                       
}

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 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();
}

/****************************  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;
		}
		
		
		
	 
/************************************************************************************************************/
