// 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 (mtDropDown.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 mtDropDownSet(mtDropDown.direction.down, 0, 0, mtDropDown.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("menu1"));
	menu1.addItem("- Historique", "index.php?action=aff_static&option_page=historique");
	menu1.addItem("- Qui sommes nous ?", "index.php?action=aff_static&option_page=qui_sommes_nous");
	//==================================================================================================

	//==================================================================================================
	// add a sub-menu
	//==================================================================================================
	// to add a sub menu to an existing menu object, call it's addMenu method and pass it the item from
	// the parent menu which should act as it's actuator. To add a submenu to the fourth item of a menu
	// called "theMenu", you would do theMenu.addMenu(theMenu.items[3])
	//==================================================================================================

	//var subMenu1 = menu1.addMenu(menu1.items[1]);  // no menu here...
	//var subMenu1 = menu1.addMenu(menu1.items[0]);
	//subMenu1.addItem("· Pourquoi CFA CLE ?", "index.php?action=aff_static&option_page=present_capcle");
	//subMenu1.addItem("· Présentation générale ", "index.php?action=aff_static&option_page=present_capcle1");
	//subMenu1.addItem("· Personalisation ", "index.php?action=aff_static&option_page=present_capcle2");
	//subMenu1.addItem("· Les carnets ", "index.php?action=aff_static&option_page=present_capcle3");
	//subMenu1.addItem("· Gestion des promotions ", "index.php?action=aff_static&option_page=present_capcle4");
	//subMenu1.addItem("· Liaisons Apprentis/Tuteurs ", "index.php?action=aff_static&option_page=present_capcle5");
	//subMenu1.addItem("· Parametres ", "index.php?action=aff_static&option_page=present_capcle7");
	//subMenu1.addItem("· Demande de renseignement", "index.php?action=demande_capcle");


	// menu : creation
	var menu2 = ms.addMenu(document.getElementById("menu2"));
	menu2.addItem("- APPLICAP ", "index.php?action=aff_static&option_page=present_applicap");
	menu2.addItem("- CFACLE ", "index.php?action=aff_static&option_page=present_capcle");
	//menu2.addItem("- ElecJob ", "index.php?action=aff_static&option_page=present_elecjob");
	menu2.addItem("- CAP Conventions ", "index.php?action=aff_static&option_page=present_convention");

	// submenu : création
	var subMenu2 = menu2.addMenu(menu2.items[1]);
	subMenu2.addItem("· Pourquoi CFA CLE ?", "index.php?action=aff_static&option_page=present_capcle");
	subMenu2.addItem("· Présentation générale ", "index.php?action=aff_static&option_page=present_capcle1");
	subMenu2.addItem("· Personalisation ", "index.php?action=aff_static&option_page=present_capcle2");
	subMenu2.addItem("· Les carnets ", "index.php?action=aff_static&option_page=present_capcle3");
	subMenu2.addItem("· Gestion des promotions ", "index.php?action=aff_static&option_page=present_capcle4");
	subMenu2.addItem("· Liaisons Apprentis/Tuteurs ", "index.php?action=aff_static&option_page=present_capcle5");
	subMenu2.addItem("· Parametres ", "index.php?action=aff_static&option_page=present_capcle7");

	// menu : developpement
	//var menu3 = ms.addMenu(document.getElementById("menu3"));
	//menu3.addItem("- Solutions informatiques", "index.php?action=aff_static&option_page=web_comm");
	//menu3.addItem("- Solutions électroniques", "index.php?action=aff_static&option_page=web_pro");

	// menu : Références
	var menu4 = ms.addMenu(document.getElementById("menu4"));
	menu4.addItem("- Nos clients", "index.php?action=aff_static&option_page=ref");
	menu4.addItem("- Témoignages", "index.php?action=aff_static&option_page=temoignages");

	// menu : Services
	var menu5 = ms.addMenu(document.getElementById("menu5"));
	menu5.addItem("- Contactez-Nous", "index.php?action=aff_static&option_page=contact");


	//==================================================================================================
	// write drop downs into page
	//==================================================================================================
	mtDropDown.renderAll();
}
