/*
 * 
 * ACHTUNG
 * Zeichenkodierung: iso-8859-1
 * 
 */



// JS-Include mit Do-MarktID laden
date 		= new Date();
date_string = date.getFullYear().toString() + (date.getMonth()+1).toString() + date.getDate().toString();

var scriptElem = document.createElement('script');
scriptElem.type = 'text/javascript';
scriptElem.src = '/script/we_knueller/maerkteDo.inc.js?'+date_string;
var head = document.getElementsByTagName('head')[0];
if( head ) head.appendChild( scriptElem );
//*****************************


// StartUp Jobs
window.onload = function ()
{
	createMarktInfo();
		
	if (typeof(window.regionsTeaserCheck) == 'function')
	{
		regionsTeaserCheck();
	}
	
	// Anpassung der Öffnungszeiten über Karneval
	// setOpeningTimesInformation();
}

// Anpassung der Öffnungszeiten über Karneval
function setOpeningTimesInformation() {
	if (document.getElementById('openingTimes01')) {
		//if (typeof marktID == 'number' && isNaN(marktID) === false && marktID == 1000000020) {	// TESTING
			var infoText = '&Ouml;ffnungszeiten: Hinweise am Markt beachten.';
			document.getElementById('openingTimes01').innerHTML = infoText;
		//}																						// TESTING
	}	
}

var marktID	= false;

function createMarktInfo() {
	marktID 	= getmktcookie();
	marktID		= parseInt(marktID);
	
	if (typeof marktID == 'number' && isNaN(marktID) === false) {
		if (document.getElementById('rewe_markt'))
		{
			var elem		= document.getElementById('rewe_markt');
			elem.innerHTML	= '<iframe x="y" src="/mein-markt/php/getMarktInfo.php?marktID='+marktID+'" scrolling="no" frameborder="0" style="border: 0px none; background-color: transparent; width: 340px; height: 80px; overflow: hidden;" allowtransparency="true"></iframe>';	
		}
	} else {
		if (document.getElementById('rewe_markt')) {
			var elem 		= document.getElementById('rewe_markt');
			elem.innerHTML 	= '<div id="marktsuche_2"><div class="btn-marktsuche typeFace-button"><a href="http://www.rewe.de/index.php?id=marktsuche" title="Markt suchen">Markt suchen</a></div></div>';
		}
	}
}

function checkMarktfinder(x) {
	if (IsNumeric(x)) {
		if(x.length>5){
			alert('PLZ eingabe darf nicht mehr als 5 Zeichen betragen!');
		} else if (x.length==0) {
			alert('PLZ eingabe darf nicht leer sein!');
		} else {
			//window.open('http:\/\/213.144.6.110/rewe/searchAddress.do?plz='+x,'marktsuchepopup','top=100,left=100,width=650,height=500,scrollbars=yes,resizable=no');
			window.open('http:\/\/www.etracker.de/rdirect.php?et=qbxUKb&et_cid=56&et_lid=439&et_sub='+x+'&et_url=http:\/\/213.144.6.110/rewe/searchAddress.do?plz='+x,'marktsuchepopup','top=100,left=100,width=650,height=500,scrollbars=yes,resizable=no');
		}
	} else {
		stadt=x.replace('ö','oe');
		stadt=stadt.replace('ü','ue');
		stadt=stadt.replace('ä','ae');
		stadt=stadt.replace('Ö','Oe');
		stadt=stadt.replace('Ü','Ue');
		stadt=stadt.replace('Ä','Ae');
		stadt=stadt.replace('ß','ss');
		//window.open('http:\/\/213.144.6.110/rewe/searchAddress.do?ort='+stadt,'marktsuchepopup','top=100,left=100,width=650,height=500,scrollbars=yes,resizable=no');
		window.open('http:\/\/www.etracker.de/rdirect.php?et=qbxUKb&et_cid=56&et_lid=439&et_sub='+stadt+'&et_url=http:\/\/213.144.6.110/rewe/searchAddress.do?ort='+stadt,'marktsuchepopup','top=100,left=100,width=650,height=500,scrollbars=yes,resizable=no');
	}
	return false;
}

function IsNumeric(sText) {
   var ValidChars = "0123456789";
   var IsNumber=true;
   var Char;
 
   for (i = 0; i < sText.length && IsNumber == true; i++) { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) {
         IsNumber = false;
      }
   }
   return IsNumber;
}


hTime="";
h_id="";
s_id="";
l_id="";
ms1b="";
SLNameOld="";
closeClick="";

function SetLayer(LName,funct,wert){
	if (hTime!=""){
		window.clearTimeout(hTime);
	}
	if (document.getElementById){
		var newLayer = document.getElementById(LName).style;
		newLayer[funct]=wert;
	}
}

function SetLayer2(LName,funct,wert){
	if (document.getElementById){
		var newLayer = document.getElementById(LName).style;
		newLayer[funct]=wert;
	}
}

function SetLayer3(LName,funct,wert){
	if (document.getElementById){
		var newLayer = document.getElementById(LName);
		newLayer[funct]=wert;
	}
}

function closelayer(){
	document.getElementById("flashfilm").innerHTML="<br />";
	document.getElementById("flashfilm").className="flashLeer";
	SetLayer2('flashfilm','visibility','hidden');
}

function setElement(eID,ifStyle,funct,wert){
	if (document.getElementById){
		if (ifStyle == 1){
			var newElement = document.getElementById(eID).style;
		}
		else {
			var newElement = document.getElementById(eID);
		}
		newElement[funct] = wert;
	}
}

// Deutschlandkarte Kontaktformulare
function MM_swapImgRestore2(val) { //v3.0
	
		if(document.getElementById('region').value==56){
			document.getElementById('IMAGE').src='image/g_deutschlandkarte_suedost.png';
		}
		if(document.getElementById('region').value==55){
			document.getElementById('IMAGE').src = 'image/g_deutschlandkarte_suedwest.png';
		}
		
		if(document.getElementById('region').value==54){
			document.getElementById('IMAGE').src ='image/g_deutschlandkarte_mitte.png';
		}
		
		if(document.getElementById('region').value==53){
			document.getElementById('IMAGE').src = 'image/g_deutschlandkarte_west.png';
		} 
		
		if(document.getElementById('region').value==51){
			document.getElementById('IMAGE').src = 'image/g_deutschlandkarte_nordwest.png';
		}
		
		if(document.getElementById('region').value==52){
			document.getElementById('IMAGE').src = 'image/g_deutschlandkarte_ost.png';
		}
		if(document.getElementById('region').value==''){
			
			document.getElementById('IMAGE').src = 'image/g_platzhalter.png';
		}
}

