//
function miniCart(){
var prdCount = 0, prdString = "", subTotal = (xmlConfig.cartSubTotal > 0)?xmlConfig.cartSubTotal:0;
	for(var i=0;i<xmlOHeader.childNodes.length;i++){
		prdCount = prdCount+(parseInt(xmlOHeader.childNodes[i].QuantityAmount));
		};
	prdString += "Produkte:<strong>&nbsp;" + prdCount + "</strong><br>";
	//prdString += "Summe:<strong>&nbsp;" + TFormatCurrency(subTotal, objPriCurrency) + "</strong><br><br>";
	prdString += "<a class=\"WAGRUNAV\" href=\"orderform." + xmlConfig.fileExtension + "\">";
	prdString += "<strong>" + '<img src="assets/images/bulletcat1st.gif" width="13" height="14" alt="Bullet.gif" border="0" align="absmiddle" hspace="0" vspace="0" class="catnav">' + "Zum Warenkorb</strong></a>";
	return(prdString);
	};
//
var TNavDropDownIndent = ".."
//
function NavLinkedDropDownList(){
	return(TNavDropDownList(true));
	};
//
function NavDropDownList(){
	return(TNavDropDownList(false));
	};
//
function storeSearchParameters(optionValueArray){
var xmlSearchEngine = xmlConfig.getFirstItem("SearchEngine");
	if(optionValueArray[0]!="null"&&optionValueArray[0]!="nada"){
		xmlSearchEngine.categoryIndex = optionValueArray[0];
		xmlSearchEngine.categoryId = optionValueArray[2];
		xmlSearchEngine.ByCategory = "1";
		}
	else{
		xmlSearchEngine.categoryIndex = "null";
		xmlSearchEngine.categoryId = "null";
		xmlSearchEngine.ByCategory = "0";
		};
	};
//
function TNavDropDownList(asLink){
var rString = "";
var myNavIndex = "";
	if(asLink) myNavIndex = xmlConfig.navIndex;
	else myNavIndex = xmlConfig.getFirstItem("SearchEngine").categoryIndex;
	if(!(myNavIndex=="null"||myNavIndex=="")){ navigation[parseInt(myNavIndex)].active = true; };
	if(asLink) rString += "<select name=\"navselect\" onChange=\"changeLoc(this[this.selectedIndex].value.split(';;')[0],this[this.selectedIndex].value.split(';;')[1])\">"
	else rString += "<select name=\"navselect\" onChange=\"storeSearchParameters(this[this.selectedIndex].value.split(';;'))\">";
	rString += "<option value=\"nada;;start.htm;;null\">Katalog</option>";
	for(var i=0; i<navigation.length; i++){
		if(navigation[i].parentId==null){
			rString += TNavDropDownItem(navigation[i], "");
			};
		};
	rString += "</select>";
	return(rString);
	};
//
function TNavDropDownItem(navItem, cptPreFix){
var rString = "";
	rString += "<option value=\"" + navItem.id + ";;" + navItem.linkUrl + ";;" + navItem.categoryId + "\"";
	if(navItem.active) rString += " selected";
	rString += ">" + cptPreFix + navItem.caption + "</option>";
	for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==navItem.id) rString += TNavDropDownItem(navigation[i], cptPreFix + TNavDropDownIndent);
	return(rString);	
	};
