	// define buildUp Methods for StandAloneElements
	function createLine(){
		myLine = new clsObject("OrderBody")
			myLine.LinePos						=	xmlOHeader.childNodes.length;
			myLine.ProductNo					=	"";
			myLine.Name							=	"";
			myLine.Description					=	"";
			myLine.PriceUserEntry				=	"";
			myLine.PriceUnit					=	"1";
			myLine.MinOrder						=	"1";
			myLine.QuantityUnit					=	"";
			myLine.QuantityAmount				=	"1";
			myLine.TaxClass						=	"0";
			myLine.TaxRate						=	"0";
			myLine.TaxAmountLineTotalLC			=	"0";
			myLine.TaxAmountLineTotalSC			=	"0";
			myLine.DiscountRate					=	"0";
			myLine.DiscountNetSingleUnitLC		=	"0";
			myLine.DiscountGrossSingleUnitLC	=	"0";
			myLine.DiscountNetLineTotalLC		=	"0";
			myLine.DiscountGrossLineTotalLC		=	"0";
			myLine.DiscountNetSingleUnitSC		=	"0";
			myLine.DiscountGrossSingleUnitSC	=	"0";
			myLine.DiscountNetLineTotalSC		=	"0";
			myLine.DiscountGrossLineTotalSC		=	"0";
			myLine.PriceNetSingleUnitLC			=	"0";
			myLine.PriceGrossSingleUnitLC		=	"0";
			myLine.PriceNetLineTotalLC			=	"0";
			myLine.PriceGrossLineTotalLC		=	"0";
			myLine.PriceNetSingleUnitSC			=	"0";
			myLine.PriceGrossSingleUnitSC		=	"0";
			myLine.PriceNetLineTotalSC			=	"0";
			myLine.PriceGrossLineTotalSC		=	"0";
			myLine.WeightUnit					=	"";
			myLine.WeightAmountSingleUnit		=	"0";
			myLine.WeightAmountLineTotal		=	"0";
			// remove
			myLine.addNode("Internal");
	// return Line-Object to Caller
	return myLine;
	};
// 
	function addToBag(anElement,Amount){
		with(this){
			var taxamount = taxarea[parseInt(xmlConfig.taxarea)][parseInt(anElement.Tax) + 1];
			var update = -1;
			myLines = xmlOHeader.childNodes
			for(var i=0;i<myLines.length;i++){
				if(myLines[i].ProductNo==anElement.Prod_nr){
					update = i;
					break;
					};
				};
			// product already in shoppingcard
			if(update>-1){
				// detect position of prod_nr in shoppingcart
				myLines[i].QuantityAmount = Amount;
				if(boolPriceTaxIncl){
					myLines[i].PriceNetLineTotalLC = anElement.Price * Amount * ( 1 - taxamount/( 100 + taxamount ));
					myLines[i].PriceGrossLineTotalLC = anElement.Price * Amount;
					}
				else{
					myLines[i].PriceNetLineTotalLC = anElement.Price * Amount;
					myLines[i].PriceGrossLineTotalLC = anElement.Price * Amount * ( 1 + taxamount/100 );
					};
				}
			// add product to shoppingcart
			else{
				myLine = createLine();
				myLine.ProductNo = anElement.Prod_nr;
				myLine.Name = anElement.Title;
				myLine.Description = anElement.Subtitle;
				myLine.QuantityAmount = Amount;
				myLine.QuantityUnit = anElement.Unitdesc;
				myInternal = myLine.getFirstItem("Internal")
					myInternal.price = anElement.Price;
					myInternal.address = anElement.LnkAdress;
					myInternal.navIndex = anElement.NavIndex;
					myInternal.discount = anElement.Discount;
					myInternal.minOrder = anElement.Minorder;
					myInternal.variants = anElement.Variants;
					myInternal.catDiscount = anElement.catDiscount;
				
				myLine.WeightAmountSingleUnit = parseFloat(anElement.Weight);
				myLine.WeightAmountLineTotal = parseFloat(anElement.Weight) * parseInt(Amount);
				
				myLine.TaxClass = anElement.Tax;
				myLine.TaxRate = taxamount;
				
				myLine.PriceUnit = anElement.PriceUnit;
				
				if(boolPriceTaxIncl){
					myLine.PriceNetSingleUnitLC = parseFloat(anElement.Price) * ( 1 - taxamount/( 100 + taxamount ) );
					myLine.PriceNetLineTotalLC = parseFloat(anElement.Price) * parseInt(Amount) * ( 1 - taxamount/( 100 + taxamount ) );
					myLine.PriceGrossSingleUnitLC = parseFloat(anElement.Price);
					myLine.PriceGrossLineTotalLC = parseFloat(anElement.Price) * parseInt(Amount);
					}
				else{
					myLine.PriceNetSingleUnitLC = parseFloat(anElement.Price);
					myLine.PriceNetLineTotalLC = parseFloat(anElement.Price) * parseInt(Amount);
					myLine.PriceGrossSingleUnitLC = parseFloat(anElement.Price) * ( 1 + taxamount/100 );
					myLine.PriceGrossLineTotalLC = parseFloat(anElement.Price) * parseInt(Amount) * ( 1 + taxamount/100 );
					};
				myLines[myLines.length] = myLine;
				};
			safeData();
			var dummyQueryString = "";
			if(Element){
				dummyQueryString += "productId=" + anElement.Prod_No + "&quantity=" + Amount;
				};
			location.href="orderform.htm?" + dummyQueryString;
			};
		};
