// 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
//==================================================================================================
// Use a '#' to represent no URL

// menu : About Us
var menu1 = ms.addMenu(document.getElementById("menu1"));
menu1.addItem(" Adsoft srl", "http://www.adsoft.it/about/index.htm");
// send no URL if nothing should happen onclick
menu1.addItem("News", "http://www.adsoft.it/incostruzione.htm");
// send no URL if nothing should happen onclick
menu1.addItem("Eventi", "http://www.adsoft.it/eventi.asp.htm");
// send no URL if nothing should happen onclick
menu1.addItem("Contatti", "http://www.adsoft.it/contact/index.htm");
// send no URL if nothing should happen onclick



// submenu : About Us
var subMenu1 = menu1.addMenu(menu1.items[0]);
subMenu1.addItem("Adsoft srl", "http://www.adsoft.it/about/index.htm");

// submenu : Newsroom
var subMenu2 = menu1.addMenu(menu1.items[1]);
subMenu2.addItem("NewsRoom", "http://www.adsoft.it/Storico.asp");


//==================================================================================================
//==================================================================================================
// 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])
//==================================================================================================

// menu : Products
var menu2 = ms.addMenu(document.getElementById("menu2"));
menu2.addItem("Tutti Prodotti", "http://www.adsoft.it/product/index.htm");
menu2.addItem("Delta/Gst", "http://www.adsoft.it/product/delta.asp.htm");
menu2.addItem("Hardware/Software", "http://www.adsoft.it/product/hardware.asp.htm");
menu2.addItem("SATA", "http://www.adsoft.it/product/Sata.asp.htm");
menu2.addItem("PopCorn Twister", "http://www.adsoft.it/product/popcorn.asp.htm");
menu2.addItem("Apparecchi Intrattenimento", "http://www.adsoft.it/product/apparecchi6c.asp.htm");
menu2.addItem("Magic", "http://www.adsoft.it/product/magic.asp.htm");

// submenu : DeltaGst
var subMenu1 = menu2.addMenu(menu2.items[1]);
subMenu1.addItem("Delta/Gst", "http://www.adsoft.it/product/delta.asp.htm");
subMenu1.addItem("Demo", "http://www.adsoft.it/product/demo.htm");



//==================================================================================================

// menu : Contatti
var menu3 = ms.addMenu(document.getElementById("menu3"));
menu3.addItem("Dove trovarci", "http://www.adsoft.it/contact/index.htm");
menu3.addItem("Richiesta informazioni", "http://www.adsoft.it/contact/richiestainfo.htm");


//==================================================================================================

// menu : Suppporti
var menu4 = ms.addMenu(document.getElementById("menu4"));
menu4.addItem("Supporti", "http://www.adsoft.it/support/index.htm");
menu4.addItem("Demo/DeltaGst", "http://www.adsoft.it/product/demo.htm");
menu4.addItem("FAQs", "http://www.adsoft.it/about/faq.asp.htm");
menu4.addItem("Adsoft Forum", "http://www.adsoft.it/phpbb2/index.php");
menu4.addItem("Aggiornamenti", "http://www.adsoft.it/registrazione/login.asp");






//==================================================================================================

// menu : Compra
var menu5 = ms.addMenu(document.getElementById("menu5"));
menu5.addItem("Compra OnLine", "http://www.adsoft.it/shop/carrello.htm");


//==================================================================================================
// 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();
	}
