//Menu Actief





function menuactief(menuNaam, modus) {

	if(menuNaam == "doelstelling") {

   		if(modus == "normaal") {

	 		document.images[menuNaam].src="../images/system/doelstelling2.jpg"

		} else {

			document.images[menuNaam].src="../images/system/doelstelling2.jpg"

		}

	}



  if(menuNaam == "projecten") {

	if(modus == "normaal") {

	 		document.images[menuNaam].src="../images/system/projecten2.jpg"

		} else {

			document.images[menuNaam].src="../images/system/projecten2.jpg"

		}

	}



  if(menuNaam == "kenia") {

	 if(modus == "normaal") {

	 		document.images[menuNaam].src="../images/system/kenia2.jpg"

		} else {

			document.images[menuNaam].src="../images/system/kenia2.jpg"

		}

	}



  if(menuNaam == "mensen") {

	if(modus == "normaal") {

	 		document.images[menuNaam].src="../images/system/mensen2.jpg"

		} else {

			document.images[menuNaam].src="../images/system/mensen2.jpg"

		}

	}

	

	xPositie = bepaalPositieX(menuNaam)
//148
	yPositie = 150

	showMenu(menuNaam, xPositie, yPositie)

}



//Menu Passief

function menupassief(menuNaam, modus) {

	if(menuNaam == "doelstelling") {

   		if(modus == "normaal") {

	 		document.images[menuNaam].src="../images/system/doelstelling1.jpg"

		} else {

			document.images[menuNaam].src="../images/system/doelstelling3.jpg"

		}

	}



  	if(menuNaam == "projecten") {

		if(modus == "normaal") {

	 		document.images[menuNaam].src="../images/system/projecten1.jpg"

		} else {

			document.images[menuNaam].src="../images/system/projecten3.jpg"

		}

	}



  	if(menuNaam == "kenia") {

	 	if(modus == "normaal") {

	 		document.images[menuNaam].src="../images/system/kenia1.jpg"

		} else {

			document.images[menuNaam].src="../images/system/kenia3.jpg"

		}

	}



  	if(menuNaam == "mensen") {

		if(modus == "normaal") {

	 		document.images[menuNaam].src="../images/system/mensen1.jpg"

		} else {

			document.images[menuNaam].src="../images/system/mensen3.jpg"

		}

	}

}



function bepaalPositieX(knopnaam) {

 breedte = document.body.clientWidth



 if(breedte > 720){

 	xMidden = document.body.clientWidth / 2

		if(knopnaam == "doelstelling") {	
//218
			return xMidden - 270

		}

		if(knopnaam == "projecten") {
//124
			return xMidden - 113

		}

		if(knopnaam == "kenia") {
//33
			return xMidden + 44

		}

		if(knopnaam == "mensen") {
//191
			return xMidden + 201

		} 

 }

 if(breedte < 720){

		if(knopnaam == "doelstelling") {	

			return 86

		}

		if(knopnaam == "projecten") {

			return 243

		}

		if(knopnaam == "kenia") {

			return 400

		}

		if(knopnaam == "mensen") {

			return 558

		}

 } 

 return xMidden

}











//lichtkrant

function afdraaien() {

	if (positie < 0) {

		window.status = blanco.substring(0, -positie) + tekst.substring(0, positie + lengte)

	} else {

		window.status = tekst.substring(positie, tekst.length)

	}

	positie++

	if (positie == tekst.length) {

		positie = -lengte

 }

	window.setTimeout("afdraaien()", 100)

}



//menu