// ** 1105
	function TElementPrint(){
		var boolDisplArtId = "true";
		var variants, variantString = "";
		variants = this.Variants.split("@");
		for(var i=0; i<variants.length - 1; i++){
			variantString += "search" + i + "_EQ_" + variants[i].split(";")[1] + "_AND_"; 
			};
		variantString += "{EOL}";
		
		var addToBag = '<img src="assets/images/btnaddtobag.gif" width="147" height="13" alt="Artikel merken" border="0" align="bottom" hspace="0" vspace="0" class="main">';
		var rString = '<TR><TD align="right" class="PROVIEWBODY">';
		if(this.Image!=""){
			if(this.LnkAdress!="#DROP#") rString += "<a href=\"" + this.LnkAdress + "?defaultVariants=" + variantString + "&categoryId=" + this.NavIndex + "\">";
			rString += "<img src='" + this.Image + "' border=0";
			if(this.Width!=0) rString += " width=" + this.Width;
			if(this.Height!=0) rString += " height=" + this.Height;
			rString += " align=\"top\">";
			if(this.LnkAdress!="#DROP#") rString += "</a>";
			};
		
		rString += '</TD><TD class="PROVIEWBODY" valign="top" width="100%"><TABLE border="0" cellpadding="1" cellspacing="0" width="100%">';
		if(boolDisplArtId) rString += '<TR><TD class="PROVIEWARTID">' + this.Prod_nr + "</TD></TR>";
		rString += "<TR><TD class=\"PROVIEWBEZ1\">"
		if(this.LnkAdress!="#DROP#") rString += "<a href=\"" + this.LnkAdress + "?defaultVariants=" + variantString + "&categoryId=" + this.NavIndex + "\">"
		rString += this.Title;
		if(this.LnkAdress!="#DROP#") rString += "</a>";
		rString += "</TD></TR>"
			+ "<TR><TD class=\"PROVIEWBEZ2\">" + this.Subtitle;
		if(variants.length>0) rString += "<br>";
		for(var i=0; i<variants.length - 1; i++){
			rString	+= "<nobr><strong>" + variants[i].split(";")[0] + ": " + variants[i].split(";")[1] + "</strong>"
			if(i<variants.length-2) rString += ", ";
			rString += "</nobr>";
			};
		rString += "</TD></TR>";
		if(this.displMode==0||this.displMode==2){
			rString	+= "<TR><TD>";
			rString += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
			if(this.catDiscount==0){
				rString += "<tr valign=\"top\"><td class=\"PROVIEWPRICE\" nowrap>";
				rString += TFormatCurrency(displPrice(this.Price,this.Tax) / this.PriceUnit, objPriCurrency);
				if(boolDisplSecCurr) rString += charSecCurrDelimiter + TFormatCurrency(displPrice(this.Price,this.Tax) / this.PriceUnit, objSecCurrency);
				rString += "</td></tr>";
				}
			else{
				if(this.Discount==""||this.Discount=="{EOL}"){
					rString += "<tr valign=\"top\">";
					rString += "<td nowrap>Preis vorher:&nbsp;</td>";
					rString += "<td class=\"PROVIEWPRICESTROKEN\" nowrap>";
					rString += TFormatCurrency(displPrice(this.Price,this.Tax) / this.PriceUnit, objPriCurrency);
					rString += "</td>"
					rString += "</tr>";
					rString += "<tr valign=\"top\">";
					rString += "<td nowrap>Jetzt nur noch:&nbsp;</td>";
					rString += "<td class=\"PROVIEWPRICE\" nowrap>";
					rString += TFormatCurrency(displPrice(this.Price * (1 - this.catDiscount / 100 ),this.Tax) / this.PriceUnit, objPriCurrency);
					if(boolDisplSecCurr) rString += charSecCurrDelimiter + TFormatCurrency(displPrice(this.Price - ( this.Price * this.catDiscount / 100 ),this.Tax) / this.PriceUnit, objSecCurrency);
					rString += "</td>"
					rString += "</tr>";
					}
				else{
					rString += "<tr valign=\"top\"><td class=\"PROVIEWPRICE\" nowrap>";
					rString += TFormatCurrency(displPrice(this.Price,this.Tax) / this.PriceUnit, objPriCurrency);
					if(boolDisplSecCurr) rString += charSecCurrDelimiter + TFormatCurrency(displPrice(this.Price,this.Tax) / this.PriceUnit, objSecCurrency);
					rString += "</td></tr>";
					};
				};
			rString += "</table>";
			rString += "</TD></TR>";
			}
		else if(this.displMode==3){
			rString	+= "<TR><TD class=\"PROVIEWPRICE\" nowrap>";
			rString += "Preis auf Anfrage";
			rString += "</TD></TR>";
			};
		if(this.displMode==0){
			rString += "<TR><TD>&nbsp;</TD></TR>"
				+ "<TR><TD><a href=\"JavaScript:addToBag(Entry[" + this.Index + "]," + this.Minorder + ");\">" + addToBag + "</a></TD></TR>";
			};
		rString += "<TR><TD>&nbsp;</TD></TR>"
			+ "</TABLE>"
			+ "</td></tr>";
		return(rString);
		};
