	var isNS4;
	var isIE4;
	var isIE5;
	var isNS6;
	var isDOM;

	function browdet(){
		isIE4 = (document.all && !document.getElementById) ? true : false;
		isIE5 = (document.all && document.getElementById) ? true : false;
		isNS6 = (!document.all && document.getElementById) ? true : false;
		isDOM = (isIE5 || isNS6) ? true:false;
		if (isIE4==false&&isIE5==false&&isNS6==false&&isDOM==false){
		isNS4 = true;
		}
		return;
	}

	browdet();

	function weiter(param){
	neu_country = "index.php?country="+param;
	document.location.href=neu_country;
	}


	function jobweiter(param){
		if (param != ""){
			neu_job = param+"/index.php";
			document.location.href=neu_job;
		}
		return;

	}

	function jobweiter2(param){
		if (param != ""){
			neu_job = "./result.php?job_directory="+param;
			document.location.href=neu_job;
		}
		return;

	}

	function ansprechweiter(param){
	neu_clerk = "index.php?clerk="+param;
	document.location.href=neu_clerk;
	}

	function map(town){
	mapwin = window.open("../mappopup.php?town="+town,"mapwin","toolbar=yes,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=691,height=482");
	}

	function popup(url,name,w,h,d){
	//alert(url);
	//alert(name);
	//alert("w "+w);
	//alert("h "+h);
	//alert("d "+d);
	contentwin = window.open("/inet_superglobal/php/contentpopup.php?url="+url+"&w="+w+"&h="+h+"&d="+d,"contentwin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width="+w+",height="+h+"");
	}
	function popup2(url,name,w,h,d, link){
	contentwin = window.open("/inet_superglobal/php/contentpopup.php?url="+url+"&w="+w+"&h="+h+"&d="+d+"&link="+link,"contentwin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width="+w+",height="+h+"");
	}
  function riesenpopup(){
	riesenwin = window.open("/de/brand/riesen/riesen_promo/start.php","riesenwin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=700,height=450");
	}
	function mercipopup(){
	merciwin = window.open("/de/brand/merci/merci_info/start.html","merciwin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=700,height=450");
	}
	function mercinlpopup(){
	mercinlpromo = window.open("/nl/brand/merci/moederdag/a10000.php","mercinlmoederdag","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=1000,height=652");
	}
	
	function merci_ch_de_popup(){
	mercinlpromo = window.open("/de/brand/merci/promo/","merci_ch_de_muttertag_promo","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=1000,height=651");
	}
	
	function merci_ch_fr_popup(){
	mercinlpromo = window.open("/fr/brand/merci/promo/","merci_ch_fr_muttertag_promo","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=1000,height=651");
	}		
	
	function mercichpopup(lang){
	mercichwin = window.open("http://www.storck.ch/promo/index.php?lang="+lang,"mercichwin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=982,height=646");
	}

	
	function minigwpopup(){
zuckerwin = window.open("http://www.storck.com/de/brand/nimm2/promo/start.php","zuckerwin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=700,height=450");
	}
	function nimm2atpopup(){
	nimmwin = window.open("http://www.storck.at/de/nimm2popup.php","nimmwin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=700,height=450");
	}
	function trivialpursuitpopup(){
	nimmwin = window.open("http://trivialpursuit.storck.se/","trivwin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=986,height=562");
	}
    
    
function openMerciUsPopup() {
    var win=window.open("http://www.storck.us/en/merci_popup/index.html", "_blank", "width=875,height=560,status=no,scrollbars=no,resizable=no");
    win.focus();
    return false;        
}    

	function minispopup(){
	zuckerwin = window.open("/de/brand/promo/start.php","zuckerwin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=700,height=450");
	}

	function petitpopup(){
	petitwin = window.open("/de/brand/merci/promo/start.php","petitwin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=700,height=450");
	}
	
	function toffifeeatpopup(){
	toffatwin = window.open("/de/brand/promo/index.php","toffatwin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=700,height=451");
	}
        
	function werthersdepopup(){
	wertherswin = window.open("/de/brand/popup/index.php","wertherswin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=700,height=450");
	}
	
	function goldpopup(){
	goldwin = window.open("/de/gold/index.html","riesenwin","toolbar=no,status=no,scrollbars=yes,resizable=no,location=no,menubar=no,directories=no,width=530,height=600");
	}
	
	function fabpopup(url,name,width,height){
		if (navigator.userAgent.indexOf('MSIE') != -1){
		//width = width+16;
		height = height-3;
		}
		fabwin = window.open(url,name,"toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width="+width+",height="+height);
	}
	
	function homepopup(url){
	homewin = window.open( url,"homewin","toolbar=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no,directories=no,width=700,height=450");
	}
	
	function merci_at_lightbox() {
	  swfobject.embedSWF("/inet_superglobal/flash/storckVideoPlayer.swf", "movie_player", "991", "540", "9", false, {videoPath: "/de/Merci_Schokolade_22_1.flv", videoWidth: 991, videoHeight: 540 }, {quality : 'high', salign : 'LT', bgcolor : '#FFFFFF', allowscriptaccess: 'always'}, {});
	  $('#movie_player').css({position: 'absolute', 'z-index': '2000', 'left' : '14px', 'top' : '70px'});
	}
	function movie_lightbox(path, width, height) {
	  swfobject.embedSWF("/inet_superglobal/flash/storckVideoPlayer.swf", "movie_player", width, height, "9", false, {videoPath: path, videoWidth: width, videoHeight: height }, {quality : 'high', salign : 'LT', bgcolor : '#FFFFFF', allowscriptaccess: 'always'}, {});
	  $('#movie_player').css({position: 'absolute', 'z-index': '2000', 'left' : '16px', 'top' : '70px'});
	}
	function closeVideoPlayer() {
    $('#movie_player').replaceWith('<div id="movie_player"></div>');
  }

