/* =================================================================================================
 * =================================================================================================
 * "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("empty", "index.html"); // send no URL if nothing should happen onclick

		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("about_nav"));
		menu2.addItem("historique", "about.html");
		menu2.addItem("membres", "about_members.html");
		menu2.addItem("comité exécutif", "about_comittee.html");
		menu2.addItem("bureau à bruxelles", "about_brussels.html");
		menu2.addItem("constitution", "about_constitution.html");
		menu2.addItem("r&egrave;glement Intérieur", "about_internalregulation.html");
		menu2.addItem("r&egrave;glement du Travail", "about_workingregulation.html");
		menu2.addItem("termes de R&eacute;f&eacute;rence", "about_termsofreference.html");

		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("core_nav"));
		menu3.addItem("plan stratégique '03'08", "core.html");
		menu3.addItem("plan d'action", "core_businessplan.html");
		menu3.addItem("déclaration de position", "core_pstatement.html");

		//==================================================================================================

		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("networks_nav"));
		menu4.addItem("conseil EU institutions", "networks_eu_input.html");
		menu4.addItem("mises à jour de EFN", "networks_updates.html");
		menu4.addItem("discours", "networks_speeches.html");
		menu4.addItem("articles", "networks_articles.html");
		menu4.addItem("communiqués presse", "networks_press.html");
		menu4.addItem("notes d'information", "networks_briefingnotes.php");
		menu4.addItem("archives", "networks_archive.html");

		//==================================================================================================

		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("data_nav"));
		menu5.addItem("questionnaires", "datacollection.html");
		menu5.addItem("evaluation", "datacollection_evaluation.html");
		menu5.addItem("questionnaire Dec '05", "../EN/questionnaire1205.php");

		//==================================================================================================

		//==================================================================================================
		var menu6 = ms.addMenu(document.getElementById("projects_nav"));
		menu6.addItem("programme santé publique", "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("connexion", "member.php");
		menu8.addItem("mot de passe", "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();
	}
