

		function SMShop_noDataAvailable(args){
		var $SMS = args[0], _id = $SMS.id, _xml = null;
			// no data available during init
			_xml = SMSession.getSession(_id);
			if(_xml==null) _xml = SMSession.xml.createNode(_id);
			if(_xml!=null) $SMS.xml = _xml;
			};

		function SMBasket_noDataAvailable(args){
		var $SMB = args[0], $SMS = $SMB.parent,
				_doc = $SMS.xml.ownerDocument, _id = $SMB.id, _xml = null;
			// no data available during init
			_xml = $SMS.xml.appendChild(_doc.createNode(_id));
			if(_xml!=null) $SMB.xml = _xml;
			};

		function SMShipMethodInfo_noDataAvailable(args){
		var _SMShipMethodInfo = args[0], $SMB = _SMShipMethodInfo.parent,
				_doc = $SMB.xml.ownerDocument, _id = _SMShipMethodInfo.id, _xml = null;
			// no data available during init
			_xml = $SMB.xml.appendChild(_doc.createNode(_id));
			if(_xml!=null) _SMShipMethodInfo.xml = _xml;
			};

		function SMPayMethodInfo_noDataAvailable(args){
		var _SMPayMethodInfo = args[0], $SMB = _SMPayMethodInfo.parent,
				_doc = $SMB.xml.ownerDocument, _id = _SMPayMethodInfo.id, _xml = null;
			// no data available during init
			_xml = $SMB.xml.appendChild(_doc.createNode(_id));
			if(_xml!=null) _SMPayMethodInfo.xml = _xml;
			};

		function SMGDiscounts_noDataAvailable(args){
		var _SMGDiscounts = args[0], $SMB = _SMGDiscounts.parent,
				_doc = $SMB.xml.ownerDocument, _id = _SMGDiscounts.id, _xml = null;
			// no data available during init
			_xml = $SMB.xml.appendChild(_doc.createNode(_id));
			if(_xml!=null) _SMGDiscounts.xml = _xml;
			};

		function SMProduct_noDataAvailable(args){
		var $SMP = args[0], $SMS = $SMP.shop, _id = $SMP.id, _xml = null;
			// no data available during init
			_xml = $SMS.xml.ownerDocument.createNode(_id);
			if(_xml!=null){
				$SMP.xml = _xml;
				};
			};

		function SMDiscounts_noDataAvailable(args){
		var _SMDiscounts = args[0], $SMP = _SMDiscounts.parent,
				_doc = $SMP.xml.ownerDocument, _id = _SMDiscounts.id, _xml = null;
			// no data available during init
			_xml = $SMP.xml.appendChild(_doc.createNode(_id));
			if(_xml!=null) _SMDiscounts.xml = _xml;
			};

		function SMVariants_noDataAvailable(args){
		var _SMVariants = args[0], $SMP = _SMVariants.parent,
				_doc = $SMP.xml.ownerDocument, _id = _SMVariants.id, _xml = null;
			// no data available during init
			_xml = $SMP.xml.appendChild(_doc.createNode(_id));
			if(_xml!=null) _SMVariants.xml = _xml;
			};

		function SMShop_onAfterUpdate(args){
		var $SMS = args[0], _id = $SMS.id, _xml = $SMS.xml;
			// after shop update update and save session object
			SMSession.setSession(_id, "xmlnode", _xml);
			SMSession.save();
			};

		function SMBasket_onBeforeReset(args){
			// before resetting basket confirm
			return(confirm("Sind Sie sicher, dass Sie Ihren Warenkorb löschen möchten?"));
			};

		function SMBasket_onAfterReset(args){
			// after resetting basket reload
			location.replace(location.href);
			};

		function SMBasket_onBeforeAdd(args){
		var $SMB = args[0], $SMP = args[1], $SMS = $SMB.parent, _frm = null,
				_elem = null, _params = new Array(), _msg = "";
			// before adding a product, check whether another order
			// has been completed earlier
			if($SMS.getAttribute(_SMAOComplete)=="true"){
				$SMS.reinitOrder();
				};
			return(true);
			};

		function SMProduct_onBeforeUpdate(args){
		var $SMP = args[0], _index = 0, _frm = _elem = _params = null;
			_frm = document.forms["PD" + $SMP.getAttribute(_SMAUniqueID) + "variants"];
			if(_frm!=null&&($SMP.variants.xml.childNodes.length()==0||$SMP.getAttribute("s-var")=="1")){
				_params = new Array();
				for(var i=0; i<_frm.elements.length; i++){
					_index = _frm.elements[i].selectedIndex;
					if(_index<0) _index = 0;
					_elem = _frm.elements[i].options[_index];
					_params[_params.length] = _elem.text;
					_params[_params.length] = _elem.value;
					};
				$SMP.variants.newSimpleVariant.apply($SMP.variants, _params);
				};
			return(true);
			};

		function SMProduct_onAfterUpdate(args){
		var $SMP = args[0], $min = $max = $amnt = 0, $update = false;
			$min = parseInt($SMP.getAttribute(_SMAMinAmount));
			$max = parseInt($SMP.getAttribute(_SMAMaxAmount));
			$amnt = parseFloat($SMP.getAttribute(_SMAAmount));
			if($amnt < $min){
				$amnt = $min; $update = true;
				} else if($max > 0 && $amnt > $max){
				$amnt = $max; $update = true;
				};
			if($update){
				$SMP.setAttribute(_SMAAmount, $amnt);
				$SMP.update();
				};
			};

		function SMBasket_onAfterAdd(args){
		var $SMB = args[0], $SMP = args[1];
			
			alert("Der Artikel wurde dem Warenkorb hinzugefügt!".replace("&nbsp;", " "));
			
			};

		function SMBasket_onItemExists(args){
		var $SMB = args[0], _SMNewProduct = args[1], _SMExistingProduct = args[2];
			// item exists in basket, return action flag
			// * _eSMReplace	: replace existing item 
			// * _eSMAdd			: add to basket
			// * _eSMCancel		: cancel action
			return(_eSMAdd);
			};

		function SMBasket_onBeforeRemove(args){
		var $SMB = args[0], $SMP = args[1], $msg = "Sind Sie sicher, dass Sie das Produkt '%d' mit der Artikelnummer '%n' aus dem Warenkorb entfernen möchten?";
			// before removing a product confirm
			$msg = $msg.replace("%d", $SMP.name);
			$msg = $msg.replace("%n", $SMP.getAttribute(_SMACode));
			return(confirm($msg));
			};

		function SMBasket_onAfterRemove(args){
			// reload page after deleting a product;
			location.replace("schneeschaufel/warenkorb.html");
			};

		function SMShipMethodInfo_onAfterUpdate(args){
			// update SMShop after recalculating the shipment costs
			SMShop.update();
			};

		function SMPayMethodInfo_onAfterUpdate(args){
			// update SMShop after recalculating the payment costs
			SMShop.update();
			};

		function SMShop_variantSelectionChanged(args){
		var $SMP = args[0], _form = args[1], _varset = _vartext = "", _index = 0, _elem = null;
			_elem = document.getElementById("variant_not_found");
			if(_elem!=null) _elem.style.display = "none";
			// update product variant properties after changes occured in
			// the variants html form
			if($SMP.variants.xml.childNodes.length()!=0){
				for(var i=0; i<_form.elements.length; i++){
					_elem = _form.elements[i];
					_index = _elem.options.selectedIndex;
					if(_index<0) _index = 0;
					if(_varset!="") _varset += ";";
					if(_vartext!="") _vartext += ",";
					_varset += _elem.options[_index].value;
					_vartext += (_elem.options[_index].text).replace(/,/g, "&comma;");
					};
				$SMP.variants.activateByValues(_varset, _vartext);
				$SMP.update();
				displayProductProperties($SMP);
				};
			};

		function SMShop_onBasketGUIElemChanged(args){
		var $SMS = args[0], _elem = args[1], index = args[2], _form = null, _name = "", $SMP = null, _uniqueID = "", _variantID = "";
			// update product amount after changes occured in the
			// basket graphical user interface
			if(_elem!=null){
				_name = _elem.id.replace("PD", "");
				_name = _name.replace("Amount", "");
				if(_name.indexOf("-")){
					_uniqueID = _name.split("-")[0];
					_variantID = _name.split("-")[1];
					}
				else _uniqueID = _name;
				if(index>=0){
					$SMP = $SMS.basket.getProductByIndex(index);
					}
				else if(_variantID!=""){
					$SMP = $SMS.basket.getProductById(_uniqueID, _variantID);
					}
				else $SMP = $SMS.basket.getProductById(_uniqueID);
				if($SMP!=null){
					$SMP.setAttribute(_SMAAmount, _elem.value);
					$SMP.update();
					$SMS.basket.update();
					};
				};
			};

		function SMVariants_onAfterActivate(args){
		var _SMVariants = args[0];
			// update form controls, if any
			_SMVariants.refreshFormControls();
			};

		/* sm:broker-ssl begin-edit */
		var useSSLForCheckout = false;
		var sharedSSLURL = "";
		/* sm:broker-ssl end-edit */

		var sPHPSessionUrl = "";
		
		sPHPSessionUrl = (sharedSSLURL==""?SMOMAbsoluteRootURL + "/phpsession.php":"");
		

		var SMFirstInit = false;
		var SMSession = new SXMLSessionManager(sPHPSessionUrl);
		SMFirstInit = SMSession.init("M115TQX2H7");

		var SMShop = new cSMShop("SMShop");SMShop.init();
		// 5.5.7 Surcharge Calculator Options
		SMShop.calculateSurchargePerAmount = 0; // (0,1)
		//
		with(SMShop){
		// set basic data
			setAttribute(_SMAInGross, 1); // Gross Prices Entered (0,1)
			setAttribute(_SMAOutGross, 1); // Display Gross Prices (0,1)
			setAttribute(_SMARoundTo, 0); // Round Final Amount (100,50,10,5,0)
			setAttribute(_SMAMinAmount, 23.8);
			regions[0] = new Array(0, "DE", "Deutschland", 19, 7, 0, 0, true, false, 0, "^DE[ ]{0,1}[0-9]{9}$");
			regions[1] = new Array(1, "AT", "Österreich", 20, 10, 0, 0, false, false, 2, "^AT[ ]{0,1}U[0-9]{8}$");
			regions[2] = new Array(2, "CH", "Schweiz", 7.6, 2, 0, 0, false, false, 0, "");
			regions[3] = new Array(3, "BE", "Belgium", 21, 12, 0, 0, false, false, 2, "^BE[ ]{0,1}[0-9]{9}$");
			regions[4] = new Array(4, "DK", "Denmark", 25, 0, 0, 0, false, false, 2, "^DK[ ]{0,1}[0-9]{8}$");
			regions[5] = new Array(5, "EE", "Estonia", 18, 1, 3, 5, false, false, 2, "^EE[ ]{0,1}[0-9]{9}$");
			regions[6] = new Array(6, "FI", "Finland", 22, 17, 0, 0, false, false, 2, "^FI[ ]{0,1}[0-9]{8}$");
			regions[7] = new Array(7, "FR", "France", 19.6, 5.5, 0, 0, false, false, 2, "^FR[ ]{0,1}[a-zA-Z0-9]{2}[0-9]{9}$");
			regions[8] = new Array(8, "HU", "Hungary", 25, 12, 0, 0, false, false, 2, "^HU[ ]{0,1}[0-9]{8}$");
			regions[9] = new Array(9, "IE", "Ireland", 21, 10, 0, 0, false, false, 2, "^IE[ ]{0,1}[0-9][0-9a-zA-Z][0-9]{5}[a-zA-Z]$");
			regions[10] = new Array(10, "IT", "Italy", 20, 9, 0, 0, false, false, 2, "^IT[ ]{0,1}[0-9]{11}$");
			regions[11] = new Array(11, "LV", "Latvia", 18, 1, 5, 9, false, false, 2, "^LV[ ]{0,1}[0-9]{11}$");
			regions[12] = new Array(12, "LI", "Liechtenstein", 0, 0, 0, 0, false, false, 0, "");
			regions[13] = new Array(13, "LT", "Lithuania", 18, 5, 7, 9, false, false, 2, "^LT[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[14] = new Array(14, "LU", "Luxembourg", 15, 6, 0, 0, false, false, 2, "^LU[ ]{0,1}[0-9]{8}$");
			regions[15] = new Array(15, "MC", "Monaco", 0, 0, 0, 0, false, false, 0, "");
			regions[16] = new Array(16, "NL", "Netherlands", 19, 6, 0, 0, false, false, 2, "^NL[ ]{0,1}[0-9]{9}B[0-9]{2}$");
			regions[17] = new Array(17, "PL", "Poland", 22, 7, 0, 0, false, false, 2, "^PL[ ]{0,1}[0-9]{10}$");
			regions[18] = new Array(18, "RU", "Russian Federation", 0, 0, 0, 0, false, false, 0, "");
			regions[19] = new Array(19, "SK", "Slovakia", 19, 10, 0, 0, false, false, 2, "^SK[ ]{0,1}[0-9]{10}$");
			regions[20] = new Array(20, "SI", "Slovenia", 20, 8.5, 0, 0, false, false, 2, "^SI[ ]{0,1}[0-9]{8}$");
			regions[21] = new Array(21, "SE", "Sweden", 25, 12, 0, 0, false, false, 2, "^SE[ ]{0,1}[0-9]{10}01$");
			regions[22] = new Array(22, "UA", "Ukraine", 0, 0, 0, 0, false, false, 0, "");
			regions[23] = new Array(23, "GB", "United Kingdom", 17.5, 1, 3, 5, false, false, 2, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[24] = new Array(24, "GBT5", "United Kingdom - Aberdeen City", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[25] = new Array(25, "GBT6", "United Kingdom - Aberdeenshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[26] = new Array(26, "GBT7", "United Kingdom - Angus", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[27] = new Array(27, "GBQ6", "United Kingdom - Antrim", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[28] = new Array(28, "GBQ7", "United Kingdom - Ards", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[29] = new Array(29, "GBT8", "United Kingdom - Argyll and Bute", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[30] = new Array(30, "GBQ8", "United Kingdom - Armagh", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[31] = new Array(31, "GB01", "United Kingdom - Avon", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[32] = new Array(32, "GBQ9", "United Kingdom - Ballymena", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[33] = new Array(33, "GBR1", "United Kingdom - Ballymoney", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[34] = new Array(34, "GBR2", "United Kingdom - Banbridge", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[35] = new Array(35, "GBA1", "United Kingdom - Barking and Dagenham", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[36] = new Array(36, "GBA2", "United Kingdom - Barnet", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[37] = new Array(37, "GBA3", "United Kingdom - Barnsley", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[38] = new Array(38, "GBA4", "United Kingdom - Bath and North East Somerset", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[39] = new Array(39, "GBA5", "United Kingdom - Bedfordshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[40] = new Array(40, "GBR3", "United Kingdom - Belfast", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[41] = new Array(41, "GB03", "United Kingdom - Berkshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[42] = new Array(42, "GBA6", "United Kingdom - Bexley", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[43] = new Array(43, "GBA7", "United Kingdom - Birmingham", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[44] = new Array(44, "GBA8", "United Kingdom - Blackburn with Darwen", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[45] = new Array(45, "GBA9", "United Kingdom - Blackpool", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[46] = new Array(46, "GBX2", "United Kingdom - Blaenau Gwent", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[47] = new Array(47, "GBB1", "United Kingdom - Bolton", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[48] = new Array(48, "GBB2", "United Kingdom - Bournemouth", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[49] = new Array(49, "GBB3", "United Kingdom - Bracknell Forest", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[50] = new Array(50, "GBB4", "United Kingdom - Bradford", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[51] = new Array(51, "GBB5", "United Kingdom - Brent", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[52] = new Array(52, "GBX3", "United Kingdom - Bridgend", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[53] = new Array(53, "GBB6", "United Kingdom - Brighton and Hove", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[54] = new Array(54, "GBB7", "United Kingdom - Bristol", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[55] = new Array(55, "GBB8", "United Kingdom - Bromley", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[56] = new Array(56, "GBB9", "United Kingdom - Buckinghamshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[57] = new Array(57, "GBC1", "United Kingdom - Bury", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[58] = new Array(58, "GBX4", "United Kingdom - Caerphilly", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[59] = new Array(59, "GBC2", "United Kingdom - Calderdale", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[60] = new Array(60, "GBC3", "United Kingdom - Cambridgeshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[61] = new Array(61, "GBC4", "United Kingdom - Camden", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[62] = new Array(62, "GBX5", "United Kingdom - Cardiff", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[63] = new Array(63, "GBX7", "United Kingdom - Carmarthenshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[64] = new Array(64, "GBR4", "United Kingdom - Carrickfergus", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[65] = new Array(65, "GBR5", "United Kingdom - Castlereagh", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[66] = new Array(66, "GB79", "United Kingdom - Central", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[67] = new Array(67, "GBX6", "United Kingdom - Ceredigion", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[68] = new Array(68, "GBC5", "United Kingdom - Cheshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[69] = new Array(69, "GBU1", "United Kingdom - Clackmannanshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[70] = new Array(70, "GB07", "United Kingdom - Cleveland", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[71] = new Array(71, "GB90", "United Kingdom - Clwyd", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[72] = new Array(72, "GBR6", "United Kingdom - Coleraine", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[73] = new Array(73, "GBX8", "United Kingdom - Conwy", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[74] = new Array(74, "GBR7", "United Kingdom - Cookstown", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[75] = new Array(75, "GB08", "United Kingdom - Cornwall", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[76] = new Array(76, "GBC7", "United Kingdom - Coventry", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[77] = new Array(77, "GBR8", "United Kingdom - Craigavon", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[78] = new Array(78, "GBC8", "United Kingdom - Croydon", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[79] = new Array(79, "GB09", "United Kingdom - Cumbria", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[80] = new Array(80, "GBD1", "United Kingdom - Darlington", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[81] = new Array(81, "GBX9", "United Kingdom - Denbighshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[82] = new Array(82, "GBD2", "United Kingdom - Derby", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[83] = new Array(83, "GBD3", "United Kingdom - Derbyshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[84] = new Array(84, "GBS6", "United Kingdom - Derry", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[85] = new Array(85, "GBD4", "United Kingdom - Devon", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[86] = new Array(86, "GBD5", "United Kingdom - Doncaster", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[87] = new Array(87, "GBD6", "United Kingdom - Dorset", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[88] = new Array(88, "GBR9", "United Kingdom - Down", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[89] = new Array(89, "GBD7", "United Kingdom - Dudley", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[90] = new Array(90, "GBU2", "United Kingdom - Dumfries and Galloway", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[91] = new Array(91, "GBU3", "United Kingdom - Dundee City", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[92] = new Array(92, "GBS1", "United Kingdom - Dungannon", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[93] = new Array(93, "GBD8", "United Kingdom - Durham", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[94] = new Array(94, "GB91", "United Kingdom - Dyfed", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[95] = new Array(95, "GBD9", "United Kingdom - Ealing", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[96] = new Array(96, "GBU4", "United Kingdom - East Ayrshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[97] = new Array(97, "GBU5", "United Kingdom - East Dunbartonshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[98] = new Array(98, "GBU6", "United Kingdom - East Lothian", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[99] = new Array(99, "GBU7", "United Kingdom - East Renfrewshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[100] = new Array(100, "GBE1", "United Kingdom - East Riding of Yorkshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[101] = new Array(101, "GBE2", "United Kingdom - East Sussex", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[102] = new Array(102, "GBU8", "United Kingdom - Edinburgh", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[103] = new Array(103, "GBW8", "United Kingdom - Eilean Siar", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[104] = new Array(104, "GBE3", "United Kingdom - Enfield", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[105] = new Array(105, "GBE4", "United Kingdom - Essex", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[106] = new Array(106, "GBU9", "United Kingdom - Falkirk", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[107] = new Array(107, "GBS2", "United Kingdom - Fermanagh", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[108] = new Array(108, "GBV1", "United Kingdom - Fife", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[109] = new Array(109, "GBY1", "United Kingdom - Flintshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[110] = new Array(110, "GBE5", "United Kingdom - Gateshead", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[111] = new Array(111, "GBV2", "United Kingdom - Glasgow City", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[112] = new Array(112, "GBE6", "United Kingdom - Gloucestershire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[113] = new Array(113, "GB82", "United Kingdom - Grampian", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[114] = new Array(114, "GB17", "United Kingdom - Greater London", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[115] = new Array(115, "GB18", "United Kingdom - Greater Manchester", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[116] = new Array(116, "GBE7", "United Kingdom - Greenwich", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[117] = new Array(117, "GB92", "United Kingdom - Gwent", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[118] = new Array(118, "GBY2", "United Kingdom - Gwynedd", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[119] = new Array(119, "GBE8", "United Kingdom - Hackney", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[120] = new Array(120, "GBE9", "United Kingdom - Halton", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[121] = new Array(121, "GBF1", "United Kingdom - Hammersmith and Fulham", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[122] = new Array(122, "GBF2", "United Kingdom - Hampshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[123] = new Array(123, "GBF3", "United Kingdom - Haringey", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[124] = new Array(124, "GBF4", "United Kingdom - Harrow", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[125] = new Array(125, "GBF5", "United Kingdom - Hartlepool", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[126] = new Array(126, "GBF6", "United Kingdom - Havering", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[127] = new Array(127, "GB20", "United Kingdom - Hereford and Worcester", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[128] = new Array(128, "GBF7", "United Kingdom - Herefordshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[129] = new Array(129, "GBF8", "United Kingdom - Hertford", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[130] = new Array(130, "GBV3", "United Kingdom - Highland", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[131] = new Array(131, "GBF9", "United Kingdom - Hillingdon", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[132] = new Array(132, "GBG1", "United Kingdom - Hounslow", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[133] = new Array(133, "GB22", "United Kingdom - Humberside", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[134] = new Array(134, "GBV4", "United Kingdom - Inverclyde", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[135] = new Array(135, "GBX1", "United Kingdom - Isle of Anglesey", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[136] = new Array(136, "GBG2", "United Kingdom - Isle of Wight", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[137] = new Array(137, "GBG3", "United Kingdom - Islington", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[138] = new Array(138, "GBG4", "United Kingdom - Kensington and Chelsea", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[139] = new Array(139, "GBG5", "United Kingdom - Kent", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[140] = new Array(140, "GBG6", "United Kingdom - Kingston upon Hull", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[141] = new Array(141, "GBG7", "United Kingdom - Kingston upon Thames", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[142] = new Array(142, "GBG8", "United Kingdom - Kirklees", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[143] = new Array(143, "GBG9", "United Kingdom - Knowsley", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[144] = new Array(144, "GBH1", "United Kingdom - Lambeth", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[145] = new Array(145, "GBH2", "United Kingdom - Lancashire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[146] = new Array(146, "GBS3", "United Kingdom - Larne", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[147] = new Array(147, "GBH3", "United Kingdom - Leeds", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[148] = new Array(148, "GBH4", "United Kingdom - Leicester", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[149] = new Array(149, "GBH5", "United Kingdom - Leicestershire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[150] = new Array(150, "GBH6", "United Kingdom - Lewisham", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[151] = new Array(151, "GBS4", "United Kingdom - Limavady", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[152] = new Array(152, "GBH7", "United Kingdom - Lincolnshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[153] = new Array(153, "GBS5", "United Kingdom - Lisburn", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[154] = new Array(154, "GBH8", "United Kingdom - Liverpool", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[155] = new Array(155, "GBH9", "United Kingdom - London", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[156] = new Array(156, "GB84", "United Kingdom - Lothian", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[157] = new Array(157, "GBI1", "United Kingdom - Luton", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[158] = new Array(158, "GBS7", "United Kingdom - Magherafelt", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[159] = new Array(159, "GBI2", "United Kingdom - Manchester", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[160] = new Array(160, "GBI3", "United Kingdom - Medway", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[161] = new Array(161, "GB28", "United Kingdom - Merseyside", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[162] = new Array(162, "GBY3", "United Kingdom - Merthyr Tydfil", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[163] = new Array(163, "GBI4", "United Kingdom - Merton", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[164] = new Array(164, "GB94", "United Kingdom - Mid Glamorgan", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[165] = new Array(165, "GBI5", "United Kingdom - Middlesbrough", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[166] = new Array(166, "GBV5", "United Kingdom - Midlothian", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[167] = new Array(167, "GBI6", "United Kingdom - Milton Keynes", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[168] = new Array(168, "GBY4", "United Kingdom - Monmouthshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[169] = new Array(169, "GBV6", "United Kingdom - Moray", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[170] = new Array(170, "GBS8", "United Kingdom - Moyle", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[171] = new Array(171, "GBY5", "United Kingdom - Neath Port Talbot", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[172] = new Array(172, "GBI7", "United Kingdom - Newcastle upon Tyne", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[173] = new Array(173, "GBI8", "United Kingdom - Newham", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[174] = new Array(174, "GBY6", "United Kingdom - Newport", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[175] = new Array(175, "GBS9", "United Kingdom - Newry and Mourne", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[176] = new Array(176, "GBT1", "United Kingdom - Newtownabbey", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[177] = new Array(177, "GBI9", "United Kingdom - Norfolk", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[178] = new Array(178, "GBV7", "United Kingdom - North Ayrshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[179] = new Array(179, "GBT2", "United Kingdom - North Down", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[180] = new Array(180, "GBJ2", "United Kingdom - North East Lincolnshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[181] = new Array(181, "GBV8", "United Kingdom - North Lanarkshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[182] = new Array(182, "GBJ3", "United Kingdom - North Lincolnshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[183] = new Array(183, "GBJ4", "United Kingdom - North Somerset", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[184] = new Array(184, "GBJ5", "United Kingdom - North Tyneside", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[185] = new Array(185, "GBJ7", "United Kingdom - North Yorkshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[186] = new Array(186, "GBJ1", "United Kingdom - Northamptonshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[187] = new Array(187, "GBJ6", "United Kingdom - Northumberland", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[188] = new Array(188, "GBJ8", "United Kingdom - Nottingham", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[189] = new Array(189, "GBJ9", "United Kingdom - Nottinghamshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[190] = new Array(190, "GBK1", "United Kingdom - Oldham", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[191] = new Array(191, "GBT3", "United Kingdom - Omagh", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[192] = new Array(192, "GBV9", "United Kingdom - Orkney", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[193] = new Array(193, "GBK2", "United Kingdom - Oxfordshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[194] = new Array(194, "GBY7", "United Kingdom - Pembrokeshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[195] = new Array(195, "GBW1", "United Kingdom - Perth and Kinross", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[196] = new Array(196, "GBK3", "United Kingdom - Peterborough", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[197] = new Array(197, "GBK4", "United Kingdom - Plymouth", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[198] = new Array(198, "GBK5", "United Kingdom - Poole", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[199] = new Array(199, "GBK6", "United Kingdom - Portsmouth", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[200] = new Array(200, "GBY8", "United Kingdom - Powys", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[201] = new Array(201, "GBK7", "United Kingdom - Reading", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[202] = new Array(202, "GBK8", "United Kingdom - Redbridge", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[203] = new Array(203, "GBK9", "United Kingdom - Redcar and Cleveland", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[204] = new Array(204, "GBW2", "United Kingdom - Renfrewshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[205] = new Array(205, "GBY9", "United Kingdom - Rhondda Cynon Taff", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[206] = new Array(206, "GBL1", "United Kingdom - Richmond upon Thames", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[207] = new Array(207, "GBL2", "United Kingdom - Rochdale", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[208] = new Array(208, "GBL3", "United Kingdom - Rotherham", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[209] = new Array(209, "GBL4", "United Kingdom - Rutland", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[210] = new Array(210, "GBL5", "United Kingdom - Salford", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[211] = new Array(211, "GBL7", "United Kingdom - Sandwell", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[212] = new Array(212, "GBT9", "United Kingdom - Scottish Borders", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[213] = new Array(213, "GBL8", "United Kingdom - Sefton", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[214] = new Array(214, "GBL9", "United Kingdom - Sheffield", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[215] = new Array(215, "GBW3", "United Kingdom - Shetland Islands", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[216] = new Array(216, "GBL6", "United Kingdom - Shropshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[217] = new Array(217, "GBM1", "United Kingdom - Slough", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[218] = new Array(218, "GBM2", "United Kingdom - Solihull", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[219] = new Array(219, "GBM3", "United Kingdom - Somerset", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[220] = new Array(220, "GBW4", "United Kingdom - South Ayrshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[221] = new Array(221, "GB96", "United Kingdom - South Glamorgan", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[222] = new Array(222, "GBM6", "United Kingdom - South Gloucestershire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[223] = new Array(223, "GBW5", "United Kingdom - South Lanarkshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[224] = new Array(224, "GBM7", "United Kingdom - South Tyneside", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[225] = new Array(225, "GB37", "United Kingdom - South Yorkshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[226] = new Array(226, "GBM4", "United Kingdom - Southampton", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[227] = new Array(227, "GBM5", "United Kingdom - Southend-on-Sea", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[228] = new Array(228, "GBM8", "United Kingdom - Southwark", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[229] = new Array(229, "GBN1", "United Kingdom - St. Helens", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[230] = new Array(230, "GBM9", "United Kingdom - Staffordshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[231] = new Array(231, "GBW6", "United Kingdom - Stirling", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[232] = new Array(232, "GBN2", "United Kingdom - Stockport", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[233] = new Array(233, "GBN3", "United Kingdom - Stockton-on-Tees", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[234] = new Array(234, "GBN4", "United Kingdom - Stoke-on-Trent", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[235] = new Array(235, "GBT4", "United Kingdom - Strabane", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[236] = new Array(236, "GB87", "United Kingdom - Strathclyde", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[237] = new Array(237, "GBN5", "United Kingdom - Suffolk", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[238] = new Array(238, "GBN6", "United Kingdom - Sunderland", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[239] = new Array(239, "GBN7", "United Kingdom - Surrey", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[240] = new Array(240, "GBN8", "United Kingdom - Sutton", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[241] = new Array(241, "GBZ1", "United Kingdom - Swansea", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[242] = new Array(242, "GBN9", "United Kingdom - Swindon", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[243] = new Array(243, "GBO1", "United Kingdom - Tameside", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[244] = new Array(244, "GB88", "United Kingdom - Tayside", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[245] = new Array(245, "GBO2", "United Kingdom - Telford and Wrekin", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[246] = new Array(246, "GBO3", "United Kingdom - Thurrock", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[247] = new Array(247, "GBO4", "United Kingdom - Torbay", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[248] = new Array(248, "GBZ2", "United Kingdom - Torfaen", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[249] = new Array(249, "GBO5", "United Kingdom - Tower Hamlets", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[250] = new Array(250, "GBO6", "United Kingdom - Trafford", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[251] = new Array(251, "GB41", "United Kingdom - Tyne and Wear", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[252] = new Array(252, "GBZ3", "United Kingdom - Vale of Glamorgan", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[253] = new Array(253, "GBO7", "United Kingdom - Wakefield", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[254] = new Array(254, "GBO8", "United Kingdom - Walsall", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[255] = new Array(255, "GBO9", "United Kingdom - Waltham Forest", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[256] = new Array(256, "GBP1", "United Kingdom - Wandsworth", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[257] = new Array(257, "GBP2", "United Kingdom - Warrington", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[258] = new Array(258, "GBP3", "United Kingdom - Warwickshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[259] = new Array(259, "GBP4", "United Kingdom - West Berkshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[260] = new Array(260, "GBW7", "United Kingdom - West Dunbartonshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[261] = new Array(261, "GB97", "United Kingdom - West Glamorgan", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[262] = new Array(262, "GBW9", "United Kingdom - West Lothian", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[263] = new Array(263, "GB43", "United Kingdom - West Midlands", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[264] = new Array(264, "GBP6", "United Kingdom - West Sussex", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[265] = new Array(265, "GB45", "United Kingdom - West Yorkshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[266] = new Array(266, "GBP5", "United Kingdom - Westminster", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[267] = new Array(267, "GBP7", "United Kingdom - Wigan", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[268] = new Array(268, "GBP8", "United Kingdom - Wiltshire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[269] = new Array(269, "GBP9", "United Kingdom - Windsor and Maidenhead", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[270] = new Array(270, "GBQ1", "United Kingdom - Wirral", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[271] = new Array(271, "GBQ2", "United Kingdom - Wokingham", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[272] = new Array(272, "GBQ4", "United Kingdom - Worcestershire", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[273] = new Array(273, "GBZ4", "United Kingdom - Wrexham", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			regions[274] = new Array(274, "GBQ5", "United Kingdom - York", 0, 0, 0, 0, false, false, 0, "^GB[ ]{0,1}([0-9]{9}|[0-9]{12})$");
			
			};
		// executed on first session init only
		if(SMFirstInit){
			var SMReferrer = SMSession.xml.documentElement.getAttribute("referrer");
			var SMQuery = SMSession.xml.documentElement.getAttribute("query");
			SMShop.setAttribute("id", SMSession.xml.documentElement.getAttribute("id"));
			SMShop.setAttribute("finit", "1");
			SMShop.setAttribute("session-marker", "knVONzzSV98Yqf5n0N9LK8p6uqjvRwNu75oNOzK9cTa43w==");
			SMShop.setAttribute("build", "5.6.2");
			SMShop.setAttribute("sarurl", SMOMAbsoluteRootURL);
			if(SMReferrer!="") SMShop.setAttribute("referrer", SX_uEsc(SMReferrer));
			if(SMQuery!="") SMShop.setAttribute("query", SX_uEsc(SMQuery));
			SMShop.setAttribute("sid", fnSMRandStr(10));
			
			SMShop.setAttribute("finit", "0");
			};

		
		var SMProviderAddresses = new SXMLDom();with(SMProviderAddresses){documentElement = createNode("SMEmailService");with(documentElement){setAttribute("selfSender", "0");setAttribute("dateFormat", "d.m.Y H:i:s");setAttribute("remoteInfos", "1");setAttribute("referrer", SX_uEsc(SMSession.xml.documentElement.getAttribute("referrer")));setAttribute("adjustServerDate", "0");setAttribute("attachXml", "0");setAttribute("attachSmo", "0");setAttribute("attachOpenTrans", "0");setAttribute("attachLexware", "0");setAttribute("saveOrder", "0");setAttribute("smoEnabled", "0");setAttribute("smoHtmlCopy", "0");with(appendChild(ownerDocument.createNode("SMEmail"))){setAttribute("scope", "order");setAttribute("sender-name", "schneeschaufel.com by thieke Direct Germany,  Schneeschieber Groß u. Einzelhandel");text = "mail_SM|AT_thieke.biz";};with(appendChild(ownerDocument.createNode("SMEmail"))){setAttribute("scope", "contact");setAttribute("sender-name", "schneeschaufel.com by thieke Direct Germany,  Schneeschieber Groß u. Einzelhandel");text = "mail_SM|AT_thieke.biz";};with(appendChild(ownerDocument.createNode("SMEmail"))){setAttribute("scope", "newsletter");setAttribute("sender-name", "schneeschaufel.com by thieke Direct Germany,  Schneeschieber Groß u. Einzelhandel");text = "mail_SM|AT_thieke.biz";};};};
		var SMColors = new SXMLDom();with(SMColors){documentElement = createNode("SMColors");with(documentElement){with(appendChild(ownerDocument.createNode("SMColor"))){setAttribute("key", "main");setAttribute("value", "#5F71AF");};with(appendChild(ownerDocument.createNode("SMColor"))){setAttribute("key", "main.light");setAttribute("value", "#DDE1EE");};with(appendChild(ownerDocument.createNode("SMColor"))){setAttribute("key", "main.dark");setAttribute("value", "#0A4970");};with(appendChild(ownerDocument.createNode("SMColor"))){setAttribute("key", "alt");setAttribute("value", "#B49C4B");};with(appendChild(ownerDocument.createNode("SMColor"))){setAttribute("key", "alt.light");setAttribute("value", "#E3DDC6");};with(appendChild(ownerDocument.createNode("SMColor"))){setAttribute("key", "alt.dark");setAttribute("value", "#62531E");};with(appendChild(ownerDocument.createNode("SMColor"))){setAttribute("key", "background");setAttribute("value", "#FFFFFF");};with(appendChild(ownerDocument.createNode("SMColor"))){setAttribute("key", "foreground");setAttribute("value", "#000000");};with(appendChild(ownerDocument.createNode("SMColor"))){setAttribute("key", "hyperlink");setAttribute("value", "#0000FF");};};};
		var SMFonts = new SXMLDom();with(SMFonts){documentElement = createNode("SMFonts");with(documentElement){with(appendChild(ownerDocument.createNode("SMFont"))){setAttribute("key","small");text="font-family:Tahoma, Helvetica, sans-serif;font-size:10px;font-weight:normal;";};with(appendChild(ownerDocument.createNode("SMFont"))){setAttribute("key","medium");text="font-family:Tahoma, Helvetica, sans-serif;font-size:11px;font-weight:normal;";};with(appendChild(ownerDocument.createNode("SMFont"))){setAttribute("key","large");text="font-family:Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;";};with(appendChild(ownerDocument.createNode("SMFont"))){setAttribute("key","x-large");text="font-family:Tahoma, Helvetica, sans-serif;font-size:17px;font-weight:bold;";};with(appendChild(ownerDocument.createNode("SMFont"))){setAttribute("key","xx-large");text="font-family:Tahoma, Helvetica, sans-serif;font-size:21px;font-weight:bold;";};};};

		var SMCfgItems = "_3CSMCfgItems_3E_3CSMCfgItem_20key=_22provider_X5X2bank_X5X2account_X5X2bic_22_3EDres_X520DE_X520FF_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2bank_X5X2account_X5X2iban_22_3EDE58_X52012080000_X5204053231900_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2bank_X5X2account_X5X2number_22_3E4053231900_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2bank_X5X2account_X5X2owner_22_3EHolger_X520Thieke_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2bank_X5X2code_22_3E12080000_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2bank_X5X2name_22_3ECommerz_X520_X520Bank_X520AG_X520Berlin_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2city_22_3EStendal_X520OT_X520B_X5C3_X5B6rgitz_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2company_X5X2director_22_3ESchneeschieber_X520Versand_X520lt_X5X3_X520H_X5X3_X520Thieke_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2company_X5X2director_X5X2label_22_3EInhaber_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2company_X5X2name_22_3Eschneeschaufel_X5X3com_X520by_X520thieke_X520Direct,_X520Schneeschieber_X520Gro_X5C3_X59F_X520u_X5X3_X520Einzelhandel_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2country_X5X2name_22_3EDeutschland_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2fax_X5X2business_22_3E_X5X149_X52039325_X52097577_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2fax_X5X2hotline_22_3E_X5X149_X52039325_X52097576_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2firstname_22_3EH_X5X3_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2lastname_22_3EThieke_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2mail_X5X2contact_22_3E_X5X149_X52039325_X52097576_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2mail_X5X2default_22_3Email_X5X6thieke_X5X3biz_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2mail_X5X2orders_22_3E_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2mail_X5X2support_22_3E_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2mail_X5X2webmaster_22_3E_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2phone_X5X2business_22_3E_X5X149_X52039325_X52097576_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2phone_X5X2hotline_22_3E_X5X149_X52039325_X52097576_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2phone_X5X2mobile_22_3E_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2region_22_3ESachsen_X5X2Anhalt_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2salutation_22_3E_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2shopname_22_3Eschneeschaufel_X5X3com_X520by_X520thieke_X520Direct,_X520Schneeschieber_X520Gro_X5C3_X59F_X520u_X5X3_X520Einzelhandel_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2slogan_22_3ESchneer_X5C3_X5A4umer,_X520Schneeschaufeln_X520_X5X7_X520Schneeschieber_X520bei_X520schneeschaufel_X5X3com_X520kaufen_X520und_X520bestellen_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2street_X5X2name_22_3EDorfstrasse_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2street_X5X2number_22_3E03_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2tax_X5X2number_22_3E_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2title_22_3E_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2trade_X5X2number_22_3E_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2url_22_3Ewww_X5X3schneeschaufel_X5X3com_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2vat_X5X2id_22_3EDE_X520231051944_3C_X4SMCfgItem_3E_3CSMCfgItem_20key=_22provider_X5X2zip_X5X2code_22_3E39599_3C_X4SMCfgItem_3E_3C_X4SMCfgItems_3E";
		var SMBasketXML = null;

		with(SMShop){
			
			deliveryTimes[4] = new Array(4, "Lieferung%20Saisonbegin%202010/2011");
			deliveryTimes[6] = new Array(6, "momentan%20nicht%20verf%FCgbar%2C%20Lieferung%20ab%20Saisonbegin%202011/2012");
			deliveryTimes[1] = new Array(1, "sofort%20lieferbar");
			deliveryTimes[2] = new Array(2, "ca.%2010%20-%2014%20Werktage");
			};

		// listen to window.onLoad & .onUnload events
		window.onload = function(){ SMShop.onLoad(); };
		window.onunload = function(){ SMShop.onUnload(); };

	function SMOMGetQtyControl(){
	var _args = SMOMGetQtyControl.arguments, oProduct = _args[0], raiseEvent = ((_args[1]!=null) ? _args[1] : false), index = ((_args[2]!=null) ? _args[2] : -1);
	if(oProduct==null){return("")};
	var sPkid = "PD" + null2str(oProduct.getAttribute(_SMAUniqueID)), iQtyType = null2int(oProduct.getAttribute(_SMAOQtyType)),
			iQtyMin = null2int(oProduct.getAttribute(_SMAMinAmount)), iQtyStep = null2int(oProduct.getAttribute(_SMAOQtyStep)),
			iQtyMax = null2int(oProduct.getAttribute(_SMAMaxAmount)), iQtyDef = null2int(oProduct.getAttribute(_SMAOQDefValue)),
			iOptCount = null2int(oProduct.getAttribute(_SMAOQDDOptCount)), sQtyUnit = "Stk", sField = "";

		if(oProduct.getAttribute(_SMAVariantID)!=null) sPkid += '-' + oProduct.getAttribute(_SMAVariantID);
		sPkid += "Amount";

		iQtyDef = oProduct.getAttribute(_SMAAmount);
		iQtyDef = iQtyDef>iQtyMin?iQtyDef:iQtyMin;

		sField += "<table class=\"basket-line-qty\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td nowrap>";
		switch(iQtyType){
			case 0:
				sField += "<input class=\"addbasket-qtyfield\" id=\"" + sPkid + "\" type=\"text\" size=\"2\" value=\"" + iQtyDef + "\" onchange=\"this.value=fnSMNum(this.value);";
				if(raiseEvent) sField += "SMShop.base.raiseEvent('onBasketGUIElemChanged', false, null, SMShop, this, " + index + ");";
				sField += "\"";
				if(raiseEvent) sField += " onkeydown=\"if(window.event.keyCode==13){ this.value=fnSMNum(this.value); SMShop.base.raiseEvent('onBasketGUIElemChanged', false, null, SMShop, this, " + index + "); };\"";
				sField += "\">";
				break;
			case 1:
				if(raiseEvent) sPkid += "IDX" + index;
				sField += "<input class=\"addbasket-qtyfield\" id=\"" + sPkid + "\" type=\"text\" size=\"2\" value=\"" + iQtyDef + "\" onfocus=\"this.blur()\"";
				if(raiseEvent){
					sField += " onchange=\"SMShop.base.raiseEvent('onBasketGUIElemChanged', false, null, SMShop, this, " + index + ");\"";
					sField += " onkeydown=\"if(window.event.keyCode==13){ this.value=fnSMNum(this.value); SMShop.base.raiseEvent('onBasketGUIElemChanged', false, null, SMShop, this, " + index + "); };\"";
					};
				sField += "></td><td nowrap>";
				sField += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
				sField += "<tr><td style=\"padding-bottom:1px;\"><img src=\"images/button_spinup.gif\" title=\"Bestellmenge erhöhen\" width=\"15\" height=\"8\" border=\"0\" onclick=\"fnSMSpinButtonClick('" + sPkid + "',true," + iQtyMin + "," + iQtyMax + "," + iQtyStep + ", true, " + index + ");\"></td></tr>";
				sField += "<tr><td><img src=\"images/button_spindown.gif\" title=\"Bestellmenge verringern\" width=\"15\" height=\"8\" border=\"0\" onclick=\"fnSMSpinButtonClick('" + sPkid + "',false," + iQtyMin + "," + iQtyMax + "," + iQtyStep + ", true, " + index + ");\"></td></tr>";
				sField += "</table>";
				break;
			case 2:
				sField += "<select id=\"" + sPkid + "\" class=\"addbasket-qtyfield\"";
				if(raiseEvent){
					sField += " onchange=\"SMShop.base.raiseEvent('onBasketGUIElemChanged', false, null, SMShop, this, " + index + ");\"";
					sField += " onkeydown=\"if(window.event.keyCode==13){ this.value=fnSMNum(this.value); SMShop.base.raiseEvent('onBasketGUIElemChanged', false, null, SMShop, this, " + index + "); };\"";
					};
				sField += ">";
				for(var i=iQtyStep; i<=parseInt(iOptCount*iQtyStep);i+=iQtyStep){
					sField += "<option value=\"" + i + "\"";
					if(i==iQtyDef) sField += " selected";
					sField += ">" + i;
				};
				sField += "</select>";
				break;
		};
		sField += "</td></tr></table>";
		return(sField);
		};

	//page:SM_RESERVED_DATA_ENTRY_SHIPMENT

	// cSMShop.getCheckoutStep ( current-page-id, [previous?] )
	function SMGetCheckoutStep(){
	var backwards = arguments[1], returnId = "", usingShipToAddress = bNoCheckoutPage = false;
		usingShipToAddress = (SMShop.getFormElement("BILLTO", "BILLTO_SHIPTO_DIFFERS") != null);
		if(usingShipToAddress){
			usingShipToAddress = cbool(SMShop.getFormValue("BILLTO", "BILLTO_SHIPTO_DIFFERS", true));
			};
		switch(arguments[0]){
			case "SM_RESERVED_BASKET":
				returnId = (backwards) ? "schneeschaufel/warenkorb.html" : "schneeschaufel/rechnungsadresse.html";
				if(backwards) bNoCheckoutPage = true;
				break;
			case "SM_RESERVED_DATA_ENTRY_BILLTO":
				returnId = (backwards) ? "schneeschaufel/warenkorb.html" : (usingShipToAddress) ? "schneeschaufel/lieferadresse.html" : "schneeschaufel/versandart.html";
				if(returnId == "schneeschaufel/warenkorb.html") bNoCheckoutPage = true;
				break;
			case "SM_RESERVED_DATA_ENTRY_SHIPTO":
				returnId = (backwards) ? "schneeschaufel/rechnungsadresse.html" : "schneeschaufel/versandart.html";
				break;
			case "SM_RESERVED_DATA_ENTRY_SHIPMENT":
				returnId = (backwards) ? (usingShipToAddress) ? "schneeschaufel/lieferadresse.html" : "schneeschaufel/rechnungsadresse.html" : "schneeschaufel/zahlart.html";
				break;
			case "SM_RESERVED_DATA_ENTRY_PAYMENT":
				returnId = (backwards) ? "schneeschaufel/versandart.html" : "schneeschaufel/pruefen-und-senden.html";
				break;
			case "SM_RESERVED_DATA_ENTRY_VERIFY":
				returnId = (backwards) ? "schneeschaufel/zahlart.html" : "schneeschaufel/pruefen-und-senden.html";
				if(returnId == "index.html") bNoCheckoutPage = true;
				break;
			default:
				returnId = (backwards) ? "" : "index.html";
				if(!backwards) bNoCheckoutPage = true;
			};
		// valid for checkout?
		if(returnId!=""){
			var sMsgValidity = "", lValidationCode = SMShop.validateDataForCheckout();
			switch(lValidationCode){
				case 1:
					sMsgValidity = "Ihr Warenkorb enthält keine Einträge, bitte legen Sie mindestens einen Artikel in den Warenkorb.".replace("&nbsp;", " ");
					alert(sMsgValidity);
					returnId = "index.html";
					bNoCheckoutPage = true;
					break;
				case 2:
					sMsgValidity = ("Der Mindestbestellwert wurde unterschritten. Der Mindestbestellwert beträgt " + cprimary.format(SMShop.getAttribute(_SMAMinAmount), SM_CSYMBOL + SM_CGROUP)).replace("&nbsp;", " ");
					alert(sMsgValidity);
					returnId = "schneeschaufel/warenkorb.html";
					bNoCheckoutPage = true;
					break;
				};
			}
		else return("");
		// ssl
		if(useSSLForCheckout&&SMOMAbsoluteRootURL.substring(0,7)=="http://"){
			if(sharedSSLURL!=""){
				SMOMAbsoluteRootURL = sharedSSLURL;
				}
			else SMOMAbsoluteRootURL = "https://" + SMOMAbsoluteRootURL.substring(7);
			};
		if(SMOMAbsoluteRootURL.substring(SMOMAbsoluteRootURL.length - 1)=="/") SMOMAbsoluteRootURL = SMOMAbsoluteRootURL.substring(0,SMOMAbsoluteRootURL.length - 1);
		
		if(bNoCheckoutPage && SMShop.getAttribute('sarurl') != ''){
			returnId = SMShop.getAttribute('sarurl') + "/" + returnId;
		} else {
			returnId = SMOMAbsoluteRootURL + "/" + returnId;
		};
		
		return(returnId);
		};

		SMCurrNoOfDecimals = 2;
	var cprimary = new cSMCurrency("EUR", "€", "Euro", ",", "1,1 x", "-1,1 x", 2, ".", 3, 1 );
	var csecondary = new cSMCurrency("CHF", "CHF", "Switzerland Francs", ",", "1,1 x", "-1,1 x", 2, ".", 3, 1.4967 );

	var nprimary = new cSMCurrency("kg", "kg", "kg", ",", "1,1 x", "-1,1 x", 2, "", 3, 1);

	if(SMFirstInit){
		SMShop.basket.setAttribute("p-cur-iso", cprimary.ISO)
		SMShop.basket.setAttribute("p-cur-symbol", cprimary.symbol)
		};	

	function formatProductBasePrice(Product){
	var $basePriceTemplate = "";
		$basePriceTemplate = "Grundpreis: %bp pro %mb %mu";
		if($basePriceTemplate!=""&&(Product.bpAmount!=1||Product.bpBase!=1)){
			$basePriceTemplate = $basePriceTemplate.replace(/%ma/g, Product.bpAmount);
			$basePriceTemplate = $basePriceTemplate.replace(/%mu/g, Product.bpMUnit);
			$basePriceTemplate = $basePriceTemplate.replace(/%qu/g, Product.quantityUnit);
			$basePriceTemplate = $basePriceTemplate.replace(/%bp/g, "<strong class=\"t-em\">" + cprimary.format(Product.getPrice() / Product.bpAmount * Product.bpBase, SM_CGROUP + SM_CSYMBOL) + "</strong>");
			$basePriceTemplate = $basePriceTemplate.replace(/%mb/g, Product.bpBase);
			}
		else $basePriceTemplate = "";
		return($basePriceTemplate);
		};

	function displayProductProperties(Product){
	var $image = null, $elem = null, $basePriceTemplate = "", $fSetData = function(){ var $elem = null; try{ $elem = document.getElementById(arguments[0]); if($elem!=null) $elem.innerHTML = arguments[1]; } catch(e){ }; };
		try{
			$image = new Image();
			$image.src = Product.image;
			}
		catch(e){
			$image = null;
			};
		with(document){
			if($image!=null&&Product.image!=""){
				if(getElementById("product_picture")){
					getElementById("product_picture").src = $image.src;
					};
				};
			$fSetData("product_name", Product.name);
			$fSetData("product_desc", Product.desc);
			$fSetData("product_id", Product.getAttribute(_SMACode));
			$fSetData("product_ean", Product.getAttribute(_SMAEAN));
			$fSetData("product_weight", nprimary.format(Product.getAttribute(_SMAWeight), SM_CGROUP));
			$fSetData("product_original_price", cprimary.format(Product.getOriginalPrice(), SM_CGROUP + SM_CSYMBOL));
			$fSetData("product_difference", cprimary.format(Product.getOriginalPrice() - Product.getPrice(), SM_CGROUP + SM_CSYMBOL));
			$fSetData("product_price", cprimary.format(Product.getPrice(), SM_CGROUP + SM_CSYMBOL));
			$fSetData("product_price_seccur", csecondary.format(Product.getPrice(), SM_CGROUP + SM_CSYMBOL));
			$fSetData("product_discounts", Product.discounts.renderHTML());
			$fSetData("product_base_price", formatProductBasePrice(Product));
			if(Product.deliveryTimeFKID!=0){
				$fSetData("product_delivery_caption", unescape(SMShop.deliveryTimes[Product.deliveryTimeFKID][1]));
				};
			$elem = getElementById("product_delivery_img");
			if($elem&&Product.deliveryTimeFKID!=0){
				try{
					$image = new Image();
					$image.src = $elem.src.replace(/(.+\/[^\d\/]+)\d+(\.[a-z]+)/gi, "$1" + Product.deliveryTimeFKID + "$2");
					}
				catch(e){ $image = null };
				if($image!=null) $elem.src = $image.src;
				};
			};
		};

	/* sm:broker-url begin-edit */
	var SMBrokerURL = "http://www.schneeschaufel.com/broker/smbiz_smartbroker.php5"
	/* sm:broker-url end-edit */
