//

// TNavigationPrint
function TNavigationPrint(){
	var myNavIndex = XML.getFirstItem("Config").getFirstItem("NavigationIndex").getValue()
	if(!(myNavIndex=="null"||myNavIndex=="")){
		navigation[parseInt(myNavIndex)].active = true;
		if(navigation[parseInt(myNavIndex)].parentId!=null) navigation[navigation[parseInt(myNavIndex)].parentId].open = true;
		};
	var rString = '<TABLE class="CATLINKS1STPARENT" width="100%" border="0" cellpadding="1" cellspacing="0" >';
	for(var i=0;i<navigation.length;i++) if(navigation[i].parentId==null){
		rString += navigation[i].print();
		if(navigation[i].active==true||navigation[i].open==true){
			rString += "</TABLE>"
			rString += '<TABLE class="CATLINKS2NDPARENT" width="100%" border="0" cellpadding="1" cellspacing="0" ><TR valign="top">';
			for(var j=0;j<navigation.length;j++) if(navigation[j].parentId==navigation[i].id){
				rString += navigation[j].print();
				};
			rString += "</TABLE>"
			rString += '<TABLE class="CATLINKS1STPARENT" width="100%" border="0" cellpadding="1" cellspacing="0" >';
			};
		};
		rString += "</TABLE>"
	return(rString);
	};
// TNavElemprint
function TNavElemPrint(){
	var rString = '<TR valign="top">';
	with(this){
		if(active){
			if(parentId!=null) rString += '<TD class="ACTIVECATEGORY" ><IMG SRC="../assets/images/spacer.gif" width="14" height="1"></TD>'
			rString += '<TD class="ACTIVECATEGORY" ><img src="../assets/images/bulletcatact.gif" width="14" height="11" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>'
			}
		else{
			if(parentId!=null){
				rString += '<TD class="CATLINKS2NDBULLET" ><IMG SRC="../assets/images/spacer.gif" width="14" height="1"></TD>';
				rString += '<TD class="CATLINKS2NDBULLET" ><img src="../assets/images/bulletcat2nd.gif" width="14" height="11" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>';
				}
			else{
				rString += '<TD class="CATLINKS1STBULLET" >';
				if(!open) rString += '<img src="../assets/images/bulletcat1st.gif" width="14" height="11" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>'
				else rString += '<img src="../assets/images/bulletcat1stcls.gif" width="14" height="11" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>';
				};
			};
		if(active) rString += '<TD nowrap class="ACTIVECATEGORY"  width="100%">'
		else{
			if(parentId!=null) rString += '<TD nowrap class="CATLINKS2NDCAPTION"  width="100%">'
			else rString += '<TD nowrap colspan="2" class="CATLINKS1STCAPTION"  width="100%">'
			};
		rString += "<a href=\"javascript: changeLoc(" + this.id + ",'" + this.linkUrl + "')\" class=\"wagrunav\">";
		rString += caption;
		rString += "</a>";
		rString += "</TD>"
		rString += "</TR>";
		};
	return rString; 
	};

//

// navElem
function navElem(id,caption,linkUrl,parentId){
	this.id = id;
	this.caption = caption;
	this.linkUrl = linkUrl;
	this.parentId = parentId;
	this.print = TNavElemPrint;
	this.active = false;
	this.open = false;
	};
