    //Frameset check
    var ZielDatei = "/home/lu/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 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();
}
