var NOTE_TEXT_FOOTNOTE = "*";
// ===============BEGIN===================================================
// voeg hieronder nieuwe menu-items toe als newItem('naam', 'url', nivo). 
// variabelen:	#1 naam
//				#2 url
//				#3 nivo (max is 4)
// =======================================================================
items = new Array();
newItem('Welkom','welkom.html',0);

newItem('Bunscote','bunscote.html',0);
newItem('Bestuur','bestuur.html',1);
newItem('Redactie','redactie.html',1);
newItem('Ereleden','ereleden.html',1);
newItem('Werkgroepen','werkgroepencontactpersonen.html',1);
newItem('Doelstelling','doelstelling.html',1);
newItem('Contributie','contributie.html',1);
newItem('Bankrekening','bankrekening.html',1);
newItem('\'t Bunhuus','onderkomen.html',1);

newItem('Actueel','',0);
newItem('Nieuws','nieuws.html',1);
newItem('Agenda','agenda.html',1);
newItem('Wat is er nieuw?','nieuw.html',1);
newItem('Historie','',0);
newItem('Geschiedenis','geschiedenis.html',1);
newItem('De ontginning','geschiedenisontginning.html',2);
newItem('Stadsrechten','geschiedenisstadsrechten.html',2);
newItem('Verdediging','geschiedenisverdedigingswerken.html',2);
newItem('Verval','geschiedenisverval.html',2);
newItem('Bevolking','geschiedenisbevolkingberoep.html',2);
newItem('Kerk','geschiedeniskerkelijkegezindte.html',2);
newItem('Volksleven','geschiedenisvolksleven.html',2);
newItem('Tijdbalk','tijdbalk.html',1);
newItem('1300','tijdbalk.html#1300',2);
newItem('1400','tijdbalk.html#1400',2);
newItem('1500','tijdbalk.html#1500',2);
newItem('1600','tijdbalk.html#1600',2);
newItem('1700','tijdbalk.html#1700',2);
newItem('1800','tijdbalk.html#1800',2);
newItem('1900','tijdbalk.html#1900',2);
newItem('2000','tijdbalk.html#2000',2);

newItem('(Be)graven','',0);
newItem('Hervormde Kerk','',1);
newItem('1799-1828','graven1799.html',2);
newItem('1829-1877','graven1829.html',2);
newItem('1878-1908','graven1878.html',2);
newItem('1936/1937','grafstenen1936.html',2);
//newItem('memento','gravenmementomori.html',2);