// ** 1106
	function Element(Index,Image,Width,Height,Prod_nr,Title,Subtitle,Manufac,Price,Weight,Tax,PriceUnit,Unitdesc,NavIndex,Options,LnkAdress,Discount,Minorder,Category,catDiscount,displMode){
		this.Index = Index;
		this.Image = Image;this.Width = Width;
		this.Height = Height;this.Prod_nr = Prod_nr;
		this.Title = Title;this.Subtitle = Subtitle;
		this.Manufac = Manufac;this.Price = Price;
		this.Weight = Weight;this.Tax = Tax;
		this.PriceUnit = PriceUnit;this.Unitdesc = Unitdesc;
		this.NavIndex = NavIndex;
		this.Print = TElementPrint;this.Variants = Options;
		this.LnkAdress = LnkAdress;this.Discount = Discount;
		this.Minorder = Minorder;this.Category = Category;
		this.catDiscount = catDiscount;
		this.displMode = displMode;
		};
// ** 1107
	var Entry = new Array();
// ** 1108
	
		Entry[0] = new Element(
		0, "assets/thumb/kanu Chenin Blanc 2003.jpg",
		103, 150,
		"106007", "Kanu Chenin Blanc 2003",
		"zur Zeit nicht lieferbar", "Kanu",
		"7.2", "0",
		"1", 1,
		"Flasche(n)", "2,0",
		"", "pd-954599775.htm",
		"", 1,
		"12,10", "0",
		 2)
	
		Entry[1] = new Element(
		1, "assets/thumb/Bellevue Pinotage 2000 Tump.JPG",
		52, 150,
		"100003", "Bellevue Pinotage 2002",
		"", "",
		"16.9", "0",
		"1", 1,
		"Flasche(n)", "7,5",
		"", "pd1093899933.htm",
		"", 1,
		"22,20", "0",
		 0)
	
		Entry[2] = new Element(
		2, "assets/thumb/Villiera Pinotage Tump.jpg",
		152, 189,
		"112006", "Villiera Pinotage 2001",
		"", "",
		"9.9", "0",
		"1", 1,
		"Flasche(n)", "7,5",
		"", "pd-1707876520.htm",
		"", 1,
		"22,20", "0",
		 1)
	
		Entry[3] = new Element(
		3, "assets/thumb/Zonnebloem Pinotage 1999 Tump.JPG",
		55, 150,
		"113006", "Zonnebloem Pinotage 2001",
		"", "",
		"9.4", "0",
		"1", 1,
		"Flasche(n)", "7,5",
		"", "pd1331836230.htm",
		"", 1,
		"22,20", "0",
		 1)
	
		Entry[4] = new Element(
		4, "assets/thumb/Beyerskl. 2002.jpg",
		41, 150,
		"115002", "Beyerskloof Pinotage 2002",
		"", "",
		"9.4", "0",
		"1", 1,
		"Flasche(n)", "7,5",
		"", "pd-963087132.htm",
		"", 1,
		"22,20", "0",
		 3)
	
		Entry[5] = new Element(
		5, "assets/thumb/Grangehurst_pinotage98 Rainer.jpg",
		145, 150,
		"117001", "Grangehurst Pinotage 1998",
		"zur Zeit nicht lieferbar", "",
		"15.8", "0",
		"1", 1,
		"Flasche(n)", "7,5",
		"", "pd-822512206.htm",
		"", 1,
		"22,20", "0",
		 2)
	
		Entry[6] = new Element(
		6, "assets/thumb/Tukulu_Pinotage 2001.gif",
		38, 150,
		"127002", "Tukulu Pinotage 2002",
		"", "",
		"15.9", "0",
		"1", 1,
		"Flasche(n)", "7,5",
		"", "pd115143902.htm",
		"", 1,
		"22,20", "0",
		 0)
	
		Entry[7] = new Element(
		7, "assets/images/nopicture.gif",
		75, 50,
		"129001", "Rhebokskloof Pinotage 2000",
		"", "",
		"8.9", "0",
		"1", 1,
		"Flasche(n)", "7,5",
		"", "pd907320892.htm",
		"", 1,
		"22,20", "0",
		 1)
	
		Entry[8] = new Element(
		8, "assets/thumb/Zonnebloem Cabernet Sauv 1999 Tump.JPG",
		57, 155,
		"113005", "Zonnebloem Cabernet Sauvignon 2000",
		"zur Zeit nicht lieferbar", "",
		"10.2", "0",
		"1", 1,
		"Flasche(n)", "8,5",
		"", "pd-950662648.htm",
		"", 1,
		"23,20", "0",
		 0)
	
		Entry[9] = new Element(
		9, "assets/thumb/Excelsior Cab Sauvignon 2002.jpg",
		200, 176,
		"131002", "Excelsior Cabernet Sauvignon 2003",
		"", "",
		"7.9", "0",
		"1", 1,
		"Flasche(n)", "8,5",
		"", "pd387260278.htm",
		"", 1,
		"23,20", "0",
		 1)
	
		Entry[10] = new Element(
		10, "assets/images/nopicture.gif",
		75, 50,
		"130004", "Du Toitskloof Merlot 2002",
		"", "",
		"8.9", "0",
		"1", 1,
		"Flasche(n)", "9,5",
		"", "pd131130082.htm",
		"", 1,
		"24,20", "0",
		 0)
	
		Entry[11] = new Element(
		11, "assets/images/nopicture.gif",
		75, 50,
		"102005", "Buitenverwachting Chardonnay 2002",
		"", "",
		"13.9", "0",
		"1", 1,
		"Flasche(n)", "3,0",
		"", "pd2012136531.htm",
		"", 1,
		"13,10", "0",
		 0)
	
		Entry[12] = new Element(
		12, "assets/thumb/kanu_chard.jpg",
		111, 150,
		"106005", "Kanu Chardonnay 2001",
		"", "",
		"11.95", "0",
		"1", 1,
		"Flasche(n)", "3,0",
		"", "pd1667597397.htm",
		"", 1,
		"13,10", "0",
		 0)
	
		Entry[13] = new Element(
		13, "assets/thumb/jordan_01-chard Rainer.jpg",
		145, 150,
		"119001", "Jordan Chardonnay 2001",
		"", "",
		"11.4", "0",
		"1", 1,
		"Flasche(n)", "3,0",
		"", "pd1283569291.htm",
		"", 1,
		"13,10", "0",
		 1)
	
		Entry[14] = new Element(
		14, "assets/thumb/rijksprivatecellar_01-chard Rainer.jpg",
		145, 150,
		"124001", "Rijk&rsquo;s Private Cellar Chardonnay 2001",
		"", "",
		"12.3", "0",
		"1", 1,
		"Flasche(n)", "3,0",
		"", "pd-1473725113.htm",
		"", 1,
		"13,10", "0",
		 0)
	
		Entry[15] = new Element(
		15, "assets/images/nopicture.gif",
		75, 50,
		"130006", "Du Toitskloof Chardonnay 2003",
		"", "",
		"6.5", "0",
		"1", 1,
		"Flasche(n)", "3,0",
		"", "pd-514383667.htm",
		"", 1,
		"13,10", "0",
		 0)
	
		Entry[16] = new Element(
		16, "assets/thumb/Boland Chardonnay 2003.jpg",
		200, 105,
		"133001", "Boland Chardonnay 2002",
		"", "",
		"6.8", "0",
		"1", 1,
		"Flasche(n)", "3,0",
		"", "pd2038925251.htm",
		"", 1,
		"13,10", "0",
		 1)
	
		Entry[17] = new Element(
		17, "assets/images/nopicture.gif",
		75, 50,
		"107002", "Kleine Zalze Chenin Blanc Bush Wine 2002",
		"zur Zeit nicht lieferbar", "",
		"6.1", "0",
		"1", 1,
		"Flasche(n)", "2,0",
		"", "pd844717993.htm",
		"", 1,
		"12,10", "0",
		 2)
	
		Entry[18] = new Element(
		18, "assets/thumb/Villiera 03 Cheninblanc tump.jpg",
		97, 150,
		"112008", "Villiera Chenin Blanc 2003",
		"", "",
		"6.95", "0",
		"1", 1,
		"Flasche(n)", "2,0",
		"", "pd-1040199169.htm",
		"", 1,
		"12,10", "0",
		 0)
	
		Entry[19] = new Element(
		19, "assets/images/nopicture.gif",
		75, 50,
		"130007", "Du Toitskloof Chenin Blanc 2003",
		"", "",
		"5.4", "0",
		"1", 1,
		"Flasche(n)", "2,0",
		"", "pd-1462229947.htm",
		"", 1,
		"12,10", "0",
		 0)
	
		Entry[20] = new Element(
		20, "assets/images/nopicture.gif",
		75, 50,
		"133002", "Boland Chenin Blanc 2003",
		"zur Zeit nicht lieferbar", "",
		"5.4", "0",
		"1", 1,
		"Flasche(n)", "2,0",
		"", "pd1852250107.htm",
		"", 1,
		"12,10", "0",
		 2)
	
		Entry[21] = new Element(
		21, "assets/thumb/Buitenverwaghting_buitenblanc02 Rainer.jpg",
		145, 150,
		"102006", "Buitenverwachting Sauvignon Blanc 2003",
		"", "",
		"10.2", "0",
		"1", 1,
		"Flasche(n)", "4,0",
		"", "pd1343572641.htm",
		"", 1,
		"14,10", "0",
		 1)
	
		Entry[22] = new Element(
		22, "assets/images/nopicture.gif",
		75, 50,
		"105005", "Fleur du Cap Sauvignon Blanc Unfiltered Collection 2003",
		"", "",
		"9.4", "0",
		"1", 1,
		"Flasche(n)", "4,0",
		"", "pd1577610941.htm",
		"", 1,
		"14,10", "0",
		 1)
	
		Entry[23] = new Element(
		23, "assets/thumb/Kanu Sauv Blanc 2003.jpg",
		94, 150,
		"106006", "Kanu Sauvignon Blanc 2003",
		"", "",
		"9.3", "0",
		"1", 1,
		"Flasche(n)", "4,0",
		"", "pd1338197811.htm",
		"", 1,
		"14,10", "0",
		 0)
	
		Entry[24] = new Element(
		24, "assets/thumb/muldersbosch_02_chard Rainer.jpg",
		145, 150,
		"123003", "Mulderbosch Sauvignon Blanc 2003",
		"", "",
		"14.6", "0",
		"1", 1,
		"Flasche(n)", "4,0",
		"", "pd943385753.htm",
		"", 1,
		"14,10", "0",
		 0)
	
		Entry[25] = new Element(
		25, "assets/thumb/Graham Beck Sauvignon Blanc 2004.jpg",
		113, 150,
		"132003", "Graham Beck Sauvignon Blanc 2003",
		"", "",
		"9.8", "0",
		"1", 1,
		"Flasche(n)", "4,0,16",
		"", "pd-922621841.htm",
		"", 1,
		"14,10,70", "0",
		 0)
	
		Entry[26] = new Element(
		26, "assets/thumb/Graham BeckBlanc de Blancs neu.JPG",
		66, 150,
		"132006", "Graham Beck Blanc de Blancs 1999",
		"", "",
		"18.7", "0",
		"1", 1,
		"Flasche(n)", "11",
		"", "pd-494634993.htm",
		"", 1,
		"30", "0",
		 0)
	
		Entry[27] = new Element(
		27, "assets/images/nopicture.gif",
		75, 50,
		"110003", "Seidelberg Red Muscadel",
		"", "",
		"6.8", "0",
		"1", 1,
		"Flasche(n)", "13",
		"", "pd1343453397.htm",
		"", 1,
		"50", "0",
		 0)
	
		Entry[28] = new Element(
		28, "assets/images/nopicture.gif",
		75, 50,
		"106003", "Kanu Limited Release KIA-ORA 1999 Noble Late Harvest",
		"", "",
		"11.9", "0",
		"1", 1,
		"Flasche(n)", "13",
		"", "pd1084407563.htm",
		"", 1,
		"50", "0",
		 0)
	
		Entry[29] = new Element(
		29, "assets/thumb/Villiera Inspiration 2000.JPG",
		145, 150,
		"112003", "Villiera Inspiration Noble Late Harvest 2000",
		"", "",
		"14.6", "0",
		"1", 1,
		"Flasche(n)", "13",
		"", "pd1891862577.htm",
		"", 1,
		"50", "0",
		 0)
	
		Entry[30] = new Element(
		30, "assets/images/nopicture.gif",
		75, 50,
		"130009", "Du Toitskloof Pinotage/Ruby Cabernet 2002",
		"", "",
		"5.8", "0",
		"1", 1,
		"Flasche(n)", "6,5",
		"", "pd-606590316.htm",
		"", 1,
		"21,20", "0",
		 0)
	
		Entry[31] = new Element(
		31, "assets/thumb/Graham Beck Waterside 2003 (high res).jpg",
		49, 150,
		"132007", "Graham Beck Waterside White 2004",
		"", "",
		"6.75", "0",
		"1", 1,
		"Flasche(n)", "0,1,15",
		"", "pd1095732258.htm",
		"", 1,
		"10,11,69", "0",
		 0)
	
		Entry[32] = new Element(
		32, "assets/thumb/Graham Beck Railroad Red 2003.jpg",
		48, 150,
		"132011", "Graham Beck Railroad Red 2004",
		"", "",
		"6.75", "0",
		"1", 1,
		"Flasche(n)", "6,15",
		"", "pd-170011459.htm",
		"", 1,
		"21,69", "0",
		 0)
	
		Entry[33] = new Element(
		33, "assets/thumb/Graham BeckThe William 2000.jpg",
		92, 150,
		"132009", "Graham Beck The William",
		"", "",
		"23.5", "0",
		"1", 1,
		"Flasche(n)", "6,15",
		"", "pd-1654476135.htm",
		"", 1,
		"21,69", "0",
		 0)
	
		Entry[34] = new Element(
		34, "assets/thumb/Lands End Shiraz 2002.JPG",
		42, 150,
		"134001", "Lands End Shiraz 2002",
		"", "",
		"12.9", "0",
		"1", 1,
		"Flasche(n)", "10,15",
		"", "pd-691593617.htm",
		"", 1,
		"25,69", "0",
		 2)
	
		Entry[35] = new Element(
		35, "assets/thumb/Graham BeckBrut Rose NV.jpg",
		67, 150,
		"132008", "Graham Beck Brut Rosé 2000",
		"", "",
		"18.7", "0",
		"1", 1,
		"Flasche(n)", "11,15",
		"", "pd1036256821.htm",
		"", 1,
		"30,69", "0",
		 0)
	
		Entry[36] = new Element(
		36, "assets/images/nopicture.gif",
		75, 50,
		"116001", "De Wetshof Edeloes 2000",
		"Nobel Late Harvest Riesling", "",
		"28.5", "0",
		"1", 1,
		"Flasche(n)", "13",
		"", "pd1395624811.htm",
		"", 1,
		"50", "0",
		 0)
	
		Entry[37] = new Element(
		37, "assets/images/nopicture.gif",
		75, 50,
		"120001", "Ken Forrester T 2000",
		"Nobel Late Harvest Chenin Blanc", "",
		"29.5", "0",
		"1", 1,
		"Flasche(n)", "13",
		"", "pd-408769647.htm",
		"", 1,
		"50", "0",
		 0)
	
		Entry[38] = new Element(
		38, "assets/images/nopicture.gif",
		75, 50,
		"125001", "Robertson Winery Wide River Reserve Almond Grove 1999",
		"Riesling Noble Late Harvest ", "",
		"7.8", "0",
		"1", 1,
		"Flasche(n)", "13",
		"", "pd-584802265.htm",
		"", 1,
		"50", "0",
		 0)
	
		Entry[39] = new Element(
		39, "assets/images/nopicture.gif",
		75, 50,
		"126001", "Signal Hill Creme de Tete 2000",
		"Noble Late Harvest Hanepoot Bushvines", "",
		"24.5", "0",
		"1", 1,
		"Flasche(n)", "13",
		"", "pd-498778451.htm",
		"", 1,
		"50", "0",
		 0)
	
		Entry[40] = new Element(
		40, "assets/images/nopicture.gif",
		75, 50,
		"122001", "Meerendal Natural Sweet 1999",
		"", "",
		"6.8", "0",
		"1", 1,
		"Flasche(n)", "13",
		"", "pd-1606526813.htm",
		"", 1,
		"50", "0",
		 0)
	
		Entry[41] = new Element(
		41, "assets/thumb/du_toitsk_jerepigo.jpg",
		105, 150,
		"130005", "Du Toitskloof Hanepoot Jerepigo 2000",
		"", "",
		"9.8", "0",
		"1", 1,
		"Flasche(n)", "13",
		"", "pd-814474359.htm",
		"", 1,
		"50", "0",
		 0)
	
		Entry[42] = new Element(
		42, "assets/thumb/Villiera Port 1998.jpg",
		64, 80,
		"112005", "Villiera Port 1998",
		"", "",
		"13.2", "0",
		"1", 1,
		"Flasche(n)", "12",
		"", "pd896299231.htm",
		"", 1,
		"40", "0",
		 0)
	
		Entry[43] = new Element(
		43, "assets/thumb/Axe Hill.jpg",
		42, 150,
		"114002", "Axe Hill Port 2001",
		"", "",
		"26.5", "0",
		"1", 1,
		"Flasche(n)", "12",
		"", "pd-1525326299.htm",
		"", 1,
		"40", "0",
		 0)
	
		Entry[44] = new Element(
		44, "assets/thumb/groot_constantia_99_port.jpg",
		145, 150,
		"118001", "Groot Constantia Port 1999",
		"", "",
		"10.7", "0",
		"1", 1,
		"Flasche(n)", "12",
		"", "pd636642523.htm",
		"", 1,
		"40", "0",
		 0)
	
		Entry[45] = new Element(
		45, "assets/thumb/Villiera Port 1998.jpg",
		120, 150,
		"112009", "Villiera Port 1999",
		"", "",
		"13.2", "0",
		"1", 1,
		"Flasche(n)", "12",
		"", "pd1485365889.htm",
		"", 1,
		"40", "0",
		 0)
	
		Entry[46] = new Element(
		46, "assets/images/nopicture.gif",
		75, 50,
		"125003", "Robertson Winery Special Late Harvest 2002",
		"", "",
		"5.9", "0",
		"1", 1,
		"Flasche(n)", "13",
		"", "pd1982034071.htm",
		"", 1,
		"50", "0",
		 0)
	
		Entry[47] = new Element(
		47, "assets/images/nopicture.gif",
		75, 50,
		"130008", "Du Toitskloof Red Muscadel 2002",
		"", "",
		"7.3", "0",
		"1", 1,
		"Flasche(n)", "13",
		"", "pd-112171688.htm",
		"", 1,
		"50", "0",
		 0)
	
		Entry[48] = new Element(
		48, "assets/thumb/De Leuwen Jagt 2001 Tump.JPG",
		50, 149,
		"110004", "Seidelberg De Leuwen Jagt Nuance 2004",
		"", "",
		"5.8", "0",
		"1", 1,
		"Flasche(n)", "1,0",
		"", "pd1093988300.htm",
		"", 1,
		"11,10", "0",
		 0)
	
		Entry[49] = new Element(
		49, "assets/thumb/Meerlust Chardonnay.jpg",
		48, 150,
		"136001", "Meerlust Chardonnay 1999",
		"", "",
		"19.8", "0",
		"1", 1,
		"Flasche(n)", "3,0,15",
		"", "pd1094415195.htm",
		"", 1,
		"13,10,69", "0",
		 0)
	
		Entry[50] = new Element(
		50, "assets/thumb/muldersbosch_02_chard Rainer.jpg",
		145, 150,
		"123004", "Mulderbosch Chardonnay 2002",
		"", "",
		"11.9", "0",
		"1", 1,
		"Flasche(n)", "3",
		"", "pd1108927647.htm",
		"", 1,
		"13", "0",
		 0)
	
		Entry[51] = new Element(
		51, "assets/thumb/Graham Beck Pinno 2003 (high res).jpg",
		112, 150,
		"132012", "Graham Beck Pinno 2004",
		"", "",
		"6.75", "0",
		"1", 1,
		"Flasche(n)", "7",
		"", "pd1113340032.htm",
		"", 1,
		"22", "0",
		 0)
	
		Entry[52] = new Element(
		52, "assets/thumb/fleur_du_cap_chard.gif",
		43, 150,
		"105006", "Fleur du Cap Chardonnay 2003",
		"", "",
		"7.9", "0",
		"1", 1,
		"Flasche(n)", "3",
		"", "pd1116174025.htm",
		"", 1,
		"13", "0",
		 1)
	
		Entry[53] = new Element(
		53, "assets/images/nopicture.gif",
		75, 50,
		"132015", "Graham Beck Chardonnay 2003",
		"", "",
		"9.6", "0",
		"1", 1,
		"Flasche(n)", "3",
		"", "pd1143379203.htm",
		"", 1,
		"13", "0",
		 0)
	
		Entry[54] = new Element(
		54, "assets/images/nopicture.gif",
		75, 50,
		"132015-1", "Graham Beck Chardonnay 2003",
		"", "",
		"9.6", "0",
		"1", 1,
		"Flasche(n)", "16",
		"", "pd1725705961.htm",
		"0::6::6.9;", 1,
		"70", "0",
		 0)
	
