﻿//number of menu sectionsvar sections=5;//menu titlesvar sect=new Array(':: INTRODUCTIE' ,':: ACTIVITEITEN',':: REALISATIES',':: WETGEVING',':: CONTACT');//menu contentsvar menu0=new Array('Over A.P.M.A.','Dierexperimenten','Fondsen','Werkgroepen','Nieuwsflash','Waarschuwing','Agenda');var links0=new Array('over','anti1','fondsen','werkgroepen','nieuwsflash7','waarschuwing2','agenda');var menu1=new Array('Algemeen','Interniche','BPAM','Poezen','Honden');var links1=new Array('acties','niche1','bpam','poezen1','honden5');var menu2=new Array('Algemeen','Alternatieven','Archief');var links2=new Array('realisaties','alternatieven','archief');var menu3=new Array('Statistieken','Wetten');var links3=new Array('statistieken','wetten');var menu4=new Array('Petitie','Contact','Lidmaatschap','Sponsors','Links','Vermiste dieren');var links4=new Array('petities','contact','lidmaatschap','sponsors','links','binnenbeest');//build up menu URL'sfunction goToPage(theSect, thePage) {	thePath=eval('links' + theSect + '[' + thePage + ']');	if (theSect==0){ 	newPath="../content/" + thePath + ".html";	self.location.href=newPath;	}	else if (theSect==1){	newPath=thePath + ".html";	self.location.href=newPath;	}	else if (theSect==2) {	newPath=thePath + ".html";	self.location.href=newPath;	}	else if (theSect==3){	newPath=thePath + ".html";	self.location.href=newPath;	}		else if (theSect==4){	newPath=thePath + ".html";	self.location.href=newPath;	}		}//loop to build menu links and populate menu titlesfunction addLinks(whichMenu, whichSect) {arrayLength=whichMenu.length;var i=0;var m=whichMenu;	for (var i=0; i<arrayLength; i++){		document.write("<td><img src='../../images/spacer.gif' width='17' height='1'><a class='VmenuSub' href='javaScript: goToPage(" + whichSect + ", " + i + ")'>" + m[i] + "</a></td></tr><tr>")	}document.write("</tr><tr><td><img src='../../images/spacer.gif' width='15'></td></tr><tr>");}//loop to build menu titlesfunction createTable(){document.write("<table width='151' cellspacing='0' cellpadding='0' border='0'><tr>");	for (var i=0; i<sections; i++){	  		document.write("<td height='16'><img src='../../images/spacer.gif' width='3'><span class='VmenuHoofd'>" + sect[i] + "</td></tr><tr>");				addLinks(eval("menu" + i), i);		}	document.write("</td></tr></table>");}