// navigation
var navigation = new Array();
//
navigation[0] = new navElem(0,"Zwilling Kochmesser","pi-71700098.htm",null);
navigation[1] = new navElem(1,"Kurz und Langwaffen","pi1079792858.htm",null);
navigation[2] = new navElem(2,"Darts","pi-1182966975.htm",null);
navigation[3] = new navElem(3,"feststehende Messer","pi1225195043.htm",null);
navigation[4] = new navElem(4,"Cudemann","pi1000376391.htm",3);
navigation[5] = new navElem(5,"Ilsaki","pi1314907085.htm",3);
navigation[6] = new navElem(6,"Linder","pi-690799351.htm",3);
navigation[7] = new navElem(7,"Puma","pi1002363652.htm",3);
navigation[8] = new navElem(8,"Böker","pi1239017735.htm",3);
navigation[9] = new navElem(9,"Columbia River","pi-1304367229.htm",3);
navigation[10] = new navElem(10,"Taschenmesser","pi1631047830.htm",null);
navigation[11] = new navElem(11,"Einhandmesser","pi1980557489.htm",10);
navigation[12] = new navElem(12,"Linder","pi998925690.htm",10);
navigation[13] = new navElem(13,"Schweizer Offiziersmesser","pi998940807.htm",10);
navigation[14] = new navElem(14,"Puma","pi570083538.htm",10);
navigation[15] = new navElem(15,"CRKT","pi1749154298.htm",10);
navigation[16] = new navElem(16,"Victorinox Küchenwerkzeuge","pi1347965721.htm",null);
navigation[17] = new navElem(17,"Holzgriff","pi-2089873050.htm",16);
navigation[18] = new navElem(18,"schwarzer Fibrox","pi-1497695943.htm",16);
navigation[19] = new navElem(19,"Polypropylen","pi1007092998.htm",16);
navigation[20] = new navElem(20,"geschmiedete Berufsmesser","pi2134853135.htm",16);
navigation[21] = new navElem(21,"Tool`s","pi1000997907.htm",null);
navigation[22] = new navElem(22,"Victorinox","pi-962251814.htm",21);
navigation[23] = new navElem(23,"Leatherman","pi575392088.htm",21);
navigation[24] = new navElem(24,"Küchenscheren","pi330755986.htm",null);
navigation[25] = new navElem(25,"Softair ab 14 Jahre","pi1080552902.htm",null);
navigation[26] = new navElem(26,"Pistolen","pi-1547536716.htm",25);
navigation[27] = new navElem(27,"Gewehre Federdruck","pi-1462463067.htm",25);
navigation[28] = new navElem(28,"Gewehre Elektro","pi-274038789.htm",25);
navigation[29] = new navElem(29,"Softair ab 18 Jahre","pi1144919702.htm",null);
navigation[30] = new navElem(30,"CO2/Greengas","pi28020395.htm",29);
navigation[31] = new navElem(31,"elektrisch","pi1274885603.htm",29);
navigation[32] = new navElem(32,"Softair Zubehör","pi-21709729.htm",null);
navigation[33] = new navElem(33,"Munition","pi-460977458.htm",32);
navigation[34] = new navElem(34,"Holster, Taschen Etc.","pi-960169417.htm",32);
navigation[35] = new navElem(35,"Nagelpflegeetuis","pi1276115934.htm",null);
navigation[36] = new navElem(36,"Selbstschutz","pi-2071108550.htm",null);
navigation[37] = new navElem(37,"Freie Waffe","pi1004554906.htm",null);
navigation[38] = new navElem(38,"Röhm Gaswaffen","pi-128755112.htm",37);
navigation[39] = new navElem(39,"Umarex Gaswaffen","pi-577418162.htm",37);
navigation[40] = new navElem(40,"GSG Gaswaffen","pi-818732872.htm",37);
navigation[41] = new navElem(41,"sonstige Waffe","pi-640538936.htm",37);
navigation[42] = new navElem(42,"Luftdruckwaffen","pi1184682358.htm",37);
navigation[43] = new navElem(43,"Haushaltswaren","pi-1759592755.htm",null);
navigation[44] = new navElem(44,"Messerblöcke","pi1288106452.htm",43);
navigation[45] = new navElem(45,"Pfeffermühlen","pi-1925383611.htm",43);
navigation[46] = new navElem(46,"Kochmessertaschen","pi-802678497.htm",43);
navigation[47] = new navElem(47,"Messerset","pi-785716356.htm",43);
navigation[48] = new navElem(48,"Waffenschränke","pi1276267343.htm",null);
navigation[49] = new navElem(49,"Kochmesser Burgvogel","pi1279102872.htm",null);
navigation[50] = new navElem(50,"Pyro  Munition","pi390117767.htm",null);

// changeLoc
function changeLoc(id,linkUrl){
	XML.getFirstItem("Config").getFirstItem("NavigationIndex").putValue(id.toString());
	safeData();
	location.href = linkUrl;
	};