newItem('Publicaties','',0);
newItem('Bun Historiael','bunhistoriael.html',1);
newItem('Colofon','colofon.html',2);
newItem('Index','bunhistoriaelindexen.html',2);
newItem('Alles','bunhistoriaelindexalles.asp',3);
newItem('Archeologie','bunhistoriaelindexarcheologie.asp',3);
newItem('Bebouwing','bunhistoriaelindexbebouwingsgeschiedenis.asp',3);
newItem('Bedrijfsleven','bunhistoriaelindexbedrijfsleven.asp',3);
newItem('Boeken','bunhistoriaelindexboekbespreking.asp',3);
newItem('Dialect','bunhistoriaelindexdialect.asp',3);
newItem('Erfgoed','bunhistoriaelindexerfgoed.asp',3);
newItem('Excursies','bunhistoriaelindexexcursies.asp',3);
newItem('Familie','bunhistoriaelindexfamiliegeschiedenis.asp',3);
newItem('Gebruiken','bunhistoriaelindexgebruikenengewoonten.asp',3);
newItem('Genealogie','bunhistoriaelindexgenealogie.asp',3);
newItem('Kerk','bunhistoriaelindexkerkgeschiedenis.asp',3);
newItem('Klederdracht','bunhistoriaelindexklederdracht.asp',3);
newItem('Kolonialisme','bunhistoriaelindexkolonialisme.asp',3);
newItem('Krijg','bunhistoriaelindexkrijgsgeschiedenis.asp',3);
newItem('Kunst','bunhistoriaelindexkunst.asp',3);
newItem('Landbouw','bunhistoriaelindexlandbouw.asp',3);
newItem('Methoden','bunhistoriaelindexmethodenentechnieken.asp',3);
newItem('Nederzetting','bunhistoriaelindexnederzettingsgeschiedenis.asp',3);
newItem('Nostalgie','bunhistoriaelindexnostalgie.asp',3);
newItem('Oude kranten','bunhistoriaelindexoudekranten.asp',3);
newItem('Beroepen','bunhistoriaelindexoverigeberoepen.asp',3);
newItem('Plaatjes','bunhistoriaelindexplaatjes.asp',3);
newItem('Recht','bunhistoriaelindexrechtsgeschiedenis.asp',3);
newItem('Schenkingen','bunhistoriaelindexschenkingen.asp',3);
newItem('Vereniging','bunhistoriaelindexvereniging.asp',3);
newItem('Veren.leven','bunhistoriaelindexverenigingsleven.asp',3);
newItem('Visserij','bunhistoriaelindexvisserij.asp',3);
newItem('Waterschap','bunhistoriaelindexwaterschapsgeschiedenis.asp',3);
newItem('Ziekte','bunhistoriaelindexziekteengezondheid.asp',3);
newItem('2010','',2);
newItem('Nummer 2','bunhistoriael2010-2.asp',3);
newItem('2010/51','artikelbunhistoriael2010-51.html',4);
newItem('2010/67','artikelbunhistoriael2010-67.html',4);
newItem('Nummer 1','bunhistoriael2010-1.asp',3);
newItem('2010/3','artikelbunhistoriael2010-3.html',4);
newItem('2010/37','artikelbunhistoriael2010-37.html',4);
newItem('2009','',2);
newItem('Nummer 5','bunhistoriael2009-5.asp',3);
newItem('2009/167','artikelbunhistoriael2009-167.html',4);
newItem('2009/186','artikelbunhistoriael2009-186.html',4);
newItem('2009/190','artikelbunhistoriael2009-190.html',4);
newItem('Nummer 4','bunhistoriael2009-4.asp',3);
newItem('2009/119','artikelbunhistoriael2009-119.html',4);
newItem('2009/138','artikelbunhistoriael2009-138.html',4);
newItem('Nummer 3','bunhistoriael2009-3.asp',3);
newItem('2009/79','artikelbunhistoriael2009-79.html',4);
newItem('2009/94','artikelbunhistoriael2009-94.html',4);
newItem('Nummer 2','bunhistoriael2009-2.asp',3);
newItem('2009/35','artikelbunhistoriael2009-35.html',4);
newItem('2009/72','artikelbunhistoriael2009-72.html',4);
newItem('Nummer 1','bunhistoriael2009-1.asp',3);
newItem('2009/3','artikelbunhistoriael2009-3.html',4);
newItem('2009/17','artikelbunhistoriael2009-17.html',4);
newItem('2008','',2);
newItem('Nummer 5','bunhistoriael2008-5.asp',3);
newItem('2008/179','artikelbunhistoriael2008-179.html',4);
newItem('2008/192','artikelbunhistoriael2008-192.html',4);
newItem('2008/217','artikelbunhistoriael2008-217.html',4);
newItem('2008/221','artikelbunhistoriael2008-221.html',4);
newItem('2008/224','artikelbunhistoriael2008-224.html',4);
newItem('Nummer 4','bunhistoriael2008-4.asp',3);
newItem('2008/143','artikelbunhistoriael2008-143.html',4);
newItem('2008/146','artikelbunhistoriael2008-146.html',4);
newItem('2008/174','artikelbunhistoriael2008-174.html',4);
newItem('Nummer 3','bunhistoriael2008-3.asp',3);
newItem('2008/95','artikelbunhistoriael2008-95.html',4);
newItem('2008/102','artikelbunhistoriael2008-102.html',4);
newItem('Nummer 2','bunhistoriael2008-2.asp',3);
newItem('2008/55','artikelbunhistoriael2008-55.html',4);
newItem('2008/84','artikelbunhistoriael2008-84.html',4);
newItem('2008/88','artikelbunhistoriael2008-88.html',4);
newItem('Nummer 1','bunhistoriael2008-1.asp',3);
newItem('2008/3','artikelbunhistoriael2008-3.html',4);
newItem('2008/29','artikelbunhistoriael2008-29.html',4);
newItem('2008/38','artikelbunhistoriael2008-38.html',4);
newItem('2007','',2);
newItem('Nummer 4','bunhistoriael2007-4.asp',3);
newItem('2007/139','artikelbunhistoriael2007-139.html',4);
newItem('2007/158','artikelbunhistoriael2007-158.html',4);
newItem('2007/163','artikelbunhistoriael2007-163.html',4);
newItem('2007/173','artikelbunhistoriael2007-173.html',4);
newItem('2007/176','artikelbunhistoriael2007-176.html',4);
newItem('2007/178','artikelbunhistoriael2007-178.html',4);
newItem('2007/179','artikelbunhistoriael2007-179.html',4);
newItem('Nummer 3','bunhistoriael2007-3.asp',3);
newItem('2007/87','artikelbunhistoriael2007-87.html',4);
newItem('2007/88','artikelbunhistoriael2007-88.html',4);
newItem('2007/105','artikelbunhistoriael2007-105.html',4);
newItem('2007/130','artikelbunhistoriael2007-130.html',4);
newItem('2007/133a','artikelbunhistoriael2007-133a.html',4);
newItem('2007/133b','artikelbunhistoriael2007-133b.html',4);
newItem('2007/134','artikelbunhistoriael2007-134.html',4);
newItem('Nummer 2','bunhistoriael2007-2.asp',3);
newItem('2007/43','artikelbunhistoriael2007-43.html',4);
newItem('2007/69','artikelbunhistoriael2007-69.html',4);
newItem('2007/75','artikelbunhistoriael2007-75.html',4);
newItem('2007/79','artikelbunhistoriael2007-79.html',4);
newItem('Nummer 1','bunhistoriael2007-1.asp',3);
newItem('2007/3','artikelbunhistoriael2007-3.html',4);
newItem('2007/9','artikelbunhistoriael2007-9.html',4);
newItem('2006','',2);
newItem('Nummer 5','bunhistoriael2006-5.asp',3);
newItem('2006/187','artikelbunhistoriael2006-187.html',4);
newItem('2006/193','artikelbunhistoriael2006-193.html',4);
newItem('Nummer 4','bunhistoriael2006-4.asp',3);
newItem('2006/147','artikelbunhistoriael2006-147.html',4);
newItem('2006/151','artikelbunhistoriael2006-151.html',4);
newItem('2006/171','artikelbunhistoriael2006-171.html',4);
newItem('2006/175','artikelbunhistoriael2006-175.html',4);
newItem('2006/182','artikelbunhistoriael2006-182.html',4);
newItem('Nummer 3','bunhistoriael2006-3.asp',3);
newItem('2006/95','artikelbunhistoriael2006-95.html',4);
newItem('2006/112','artikelbunhistoriael2006-112.html',4);
newItem('Nummer 2','bunhistoriael2006-2.asp',3);
newItem('2006/55','artikelbunhistoriael2006-55.html',4);
newItem('2006/75','artikelbunhistoriael2006-75.html',4);
newItem('Nummer 1','bunhistoriael2006-1.asp',3);
newItem('2006/3','artikelbunhistoriael2006-3.html',4);
newItem('2006/13','artikelbunhistoriael2006-13.html',4);
newItem('2006/20','artikelbunhistoriael2006-20.html',4);
newItem('2005','',2);
newItem('Nummer 4','bunhistoriael2005-4.asp',3);
newItem('2005/131','artikelbunhistoriael2005-131.html',4);
newItem('2005/157','artikelbunhistoriael2005-157.html',4);
newItem('2005/172','artikelbunhistoriael2005-172.html',4);
newItem('Nummer 3','bunhistoriael2005-3.asp',3);
newItem('2005/95','artikelbunhistoriael2005-95.html',4);
newItem('2005/103','artikelbunhistoriael2005-103.html',4);
newItem('2005/126','artikelbunhistoriael2005-126.html',4);
newItem('Nummer 2','bunhistoriael2005-2.asp',3);
newItem('2005/51','artikelbunhistoriael2005-51.html',4);
newItem('2005/56','artikelbunhistoriael2005-56.html',4);
newItem('Junior','bunhistoriael2005-junior.asp',3);
newItem('Nummer 1','bunhistoriael2005-1.asp',3);
newItem('2005/3','artikelbunhistoriael2005-3.html',4);
newItem('2005/4','artikelbunhistoriael2005-4.html',4);
newItem('2005/18','artikelbunhistoriael2005-18.html',4);
newItem('2004','',2);
newItem('Nummer 5','bunhistoriael2004-5.asp',3);
newItem('2004/187','artikelbunhistoriael2004-187.html',4);
newItem('2004/225','artikelbunhistoriael2004-225.html',4);
newItem('Nummer 4','bunhistoriael2004-4.asp',3);
newItem('2004/143','artikelbunhistoriael2004-143.html',4);
newItem('2004/172','artikelbunhistoriael2004-172.html',4);
newItem('2004/182','artikelbunhistoriael2004-182.html',4);
newItem('Nummer 3','bunhistoriael2004-3.asp',3);
newItem('2004/99','artikelbunhistoriael2004-99.html',4);
newItem('Nummer 2','bunhistoriael2004-2.asp',3);
newItem('2004/55','artikelbunhistoriael2004-55.html',4);
newItem('Nummer 1','bunhistoriael2004-1.asp',3);
newItem('2004/3','artikelbunhistoriael2004-3.html',4);
newItem('2003','',2);
newItem('Nummer 5','bunhistoriael2003-5.html',3);
newItem('2003/195','artikelbunhistoriael2003-195.html',4);
newItem('Nummer 4','bunhistoriael2003-4.html',3);
newItem('2003/151','artikelbunhistoriael2003-151.html',4);
newItem('Nummer 3','bunhistoriael2003-3.html',3);
newItem('2003/103','artikelbunhistoriael2003-103.html',4);
newItem('2002','',2);
newItem('2001','',2);
newItem('2000','',2);
newItem('1999','',2);
newItem('1998','',2);
newItem('1997','',2);
newItem('1996','',2);
newItem('1995','',2);
newItem('1994','',2);
newItem('1993','',2);
newItem('1992','',2);
newItem('1991','',2);
newItem('1990','',2);
newItem('Nummer 2/3','bunhistoriael1990-2-3.asp',3);
newItem('Nummer 1','bunhistoriael1990-1.asp',3);
newItem('1989','',2);
newItem('Nummer 3/4','bunhistoriael1989-3-4.asp',3);
newItem('Nummer 2','bunhistoriael1989-2.asp',3);
newItem('Nummer 1','bunhistoriael1989-1.asp',3);
newItem('1988','',2);
newItem('Nummer 3/4','bunhistoriael1988-3-4.asp',3);
newItem('Nummer 2','bunhistoriael1988-2.asp',3);
newItem('Nummer 1','bunhistoriael1988-1.asp',3);
newItem('1987','',2);
newItem('Nummer 3/4','bunhistoriael1987-3-4.asp',3);
newItem('Nummer 2','bunhistoriael1987-2.asp',3);
newItem('Nummer 1','bunhistoriael1987-1.asp',3);
newItem('1986','',2);
newItem('Nummer 3','bunhistoriael1986-3.asp',3);
newItem('Nummer 2','bunhistoriael1986-2.asp',3);
newItem('Nummer 1','bunhistoriael1986-1.asp',3);
newItem('1985','',2);
newItem('Nummer 4','bunhistoriael1985-4.asp',3);
newItem('Nummer 2','bunhistoriael1985-2.asp',3);
newItem('Nummer 1','bunhistoriael1985-1.asp',3);
newItem('1984','',2);
newItem('Nummer 3','bunhistoriael1984-3.asp',3);
newItem('Nummer 2','bunhistoriael1984-2.asp',3);
newItem('Nummer 1','bunhistoriael1984-1.asp',3);
newItem('1983','',2);
newItem('Nummer 3','bunhistoriael1983-3.asp',3);
newItem('Nummer 2','bunhistoriael1983-2.asp',3);
newItem('Nummer 1','bunhistoriael1983-1.asp',3);
newItem('1982','',2);
newItem('Nummer 4','bunhistoriael1982-4.asp',3);
newItem('Nummer 3','bunhistoriael1982-3.asp',3);
newItem('Nummer 2','bunhistoriael1982-2.asp',3);
newItem('Nummer 1','bunhistoriael1982-1.asp',3);
newItem('1981','',2);
newItem('Nummer 4','bunhistoriael1981-4.asp',3);
newItem('Nummer 3','bunhistoriael1981-3.asp',3);
newItem('Nummer 2','bunhistoriael1981-2.asp',3);
newItem('Nummer 1','bunhistoriael1981-1.asp',3);
newItem('1980','',2);
newItem('Nummer 1','bunhistoriael1980-1.asp',3);
newItem('Boeken','',1);
newItem('Canon','boekcanon.html',2);
newItem('Ootje','boekootje.html',2);
newItem('Ootje 2','boekootje2.html',2);
newItem('Ootje 3','boekootje3.html',2);
newItem('Kraplap','boekvaneenkraplap.html',2);
newItem('Brandklok','boekbrandklok.html',2);
newItem('Regthuys','boekregthuysraadhuis.html',2);
newItem('Hoefgetrappel','boekhoefgetrappel.html',2);
newItem('Vijf bange jaren','boekvijfbangejaren.html',2);
newItem('Doktershanden','boekdoktershanden.html',2);
newItem('Halfzeuventje','boekhalfzeuventje.html',2);
newItem('Gereet','boekgereet.html',2);
newItem('Botterwerf','boekbotterwerf.html',2);
newItem('Bunschoten feest','boekbunschotenfeest.html',2);
newItem('Bezet en bevrijd','boekbezetbevrijd.html',2);
newItem('Woordenboek','boekwoordenboek.html',2);
newItem('Dialect-cd','boekdialectcd.html',2);
newItem('Haring','boekharing.html',2);
newItem('Orgel','boekorgel.html',2);
newItem('VOC','boekvoc.html',2);
newItem('Cultuur-historie','boekcultuurhistorie.html',2);