//
	function openItem(itemId){
	var objActiveItem = null;
		if(itemId!=null){
			objActiveItem = navigation[itemId];
			if(objActiveItem!=null){
				objActiveItem.open = true;
				openItem(objActiveItem.parentId);
				};
			};
		};
		
	function activateItem(itemId){
	var objActiveItem = null;
		if(itemId!=null){
			objActiveItem = navigation[itemId];
			if(objActiveItem!=null){
				objActiveItem.active = true;
				openItem(objActiveItem.parentId);
				};
			};
		};
		
	function itemHasSubelems(itemId){
		for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==itemId) return(true);
		return(false);
		};
	
	function TNavLinkList(){
	var strHTML = "";
		for(var i=0; i<navigation.length; i++) if(navigation[i].parentId==null) strHTML += printItem(navigation[i], 0);
		return(strHTML);
		};	
		
	function printItem(navItem, depth){
	var strHTML = "";
	var elemWidth = 1;
		strHTML += '<table width="100%" class="CATLINKS1STPARENT" border="0" cellpadding="1" cellspacing="1" >';
		strHTML += "<tr>"
		for(var i=0; i<depth; i++){
			strHTML += "<td";
			if(navItem.active) strHTML += " class=\"ACTIVECATEGORY\""
			else strHTML += " class=\"CATLINKS1STBULLET\"";
			strHTML += ' width="1%"><img src="assets/images/spacer.gif" width="14" height="1" height="1" alt="" border="0"></td>';
			};
		if(navItem.active) strHTML += '<td width="1%" class="ACTIVECATEGORY"><img src="assets/images/bulletcatact.gif" width="13" height="14" alt="BulletCatAct.gif" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
		else if(navItem.open&&itemHasSubelems(navItem.id)) strHTML += '<td width="1%" class="CATLINKS1STBULLET"><img src="assets/images/bulletcat1stcls.gif" width="14" height="13" alt="BulletCat1stCls.gif" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
		else strHTML += '<td width=\"1%\"><img src="assets/images/bulletcat1st.gif" width="13" height="14" alt="BulletCat1st.gif" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
		strHTML += "<td";
		if(navItem.active) strHTML += " class=\"ACTIVECATEGORY\""
		else strHTML += " class=\"CATLINKS1STBULLET\"";
		strHTML += "width=\"" + ( 100 - ( depth + 1 ) ) + "%\">"
			+ "<a href=\"" + navItem.linkUrl + "?categoryId=" + escape(navItem.id) + "\" class=\"WAGRUNAV\">"
			
		if(navItem.active) strHTML += "<b>" + navItem.caption + "</b>"
		else if(navItem.open&&itemHasSubelems(navItem.id)) strHTML += "<b>" + navItem.caption + "</b>"
		else strHTML += navItem.caption
			

		strHTML += "</a>"
			+ "</td>";
		strHTML += "</tr>"
		strHTML += "</table>"
		depth++;
		if(navItem.active||navItem.open){
			for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==navItem.id) strHTML += printItem(navigation[i], depth);
			};
		return(strHTML);
		};


//

// navElem
	function navElem(id,caption,linkUrl,parentId,categoryId){
		this.id = id;
		this.caption = caption;
		this.linkUrl = linkUrl;
		this.parentId = parentId;
		this.active = false;
		this.open = false;
		this.categoryId = categoryId;
		};
