// set up drop downs anywhere in the body of the page. I think the bottom of the page is better.. 
	// but you can experiment with effect on loadtime.
	if (TransMenu.isSupported()) {

		//==================================================================================================
		// create a set of dropdowns
		//==================================================================================================
		// the first param should always be down, as it is here
		//
		// The second and third param are the top and left offset positions of the menus from their actuators
		// respectively. To make a menu appear a little to the left and bottom of an actuator, you could use
		// something like -5, 5
		//
		// The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner
		// of the actuator from which to measure the offset positions above. Here we are saying we want the 
		// menu to appear directly below the bottom left corner of the actuator
		//==================================================================================================
		var ms = new TransMenuSet(TransMenu.direction.down, 12, 11, TransMenu.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================

		var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("Nieuws", "index.php?pg=1&pid=0");
		menu2.addItem("Artikelen", "index.php?pg=1&pid=1");
		
		var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("Onderdelen", "index.php?pg=2&pid=0");
		menu3.addItem("Tijdsregistratie", "index.php?pg=2&pid=1");
		menu3.addItem("Prijzen", "index.php?pg=2&pid=2");
		//menu3.addItem("Parcoursrecord", "index.php?pg=2&pid=3");
		menu3.addItem("Parcours en verzorging", "index.php?pg=2&pid=4");
		menu3.addItem("Routebeschrijving", "index.php?pg=2&pid=5");
		
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("Inschrijfformulier", "index.php?pg=3&pid=0");
		menu4.addItem("Inschrijfgelden", "index.php?pg=3&pid=1");
		menu4.addItem("Deelnemers", "index.php?pg=3&pid=2");
		menu4.addItem("Algemene voorwaarden", "index.php?pg=3&pid=3");

		var menu5 = ms.addMenu(document.getElementById("menu5"));
		menu5.addItem("Uitslagen 2010", "index.php?pg=4&pid=8");
		menu5.addItem("Uitslagen 2009", "index.php?pg=4&pid=7");
		menu5.addItem("Uitslagen 2008", "index.php?pg=4&pid=6");
		menu5.addItem("Uitslagen 2007", "index.php?pg=4&pid=5");
		menu5.addItem("Uitslagen 2006", "index.php?pg=4&pid=4");
		menu5.addItem("Uitslagen 2005", "index.php?pg=4&pid=0");
		menu5.addItem("Uitslagen 2004", "index.php?pg=4&pid=1");
		//menu5.addItem("Uitslagen historie", "index.php?pg=4&pid=2");
		menu5.addItem("Winnaars", "index.php?pg=4&pid=3");
		
		var menu6 = ms.addMenu(document.getElementById("menu6"));
		menu6.addItem("Foto's 2010", "index.php?pg=5&pid=7");
		menu6.addItem("Foto's 2009", "index.php?pg=5&pid=6");
		menu6.addItem("Foto's 2008", "index.php?pg=5&pid=5");
		menu6.addItem("Impressie 2007", "index.php?pg=5&pid=4");
		menu6.addItem("Foto's 2007", "index.php?pg=5&pid=3");
		menu6.addItem("Foto's 2006", "index.php?pg=5&pid=2");
		menu6.addItem("Foto's 2005", "index.php?pg=5&pid=0");
		
		var menu7 = ms.addMenu(document.getElementById("menu7"));
		menu7.addItem("Platina- en Goldsponsoren", "index.php?pg=6&pid=0");
		menu7.addItem("Zilversponsoren", "index.php?pg=6&pid=1");
		menu7.addItem("Overige sponsoren", "index.php?pg=6&pid=2");
		menu7.addItem("Ondersteuning", "index.php?pg=6&pid=3");
		
		var menu10 = ms.addMenu(document.getElementById("menu10"));
		menu10.addItem("Organisatie", "index.php?pg=9&pid=0");
		menu10.addItem("Contactformulier", "index.php?pg=9&pid=1");
		
		var menu11 = ms.addMenu(document.getElementById("menu11"));
		menu11.addItem("Informatie", "index.php?pg=10&pid=0");
		menu11.addItem("Deelnemers", "index.php?pg=10&pid=1");
		
		
		
				
		//==================================================================================================

		//==================================================================================================
		// write drop downs into page
		//==================================================================================================
		// this method writes all the HTML for the menus into the page with document.write(). It must be
		// called within the body of the HTML page.
		//==================================================================================================
		TransMenu.renderAll();
	}