function MM_swapImgRestore() { //v3.0
	
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
	
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function cfRegion(a,b){
	if(a!='') { document.getElementById('kundenregion').value = a; }
	if(b!='') { document.getElementById('region').value = b; }
}

function checkRecieptCategory() {
	for (i = 0; i < document.forms['rezepte_kat'].kid.length; ++i)
	if (document.forms['rezepte_kat'].kid.options[i].selected == true)
	window.location.href = document.forms['rezepte_kat'].kid.options[i].value;
}

function checkRecieptFilterEiweiss() {
	for (i = 0; i < document.forms['rezepte_filter'].eiweiss.length; ++i)
	if (document.forms['rezepte_filter'].eiweiss.options[i].selected == true)
	window.location.href = document.forms['rezepte_filter'].eiweiss.options[i].value;
}

function checkRecieptFilterFett() {
	for (i = 0; i < document.forms['rezepte_filter'].fett.length; ++i)
	if (document.forms['rezepte_filter'].fett.options[i].selected == true)
	window.location.href = document.forms['rezepte_filter'].fett.options[i].value;
}

function checkRecieptFilterEnergie() {
	for (i = 0; i < document.forms['rezepte_filter'].energie.length; ++i)
	if (document.forms['rezepte_filter'].energie.options[i].selected == true)
	window.location.href = document.forms['rezepte_filter'].energie.options[i].value;
}

function checkRecieptFilterSort() {
	for (i = 0; i < document.forms['rezepte_sort'].sort.length; ++i)
	if (document.forms['rezepte_sort'].sort.options[i].selected == true)
	window.location.href = document.forms['rezepte_sort'].sort.options[i].value;
}

function checkRecieptFilterKohlenhydrate() {
	for (i = 0; i < document.forms['rezepte_filter'].kohlenhydrate.length; ++i)
	if (document.forms['rezepte_filter'].kohlenhydrate.options[i].selected == true)
	window.location.href = document.forms['rezepte_filter'].kohlenhydrate.options[i].value;
}

function checkRecieptArchive() {
	for (i = 0; i < document.forms['rezepte_archiv'].rid.length; ++i)
	if (document.forms['rezepte_archiv'].rid.options[i].selected == true)
	window.location.href = document.forms['rezepte_archiv'].rid.options[i].value;
}

function PrintPage() { 
	var sOption="toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width=660,height=580,left=100,top=25"; 

	var sWinHTML = document.getElementById('content').innerHTML;
	var strBereich = document.title;
	var strBodyClass = document.body.className;
	var strBodyId = document.body.id;
      
	var winprint=window.open("","",sOption); 
       winprint.document.open(); 
       winprint.document.write('<html><title>' + document.title + '</title><link rel="stylesheet" href="/style/typo3cache.css" type="text/css"><link rel="stylesheet" href="/style/rewe09.css" type="text/css"><link rel="stylesheet" href="style/rewe_print.css" type="text/css"><body id="'+strBodyId+'" class="'+strBodyClass+'" onload="window.print();">'); 
       winprint.document.write('<div style="position: relative; z-index: 10;"><img src="image/head_drucken.png" width="640" height="80" border="0"><br>');
       //winprint.document.write('<div id="infoDiv" style="position: absolute; left: 10px; top: 90px; width: 360px; height: 16px; z-index: 2;"><span style="font-size: 15px; color: #fff; font-family: arial; text-decoration: none;"><strong>' + strBereich + '</strong></span></div></div>');
       winprint.document.write('<div id="content" style="position: relative;">'+sWinHTML+'</div>');
       winprint.document.write('<style type="text/css">');
       winprint.document.write('#content {');
       winprint.document.write('	margin: 0 50px 0 0px;');
       winprint.document.write('	width: 610px;');
       winprint.document.write('}');
       winprint.document.write('</style>');
       winprint.document.write('</body></html>');
       winprint.document.close(); 
       winprint.focus(); 
}

function flipbox(divID, image, layerHeight, layerWidth){
	var flipbox=document.getElementById(divID);
	var flipboxbg = document.getElementById('picture_zoomed_background');
	var divBackground = 'url('+image+')';
	var divHeight = ''+(layerHeight)+'px';
	var divWidth = ''+(layerWidth)+'px';
	if (flipbox!=null) {
		flipbox.style.display = (flipbox.style.display=='none') ? "block" :"none";
		flipbox.style.backgroundImage = divBackground;
		flipbox.style.height = divHeight;
		flipbox.style.width = divWidth;
	}
	if (flipboxbg!=null){
		flipboxbg.style.display = (flipboxbg.style.display=='none') ? "block" :"none";
		flipboxbg.style.height = divHeight;
		flipboxbg.style.width = divWidth;
	}
}
 
function flipboxsimple(divID){
	var flipbox=document.getElementById(divID);
	if (flipbox!=null) {
		flipbox.style.display = (flipbox.style.display=='none') ? "block" :"none";
	}
}




//BMI
function ClearForm(form){
	form.gewicht.value = "";
	form.groesse.value = "";
	form.bmi.value = "";
}

function bmi(gewicht, groesse) {
	bmindx=gewicht/eval(groesse*groesse);
	return bmindx;
}

function checkform(form) {
	if (form.gewicht.value==null || form.gewicht.value.length==0 || isNaN(form.gewicht.value)){
		alert("\n Bitte geben Sie Ihr Gewicht ein! ");         
		document.bmi.gewicht.focus();           
		return false;
	}

	if (form.groesse.value==null || form.groesse.value.length==0 || isNaN(form.groesse.value)){
		alert("\n Bitte geben Sie Ihre Gr&ouml;&zlig;e ein! ");
		document.bmi.groesse.focus();
		return false;
	}       
 
 	if (parseFloat(form.groesse.value) <= 90 ||parseFloat(form.groesse.value) >=250){
		alert("\n Sind Sie sich bei der Gr&ouml;&zlig;e sicher?");
		return false;
	}
	else if (parseFloat(form.gewicht.value) <= 35 || parseFloat(form.gewicht.value) >=250){
		alert("\n Ist Ihre Gewichtsangabe wirklich korrekt?");
		return false;
	}
	return true;
}

function computeform(form) {
	if (checkform(form)) {
		yourbmi=Math.round(bmi(form.gewicht.value, form.groesse.value/100));
		form.bmi.value=yourbmi; 
	}
}

//check for flash
var flashversionMin = 9;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if (plugin) {
	for (f = 0; f < 20; f++) {
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
		if (plugin.description.indexOf(f+".")>=0){
			flashversion = f;
			
			if (flashversion >= flashversionMin){
				plugin = true;
				break;
			}
		}
	}
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+flashversionMin+'")))\n');
	document.write('</SCRIPT\> \n');
}

function playSWF(file,id,vars,width,height,wmode,bgcolor,baseurl,wLName) {
	fsource='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	fsource+=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ';
	fsource+=' ID='+id+' WIDTH="'+width+'"; HEIGHT="'+height+'">';
	fsource+=' <PARAM NAME="allowScriptAccess" VALUE="always" /> <PARAM NAME=movie VALUE="'+file+'"> <PARAM NAME=FlashVars VALUE="'+vars+'"> <PARAM NAME=menu VALUE=false>  <PARAM NAME="BASE" VALUE='+baseurl+'> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode value='+wmode+'> <PARAM NAME=bgcolor VALUE='+bgcolor+'>';
		if(navigator.userAgent.indexOf("Opera")==-1) {
			fsource+=' <EMBED src="'+file+'" FlashVars="'+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect=FALSE allowScriptAccess="always" NAME='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
			fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
			fsource+=' </EMBED>';
		}
		else	{
			fsource+=' <EMBED src="'+file+'" FlashVars="'+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
			fsource+=' swLiveConnect=FALSE allowScriptAccess="always" ID='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
			fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
			fsource+=' </EMBED>';
		}
	fsource+=' </OBJECT>';

	if (document.getElementById){
		document.getElementById(wLName).innerHTML=fsource;
	}

}

function CheckFile(fid,fsrc,fwidth,fheight){
	if (fsrc.indexOf(".swf")>=0){
		playSWF(fsrc,fid,"",fwidth,fheight,"opaque","#fff","",fid)
	}
	else {
		SetLayer3(fid,'innerHTML','<image src="'+fsrc+'" />');
	}
}

function WriteLayer(lName,lConten){
	if (document.getElementById){
		document.getElementById(lName).innerHTML=lConten;
	}
}

