//

// 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="19" height="1"></TD>'
			rString += '<TD class="ACTIVECATEGORY" ><img src="../assets/images/bulletcatact.gif" width="19" height="14" alt="BulletCatAct.gif" 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="19" height="1"></TD>';
				rString += '<TD class="CATLINKS2NDBULLET" ><img src="../assets/images/bulletcat2nd.gif" width="19" height="14" alt="BulletCat2nd.gif" 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="19" height="14" alt="BulletCat1st.gif" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>'
				else rString += '<img src="../assets/images/bulletcat1stcls.gif" width="19" height="14" alt="BulletCat1stCls.gif" 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,"<BR>Satelliet Receiver<BR>Standard Definition [SD]<BR>","pi-1149312353.htm",null);
navigation[1] = new navElem(1,"Dreambox [SD]","pi-1045909516.htm",0);
navigation[2] = new navElem(2,"<BR>Satelliet Receiver<BR>High-Definition [HD]<BR>","pi1297415638.htm",null);
navigation[3] = new navElem(3,"Dreambox [HD]<BR>","pi-1470208190.htm",2);
navigation[4] = new navElem(4,"Clarke-Tech / Xtrend","pi1297698442.htm",2);
navigation[5] = new navElem(5,"SAB [HD]","pi1308651850.htm",2);
navigation[6] = new navElem(6,"VU+ [HD]","pi1876783771.htm",2);
navigation[7] = new navElem(7,"<BR>- - Kabel Receiver<BR>","pi-1591430424.htm",null);
navigation[8] = new navElem(8,"Dreambox","pi1204712614.htm",7);
navigation[9] = new navElem(9,"<BR>Satellietschotels<BR>- - Toebehoren<BR>","pi-289685504.htm",null);
navigation[10] = new navElem(10,"LNB<BR> - Single, <BR> - Twin, <BR> - Quad, <BR> - Quattro, <BR> - DUO Blocks","pi1006861285.htm",9);
navigation[11] = new navElem(11,"LNB - houders en beugels e.d.","pi1300377022.htm",9);
navigation[12] = new navElem(12,"Switchen","pi102536303.htm",9);
navigation[13] = new navElem(13,"Schotelbevestiging","pi207344277.htm",9);
navigation[14] = new navElem(14,"Motoren<BR>","pi-1324241205.htm",9);
navigation[15] = new navElem(15,"Afstellen","pi664134194.htm",9);
navigation[16] = new navElem(16,"<BR>Afstand Bediening<BR>","pi1052207346.htm",null);
navigation[17] = new navElem(17,"<BR>Cards<BR>","pi-1999065230.htm",null);
navigation[18] = new navElem(18,"<BR>Card readers,<BR>- - programmers<BR>- - toebehoren<BR>","pi-1842451403.htm",null);
navigation[19] = new navElem(19,"<BR>Kabels en Connectors<BR>- - HDMI, Audio, Dolby en Video<BR>","pi1012735539.htm",null);
navigation[20] = new navElem(20,"Audio","pi-1092594290.htm",19);
navigation[21] = new navElem(21,"Computer","pi1273317062.htm",19);
navigation[22] = new navElem(22,"Dolby","pi936156663.htm",19);
navigation[23] = new navElem(23,"HDMI - DVI","pi-870893472.htm",19);
navigation[24] = new navElem(24,"Video","pi-1885098388.htm",19);
navigation[25] = new navElem(25,"<BR>Camping<BR>","pi1013255896.htm",null);
navigation[26] = new navElem(26,"<BR>Reparatie<BR>- - Onderhoud<BR>","pi1095442541.htm",null);
navigation[27] = new navElem(27,"Onderhoud aan uw Dreambox<BR>maar ook voor reparate","pi-129290517.htm",26);
navigation[28] = new navElem(28,"<BR>- - DBox1 en toebehoren<BR>","pi-249441916.htm",null);
navigation[29] = new navElem(29,"ALL-Cam","pi-18474064.htm",28);
navigation[30] = new navElem(30,"<BR><FONT size=4><FONT color=#0000ff><B>Kalimbu<BR>Computer systemen</B></FONT><BR>","pi1249116404.htm",null);

// changeLoc
function changeLoc(id,linkUrl){
	XML.getFirstItem("Config").getFirstItem("NavigationIndex").putValue(id.toString());
	safeData();
	location.href = linkUrl;
	};


