/* =================================================================================================
 * =================================================================================================
 * "Can I use this?"
 * ============================================================================================== */
 	// 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, 1, 0, TransMenu.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================
		//var menu1 = ms.addMenu(document.getElementById("welcome_nav"));
		//menu1.addItem("welcome", "index.html"); // send no URL if nothing should happen onclick

		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("about_nav"));
		menu2.addItem("history", "about.html");
		menu2.addItem("members", "about_members.html");
		menu2.addItem("executive committee", "about_comittee.html");
		menu2.addItem("brussels' office", "about_brussels.html");
		menu2.addItem("statutes - constitution", "about_constitution.html");
		menu2.addItem("statutes - internal reg.", "about_internalregulation.html");
		menu2.addItem("statutes - working reg.", "about_workingregulation.html");
		menu2.addItem("statutes - terms of ref.", "about_termsofreference.html");

		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("core_nav"));
		menu3.addItem("strategic plan '03'08", "core.html");
		menu3.addItem("business plan", "core_businessplan.html");
		menu3.addItem("position statements", "core_pstatement.html");

		//==================================================================================================

		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("networks_nav"));
		menu4.addItem("input to EU institutions", "networks_eu_input.html");
		menu4.addItem("updates", "networks_updates.html");
		menu4.addItem("speeches", "networks_speeches.html");
		menu4.addItem("articles", "networks_articles.html");
		menu4.addItem("press release", "networks_press.html");
		menu4.addItem("briefing notes", "networks_briefingnotes.php");
		menu4.addItem("archive", "networks_archive.html");

		//==================================================================================================

		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("data_nav"));
		menu5.addItem("questionnaire", "datacollection.html");
		menu5.addItem("start evaluation", "datacollection_evaluation.html");
		menu5.addItem("questionnaire Dec '05", "questionnaire1205.php");

		//==================================================================================================

		//==================================================================================================
		var menu6 = ms.addMenu(document.getElementById("projects_nav"));
		menu6.addItem("public health program", "projects_health.html");
		menu6.addItem("healthpro - elderly", "projects_redcross.html");
		menu6.addItem("profmobility (ehma)", "projects_ehma.html");

		//==================================================================================================

		//==================================================================================================
		//var menu7 = ms.addMenu(document.getElementById("meetings_nav"));
		//menu7.addItem("empty", "meetings.html");

		//==================================================================================================

		//==================================================================================================
		var menu8 = ms.addMenu(document.getElementById("member_nav"));
		menu8.addItem("log in", "member.php");
		menu8.addItem("user request", "request.php");

		//==================================================================================================
		//==================================================================================================
		// 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();
	}