function loadMenus() {

    window.doelstelling = new Menu("doelstelling");

    doelstelling.addMenuItem("&nbsp&nbsp&nbsp&nbspWerkgebied", "top.window.location='werkgebied.html'");

    doelstelling.addMenuItem("&nbsp&nbsp&nbsp&nbspVerleden", "top.window.location='verleden.html'");

    doelstelling.addMenuItem("&nbsp&nbsp&nbsp&nbspHeden", "top.window.location='heden.html'");

    doelstelling.addMenuItem("&nbsp&nbsp&nbsp&nbspToekomst", "top.window.location='toekomst.html'");

    doelstelling.menuItemWidth = 151;

				doelstelling.menuItemHeight = 17;

				doelstelling.menuItemBgColor = "#ebfafe";

				doelstelling.fontColor = "#ff6838";

				doelstelling.fontSize = 14;

				doelstelling.fontFamily = "Times New Roman"

				doelstelling.menuBorder = 0;

				doelstelling.menuHiliteBgColor = "#8080ff";

				doelstelling.menuLiteBgColor = "#dadada";

				doelstelling.disableDrag = true



    window.projecten = new Menu("projecten");

    projecten.addMenuItem("&nbsp&nbsp&nbsp&nbspGemeenschap", "top.window.location='gemeenschap.html'");

    projecten.addMenuItem("&nbsp&nbsp&nbsp&nbspScholen", "top.window.location='scholen.html'");

    projecten.addMenuItem("&nbsp&nbsp&nbsp&nbspVrouwen", "top.window.location='vrouwen.html'");

    projecten.addMenuItem("&nbsp&nbsp&nbsp&nbspJongeren", "top.window.location='jongeren.html'");

    projecten.addMenuItem("&nbsp&nbsp&nbsp&nbspOmgeving", "top.window.location='omgeving.html'");

    projecten.menuItemWidth = 151;

				projecten.menuItemHeight = 17;

				projecten.menuItemBgColor = "#ebfafe";

				projecten.fontColor = "#ff6838";

				projecten.fontSize = 14;

				projecten.fontFamily = "Times New Roman"

				projecten.menuBorder = 0;

				projecten.menuHiliteBgColor = "#8080ff";

				projecten.menuLiteBgColor = "#dadada";

				projecten.disableDrag = true



    window.kenia = new Menu("kenia");

    kenia.addMenuItem("&nbsp&nbsp&nbsp&nbspGeografie", "top.window.location='geografie.html'");

    kenia.addMenuItem("&nbsp&nbsp&nbsp&nbspNatuur", "top.window.location='natuur.html'");

    kenia.addMenuItem("&nbsp&nbsp&nbsp&nbspBevolking", "top.window.location='bevolking.html'");

    kenia.addMenuItem("&nbsp&nbsp&nbsp&nbspEconomie", "top.window.location='economie.html'");

    kenia.menuItemWidth = 151;

				kenia.menuItemHeight = 17;

				kenia.menuItemBgColor = "#ebfafe";

				kenia.fontColor = "#ff6838";

				kenia.fontSize = 14;

				kenia.fontFamily = "Times New Roman"

				kenia.menuBorder = 0;

				kenia.menuHiliteBgColor = "#8080ff";

				kenia.menuLiteBgColor = "#dadada";

				kenia.disableDrag = true



    window.mensen = new Menu("mensen");

    mensen.addMenuItem("&nbsp&nbsp&nbsp&nbspBestuur", "top.window.location='bestuur.html'");

    mensen.addMenuItem("&nbsp&nbsp&nbsp&nbspDonateurs", "top.window.location='donateurs.html'");

    mensen.addMenuItem("&nbsp&nbsp&nbsp&nbspMedewerkers", "top.window.location='medewerkers.html'");

    mensen.menuItemWidth = 152;

				mensen.menuItemHeight = 17;

				mensen.menuItemBgColor = "#ebfafe";

				mensen.fontColor = "#ff6838";

				mensen.fontSize = 14;

				mensen.fontFamily = "Times New Roman"

				mensen.menuBorder = 0;

				mensen.menuHiliteBgColor = "#8080ff";

				mensen.menuLiteBgColor = "#dadada";

				mensen.disableDrag = true



    doelstelling.writeMenus();

}



function init() {

  //document.all.news.src="http://www.js-examples.com/consult/";

}