// ** 1109
	function SetupSearchEngineForm(){
		mySearchEngine = xmlConfig.getFirstItem("SearchEngine");
		if(mySearchEngine.term!="null") document.SearchEngine.Term.value = mySearchEngine.term;
		for(var i=0;i<document.SearchEngine.Mode.length;i++){
			if(i==mySearchEngine.mode) document.SearchEngine.Mode[i].selected = true;
			};
		if(mySearchEngine.maxPrice>0) document.SearchEngine.Maxprice.value = mySearchEngine.maxPrice;
		else{
			document.SearchEngine.Maxprice.value="";
			mySearchEngine.maxPrice = -1;
			};
		if(xmlConfig.getFirstItem("SearchEngine").ByCategory=="1"){
			for(var i=0;i<document.SearchEngine.navselect.length; i++){
				if(document.SearchEngine.navselect[i].value.split(';;')[2]==mySearchEngine.categoryId){
					xmlConfig.getFirstItem("SearchEngine").categoryIndex = document.SearchEngine.navselect[i].value.split(';;')[0];
					document.SearchEngine.navselect[i].selected = true;
					};
				};
			}
		else{
			xmlConfig.getFirstItem("SearchEngine").categoryIndex = "null";
			};
		};
// enable smartstore to display amount of found products ...
	var counter = 0;