newItem('Fotos','fotos.html',0);

newItem('Statistieken','statistieken.html',0);
newItem('1812','statistieken1812.html',1);
newItem('1815','statistieken1815.html',1);
newItem('1839','statistieken1839.html',1);
newItem('1870','statistieken1870.html',1);

newItem('Van wee...','vanweeistatdreen.html',0);
newItem('Archief','vanweeistatdreenarchief.html',1);
newItem('350-359','vanweeistatdreenarchief350tm359.html',2);
newItem('340-349','vanweeistatdreenarchief340tm349.html',2);
newItem('330-339','vanweeistatdreenarchief330tm339.html',2);
newItem('320-329','vanweeistatdreenarchief320tm329.html',2);
newItem('310-319','vanweeistatdreenarchief310tm319.html',2);
newItem('300-309','vanweeistatdreenarchief300tm309.html',2);
newItem('290-299','vanweeistatdreenarchief290tm299.html',2);
newItem('280-289','vanweeistatdreenarchief280tm289.html',2);
newItem('270-279','vanweeistatdreenarchief270tm279.html',2);
newItem('260-269','vanweeistatdreenarchief260tm269.html',2);
newItem('250-259','vanweeistatdreenarchief250tm259.html',2);

newItem('Telefoons 1915','telefoonboek1915.html',0);