// navigation
var navigation = new Array();
//
navigation[0] = new navElem(0,"3D-Figuren Fingendi","pi1259076685.htm",null,"Fingendi");
navigation[1] = new navElem(1,"Betty Boop","pi1208518538.htm",0,"BettyBoop");
navigation[2] = new navElem(2,"Disney Mickey Mouse","pi-1169356461.htm",0,"Mickey");
navigation[3] = new navElem(3,"Disney Donald Duck","pi104018639.htm",0,"DonaldDuck");
navigation[4] = new navElem(4,"Disney Onkel Dagobert","pi742614064.htm",0,"Dagobert");
navigation[5] = new navElem(5,"Disney Goofy","pi2090419185.htm",0,"Goofy");
navigation[6] = new navElem(6,"Disney Fairies","pi1879434096.htm",0,"Fairies");
navigation[7] = new navElem(7,"Garfield","pi1827503535.htm",0,"Garfield");
navigation[8] = new navElem(8,"Mr. Bean","pi-1242761981.htm",0,"Mr.Bean");
navigation[9] = new navElem(9,"Popeye","pi-1309135588.htm",0,"Popeye");
navigation[10] = new navElem(10,"The Muppets","pi1370546190.htm",0,"Muppets");
navigation[11] = new navElem(11,"Winnie the Pooh","pi268414828.htm",0,"Winnie");
navigation[12] = new navElem(12,"XXL - Collection","pi-1212320512.htm",0,"XXL");
navigation[13] = new navElem(13,"Barootys","pi1116751349.htm",null,"Barooty");
navigation[14] = new navElem(14,"Gutscheine","pi97019003.htm",null,"Gutscheine");
navigation[15] = new navElem(15,"LEGO® ","pi-939040685.htm",null,"LEGO");
navigation[16] = new navElem(16,"NICI ","pi576422676.htm",null,"NICI");
navigation[17] = new navElem(17,"Cats in Love","pi1139837080.htm",16,"Nici-0");
navigation[18] = new navElem(18,"Lillebi","pi-1126361597.htm",16,"Lillebi");
navigation[19] = new navElem(19,"Sports Ferrari","pi1188425570.htm",16,"Nici-1");
navigation[20] = new navElem(20,"Jolly Mäh","pi-1228927138.htm",16,"Nici - 3");
navigation[21] = new navElem(21,"Wild Friends","pi-1661284950.htm",16,"Nici-2");
navigation[22] = new navElem(22,"Best of Donald","pi409966527.htm",null,"Donald");
navigation[23] = new navElem(23,"Donalds Yachting","pi1273782277.htm",22,"Donald_2");
navigation[24] = new navElem(24,"Pop Duck","pi533510587.htm",22,"Donald_3");
navigation[25] = new navElem(25,"Red an Blue","pi45303444.htm",22,"Donald _1");
navigation[26] = new navElem(26,"Servietten","pi506650247.htm",22,"Donald_4");
navigation[27] = new navElem(27,"Best of Mickey","pi-478260286.htm",null,"Mickey-1");
navigation[28] = new navElem(28,"Cocolat","pi454330463.htm",27,"Mickey-2");
navigation[29] = new navElem(29,"Glamour","pi190687657.htm",27,"Mickey-3");
navigation[30] = new navElem(30,"Good Morning","pi-1005606445.htm",27,"Mickey-5");
navigation[31] = new navElem(31,"Popstar","pi746269705.htm",27,"Mickey-6");
navigation[32] = new navElem(32,"Pretty Pink","pi1065793183.htm",27,"Mickey_4");
navigation[33] = new navElem(33,"Stripes","pi1156850957.htm",27,"Mickey_12");
navigation[34] = new navElem(34,"Walk of Fame","pi276222870.htm",27,"Mickey-7");
navigation[35] = new navElem(35,"Accessoires","pi-516377990.htm",27,"mickey_11");
navigation[36] = new navElem(36,"Frühstücksbretter","pi1137543418.htm",27,"mickeybret");
navigation[37] = new navElem(37,"Servietten","pi511440223.htm",27,"Mickey-8");
navigation[38] = new navElem(38,"Best of Snoopy","pi-968360611.htm",null,"Best Snoop");
navigation[39] = new navElem(39,"Classic","pi706334087.htm",38,"classic");
navigation[40] = new navElem(40,"Fleuri","pi-1887255777.htm",38,"Snoopy-13");
navigation[41] = new navElem(41,"Flower Strip","pi-829876390.htm",38,"Flower");
navigation[42] = new navElem(42,"Home Run","pi1139425279.htm",38,"Best-2");
navigation[43] = new navElem(43,"Lots of Dots","pi756168090.htm",38,"Snoopy-4");
navigation[44] = new navElem(44,"Pink Love","pi-1041027722.htm",38,"Snoopy-5");
navigation[45] = new navElem(45,"Roccoco","pi1139476679.htm",38,"Snoopy_5");
navigation[46] = new navElem(46,"Silver Star","pi-723416253.htm",38,"Snoppy_6");
navigation[47] = new navElem(47,"Accessoires","pi-326583591.htm",38,"Best Acces");
navigation[48] = new navElem(48,"Becher / Tassen","pi1222682847.htm",38,"Becher");
navigation[49] = new navElem(49,"Frühstücksbretter","pi1193042057.htm",38,"snoopybret");
navigation[50] = new navElem(50,"Platz-Sets","pi-844746396.htm",38,"Snoopy_11");
navigation[51] = new navElem(51,"Servietten","pi-1976537479.htm",38,"Snoopy_10");
navigation[52] = new navElem(52,"Peanuts","pi1139217983.htm",null,"Peanuts");
navigation[53] = new navElem(53,"Beauty","pi-1103948313.htm",52,"19");
navigation[54] = new navElem(54,"Best of Snoopy","pi1545644633.htm",52,"1");
navigation[55] = new navElem(55,"Classic","pi1442986988.htm",54,"1.2");
navigation[56] = new navElem(56,"Fleuri","pi-899591732.htm",54,"Snoopy_13");
navigation[57] = new navElem(57,"Flower Strip","pi1721727590.htm",54,"1.6");
navigation[58] = new navElem(58,"Home Run","pi604628902.htm",54,"1.3");
navigation[59] = new navElem(59,"Lots of Dots","pi1494576684.htm",54,"1.7");
navigation[60] = new navElem(60,"Pink Love","pi1091371033.htm",54,"1.5");
navigation[61] = new navElem(61,"Roccoco","pi-1725408145.htm",54,"1.4");
navigation[62] = new navElem(62,"Silver Star","pi2134544509.htm",54,"1.1");
navigation[63] = new navElem(63,"Accessoires","pi-74748145.htm",54,"1.14");
navigation[64] = new navElem(64,"Becher / Tassen","pi1143656110.htm",54,"Best Mug");
navigation[65] = new navElem(65,"Frühstücksbretter","pi1772894892.htm",54,"snoopybr");
navigation[66] = new navElem(66,"Platz-Sets","pi-1806207941.htm",54,"platz");
navigation[67] = new navElem(67,"Servietten","pi137671769.htm",54,"1.8");
navigation[68] = new navElem(68,"Bücher","pi53041106.htm",52,"4");
navigation[69] = new navElem(69,"Buch-Accessoires","pi-198491646.htm",68,"4.5");
navigation[70] = new navElem(70,"Comic-Bücher (deutsch)","pi308767894.htm",68,"4.1");
navigation[71] = new navElem(71,"Comic-Bücher (international)","pi-549660065.htm",68,"4.2");
navigation[72] = new navElem(72,"Computer","pi229317611.htm",52,"5");
navigation[73] = new navElem(73,"DVD / Video","pi-974583216.htm",52,"6");
navigation[74] = new navElem(74,"Aufbewahrung","pi1112955018.htm",73,"6.3");
navigation[75] = new navElem(75,"DVD / VHS","pi1502120471.htm",73,"6.1");
navigation[76] = new navElem(76,"Fashion","pi1527464629.htm",52,"3");
navigation[77] = new navElem(77,"Cap&#0039;s / Mützen","pi-652837378.htm",76,"3.3");
navigation[78] = new navElem(78,"Krawatten","pi-849394619.htm",76,"3.11");
navigation[79] = new navElem(79,"Nachtwäsche","pi-510559766.htm",76,"3.7");
navigation[80] = new navElem(80,"Schuhe ","pi1606338825.htm",76,"3.10");
navigation[81] = new navElem(81,"Shirts","pi1905985360.htm",76,"3.1");
navigation[82] = new navElem(82,"Unterwäsche","pi327797852.htm",76,"3.5");
navigation[83] = new navElem(83,"Figuren","pi758820881.htm",52,"7");
navigation[84] = new navElem(84,"Freizeit & Hobby","pi482359550.htm",52,"8");
navigation[85] = new navElem(85,"Handarbeiten","pi1109752596.htm",84,"8.2");
navigation[86] = new navElem(86,"Spiele / Puzzle","pi-1659718269.htm",84,"8.1");
navigation[87] = new navElem(87,"Glas & Porzellan","pi-891939319.htm",52,"22");
navigation[88] = new navElem(88,"Gläser","pi346944918.htm",87,"22.1");
navigation[89] = new navElem(89,"Porzellan","pi-457642145.htm",87,"22.2");
navigation[90] = new navElem(90,"Goodies","pi-1971439449.htm",52,"9");
navigation[91] = new navElem(91,"Bilderrahmen","pi1174990797.htm",90,"gobi");
navigation[92] = new navElem(92,"Geschenkpapier","pi1162287181.htm",90,"geschenk");
navigation[93] = new navElem(93,"Spardosen","pi20784947.htm",90,"9.2");
navigation[94] = new navElem(94,"Sticker","pi-626265719.htm",90,"9.5");
navigation[95] = new navElem(95,"Gutscheine","pi-90586740.htm",52,"21");
navigation[96] = new navElem(96,"Handy Accessoires","pi-438960292.htm",52,"10");
navigation[97] = new navElem(97,"Home & Style","pi-1257600211.htm",52,"11");
navigation[98] = new navElem(98,"Bad Accessoires","pi-824964435.htm",97,"11.1");
navigation[99] = new navElem(99,"Bad-Textilien","pi872887344.htm",97,"11.13");
navigation[100] = new navElem(100,"Becher / Tassen","pi-651486944.htm",97,"11.6");
navigation[101] = new navElem(101,"Bettwäsche","pi-1726451837.htm",97,"11.5");
navigation[102] = new navElem(102,"Deko","pi-1069415917.htm",97,"11.12");
navigation[103] = new navElem(103,"Gläser","pi-1906561312.htm",97,"11.11");
navigation[104] = new navElem(104,"Kissen","pi-767286869.htm",97,"11.8");
navigation[105] = new navElem(105,"Rund um den Tissch","pi-1520097358.htm",97,"11.2");
navigation[106] = new navElem(106,"Müslischalen","pi1139572874.htm",97,"11.10");
navigation[107] = new navElem(107,"Uhren","pi826635576.htm",97,"11.7");
navigation[108] = new navElem(108,"Karten & Poster","pi-1658696445.htm",52,"13");
navigation[109] = new navElem(109,"Geschenkpapier","pi2092883676.htm",108,"13.7");
navigation[110] = new navElem(110,"Karten - Freundschaft","pi-795633929.htm",108,"13.4");
navigation[111] = new navElem(111,"Karten - Geburtstag","pi345550070.htm",108,"13.1");
navigation[112] = new navElem(112,"Karten - Weihnachten","pi-240135538.htm",108,"13.3");
navigation[113] = new navElem(113,"Poster","pi1960536116.htm",108,"13.6");
navigation[114] = new navElem(114,"Poster-Zubehör","pi1850962796.htm",108,"13.5");
navigation[115] = new navElem(115,"Kinder / Baby","pi1192991071.htm",52,"16");
navigation[116] = new navElem(116,"Accessoires","pi-471968680.htm",115,"16.6");
navigation[117] = new navElem(117,"Cap`s / Winterbekleidung","pi-1938209733.htm",115,"16.5");
navigation[118] = new navElem(118,"Nachtwäsche","pi1828177914.htm",115,"16.3");
navigation[119] = new navElem(119,"Shirts","pi-1859596888.htm",115,"16.4");
navigation[120] = new navElem(120,"Schuhe / Socken","pi-1766081987.htm",115,"16.1");
navigation[121] = new navElem(121,"Unterwäsche / Shorts","pi-1563075653.htm",115,"16.2");
navigation[122] = new navElem(122,"Plüschies","pi836287784.htm",52,"14");
navigation[123] = new navElem(123,"Taschen & Accessoires","pi-665912843.htm",52,"2");
navigation[124] = new navElem(124,"Aufbewahrung","pi-1650870631.htm",123,"9.4");
navigation[125] = new navElem(125,"Geldbörsen","pi1041199723.htm",123,"2.1");
navigation[126] = new navElem(126,"Pins","pi-37508195.htm",123,"9.3");
navigation[127] = new navElem(127,"Schlüsselanhänger","pi-1924972848.htm",123,"2.2");
navigation[128] = new navElem(128,"Schmuck","pi634890861.htm",123,"19.1");
navigation[129] = new navElem(129,"Taschen - Koffer","pi1126782764.htm",123,"2.5");
navigation[130] = new navElem(130,"Schreibwaren","pi-16044023.htm",52,"15");
navigation[131] = new navElem(131,"Papiere & Ablage","pi176708869.htm",130,"15.1");
navigation[132] = new navElem(132,"Stifte & Accessoires","pi-1268098748.htm",130,"15.3");
navigation[133] = new navElem(133,"Tom Everhart Kollektion","pi140857268.htm",52,"17");
navigation[134] = new navElem(134,"Zubehör","pi-93524509.htm",52,"20");

