// 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 (HHDropDown.isSupported()) {
var ms = new HHDropDownSet(HHDropDown.direction.down, 0, 0, HHDropDown.reference.bottomLeft);
var menu1 = ms.addMenu(document.getElementById("menu1"));
menu1.addItem("&#187;&#160;City of Irving Home", "http://www.cityofirving.org");
var menu2 = ms.addMenu(document.getElementById("menu2"));
menu2.addItem("&#187;&#160;Budget", "/budget/index.html");
menu2.addItem("&#187;&#160;City Charter", "/elected-officials/charter.html");
menu2.addItem("&#187;&#160;City Code-Criminal", "http://www.municode.com/resources/gateway.asp?pid=14637&sid=43");
menu2.addItem("&#187;&#160;City Code-Land Development", "http://www.municode.com/resources/gateway.asp?pid=14638&sid=43");
menu2.addItem("&#187;&#160;Agenda & Minutes", "/city-secretary/agendas-minutes-index.html");
menu2.addItem("&#187;&#160;Construction Map", "/inspections/commercial-map.html");
menu2.addItem("&#187;&#160;Contact List", "/common/contact-index.html");
menu2.addItem("&#187;&#160;Demographics", "/common/demographics.html");
menu2.addItem("&#187;&#160;Departments", "/departments-a-z/index.html");
menu2.addItem("&#187;&#160;Employment", "/human-resources/employment.html");
menu2.addItem("&#187;&#160;Maps", "/information-technology/webmaps/index.html");
menu2.addItem("&#187;&#160;Property Taxes", "/Financial-Service/tax-rate-information.html");
var menu3 = ms.addMenu(document.getElementById("menu3"));
menu3.addItem("&#187;&#160;Bid Opportunities", "/purchasing/bids-table-2.html");
menu3.addItem("&#187;&#160;Chamber of Commerce/Economic Development", "http://www.irvingchamber.com/");
menu3.addItem("&#187;&#160;ICVB", "http://www.irvingtexas.com/");
menu3.addItem("&#187;&#160;Inspections", "planning-and-inspections/index.html");
menu3.addItem("&#187;&#160;Purchasing", "/purchasing/index.html");
menu3.addItem("&#187;&#160;Tax Payments", "/Financial-Service/property-tax-query.html");
menu3.addItem("&#187;&#160;TIF", "http://www.irvingtif.com/");
menu3.addItem("&#187;&#160;Transportation Summit", "http://www.transportationsummit.com/");
var menu4 = ms.addMenu(document.getElementById("menu4"));
menu4.addItem("&#187;&#160;Animal Shelter", "/animal-services/index.html");
menu4.addItem("&#187;&#160;Arts Center", "http://www.irvingartscenter.org/");
menu4.addItem("&#187;&#160;Athletics & Classes", "/parks-and-recreation/classes.html");
menu4.addItem("&#187;&#160;City Publications", "/corporate-communications/contact-Irving.html");
menu4.addItem("&#187;&#160;Customer Service | Utilities", "/Financial-Service/Customer-Service/Index.html");
menu4.addItem("&#187;&#160;Emergency Management", "/emergency-management/index.html");
menu4.addItem("&#187;&#160;Fire", "/fire/index.html");
menu4.addItem("&#187;&#160;Housing Grants & Services", "/housing-human-services/index.html");
menu4.addItem("&#187;&#160;ICTN", "http://www.ictn.tv");
menu4.addItem("&#187;&#160;Irving Schools", "/common/irving-school-districts.html");
menu4.addItem("&#187;&#160;Keep Irving Beautiful", "/keep-irving-beautiful/kib.html");
menu4.addItem("&#187;&#160;Library", "/library/index.html");
menu4.addItem("&#187;&#160;New Residents", "/common/new-irving-resident.html");
menu4.addItem("&#187;&#160;Police", "/police/index.html");
menu4.addItem("&#187;&#160;Solid Waste Services", "/solid-waste-services/index.html");
menu4.addItem("&#187;&#160;Water Service", "/Financial-Service/Customer-Service/Index.html");
var menu5 = ms.addMenu(document.getElementById("menu5"));
menu5.addItem("&#187;&#160;All Forms", "/common/forms.html");
menu5.addItem("&#187;&#160;All Reports", "/common/reports.html");
menu5.addItem("&#187;&#160;Animals Currently at Shelter", "http://www.petango.com/Forms/ShelterDetails.aspx?s=1098&z=75061");
menu5.addItem("&#187;&#160;Arts Centers Tickets", "https://bulldog.ci.irving.tx.us/scripts/max/10.1.1.13-2000/maxshop.exe?STORE=WEB%20");
menu5.addItem("&#187;&#160;Contact Code Enforcement", "/inspections/questions.html");
menu5.addItem("&#187;&#160;Contact Irving", "/corporate-communications/contact-Irving.html");
menu5.addItem("&#187;&#160;E-mail Lists", "/information-technology/it-services/email-lists.html");
menu5.addItem("&#187;&#160;File an online police report", "/police/Citizens-Online-Police-Reporting/index.html");
menu5.addItem("&#187;&#160;Food Establishment Scores", "/code-enforcement/food-establishment-scores.html");
menu5.addItem("&#187;&#160;Inspector Results", "http://ecs.ci.irving.tx.us/etrakit/index.asp");
menu5.addItem("&#187;&#160;Interactive Maps", "/information-technology/webmaps/index.html");
menu5.addItem("&#187;&#160;Irving’s Material Exchange", "/solid-waste-services/IMEP/irving-material-exchange-program.html");
menu5.addItem("&#187;&#160;Job Application", "/human-resources/index.html");
menu5.addItem("&#187;&#160;How to Register To Vote", "/city-secretary/voter-registration.html");
menu5.addItem("&#187;&#160;Start Water Service", "/water-utilities/customer-service.html");
menu5.addItem("&#187;&#160;Traffic Tickets", "https://ecs.ci.irving.tx.us/Court/");
menu5.addItem("&#187;&#160;Vacation Watch", "https://ecs.ci.irving.tx.us/vacationwatch/");
menu5.addItem("&#8250;&nbsp;&nbsp;Video on Demand","/video-on-demand/index.html");
menu5.addItem("&#187;&#160;Water Bill", "https://ecs.ci.irving.tx.us/waterpayment/inh_main.asp");

//==================================================================================================
// 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.
//==================================================================================================
HHDropDown.renderAll();
}