﻿//number of menu sectionsvar sections=5;//menu titlesvar sect=new Array(':: INTRODUCTION' ,':: ACTIVITES',':: REALISATIONS',':: LEGISLATION',':: CONTACT');//menu contentsvar menu0=new Array('Qui est A.P.M.A.','Exp&eacute;rimentation','Fonds','Groupes','Flash-Info','Avertissement','Agenda');var links0=new Array('over','anti1','fondsen','werkgroepen','nieuwsflash5','waarschuwing2','agenda');var menu1=new Array('Courantes','Interniche','BPAM','SMAL','Chats','Chiens');var links1=new Array('acties','niche1','bpam','smal','poezen','honden4');var menu2=new Array('En g&eacute;n&eacute;ral','Alternatives','Archives');var links2=new Array('realisaties','alternatieven','archief');var menu3=new Array('Statistiques','Lois');var links3=new Array('statistieken','wetten');var menu4=new Array('P&eacute;titions','Contact','Adh&eacute;sions','Sponsors','Liens','Animaux disparus');var links4=new Array('petities','contact','lidmaatschap','sponsors','links','vermist');//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>");}