// getNavElementByCatID
function getNavElementByCatID(categoryId){
	for(var i=0; i<navigation.length; i++){
		if(navigation[i].categoryId==categoryId){
			return(navigation[i]);
			break;
			};
		};
		return(null);
	};
// changeLoc
function changeLoc(id,linkUrl){
	if(id!="nada"){
		xmlConfig.navIndex = id.toString();
		if(xmlConfig.getFirstItem("SearchEngine").ByCategory == "1"){
			if(id=="null") xmlConfig.getFirstItem("SearchEngine").categoryId = "null"
			else xmlConfig.getFirstItem("SearchEngine").categoryId = navigation[id].categoryId;
			xmlConfig.getFirstItem("SearchEngine").categoryIndex = id;
			}
		else{
			xmlConfig.getFirstItem("SearchEngine").categoryId = "null";
			xmlConfig.getFirstItem("SearchEngine").categoryIndex = "null";
			};
		safeData();
		location.href = linkUrl + "?categoryId=" + id.toString();
		};
	};
// searchOnEnterNavi
function searchOnEnterNavi(){
	if(window.event.keyCode==13){
		xmlConfig.getFirstItem('SearchEngine').term=document.searchEngine.searchTerm.value;
		location.href = "search.htm";
		};
	};
// activates entries for categories
activateItem(getParameterFromURL("categoryId"));

