	// 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/btnadtobag.gif" width="87" height="20" 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 += "";
			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/box_bedruckt.jpg",
		150, 150,
		"10001", "Individuelle Verpackung",
		"bedruckt nach Vorlage (ab 10.000 Stk.)", "",
		"0", "0",
		"1", 1,
		"", "4",
		"", "pd-1316688347.htm",
		"", 10000,
		"2", "0",
		 1)
	
		Entry[1] = new Element(
		1, "assets/thumb/karton_bedruckt.jpg",
		150, 150,
		"10002", "Bedruckte Einzelverpackung",
		"bedruckt nach Vorlage (ab 10.000 Stk.)", "",
		"0", "0",
		"1", 1,
		"", "4",
		"", "pd-1540590373.htm",
		"", 10000,
		"2", "0",
		 1)
	
		Entry[2] = new Element(
		2, "assets/thumb/karton_neutral.jpg",
		150, 150,
		"10003", "Einzelkarton neutral",
		"Postversandfähiger Karton", "",
		"0", "0",
		"1", 1,
		"", "4",
		"", "pd-141462911.htm",
		"", 1,
		"2", "0",
		 1)
	
		Entry[3] = new Element(
		3, "assets/thumb/kus_box.jpg",
		150, 150,
		"10004", "Krebs &amp; Sohn Box",
		"mit Plastikeinlage und Karton", "",
		"0", "0",
		"1", 1,
		"", "4",
		"", "pd211714199.htm",
		"", 1,
		"2", "0",
		 1)
	
		Entry[4] = new Element(
		4, "assets/thumb/lage.jpg",
		150, 150,
		"10012", "Verpackung auf Lagen",
		"mit weissem Seidenpapier", "",
		"0", "0",
		"1", 1,
		"Stück", "4",
		"", "pd754308253.htm",
		"", 1,
		"2", "0",
		 1)
	
		Entry[5] = new Element(
		5, "assets/thumb/neutrale_box.jpg",
		150, 150,
		"10006", "Verpackung neutral",
		"mit Plastikeinlage und Karton", "",
		"0", "0",
		"1", 1,
		"", "4",
		"", "pd-257253357.htm",
		"", 1,
		"2", "0",
		 1)
	
		Entry[6] = new Element(
		6, "assets/thumb/trans_dose.jpg",
		150, 150,
		"10010", "Einzelverpackung Kunststoffdose",
		"transparent für alle Kugelgrössen", "",
		"0", "0",
		"1", 1,
		"", "4",
		"", "pd-1273401223.htm",
		"", 1,
		"2", "0",
		 1)
	
		Entry[7] = new Element(
		7, "assets/thumb/Bordeaux-satin_550.jpg",
		150, 150,
		"550", "Bordeaux",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd2119816445.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[8] = new Element(
		8, "assets/thumb/Curry-satin_286.jpg",
		150, 150,
		"286", "Curry",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd-1990117671.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[9] = new Element(
		9, "assets/thumb/Elfenbein-satin_622.jpg",
		150, 150,
		"622", "Elfenbein",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd-1701491083.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[10] = new Element(
		10, "assets/thumb/Gold-satin_260.jpg",
		150, 150,
		"260", "Gold",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd624871015.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[11] = new Element(
		11, "assets/thumb/Grün-satin_326.jpg",
		150, 150,
		"326", "Grün",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd-956510483.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[12] = new Element(
		12, "assets/thumb/Karminrot-satin_513.jpg",
		150, 150,
		"513", "Karminrot",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd-1388748061.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[13] = new Element(
		13, "assets/thumb/Kiwi-satin_325.jpg",
		150, 150,
		"325", "Kiwi",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd-1552550117.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[14] = new Element(
		14, "assets/thumb/Königsblau-satin_400.jpg",
		150, 150,
		"400", "Königsblau",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd-948214563.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[15] = new Element(
		15, "assets/thumb/Lila-satin_486.jpg",
		150, 150,
		"486", "Lila",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd539208275.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[16] = new Element(
		16, "assets/thumb/Lindrün-satin_333.jpg",
		150, 150,
		"333", "Lindrün",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd-1571126087.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[17] = new Element(
		17, "assets/thumb/Marone-satin_602.jpg",
		150, 150,
		"602", "Marone",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd273562197.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[18] = new Element(
		18, "assets/thumb/Opal-Pink-satin_581.jpg",
		150, 150,
		"581", "Opal-Pink",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd-2100378809.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[19] = new Element(
		19, "assets/thumb/Orange-satin_520.jpg",
		150, 150,
		"520", "Orange",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd-724963901.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[20] = new Element(
		20, "assets/thumb/Pink-satin_586.jpg",
		150, 150,
		"586", "Pink",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd1513764265.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[21] = new Element(
		21, "assets/thumb/Porzellan-Satin_100_ALT.jpg",
		150, 150,
		"100", "Porzellan",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd1667536895.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[22] = new Element(
		22, "assets/thumb/Rost-satin_662.jpg",
		150, 150,
		"662", "Rost",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd-1451353161.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[23] = new Element(
		23, "assets/thumb/Rot-satin_500.jpg",
		150, 150,
		"500", "Rot",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd-1368183501.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[24] = new Element(
		24, "assets/thumb/Schwarz-satin_700.jpg",
		150, 150,
		"700", "Schwarz",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd527406645.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[25] = new Element(
		25, "assets/thumb/Schwarz-satin_704.jpg",
		150, 150,
		"704", "Schwarz",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd419797867.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[26] = new Element(
		26, "assets/thumb/Silber-Satin_130_ALT.jpg",
		150, 150,
		"130", "Silber",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd128400273.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[27] = new Element(
		27, "assets/thumb/Terrakotta-satin_667.jpg",
		150, 150,
		"667", "Terrakotta",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd1291563047.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[28] = new Element(
		28, "assets/thumb/Türkis-satin_432.jpg",
		150, 150,
		"432", "Türkis",
		"Satin", "",
		"0", "0",
		"1", 1,
		"", "1",
		"", "pd1680238755.htm",
		"", 1,
		"4", "0",
		 1)
	
		Entry[29] = new Element(
		29, "assets/thumb/BlattgoldNEU_261.jpg",
		150, 150,
		"261", "Blattgold",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd1475751008.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[30] = new Element(
		30, "assets/thumb/Bordeaux_55.jpg",
		150, 150,
		"55", "Bordeaux",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd1450189303.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[31] = new Element(
		31, "assets/thumb/Curry_285.jpg",
		150, 150,
		"285", "Curry",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-58452109.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[32] = new Element(
		32, "assets/thumb/Elfenbein_621.jpg",
		150, 150,
		"621", "Elfenbein",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-38650705.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[33] = new Element(
		33, "assets/thumb/Frost_01.jpg",
		150, 150,
		"01", "Frost",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-574943829.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[34] = new Element(
		34, "assets/thumb/Glasklar-00.jpg",
		150, 150,
		"00", "Glasklar",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd2048587729.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[35] = new Element(
		35, "assets/thumb/Kirsche_576.jpg",
		150, 150,
		"576", "Kirsche",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-1626918967.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[36] = new Element(
		36, "assets/thumb/Kirsche_577.jpg",
		150, 150,
		"577", "Kirsche",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd2050924319.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[37] = new Element(
		37, "assets/thumb/Kiwi_324.jpg",
		150, 150,
		"324", "Kiwi",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd1550071397.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[38] = new Element(
		38, "assets/thumb/Königsblau_40.jpg",
		150, 150,
		"40", "Königsblau",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd1157086913.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[39] = new Element(
		39, "assets/thumb/Königsblau_unv_401.jpg",
		150, 150,
		"401", "Königsblau",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-2125027625.htm",
		"", 1,
		"5", "0",
		 3)
	
		Entry[40] = new Element(
		40, "assets/thumb/Marone_601.jpg",
		150, 150,
		"601", "Marone",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-1306018417.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[41] = new Element(
		41, "assets/thumb/Opal-Pink_5800.jpg",
		150, 150,
		"5800", "Opal-Pink",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd2108775563.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[42] = new Element(
		42, "assets/thumb/Opal-Pink_582.jpg",
		150, 150,
		"582", "Opal-Pink",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-692493903.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[43] = new Element(
		43, "assets/thumb/Orange_52.jpg",
		150, 150,
		"52", "Orange",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-775645491.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[44] = new Element(
		44, "assets/thumb/Rosa_579.jpg",
		150, 150,
		"579", "Rosa",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-1591584187.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[45] = new Element(
		45, "assets/thumb/Rose_538.jpg",
		150, 150,
		"538", "Rose",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-1345044997.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[46] = new Element(
		46, "assets/thumb/Rost_661.jpg",
		150, 150,
		"661", "Rost",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-585178975.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[47] = new Element(
		47, "assets/thumb/Rot_50.jpg",
		150, 150,
		"50", "Rot",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-444111683.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[48] = new Element(
		48, "assets/thumb/Schwarz_70.jpg",
		150, 150,
		"70", "Schwarz",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-1757068647.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[49] = new Element(
		49, "assets/thumb/Schwarz_703.jpg",
		150, 150,
		"703", "Schwarz",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd1806446191.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[50] = new Element(
		50, "assets/thumb/Titanblau_41.jpg",
		150, 150,
		"41", "Titanblau",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd-1607283027.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[51] = new Element(
		51, "assets/thumb/X-masgreen_303.jpg",
		150, 150,
		"303", "X-masgreen",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd601533321.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[52] = new Element(
		52, "assets/thumb/X-masgreen_304.jpg",
		150, 150,
		"304", "X-masgreen",
		"Glanz", "",
		"0", "0",
		"1", 1,
		"", "2",
		"", "pd947224799.htm",
		"", 1,
		"5", "0",
		 1)
	
		Entry[53] = new Element(
		53, "assets/thumb/logo08_de_sm.jpg",
		150, 150,
		"20001", "Blickfanggarantie",
		"deutsch", "",
		"0", "0",
		"1", 1,
		"", "5",
		"", "pd-312953775.htm",
		"", 1,
		"3", "0",
		 1)
	
		Entry[54] = new Element(
		54, "assets/thumb/logo08_en_sm.jpg",
		150, 150,
		"20002", "A Guaranteed Eye Catcher",
		"englisch", "",
		"0", "0",
		"1", 1,
		"", "5",
		"", "pd-1332422937.htm",
		"", 1,
		"3", "0",
		 1)
	
		Entry[55] = new Element(
		55, "assets/thumb/light_1a.jpg",
		150, 150,
		"999", "Die leuchtende Weihnachtskugel",
		"Lassen Sie Ihr Logo strahen, wenn das Licht ausgeht.", "",
		"0", "0",
		"1", 1,
		"Stück", "3",
		"", "pd495355395.htm",
		"", 1,
		"10", "0",
		 1)
	
// ** 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();
			};
		};