function getQueryVariable(variable) {
	  var query = window.location.search.substring(1);
	  var vars = query.split("&");
	  for (var i=0;i<vars.length;i++) {
	    var pair = vars[i].split("=");
	    if (pair[0] == variable) {
	      return pair[1];
	    }
	} 
  }
  
function getQueryVariable(strurl,variable) {
	  var query = strurl;
	  var vars = query.split("&");
	  for (var i=0;i<vars.length;i++) {
	    var pair = vars[i].split("=");
	    if (pair[0] == variable) {
	      return pair[1];
	    }
	} 
  }
  
function getmktcookie() {
    var lf = "\n";
    var CookieString = document.cookie;
    var CookieSet = CookieString.split (';');
    var SetSize = CookieSet.length;
    var CookiePieces
    var ReturnValue = "";
    var x = 0;
    for (x = 0; ((x < SetSize) && (ReturnValue == "")); x++) {
      CookiePieces = CookieSet[x].split ('=');
      if (CookiePieces[0].substring (0,1) == ' ') {
        CookiePieces[0] = CookiePieces[0].substring (1, CookiePieces[0].length);
      }
      if (CookiePieces[0] == 'rewe_selectedmarket') {
        ReturnValue = CookiePieces[1];
      }
     }
     return ReturnValue;
  }
  
function nx_linkangebote(strurl) {
	myurl=strurl.href.substring(strurl.href.lastIndexOf("?")+1);
	mypid=getQueryVariable(myurl,"id");
	
	if (mypid==22  || mypid==9 || mypid==948) {
		
		if (mypid==948) {
			pid=948;
		} else if (mypid==22 || mypid==9) {
			pid=22;
		}
		
		rewe_selectedmarket=getmktcookie();
		if (rewe_selectedmarket>0) {
			strurl.href="index.php?id="+pid+"&tx_nxmarktsuche_pi1[markt]="+rewe_selectedmarket+"&no_cache=1";
		} else {
			strurl.href="index.php?id=marktauswahl&tx_nxmarktsuche_pi1[returnid]="+pid+"&no_cache=1";
		}
	}
}