newItem('Links','links.html',0);
newItem('Hist.&nbsp;Verenigingen','linkshistorischeverenigingen.html',1);
newItem('Genealogie','linksgenealogie.html',1);
newItem('Cultuur','linkscultuur.html',1);
newItem('Archieven','linksarchieven.html',1);
newItem('Geschiedenis','linksgeschiedenis.html',1);

newItem('Webwinkel','webwinkel.html',0);

newItem('Gastenboek','gastenboek.html',0);

newItem('Copyright','copyright.html',0);

newItem('Disclaimer','disclaimercontent.html',0);

function newItem(titel, url, nivo) {
	items[items.length] = new item (titel,url,nivo);
}

function item(titel, url, nivo) {
	this.titel = titel;
	this.url = url;
	this.nivo = nivo;
}

	divven = new Array();

function Is() {
    var agent = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.op3 = (agent.indexOf("opera") != -1);
    this.op6 = (agent.indexOf("opera 6") != -1);
    this.ns  = ((agent.indexOf('mozilla')!=-1) && (!this.op3) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns2 = (this.ns && (this.major == 2));
    this.ns3 = (this.ns && (this.major == 3));
    this.ns4b = (this.ns && (this.minor < 4.04));
    this.ns4 = (this.ns && (this.major == 4));
    this.ns5 = (this.ns && (this.major == 5));
    this.ns6 = (this.ns && (this.major == 6));
    this.ie   = ((agent.indexOf("msie") != -1) && (!this.op3));
    this.ie3  = (this.ie && (this.major == 2));
    // ns5 is gelijk aan ie4 (firefox)
    //this.ie4  = (this.ie && (this.major >= 4));
    this.ie4  = ((this.ie && (this.major >= 4)) || (this.ns && (this.major == 5)));
    this.win   = (agent.indexOf("win")!=-1);
    this.mac   = (agent.indexOf("mac")!=-1);
    this.unix  = (agent.indexOf("x11")!=-1);

    // *** JAVASCRIPT VERSION CHECK ***
    if (this.ns2 || this.ie3) this.js = 1.0;
    else if (this.ns3 || this.op3) this.js = 1.1;
    else if ((this.ns4 && (this.minor <= 4.05)) || this.ie4) this.js = 1.2;
    else if ((this.ns4 && (this.minor > 4.05)) || this.ie5) this.js = 1.3;
    else if (this.ns5 && !(this.ns6)) this.js = 1.4;
    else if (this.ns6) this.js = 1.5;
	this.js10 = (this.js == 1.0);
	this.js11 = (this.js == 1.1);
	this.js12 = (this.js == 1.2);
	this.js13 = (this.js == 1.3);
	this.js14 = (this.js == 1.4);
	this.js15 = (this.js == 1.5);
}

var is = new Is();

if(is.ns4) {
    doc = "document";
    sty = "";
    htm = ".document"
} else if(is.ie4) {
    doc = "document.all";
    sty = ".style";
    htm = ""
}

function bouwMenu() {
	// hier de breedte en lengte van de images van het menu opgeven! 
	var imgbreedte = new Array(17,17,17,17,17);
	var imghoogte = new Array(9,9,9,9,9);
	var strMenu = "";
	
	for(i=0;i<items.length;i++) {
		divven[items[i].nivo] = i;
		var blHeeftChildren = false;
		// kijken of er een volgend nivo is 
		if (i<items.length-1) {
			if (items[i+1].nivo>items[i].nivo) 
				blHeeftChildren = true; 
		}

		strMenu = strMenu + ("<a id=tag" + i);
		strMenu = strMenu + (" class=level" + items[i].nivo);
		if(items[i].url!="") {
			strMenu = strMenu + (" href='" + items[i].url + "'");
		}
		strMenu = strMenu + (" target=framecontent");
		if((is.ie4)||(is.ns6)) {
			strMenu = strMenu + (" onMouseOver='parent.menuIn(img" + i + ","+ items[i].nivo + ");'"); 
			strMenu = strMenu + (" onMouseOut='parent.menuUit(img" + i + ","+ items[i].nivo + ");'");
			if (blHeeftChildren) {
				strMenu = strMenu + (" onClick=parent.klapInUit('" + pakDiv(items[i].nivo) + "');"); 
			}
		}
		strMenu = strMenu + (">");
		plus = 'leeg';
		if(is.ie4) {
			// als er een volgend nivo is dan een plus plaatsen, anders een lege image
			if (blHeeftChildren) {
				plus = 'plus';
			}
			strMenu = strMenu + ("<img ID='plus" + pakDiv(items[i].nivo) + "' src='graphics/" + plus + ".gif' width=11 height=11 border='0'>");
		}
		strMenu = strMenu + ("<img ID='img" + i + "'");
		strMenu = strMenu + (" src='graphics/menu" + items[i].nivo + ".gif' width=" + imgbreedte[items[i].nivo] + " height=" + imghoogte[items[i].nivo] + " border='0'>");
		strMenu = strMenu + (items[i].titel + "</A><br>");

		if(is.ie4) {
		// als er een volgend nivo is dan een div plaatsen
			if (blHeeftChildren) {
				strMenu = strMenu + ("<div style='display:none' ID='par" + pakDiv(items[i].nivo) + "'>");
			}
		// als er een lager nivo volgt dan een /div plaatsen
			begin = items[i].nivo;
			eind = (i<items.length-1?items[i+1].nivo:1)
			for(j=begin;j>eind;j--) {
				strMenu = strMenu + ("</div>");
			}
		}		
	}
	// laatste /div plaatsen
	if (items[items.length-1].nivo>0)
		strMenu = strMenu + ("</div>");
	framemenu.document.write(strMenu);
}

function pakDiv(nivo) {
	var div = "";
	for(idiv=0;idiv<nivo+1;idiv++) {
		div = div + "_" + divven[idiv];
	}
	return div;
}

function klapInUit(index) {
	// in en uitklappen en van het plusje een min maken en vv
	var blInklappen = false;
	var naam = 'par';
	var plusje = 'plus';

	if (is.ie4) {
		var linkObject = eval('framemenu.' + doc + '.' + naam + index + sty);
		var plusObject = eval('framemenu.' + doc + '.' + plusje + index);
		if (linkObject.display == "none") {
			linkObject.display = "";
			 plusObject.src = 'graphics/min.gif';
		} else {
			linkObject.display = "none";
			plusObject.src = 'graphics/plus.gif';
		}
	}   
}

function klapDivOpen(strIn) {
	if (is.ie4) {
		var numIndex = strIn.lastIndexOf("/");
		var strPagina = strIn.substr(numIndex + 1);
		numIndex = strPagina.indexOf("?");
		if (numIndex>-1) {
			strPagina = strPagina.substring(0,numIndex);
		}
	
		for(i=0;i<items.length;i++) {
			divven[items[i].nivo] = i;
			if (strPagina==items[i].url) { 
				break; 
			}
		}
		// pagina is niet gevonden
		if (i==items.length) return;

		for(j=0;j<items.length;j++) {
	//		var tag = 'framemenu.tag' + j;
			var tag = 'framemenu.' + doc + '.tag' + j;
			var linkObject = eval(tag + sty);
	//		linkObject.fontStyle = "normal";
			if (j==i) {
				linkObject.color = "red";
			} else {
	//			linkObject.fontStyle = "italic";
				linkObject.color = "black";
			}
		}

		// er zijn geen open te klappen parentmenus
		if (items[i].nivo==0) return;
		
		var div = 'framemenu.' + doc + '.par';
		var plusje = 'framemenu.' + doc + '.plus';
	    
		for(idiv=0;idiv<items[i].nivo;idiv++) {
			div = div + "_" + divven[idiv];
			plusje = plusje + "_" + divven[idiv];
			var linkObject = eval(div + sty);
			linkObject.display = "";
			if (is.ie4) {
				var plusObject = eval(plusje);
				plusObject.src = "graphics/min.gif";
			}
		}
	}
}

function plusplaatsen() {
	var plusObject = eval(doc + '.plus' + i);
	if (i<items.length-1) {
		if (items[i+1].nivo>items[i].nivo) {
			plusObject.src = 'graphics/plus.gif'
		}
	}
}

function menuIn(pencil, nivo) {
	pencil.src = 'graphics/menuhigh' + nivo + '.gif';
}

function menuUit(pencil, nivo) {
	pencil.src = 'graphics/menu' + nivo + '.gif';
}

function maakTNLink(imgId, fotoSrc, altText) {
	// een link maken van een foto met standaard een thumbnail erin
	if(is.ie4) {
		framecontent.document.write('<img id="' + imgId + '"');
		framecontent.document.write(' src="' + fotoSrc + '"');
		if(altText!=undefined) {
			framecontent.document.write(' alt="' + altText + '"');
		}
		framecontent.document.write(' style="cursor:hand"');
		framecontent.document.write(' onClick="parent.flipImage(' + imgId + ')">&nbsp;');
	} else {
		framecontent.document.write('<a href="' + getFotoUitTN(fotoSrc) + '">');
		framecontent.document.write('<IMG src="' + fotoSrc + '" border="0"');
		if(altText!=undefined) {
			framecontent.document.write(' alt="' + altText + '"');
		}
		framecontent.document.write('></a>&nbsp;');
	}
}

function flipImage(imgId) {
	thumbn = "TN_";
	// van foto thumbnail maken door voor de filenaam TN_ te zetten en omgekeerd
	if (imgId.src.indexOf(thumbn) != -1) {
		imgId.src = getFotoUitTN(imgId.src);
	} else {
		imgId.src = getTNUitFoto(imgId.src);
	}
}
function bigImage(imgId) {
	thumbn = "TN_";
	// van thumbnail foto maken door voor de filenaam TN_ weg te halen
	if (imgId.src.indexOf(thumbn) != -1) {
		imgId.src = getFotoUitTN(imgId.src);
	}
}
function smallImage(imgId) {
	thumbn = "TN_";
	// van foto thumbnail maken door voor de filenaam TN_ te zetten 
	if (imgId.src.indexOf(thumbn) == -1) {
		imgId.src = getTNUitFoto(imgId.src);
	}
}

function getFotoUitTN(imgNaam) {
	// van thumbnail foto maken door voor de filenaam TN_ te verwijderen
	thumbn = "TN_";
	return (imgNaam.substr(0,imgNaam.indexOf(thumbn)) + imgNaam.substr(imgNaam.indexOf(thumbn)+3));
}

function getTNUitFoto(imgNaam) {
	// van foto thumbnail maken door voor de filenaam TN_ te zetten
	thumbn = "TN_";
	count=0;
	pos=imgNaam.lastIndexOf("/");
	return (imgNaam.substr(0,pos+1) + thumbn + imgNaam.substr(pos+1));
}