// ** 1111b
	function SearchFor(Term,Mode){
	var foundItems = new Array();
	var itemPrice = 0; var currentCategory = 0;
		mySearchEngine = xmlConfig.getFirstItem("SearchEngine");
		if((Term!="null" && Term!="")||mySearchEngine.maxPrice>=0){
			if(Mode=="") Mode=0;
			Term = Term.toLowerCase();
			var result = "<form name=\"ProductIndex\" onSubmit=\"return false;\">";
			var matchCategory = true;
			var productCategory;
			for(var i=0;i<Entry.length;i++){
				if(xmlConfig.getFirstItem("SearchEngine").ByCategory=="1"){
					// Search for matching categories
					if(xmlConfig.getFirstItem("SearchEngine").categoryIndex!="null"&&xmlConfig.getFirstItem("SearchEngine").categoryIndex!="nada"){
						for(var j=0; j<Entry[i].Category.split(",").length; j++){
							matchCategory = (navigation[mySearchEngine.categoryIndex].categoryId == Entry[i].Category.split(",")[j]) ? true : false;
							if(matchCategory!=true){
								productCategory = getNavElementByCatID(Entry[i].Category.split(",")[j]);
								while(productCategory!=null&&matchCategory==false){
									if(productCategory.parentId!=null){
										if(navigation[productCategory.parentId].categoryId==xmlConfig.getFirstItem("SearchEngine").categoryId){
											currentCategory = Entry[i].Category.split(",")[j];
											matchCategory=true;
											break;
											}
										else productCategory = navigation[productCategory.parentId];
										}
									else{
										currentCategory = Entry[i].Category.split(",")[j];
										productCategory = null;
										};
									};
								}
							else{
								currentCategory = Entry[i].Category.split(",")[j];
								break;
								};
							};
						}
					else{
						currentCategory = Entry[i].Category.split(",")[0];
						matchCategory = true;
						};
					}
				else{
					currentCategory = Entry[i].Category.split(",")[0];
					matchCategory = true;
					};
				// Update current Category
				Entry[i].NavIndex = getNavElementByCatID(currentCategory).id;
				// Continue
				var foundDesc1 = Entry[i].Title.toLowerCase().indexOf(Term)!=-1;
				var foundDesc2 = Entry[i].Subtitle.toLowerCase().indexOf(Term)!=-1;
				var foundProdId = Entry[i].Prod_nr.toLowerCase().indexOf(Term)!=-1;
				var foundManufac = Entry[i].Manufac.toLowerCase().indexOf(Term)!=-1;
				// SearchFor All
				itemPrice = Entry[i].Price
				if(Entry[i].catDiscount!=0&&Entry[i].Discount==""){
					itemPrice = Entry[i].Price * (1 - Entry[i].catDiscount / 100 );
					};
				//
				itemPrice = displPrice(itemPrice, Entry[i].Tax);
				//
				if(Mode==0){
					if((foundDesc1 || foundDesc2 || foundProdId || foundManufac || Term=="null" || Term=="")&&chkMaxprice(itemPrice,mySearchEngine.maxPrice)&&matchCategory){
						counter++;
						foundItems[foundItems.length] = Entry[i];
						};
					};
				// SearchFor Description
				if(Mode==1){
					if((foundDesc1 || foundDesc2 || Term=="null" || Term=="")&&chkMaxprice(itemPrice,mySearchEngine.maxPrice)&&matchCategory){
						counter++;
						foundItems[foundItems.length] = Entry[i];
						};
					};
				// SearchFor ProdId
				if(Mode==2){
					if((foundProdId || Term=="null" || Term=="")&&chkMaxprice(itemPrice,mySearchEngine.maxPrice)&&matchCategory){
						counter++;
						foundItems[foundItems.length] = Entry[i];
						};
					};
				// SearchFor Manufac
				if(Mode==3){
					if((foundManufac || Term=="null" || Term=="")&&chkMaxprice(itemPrice,mySearchEngine.maxPrice)&&matchCategory){
						counter++;
						foundItems[foundItems.length] = Entry[i];
						};
					};
				};
			// found elements: foundItems.length
			for(var i=0; i<foundItems.length;i++){
				result += foundItems[i].Print();
				};
			result += "</form>";
			if(counter>0){
				mySearchEngine.init="false";
				return result;
				}
			else{
				if(mySearchEngine.init=="false")	return "<TR><TD colspan=\"2\" class=\"PROVIEWBODY\" nowrap>Leider wurde kein entsprechendes Produkt gefunden. Bitte versuchen Sie es erneut...</TD></TR>"
				else return("");
				};
			};
		if(mySearchEngine.init=="false") return "<TR><TD colspan=\"2\" class=\"PROVIEWBODY\" nowrap>Sie haben keine Suchkriterien angegeben. Bitte geben Sie Ihr Suchwort ein!</TD></TR>"
		else return("");
		};