function nx_send(){
        nx_win = window.open("/nx_mail_news.php?url="+escape(document.location)+"&title="+escape(document.title),"_danke", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=360,height=450');
        nx_win.focus();
        return false;
}

wmfID_old="";

arzbergID_old="";

function bigGR(arzbergID,arzbergGR,arzbergTEXT){
	if (document.getElementById){
		if (arzbergID_old!=""){
			document.getElementById(arzbergID_old).style.display='none';
		}
		document.getElementById(arzbergID).innerHTML='<img src="image/aktionen/treueaktion_wmfboston/'+arzbergGR+'-g.jpg" width="578" height="528" alt="" border="0"><br /><div class="arzberg_text_b">'+arzbergTEXT+'</div><div class="hgansicht"><img src="image/aktionen/treueaktion_wmfboston/b_grossansicht.png" width="109" height="18" alt="" border="0" /></div><div class="ga_schliessen"><a href="#" onclick="SetLayer2(\''+arzbergID+'\',\'display\',\'none\');return false;"><img src="image/aktionen/treueaktion_wmfboston/b_schliessen.png" width="80" height="30" alt="" border="0" /></a></div>';
		document.getElementById(arzbergID).style.display='block';
		arzbergID_old=arzbergID;
	}
}

function bigGR2(arzbergID,arzbergGR,arzbergTEXT){
	if (document.getElementById){
		if (arzbergID_old!=""){
			document.getElementById(arzbergID_old).style.display='none';
		}
		document.getElementById(arzbergID).innerHTML='<img src="image/aktionen/treueaktionzwilling/'+arzbergGR+'-g.jpg" width="578" height="528" alt="" border="0"><br /><div class="arzberg_text_b">'+arzbergTEXT+'</div><div class="hgansicht"><img src="image/aktionen/moeve/b_grossansicht_bl.png" width="109" height="18" alt="" border="0" /></div><div class="ga_schliessen"><a href="#" onclick="SetLayer2(\''+arzbergID+'\',\'display\',\'none\');return false;"><img src="image/aktionen/moeve/b_schliessen_bl.png" width="66" height="12" alt="" border="0" /></a></div>';
		document.getElementById(arzbergID).style.display='block';
		arzbergID_old=arzbergID;
	}
}

function bigGR3(arzbergID,arzbergGR,arzbergTEXT){
	if (document.getElementById){
		if (arzbergID_old!=""){
			document.getElementById(arzbergID_old).style.display='none';
		}
		document.getElementById(arzbergID).innerHTML='<img src="image/aktionen/treueaktionzwilling/'+arzbergGR+'-g.jpg" width="404" height="528" alt="" border="0"><br /><div class="arzberg_text_b2">'+arzbergTEXT+'</div><div class="hgansicht"><img src="image/aktionen/moeve/b_grossansicht_ho.png" width="111" height="20" alt="" border="0" /></div><div class="ga_schliessen2"><a href="#" onclick="SetLayer2(\''+arzbergID+'\',\'display\',\'none\');return false;"><img src="image/aktionen/moeve/b_schliessen_ho.png" width="68" height="14" alt="" border="0" /></a></div>';
		document.getElementById(arzbergID).style.display='block';
		arzbergID_old=arzbergID;
	}
}


function ChangeImage(iname,isrc){
	document[iname].src = isrc;
}


// Ausspielungen für lokalisierten Markt prüfen
// ******************************************** //

// Markt-ID aus Cookie holen
var mktid = getmktcookie();


// prüfen ob Dortmunder Markt
var isDortmund = false;

//var maerkteDo = new Array(3085,1780,221189,61686,32111,3714,5993,31358,3086,3003,2778,29981,270176,1785,266370,5994,3087,5991,33911,3005,3004,32144,32125,32143,251900,32548,3434,32145,3063,32130,32142,5992,3082,18226,10415,3089,31362,32121,32126,31484,270889,60699,32107,3424,3051,58573,50099,31418,4739,44531,3756,32351,32794,3062,40690,31363,1572,4736,29191,1869,1573,60262,3441,5624,3052,1492,1797,32349,31408,50076,244939,2007,58216,3397,4125,1886,1867,1786,3398,40691,3481,1799,32554,32457,33148,4077,16574,4551,4791,3058,154118,1862,258046,1595,1794,33270,252064,31409,3405,1880,271920,174279,184899,31417,3065,49285,270900,246040,2005,252015,3404,49305,32132,31411,31231,32341,59062,4245,49304,21404,3430,60610,32356,1892,2014,3758,2006,31968,33414,3078,3400,50088,3389,32347,758,3055,32329,3586,3411,3765,3439,271921,32784,10390,252063,285124,10396,52017,298784,2065,1866,36766,32140,26410,6967,3042,6082,50111,304805,33072,343925,1884,4268,3038,32782,32860,32352,32346,32547,1516,32133,32333,3039,32876,31227,3409,60611,32139,4789,1885,4741,32338,58908,50102,31526,1992,4941,32858,266368,3040,32355,6482,51272,10380,3402,279137,4267,32119,3071,32348,32335,15001,240954,3037,1877,4249,32129,3426,3422,1796,32795,273128,10413,3395,33106,3399,3755,3403,345165,32342,349707,36764,3077,3972,60164,3394,343926,137771,51930,32330,82774,31494,83205,1575,270899,29189,3069,3415,33181,1878,219620,3073,50103,31372,2780,4269,1961,33306,32360,1583,4538,4765,32128,32343,60168,52903,1865,1784,4124,1882,3374,32123,50109,10403,4677,275875,4737,31230,266354,83202,3595,349706,32358,4246,77051,3436,2003,2086,4738,31369,32345,32336,1574,10388,3438,31541,36762,1883,10402,19084,51959,298785,3408,268799,10398,32127,3423,38034,32859,33677,771,32389,31863,32337,50072,32340,248294,3440,26373,154238,29192,51555,33180,29975,3482,10389,4793,2634);
/*
if (mktid > 0) {
	for (var i = 0; i < maerkteDo.length; ++i) {
		if (maerkteDo[i] == mktid) {
			isDortmund = true;
			break;
		}
	}
}
*/

function check_isDortmund() {
	if (mktid > 0) {
		for (var i = 0; i < maerkteDo.length; ++i) {
			if (maerkteDo[i] == mktid) {
				return true;
			}
		}
	}
	return false;
}



//******************************************** //

// prüfen ob Markt für Kundenbindungsprogramm
var isKubiMarkt = false;
var maerkteKubi = new Array(14438, 81561, 269938, 279533, 298831, 19178, 61881, 240235, 6423, 39496, 39534, 39542, 39553, 14523, 37883, 49852, 14494, 14496, 50488, 220181, 11997, 22814, 221004, 14511, 39547, 14514, 39550, 11968, 14500, 14501, 14502, 4954, 5654, 4178, 6165, 51313, 28438, 1029, 39551, 276720, 3808);

if (mktid > 0) {
	for (var i = 0; i < maerkteKubi.length; ++i) {
		if (maerkteKubi[i] == mktid) {
			isKubiMarkt = true;
			break;
		}
	}
}

//******************************************** //

//REWE Family Markt-Regions-Prüfung - Variablen definieren
var isRegionHamburg				= false;
var isRegionMuenchen 			= false;
var isRegionFrankfurt 			= false;
var isRegionMannheim 			= false;
var isRegionBeriln	 			= false;
var isRegionDuesseldorf			= false;

// REWE Family Markt-Regions-Prüfung
function checkReweFamilyRegion() {
	
	var maerkteRegionHamburg 		= new Array(16564, 3284, 298651, 4641, 76687, 5540, 32302, 33995, 3291, 2970, 32846, 49954, 10305, 22109, 33098, 4723, 262248, 4654, 3308, 1566, 266375, 4648, 4713, 10315, 36731, 10329, 20539, 30101, 252747, 31546, 32308, 3366, 33675, 3306, 1565, 32279, 4655, 32580, 31221, 3293, 32839, 4227, 278416, 275229, 3552, 4645, 32849, 296835, 36715, 10321, 16557, 36728, 10336, 40849, 109689, 20512, 36732, 10325, 3287, 20518, 3709, 2971, 299426, 33144, 3364, 3361, 4731, 33453, 3602, 275636, 32287, 3292, 2022, 3302, 5240, 32284, 32278, 32276, 30807, 4214, 5578, 35890, 3749, 33093, 3299, 32781, 32304, 3338, 158378, 305406, 32296, 5241, 6017, 4217, 32316, 33290, 20520, 36714, 10314, 10320, 36721, 16547, 10309, 16552, 16565, 10308, 10327, 10330, 16542, 16582, 6975, 20537, 10418, 10326, 25713, 43985, 40864, 16551, 6963, 16543, 4646, 4109, 4651, 32084, 286562, 275754, 3349, 3362, 32317, 31407, 4730, 4665, 32844, 3553, 4223, 5591, 4722, 2973, 264658, 238750, 3304, 4653, 33087, 4638, 3321, 3288, 32283, 3286, 3285, 4644, 5588, 32843, 79539, 33921, 32269, 3322, 32267, 32841, 47854, 4212, 4219, 4637, 3290, 3295, 3297, 40857, 31524, 3318, 3278, 32079, 238746, 3346, 32083, 2983, 2972, 3343, 33654, 2984, 288771, 274574, 253459, 2982, 272589, 3330, 32293, 3335, 4647, 31487, 52315, 298829, 3360, 32315, 4236, 33100, 3752, 280879, 40855, 36737, 10312, 10313, 36716, 10318, 36719, 50318, 36722, 40853, 50677, 49953, 5341, 25711, 40879, 20538, 30711, 10306, 50317, 10337, 10328, 36726, 50319, 24006, 16541, 3747, 40851, 22104, 30102, 247886, 43475, 40878, 16554, 43461, 32273, 36713, 36724, 50527, 10417, 36730, 40848, 60350, 20516, 43474, 15254, 30100, 36710, 2963, 10348, 16548, 3329, 1999, 2969, 6019, 59032, 32082, 274633, 285026, 298664, 276384, 3341, 1570, 31488, 28440, 4652, 4218, 4226, 32845, 3340, 29371, 3348, 32854, 32320, 3344, 60429, 3336, 1568, 50145, 3337, 5617, 3365, 5242, 9409, 258424, 270177, 262851, 252112, 51538, 2000, 2001, 3301, 31498, 3334, 4649, 32281, 3300, 33647, 3317, 3326, 274561, 5581, 3303, 5582, 32840, 3319, 3289, 3296, 3277, 3316, 5587, 32290, 76990, 4636, 32285, 32265, 3298, 50143, 33648, 3313, 76993, 3746, 3281, 32270, 33922, 32263, 32275, 32077, 32272, 5580, 32543, 3311, 3551, 33094, 33650, 4121, 3282, 3307, 32280, 3310, 21522, 5586, 3745, 3279, 32274, 32544, 6018, 33656, 33107, 283108, 299311, 4232, 4659, 4994, 201360, 265894, 265784, 265973, 221951, 4225, 4667, 4662, 3345, 4224, 51366, 252113, 33086, 2966, 243609, 252114, 2101, 28441, 6253, 33091, 32303, 41607, 59090, 31793, 76996, 4732, 52164, 4670, 677, 87567, 87583, 2042, 33097, 1690, 59084, 274564, 276381, 50128, 264659, 298365, 276383, 202959, 60179, 246862, 4229, 3327, 4220, 31704, 5589, 33089, 298672, 297532, 5618, 4660, 274562, 52883, 18565, 252115, 274674, 262852, 274563, 6142, 32848, 10317, 10307, 298834, 6960, 51546, 10333, 51541, 51539, 10323, 51542, 43465, 16546, 60177, 32264, 33136, 51544, 4657, 33130, 252082, 252087, 51430, 4669, 3355, 88689, 33096, 49858, 2974, 5340, 33289, 4674, 5245, 45188, 33141, 5594, 29294, 4673, 33131, 49361, 3357, 28434, 32089, 1969, 32673, 29274, 49363, 4727, 33139, 4681, 219623, 4717, 78863, 5593, 4112, 4238, 40863, 33105, 32086, 4715, 29315, 33672, 33138, 4676, 32312, 33413, 33140, 32313, 29296, 33102, 4001, 518, 29314, 29894, 4726, 49839, 33137, 5592, 3354, 221931, 221932, 35819, 4725, 49360, 3024, 32087, 272829, 258448, 266258, 4678, 3585, 3353, 33132, 271508);
	var maerkteRegionMuenchen 		= new Array(45032, 262192, 3516, 252196, 1841, 281040, 32226, 4850, 4297, 112049, 32234, 5752, 22838, 5687, 5734, 5269, 3519, 5678, 4298, 4845, 267031, 4299, 33465, 5041, 256207, 3251, 4198, 50073, 3256, 221256, 275576, 32412, 4849, 1559, 3514, 50181, 84816, 33211, 31433, 298674, 31394, 4294, 21962, 33717, 271865, 3811, 221537, 1926, 1836, 1842, 32228, 1846, 286310, 3231, 34015, 4846, 6265, 3241, 3224, 38917, 32246, 275225, 32830, 31523, 31401, 286556, 1586, 33217, 5273, 11926, 5727, 33216, 5231, 30861, 3526, 4296, 76620, 275224, 1907, 33724, 33759, 2066, 32407, 33713, 1593, 2920, 343953, 1588, 5693, 288608, 3226, 32833, 32829, 3511, 31428, 49410, 252109, 4200, 299421, 302755, 263365, 1848, 276396, 5267, 31537, 2921, 2914, 5695, 3512, 32235, 33757, 33710, 31393, 3234, 3244, 3232, 251415, 288845, 5314, 3509, 3238, 33274, 52385, 5701, 3229, 5733, 31217, 4858, 5759, 1903, 33215, 288767, 32224, 3242, 304489, 33213, 32418, 138555, 275052, 251113, 3520, 1835, 32889, 4295, 5761, 45218, 1909, 3523, 31429, 33212, 32409, 6186, 31434, 50157, 5010, 263264, 5264, 3521, 31474, 4197, 31400, 5703, 32237, 244606, 4860, 84814, 32410, 33761, 251353, 33205, 4844, 5757, 218610, 30864, 31445, 3237, 5011, 32233, 5688, 45034, 4841, 275218, 274753, 33316, 112048, 251804, 4201, 4196, 1925, 5696, 32231, 3517, 5694, 5704, 266327, 265792, 29355, 5272, 50168, 3222, 1845, 278312, 263431, 45190, 296836, 5691, 4293, 21558, 5692, 32416, 10532, 1844, 4194, 5754, 3524, 32225, 3235, 3227, 3225, 50045, 5683, 3508, 32240, 33765, 32227, 3249, 33728, 21812, 3528, 32223, 3228, 46997, 3737, 32248, 32244, 302752, 4300, 1851, 1901, 32408, 3233, 31392, 31402, 343959, 18849, 31446, 343957, 795, 5266, 29358, 4852, 5747, 5777, 5784, 33296, 252079, 80291, 287671, 3258, 84798, 32247, 33778, 33632, 49362, 304490, 5764, 274754, 219627, 6183, 258064, 275301, 6184, 243611, 265988, 83229, 262717, 33592, 266014, 20575, 275227, 275047, 265989, 275869, 265796, 51054, 286554, 298828, 287673, 288604, 287672, 299416, 304488, 302753, 289244, 221937, 84024, 141698, 3510, 1063, 4840, 6175, 5270, 33207, 220491, 83263, 220343, 183459, 242189, 254305, 238743, 241712, 202639, 24022, 43499, 3254, 272877, 33445, 5767, 6196, 29267, 29269, 49383, 5779, 33786, 29275, 49364, 29277, 31169, 49365, 5275, 3774, 31557, 42640, 33779, 34021, 32435, 59073, 33781, 32585, 60938, 52937, 1052, 709, 6126, 5786, 262756, 6125, 44824, 5782, 29283, 5237, 60268, 52081, 5787, 5770, 6190, 6193, 220465, 33750, 34020, 5003, 29310, 33772, 49385, 202619, 5738, 1913, 6195, 49374, 49375, 6189, 33931, 31302, 52915, 219625, 5741, 45800, 5763, 33920, 31403, 34023, 76741, 49387, 29284, 77020, 41887, 220466, 49384, 49386, 220467, 2666, 5766, 168998, 30099, 5785, 33767, 47431, 1855, 1045, 33768, 82777, 243598, 241671, 241378, 246061, 247671, 29307, 221245, 252094, 34024, 256268, 78024, 260051, 33627, 262847, 251333, 263265, 265797, 269694, 59983, 49368, 33790, 272628, 5796, 5236, 268655, 268432, 3253, 275046, 184979);	
	var maerkteRegionFrankfurt 		= new Array(2889, 138411, 32185, 3170, 32796, 1555, 3158, 298835, 3732, 32530, 5190, 299422, 32817, 299420, 32196, 5045, 1812, 33683, 32180, 299417, 32200, 32883, 4145, 33690, 5189, 32032, 49952, 2892, 32189, 271676, 5999, 3733, 32204, 18452, 33416, 4816, 5512, 6155, 33415, 280989, 33263, 5646, 33189, 78091, 9122, 5631, 4815, 3188, 278313, 5250, 3165, 4878, 3153, 1803, 1891, 138394, 344050, 32203, 3160, 33190, 1888, 278221, 48731, 33310, 2890, 5601, 33457, 52013, 221253, 15306, 33165, 1556, 32028, 2887, 2105, 18287, 1998, 4172, 32197, 32881, 4811, 3498, 31377, 33916, 76749, 6848, 4810, 3475, 3162, 4152, 31373, 31375, 33692, 31198, 3175, 32198, 1810, 3166, 32035, 4173, 3493, 34009, 6024, 5653, 4799, 32391, 13404, 6025, 1860, 59079, 87125, 275638, 1801, 3727, 275637, 275223, 3138, 2863, 3183, 3184, 32816, 4161, 4156, 52011, 32202, 77053, 51021, 3171, 33915, 32030, 32179, 32534, 2125, 32181, 4273, 4159, 3164, 32801, 32022, 32020, 3193, 3168, 4169, 6939, 2015, 33191, 5251, 4281, 796, 3491, 33184, 30346, 31405, 6153, 5606, 32880, 5191, 4700, 274263, 4174, 6248, 4963, 44122, 79571, 60633, 168660, 112007, 138452, 279741, 5608, 2702, 258092, 299224, 296833, 269698, 299419, 87126, 2886, 51087, 29161, 6154, 3726, 51991, 3167, 32205, 33419, 32803, 50131, 33174, 3169, 4809, 5488, 3191, 52816, 9193, 31376, 4175, 4143, 62502, 32021, 4151, 1712, 1805, 32199, 4146, 33188, 4154, 3178, 32182, 3173, 32191, 2883, 3172, 32192, 4149, 32804, 4148, 32029, 4157, 3161, 32390, 33424, 32397, 4804, 3497, 4805, 3485, 4274, 31421, 49476, 31406, 276719, 32555, 3488, 4285, 3489, 33691, 3495, 1887, 5014, 32394, 33452, 4277, 3490, 5255, 3766, 32392, 32396, 31423, 3487, 51370, 5244, 4280, 4278, 34057, 50184, 33271, 3606, 2389, 34489, 76748, 60280, 159338, 59933, 78090, 4153, 185379, 112028, 138433, 263255, 270908, 32884, 3177, 32187, 32190, 304486, 256184, 284566, 275222, 262442, 221254, 286547, 252257, 275755, 276386, 51439, 32013, 3137, 32383, 32384, 8984, 34003, 32582, 32172, 276385, 32188, 22786, 32195, 5042, 32183, 3154, 4144, 1713, 6000, 4276, 5615, 278225, 275044, 286489, 278224, 287682, 299427, 275365, 4711, 286549, 296831, 299428, 300426, 304487, 286309, 4686, 4119, 111887, 4688, 33663, 33127, 5641, 1775, 4698, 4275, 5252, 278310, 76737, 33111, 4707, 5990, 32797, 1422, 33116, 29276, 19152, 2246, 33129, 33300, 4263, 5612, 4776, 33668, 33297, 5607, 33125, 33112, 33183, 33666, 29289, 4279, 4160, 6001, 4709, 4116, 33121, 6146, 29295, 4820, 51043, 4693, 33686, 4802, 220997, 8505, 4808, 58814, 59932, 4691, 5640, 245567, 263258, 33351, 252298, 33123, 77348, 76764, 77763, 86583, 4797, 86604, 86605, 32808, 221928, 4705, 33108, 4806, 33516, 252088, 220426, 6144, 88688, 87684, 88707, 84779, 84781, 32776, 264602, 256323, 78077, 29288, 4712, 221930, 221976, 33118, 2978, 5186, 4684, 903, 33134, 3841, 620, 34417, 4708, 33659, 33661, 4719, 3032, 51450, 33660, 59930, 61577, 263260, 6162, 32964, 4720, 33182, 15178, 32314, 2350, 4685, 5614, 5600, 3980, 33133, 4796, 810, 4683, 61576, 29272, 4195, 76738, 76739, 77649, 4795, 78078, 18114, 262172, 5651, 264333, 264603, 4800, 266196, 262249, 299814, 267157, 5197, 52088, 5253, 32382, 183141, 4704, 33128, 4813, 32815, 4702, 76748, 60280, 159338, 59933, 78090, 4153, 185379, 112028, 138433, 263255, 270908, 32884, 3177, 32187, 1552, 32190, 304486, 256184, 284566, 275222, 262442, 221254, 286547, 252257, 275755, 276386, 51439, 32013, 3137, 32383, 32384, 8984, 34003, 32582, 32172, 276385, 32188, 22786, 32195, 5042, 32183, 3154, 4144, 1713, 6000, 4276, 270176, 51554, 39768, 39764, 36773, 36774, 36591, 239363, 60937, 51556, 51642, 36791, 25728, 51557, 40694, 60169, 2013, 3084, 1993, 3449, 6157, 4134, 77344, 5036, 33163, 4772, 50146, 33166, 1580, 4768, 271316, 4252, 251395, 3132, 3451, 32378, 32149, 59618, 33152, 5017, 32760, 4766, 34004, 33150, 33177, 288546, 6156, 33162, 22647, 5626, 33160, 32169, 3134, 59918, 29211, 3455, 3453, 32368, 59627, 39504, 3470, 60613, 59919, 30303, 77765, 50180, 51112, 33156, 5248, 4241, 34001, 33927, 31492, 3463, 3472, 4255, 1680, 32366, 1571, 50113, 60263, 4770, 33157, 3760, 32460, 31527, 33175, 5629, 156719, 156738, 33914, 4262, 58565, 86565, 3009, 16602, 4221, 183119, 31414, 29891, 218663, 2010, 3465, 240272, 4240, 84763, 4254, 3460, 49328, 58493, 29220, 33925, 243595, 32365, 58596, 58596, 274174, 32373, 32792, 6161, 32375, 3469, 3461, 50125, 32872, 31208, 4756, 4769, 80183, 5634, 5635, 4743, 4767, 33684, 4785, 4261, 4989, 3092, 32528, 5249, 1510, 49327, 32324, 6152, 4771, 6159, 29223, 31229, 2028, 29225, 29226, 49330, 42578, 3010, 29227, 255885, 262199, 30567, 264564, 49331, 33261, 265801, 266371, 29228, 265794, 3091, 4762, 33155, 50129, 271996, 276720, 34558, 276979, 51550, 3105, 281038, 4133, 298830, 282224, 278311, 5997, 300430, 299423, 4735, 2033, 299425, 32866, 281036, 240274, 243606, 4943, 29231, 33317, 3012, 3446, 3377, 5615, 278225, 275044, 286489, 278224, 287682, 299427, 275365, 4711, 286549, 296831, 299428, 300426, 304487, 286309, 4686, 4119, 111887, 4688, 33663, 33127, 5641, 1775, 4698, 4275, 5252, 278310, 76737, 33111, 4707, 5990, 32797, 1422, 33116, 29276, 19152, 2246, 33129, 33300, 4263, 5612, 4776, 33668, 33297, 5607, 33125, 33112, 33183, 33666, 29289, 4279, 4160, 6001, 4709, 4116, 33121, 6146, 29295, 4820, 51043, 4693, 33686, 4802, 220997, 8505, 4808, 58814, 59932, 4691, 5640, 245567, 263258, 33351, 252298, 33123, 77348, 76764, 77763, 86583, 4797, 86604, 86605, 32808, 221928, 4705, 33108, 4806, 33516, 252088, 220426, 6144, 88688, 87684, 88707, 84779, 84781, 32776, 264602, 256323, 78077, 29288, 4712, 221930, 221976, 33118, 2978, 5186, 4684, 903, 33134, 3841, 620, 34417, 4708, 33659, 33661, 4719, 3032, 51450, 33660, 59930, 61577, 263260, 6162, 32964, 4720, 33182, 15178, 32314, 2350, 4685, 5614, 5600, 3980, 33133, 4796, 810, 4683, 61576, 29272, 4195, 76738, 76739, 77649, 4795, 78078, 18114, 262172, 5651, 264333, 264603, 4800, 266196, 262249, 299814, 267157, 5197, 52088, 5253, 32382, 183141, 4704, 33128, 4813, 32815, 4702);
	var maerkteRegionMannheim 		= new Array(45042, 3810, 1750, 288844, 265972, 33200, 31449, 6006, 77652, 5216, 33929, 28438, 32827, 45037, 32221, 220488, 26630, 4839, 244953, 31426, 19193, 77342, 5261, 3247, 84803, 31389, 33704, 34013, 157720, 3216, 6168, 1820, 3734, 30820, 32215, 30326, 4189, 33709, 52139, 274398, 265874, 2390, 269938, 6166, 33431, 45040, 5723, 3503, 258088, 3208, 6167, 794, 32219, 5659, 3971, 5204, 31385, 6266, 1817, 33433, 1824, 52072, 2106, 15240, 33426, 1044, 33696, 39566, 4954, 60614, 32887, 3200, 51055, 32823, 6007, 1895, 8670, 32557, 221249, 35670, 32217, 281039, 252099, 244954, 249118, 267111, 25757, 238740, 80294, 263262, 262719, 33461, 4831, 5669, 51526, 77584, 32402, 19194, 33440, 32828, 49287, 263426, 84802, 298831, 298832, 1822, 8973, 3809, 52220, 60173, 4188, 1557, 32213, 5654, 52291, 5662, 238742, 167418, 4187, 276392, 5671, 3201, 3212, 31384, 31383, 5673, 30098, 35669, 6566, 51313, 32210, 48730, 26609, 33919, 267110, 32211, 249699, 19196, 22820, 22842, 32822, 22847, 32583, 5375, 4184, 267085, 248682, 31390, 239209, 5203, 33706, 39565, 5213, 22849, 45798, 44924, 2804, 5210, 45038, 34018, 3736, 5262, 78887, 29320, 32206, 256171, 50127, 6172, 32556, 4834, 5675, 219879, 16632, 4193, 5663, 19194, 80281, 6173, 243008, 275153, 276391, 32826, 1051, 167419, 32403, 32535, 221936, 86743, 281042, 3604, 5224, 78080, 6181, 275863, 2391, 287674, 22818, 279533, 5666, 42606, 288772, 238733, 1813, 252100, 33694, 6005, 45041, 262440, 219635, 32216, 14537, 21465, 34471, 6198, 256172, 3213, 3560, 275154, 1826, 6171, 3501, 51525, 5015, 4832, 3504, 32819, 264966, 3198, 4179, 33432, 31387, 296837, 32536, 4178, 29316, 6165, 3593, 47482, 272830, 29912, 5260, 6169, 1831, 31386, 262441, 4190, 4170, 5660, 32214, 3594, 3204, 59076, 247672, 4836, 1558, 6028, 3808, 6170, 6030, 51314, 5677, 32208, 263331, 3215, 4826, 52812, 32825, 19195, 245020, 5674, 31381, 1029, 1830, 5717, 3205, 244573, 45039, 8672, 4827, 58861, 42605, 42607, 262936, 50148, 77584, 33197, 1829, 33681, 77769, 159339, 32399, 5211, 77718, 3203, 4823, 32398, 39534, 14514, 50488, 14501, 37883, 221004, 19178, 33447, 39496, 39553, 14494, 11997, 81561, 39551, 14500, 61881, 14438, 39542, 14523, 49852, 14496, 220181, 22814, 14511, 39547, 39550, 240235, 11968, 6423, 14502, 3502, 31443, 4828, 2063, 5043, 241713, 25755, 278223, 52433, 286565, 4204, 5668, 32433, 34014, 4192, 137691, 268642, 82829, 201163, 300429, 275316, 1818, 276387, 221966, 10470, 5655, 272094, 3214, 275045, 264637, 33734, 300428, 298668, 288607, 276389, 279739, 1821, 288606, 265188, 264638, 251619, 275318, 20318, 249700, 3248, 256173, 59075, 276388, 1484, 263263, 263249, 263261, 324, 276390, 168158, 10459, 252103, 287681, 252104, 258090, 263248, 249977, 31388, 253259, 5227, 34011, 3210, 32537, 78064, 141701, 141699, 201164, 244347, 50177, 263427, 5648, 16637, 14808, 20558, 14454);
	var maerkteRegionBerlin 		= new Array(20504, 2952, 33459, 36741, 1774, 4211, 31528, 36701, 3008, 3599, 1537, 32071, 20501, 253260, 3819, 36688, 36695, 46925, 31206, 3740, 4998, 5621, 3801, 44525, 33676, 34059, 3276, 25695, 40839, 36693, 36698, 25693, 25681, 5835, 31500, 32068, 33644, 32070, 6014, 33643, 6222, 3272, 32521, 31531, 159358, 43471, 80035, 25718, 5844, 32459, 2956, 6135, 286553, 52680, 36689, 10283, 41613, 22098, 36697, 44524, 36704, 43451, 44520, 24005, 60306, 2946, 4108, 33655, 3803, 32261, 32256, 50097, 3268, 77353, 32069, 3582, 5567, 32072, 5841, 32579, 33411, 221232, 3601, 31126, 3603, 44527, 46905, 50316, 5004, 16567, 33928, 32550, 32581, 6176, 6241, 36708, 32541, 6051, 1563, 221258, 299429, 36687, 10278, 10280, 10281, 36690, 36691, 5857, 10287, 20505, 36696, 10288, 10292, 6026, 10293, 10294, 50752, 263253, 46910, 240791, 25689, 44523, 20531, 32558, 33806, 49349, 52331, 45784, 50151, 8689, 30881, 1590, 31543, 31205, 551, 3567, 25661, 25708, 5564, 5568, 45002, 51146, 5563, 4955, 6133, 32595, 52334, 8680, 49396, 29337, 2035, 2109, 8688, 33425, 3706, 4199, 46909, 3598, 10350, 185759, 31519, 31503, 4631, 31533, 33642, 8690, 6250, 5989, 50098, 3804, 5565, 3742, 2949, 30900, 5566, 5575, 22102, 3744, 76746, 3705, 33992, 4210, 6208, 4629, 33991, 3805, 32259, 272149, 76558, 138592, 77654, 35679, 220969, 34500, 264648, 35676, 3600, 87564, 43445, 34499, 256183, 43457, 262850, 263252, 267634, 46906, 43459, 20502, 3273, 36677, 10263, 42613, 46918, 10250, 10261, 46928, 51402, 36672, 32076, 269693, 263251, 31818, 10266, 6953, 43440, 5574, 35678, 39470, 33456, 268644, 8683, 46924, 32066, 35677, 31354, 35555, 33832, 8679, 6011, 35680, 32321, 35681, 5247, 32249, 33909, 8682, 260074, 35683, 8686, 298827, 42612, 87565, 299418, 240708, 272150, 50673, 299424, 8685, 275221, 8691, 8687, 32011, 34061, 84825, 31353, 3270, 61579, 5573, 79565, 279740, 284311, 286564, 2090, 50775, 6021, 32546, 33924, 60178, 3367, 221950, 36678, 50315, 6215, 46932, 298673, 286563, 272590, 2943, 33448, 1705, 33641, 33145, 5868, 43443, 49955, 296830, 49398, 3707, 11630, 5577, 32540, 281034, 299431, 32432, 300427, 32255, 269661, 1771, 32539, 5571, 5849, 1637, 32588, 3753, 6163, 3369, 3368, 6199, 33817, 221949, 22776, 252197, 242194, 46934, 29467, 303109, 5199, 32559, 21451, 29251, 34029, 262908, 31234, 32538, 6204, 1562, 34030, 25953, 4089, 4945, 3772, 34028, 59146, 4877, 4991, 60265, 6200, 33222, 4881, 4917, 49350, 40951, 49351, 24463, 50105, 31427, 4916, 49352, 4888, 32562, 31525, 33427, 29254, 5799, 29255, 49353, 33839, 32561, 3530, 4177, 4887, 6147, 29257, 14434, 33799, 36856, 4886, 33801, 5817, 33856, 34000, 76864, 34027, 43470, 80402, 33221, 6206, 29256, 6032, 40813, 4885, 16680, 34043, 5613, 33918, 34044, 6203, 5278, 4892, 3220, 33837, 219632, 6227, 6033, 51353, 4303, 5818, 3777, 4208, 5815, 266373, 80292, 6174, 78886, 5809, 33795, 10533, 4911, 33237, 5258, 252096, 33135, 3531, 34257, 5805, 298667, 43446, 6201, 5277, 43447, 4721, 6149, 296876, 4879, 31437, 242318, 29253, 268646, 30805, 272453, 5005, 33464, 33999, 3814, 50150, 59040, 5812, 34007, 4918, 3770, 25680, 20499, 16682, 47087, 3263);
	var maerkteRegionDuesseldorf	= new Array(32795, 3035, 3130, 10356, 32129, 16588, 3004, 32147, 31493, 32337, 49305, 60164, 1548, 32161, 1882, 1540, 3085, 32153, 169, 268799, 10434, 270900, 31418, 279953, 31526, 1577, 3117, 3374, 3127, 32783, 31251, 2996, 32548, 2087, 3089, 32155, 3030, 4246, 3113, 3098, 3426, 16584, 14858, 31863, 50111, 1492, 58908, 31484, 33180, 1877, 49285, 4267, 266368, 248089, 59062, 33677, 4269, 221189, 4124, 31363, 275875, 33106, 32547, 26410, 284627, 3397, 3106, 673, 31124, 3108, 21404, 1614, 2992, 1799, 3000, 32091, 2065, 1541, 32126, 52017, 3086, 31187, 31358, 3097, 2086, 3125, 3011, 1883, 33685, 3358, 46947, 3558, 33910, 1573, 10411, 10430, 16589, 23748, 52903, 3101, 1516, 31541, 32340, 298785, 29192, 3038, 3071, 33414, 60611, 1885, 3409, 49304, 3424, 3040, 31417, 3077, 4789, 15001, 52606, 252015, 1892, 273128, 50103, 32342, 3755, 83205, 4249, 252063, 32330, 32338, 51930, 77051, 1575, 50088, 219620, 3398, 2780, 304805, 2007, 32360, 3595, 32128, 1878, 3119, 1865, 3121, 3402, 3718, 4737, 32527, 10389, 1547, 32159, 271921, 2830, 1612, 1862, 32166, 2986, 10390, 2989, 266370, 4765, 2990, 31942, 4677, 2994, 51252, 33306, 31265, 3007, 32554, 5993, 32130, 31230, 32142, 32143, 2634, 32121, 1785, 3051, 2995, 271920, 3111, 3116, 3400, 50101, 32107, 6967, 3013, 33176, 10403, 1873, 5994, 285124, 31362, 29981, 1574, 3114, 278222, 3436, 32794, 3807, 4736, 10408, 34512, 525, 16586, 3482, 44534, 22113, 16593, 16598, 32859, 3408, 32457, 32139, 300706, 270899, 248294, 154118, 32389, 4741, 3058, 60262, 154238, 29189, 3438, 3039, 4245, 2987, 1797, 298532, 3062, 3440, 303112, 51272, 252064, 285669, 32858, 33072, 4538, 31409, 38034, 32132, 3037, 32351, 32348, 1886, 1867, 184899, 10413, 32876, 3395, 3065, 60827, 1796, 250779, 1794, 246040, 33181, 50102, 3404, 31231, 60610, 32127, 32119, 4793, 31411, 32335, 3434, 279137, 31408, 32341, 3430, 3415, 58573, 3073, 36764, 174279, 946, 3972, 31968, 51555, 3758, 1961, 2014, 1880, 3756, 3399, 32347, 3481, 2006, 82774, 50076, 32352, 2792, 60168, 3078, 31369, 3394, 3055, 32343, 3389, 1583, 2005, 3586, 50109, 758, 32355, 3096, 40690, 1551, 3099, 3069, 32150, 4941, 32157, 3765, 3102, 32123, 3112, 1786, 2827, 32353, 3103, 32140, 3095, 58216, 276713, 1550, 32336, 32168, 2832, 3411, 51161, 3060, 33270, 272591, 3109, 31372, 32099, 251900, 32329, 3001, 270889, 61686, 51553, 32524, 4551, 32093, 299430, 4077, 3002, 2997, 4125, 32095, 2993, 1784, 2749, 3003, 16574, 1990, 32100, 266354, 5992, 2998, 40691, 44531, 10415, 5624, 33911, 1780, 3042, 50099, 32144, 10396, 3087, 32145, 32358, 3052, 3714, 3439, 31187, 32111, 2778, 31213, 83202, 3723, 32103, 2003, 5996, 31212, 137771, 32151, 50100, 29191, 3717, 281037, 32133, 3129, 5991, 32345, 32112, 32101, 33148, 31415, 32125, 771, 275294, 3063, 32784, 32097, 60699, 10388, 51295, 32870, 18226, 4259, 343925, 3458, 3107, 29230, 32160, 304826, 36762, 3082, 3005, 1553, 10355, 3405, 10369, 36776, 3762, 6973, 52133, 10402, 16585, 50321, 4791, 44533, 10432, 1595, 20542, 43478, 3124, 16590, 36793, 51959, 40888, 14415, 14416, 51558, 26373, 2099, 10398, 1418, 32782, 1572, 3423, 3422, 33154, 6082, 32356, 1866, 4738, 3447, 244939, 1992, 1869, 3441, 32346, 6482, 3403, 1884, 1552, 4739, 19084, 31227, 258046, 32333, 29975, 36766, 32860, 50072, 31494, 240954, 32349, 4268, 10380, 3401, 298784, 270176, 51554, 39768, 39764, 36773, 36774, 36591, 239363, 60937, 51556, 51642, 36791, 25728, 51557, 40694, 60169, 2013, 3084, 1993, 3449, 6157, 4134, 77344, 5036, 33163, 4772, 50146, 33166, 1580, 4768, 271316, 4252, 251395, 3132, 3451, 32378, 32149, 59618, 33152, 5017, 32760, 4766, 34004, 33150, 33177, 288546, 6156, 33162, 22647, 5626, 33160, 32169, 3134, 59918, 29211, 3455, 3453, 32368, 59627, 39504, 3470, 60613, 59919, 30303, 77765, 50180, 51112, 33156, 5248, 4241, 34001, 33927, 31492, 3463, 3472, 4255, 1680, 32366, 1571, 50113, 60263, 4770, 33157, 3760, 32460, 31527, 33175, 5629, 156719, 156738, 33914, 4262, 58565, 86565, 3009, 16602, 4221, 183119, 31414, 29891, 218663, 2010, 3465, 240272, 4240, 84763, 4254, 3460, 49328, 58493, 29220, 33925, 243595, 32365, 58596, 58596, 274174, 32373, 32792, 6161, 32375, 3469, 3461, 50125, 32872, 31208, 4756, 4769, 80183, 5634, 5635, 4743, 4767, 33684, 4785, 4261, 4989, 3092, 32528, 5249, 1510, 49327, 32324, 6152, 4771, 6159, 29223, 31229, 2028, 29225, 29226, 49330, 42578, 3010, 29227, 255885, 262199, 30567, 264564, 49331, 33261, 265801, 266371, 29228, 265794, 3091, 4762, 33155, 50129, 271996, 276720, 34558, 276979, 51550, 3105, 281038, 4133, 298830, 282224, 278311, 5997, 300430, 299423, 4735, 2033, 299425, 32866, 281036, 240274, 243606, 4943, 29231, 33317, 3012, 3446, 3377, 276979, 51550, 3105, 281038, 4133, 298830, 282224, 278311, 5997, 300430, 299423, 4735, 2033, 299425, 32866, 281036, 240274, 243606, 4943, 29231, 33317, 3012, 3446, 3377);
	
	if (mktid > 0) {		
		// Hamburg
		for (var i = 0; i < maerkteRegionHamburg.length; ++i) {
			if (maerkteRegionHamburg[i] == mktid) {
				isRegionHamburg = true;
				break;
			}
		}		
		// Muenchen
		for (var i = 0; i < maerkteRegionMuenchen.length; ++i) {
			if (maerkteRegionMuenchen[i] == mktid) {
				isRegionMuenchen = true;
				break;
			}
		}		
		// Frankfurt
		for (var i = 0; i < maerkteRegionFrankfurt.length; ++i) {
			if (maerkteRegionFrankfurt[i] == mktid) {
				isRegionFrankfurt = true;
				break;
			}
		}		
		// Mannheim
		for (var i = 0; i < maerkteRegionMannheim.length; ++i) {
			if (maerkteRegionMannheim[i] == mktid) {
				isRegionMannheim = true;
				break;
			}
		}		
		// Beriln
		for (var i = 0; i < maerkteRegionBerlin.length; ++i) {
			if (maerkteRegionBerlin[i] == mktid) {
				isRegionBerlin = true;
				break;
			}
		}		
		// Duesseldorf
		for (var i = 0; i < maerkteRegionDuesseldorf.length; ++i) {
			if (maerkteRegionDuesseldorf[i] == mktid) {
				isRegionDuesseldorf = true;
				break;
			}
		}
	}
}



// PopUp
function nx_openpopup(url, params) {
	var nx_popup = window.open(url, "_blank", "width="+params[0]+",height="+params[1]+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
	nx_popup.focus();
	return false;
}

// new Tab
function nx_newTab(url) {
	url = 'http://tippspiel.rewe.de';
	var nx_newTab = window.open(url, "_blank", "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
	nx_newTab.focus();
	return false;
}
















//-->