//

// 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="22" height="1"></TD>'
			rString += '<TD class="ACTIVECATEGORY" ><img src="../assets/images/bulletcatact.gif" width="22" height="13" 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="22" height="1"></TD>';
				rString += '<TD class="CATLINKS2NDBULLET" ><img src="../assets/images/bulletcat2nd.gif" width="22" height="13" 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="22" height="13" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>'
				else rString += '<img src="../assets/images/bulletcat1stcls.gif" width="22" height="13" 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,"SuperVisor","pi2069425431.htm",null);
navigation[1] = new navElem(1,"SuperVisor Zubehör","pi1919970464.htm",null);
navigation[2] = new navElem(2,"Ushio","pi1812691411.htm",null);
navigation[3] = new navElem(3,"Einzelteile","pi-482870248.htm",2);
navigation[4] = new navElem(4,"Selecon Theater","pi743784785.htm",null);
navigation[5] = new navElem(5,"FLUTER <br>sym. + asym.","pi1045830425.htm",4);
navigation[6] = new navElem(6,"FLUTER Zubehör","pi1522219366.htm",4);
navigation[7] = new navElem(7,"PC-Linsenscheinwerfer","pi66763503.htm",4);
navigation[8] = new navElem(8,"Fresnel<br>Linsenscheinwerfer","pi1204131332.htm",4);
navigation[9] = new navElem(9,"Linsenscheinwerfer<br>Zubehör","pi-940835886.htm",4);
navigation[10] = new navElem(10,"Profilscheinwerfer","pi-2093355029.htm",4);
navigation[11] = new navElem(11,"Profilscheinwerfer<br>Zubehör","pi-1032040880.htm",4);
navigation[12] = new navElem(12,"Verfolger","pi1679105278.htm",4);
navigation[13] = new navElem(13,"Verfolger<br>Zubehör","pi1497517223.htm",4);
navigation[14] = new navElem(14,"Doughty","pi-1206155686.htm",null);
navigation[15] = new navElem(15,"Doughty clamps","pi-672275891.htm",14);
navigation[16] = new navElem(16,"Quick trigger clamp","pi-2141063798.htm",14);
navigation[17] = new navElem(17,"Hook clamps","pi-1716864458.htm",14);
navigation[18] = new navElem(18,"Eazi clamps","pi-1278361332.htm",14);
navigation[19] = new navElem(19,"Overlocker","pi-395910717.htm",14);
navigation[20] = new navElem(20,"Club stands","pi-1789117358.htm",14);
navigation[21] = new navElem(21,"Night-Club stands","pi434652779.htm",14);
navigation[22] = new navElem(22,"Tops & accessories","pi14189264.htm",14);
navigation[23] = new navElem(23,"Studio range stands","pi1045733278.htm",14);
navigation[24] = new navElem(24,"Shadow range stands","pi1304953543.htm",14);
navigation[25] = new navElem(25,"Winch stands","pi1835484924.htm",14);
navigation[26] = new navElem(26,"Trigger clamp","pi-1851081016.htm",14);
navigation[27] = new navElem(27,"Spigots","pi-2123111882.htm",14);
navigation[28] = new navElem(28,"Strand Lighting","pi-487898818.htm",null);
navigation[29] = new navElem(29,"Speicherpult<br>Serie 300/500","pi1058819348.htm",28);
navigation[30] = new navElem(30,"ShowController<br>Serie 300/500","pi1554016170.htm",28);
navigation[31] = new navElem(31,"Software <br>GenuisPro","pi2111108323.htm",28);
navigation[32] = new navElem(32,"Zubehör<br>Serie 300/500","pi172951500.htm",28);
navigation[33] = new navElem(33,"Systemzubehör<br>Serie 300/500","pi1046705322.htm",28);
navigation[34] = new navElem(34,"MX-Speicher-<br>lichtstellpulte ","pi-1040959027.htm",28);
navigation[35] = new navElem(35,"LX-Lichtstellpulte","pi-1239656694.htm",28);
navigation[36] = new navElem(36,"Premiere<br>Lichtsteuersysteme","pi-918726347.htm",28);
navigation[37] = new navElem(37,"Outlook<br>Lichtsteuersystem ","pi-2087877767.htm",28);
navigation[38] = new navElem(38,"Microcontrol<br>Lichtsteuersystem ","pi-41150595.htm",28);
navigation[39] = new navElem(39,"SWC-Steuerung","pi-1076206549.htm",28);
navigation[40] = new navElem(40,"Zubehör<br>Lichsteuersysteme","pi1701912106.htm",28);
navigation[41] = new navElem(41,"SLD Dimmersystem","pi-1035877945.htm",28);
navigation[42] = new navElem(42,"Spotlights","pi-1071742202.htm",28);
navigation[43] = new navElem(43,"Fresnel Light","pi-1630777156.htm",28);
navigation[44] = new navElem(44,"Cyclights","pi-42788595.htm",28);
navigation[45] = new navElem(45,"Movie/TV Fresnel","pi-1208150710.htm",28);
navigation[46] = new navElem(46,"Softlight","pi421345795.htm",28);
navigation[47] = new navElem(47,"Daylight","pi-1280877591.htm",28);
navigation[48] = new navElem(48,"Sonstige","pi-908700382.htm",28);
navigation[49] = new navElem(49,"Stative","pi1046723102.htm",28);
navigation[50] = new navElem(50,"Smoke Factory","pi1845667222.htm",null);
navigation[51] = new navElem(51,"Nebelgeräte","pi-1099588172.htm",50);
navigation[52] = new navElem(52,"Zubehör<br>Ersatzteile","pi257716389.htm",50);
navigation[53] = new navElem(53,"Nebelfluid","pi1890847490.htm",50);
navigation[54] = new navElem(54,"Restposten<br>Sonderangebote","pi1045135428.htm",null);

// changeLoc
function changeLoc(id,linkUrl){
	XML.getFirstItem("Config").getFirstItem("NavigationIndex").putValue(id.toString());
	safeData();
	location.href = linkUrl;
	};