// ** 11112
	function chkMaxprice(aPrice,aMaxPrice){
		aMaxPrice = replace(aMaxPrice.toString(),",",".");
		aPrice = calculateCurrencyAmount(aPrice, objPriCurrency);
		if(parseFloat(aMaxPrice)>0){
			if(parseFloat(aPrice)<=parseFloat(aMaxPrice)) return(true)
			else return(false);
			}
		else return(true);
		};
// ** 1111b
	function displPrice(aPrice,aTaxindex){
		var taxamount = taxarea[xmlConfig.taxarea][parseInt(aTaxindex) + 1];
		if(boolDisplTaxIncl){
			if(boolPriceTaxIncl) return(aPrice)
			else return(aPrice * ( 1 + taxamount/100 ) );
			}
		else{
			if(boolPriceTaxIncl) return(aPrice * ( 1 - taxamount/( 100 + taxamount ) ) )
			else return(aPrice);
			};
		};
// ** 1113
	function callpage(address, defValues, NavIndex){
		xmlConfig.getFirstItem("QueryStringData").putValue(defValues);
		xmlConfig.navIndex = NavIndex.toString();
		safeData();
		location.href = address;
		};
// ** 1114
	function newSearch(){
	var queryString = ""; var site = "";
	var xmlSearchEngine = xmlConfig.getFirstItem("SearchEngine");
		xmlSearchEngine.init='false';
		safeData();
		queryString += "mode=" + xmlSearchEngine.mode
			+ "&term=" + escape(xmlSearchEngine.term)
			+ "&maxPrice=" + escape(xmlSearchEngine.maxPrice)
			+ "&categoryId=" + escape(xmlSearchEngine.categoryIndex);
		if(location.href.indexOf("?")==-1) location.href = "search.htm?" + queryString
		else location.href = location.href.substring(0, location.href.indexOf("?")) + "?" + queryString;
		};
// ** 1115
	function searchOnEnter(){
		if(window.event.keyCode==13){
			xmlConfig.getFirstItem('SearchEngine').maxPrice=valNumber(document.SearchEngine.Maxprice.value,'0','');
			xmlConfig.getFirstItem('SearchEngine').term=document.SearchEngine.Term.value;
			newSearch();
			};
		};
