

	// 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
		//==================================================================================================
	
 //menu : #1
 
 //menu : #1
var menu1 = ms.addMenu(document.getElementById("menu1"));
menu1.addItem("Our Hours", active_dir + "aboutus/hours.php"); 
menu1.addItem("Directions", active_dir + "aboutus/directions.php"); 
menu1.addItem("Our Philosophy", active_dir + "aboutus/philosophy.php");

//sousmenu du menu#1 : attacher au 2ieme élément
//var subMenu1 = menu1.addMenu(menu1.items[1]);
//subMenu1.addItem("sub-menu item", "#");
//subMenu1.addItem("sub-menu item", "#");

// sousmenu du menu#1 : attacher au 3ieme élément
//var subMenu2 = menu1.addMenu(menu1.items[2]);
//subMenu2.addItem("sub-menu item", "#");
//subMenu2.addItem("sub-menu item", "#");
//subMenu2.addItem("sub-menu item", "#");
//subMenu2.addItem("sub-menu item", "#");



// menu : #2

var menu2 = ms.addMenu(document.getElementById("menu2"));
menu2.addItem("Total Inventory", active_dir + "inventory/index.php"); 
menu2.addItem("Acoustic Guitars", active_dir + "inventory/index.php?search=Category&record=agtr&sortby=Brand"); 
menu2.addItem("Electric Guitars", active_dir + "inventory/index.php?search=Category&record=egtr&sortby=Brand");
menu2.addItem("Electric Basses", active_dir + "inventory/index.php?search=Category&record=ebass&sortby=Brand");
menu2.addItem("Guitar Amplifiers", active_dir + "inventory/index.php?search=Category&record=gamp&sortby=Brand");
menu2.addItem("Mandolins", active_dir + "inventory/index.php?search=Category&record=mandolin&sortby=Brand");
menu2.addItem("Banjos", active_dir + "inventory/index.php?search=Category&record=banjo&sortby=Brand");
menu2.addItem("Violins", active_dir + "inventory/index.php?search=Category&record=violin&sortby=Brand");
menu2.addItem("Left-Handed Guitars", active_dir + "inventory/index.php?search=Description&method=LIKE&record=%left%&sortby=Brand");

var subMenu2 = menu2.addMenu(menu2.items[1]);
subMenu2.addItem("Acoustic Guitars", active_dir + "inventory/index.php?search=Category&record=agtr&sortby=Brand"); 
subMenu2.addItem("Acoustic/Electric Guitars", active_dir + "inventory/index.php?search=Category&record=aegtr&sortby=Brand"); 

var subMenu2 = menu2.addMenu(menu2.items[3]);
subMenu2.addItem("Acoustic Basses", active_dir + "inventory/index.php?function=search&where_clause=Category=%22abass%22&page=0&table_name=inventory"); 

// menu : #3
var menu3 = ms.addMenu(document.getElementById("menu3"));
menu3.addItem("Sonoma County Teacher List", active_dir + "resources/teachers.php");
menu3.addItem("Instrument & Equipment Repairs section.", active_dir + "resources/repairs.php"); 



// menu : #4
var menu4 = ms.addMenu(document.getElementById("menu4"));
menu4.addItem("Browse our Book Inventory", active_dir + "books/index.php"); 
menu4.addItem("Search For a Book", active_dir + "books/search.php");
menu4.addItem("Order a Book Online", active_dir + "books/index.php");


// menu : #5
var menu5 = ms.addMenu(document.getElementById("menu5"));
menu5.addItem("Contact Us", active_dir + "contact/index.php"); 

// menu : #6
var menu6 = ms.addMenu(document.getElementById("menu6"));
menu6.addItem("Search For An Instrument", active_dir + "inventory/index.php"); 
menu6.addItem("Search For a Book", active_dir + "books/search.php"); 

// menu : #7
var menu7 = ms.addMenu(document.getElementById("menu7"));
//menu7.addItem("View Your Cart", active_dir + "cart/index.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.
		//==================================================================================================
		mtDropDown.renderAll();
	}

