// 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
		//==================================================================================================
		if(BrowserDetect.browser == "Explorer"){
			var ms = new TransMenuSet(TransMenu.direction.down, 0, -1, TransMenu.reference.bottomLeft);
		}
		else if(BrowserDetect.browser == "Opera"){
			var ms = new TransMenuSet(TransMenu.direction.down, 0, -6, TransMenu.reference.bottomLeft);
		}
		else{
			var ms = new TransMenuSet(TransMenu.direction.down, 0, -1, TransMenu.reference.bottomLeft);
		}
		//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
		//==================================================================================================
		//
		// Outdoor marketing solutions
		//
		var menu1 = ms.addMenu(document.getElementById("menu1"));
		menu1.addItem("Human Directionals", currentPath+"solutions/directionals/directionals.php");
		menu1.addItem("Live Billboards", currentPath+"solutions/livebb/livebb.php");
		menu1.addItem("Bike Billboards", currentPath+"solutions/bikebb/bikebb.php");
		menu1.addItem("Flyer Distribution", currentPath+"solutions/flyer/flyer.php");
		menu1.addItem("In-House Production and Creative<br/>Department", currentPath+"solutions/inhouse/inhouse.php");
		menu1.addItem("Traffic Flow Analysis", currentPath+"solutions/traffic/traffic.php");
		
		
		//menu1.addItem("Balloons &amp; Inflatables", currentPath+"solutions/balloons/balloons.php");
		//menu1.addItem("Mobile Billboards", currentPath+"solutions/mobilebb/mobilebb.php");
		//menu1.addItem("Sign Production", currentPath+"solutions/sign/sign.php");
		
		/*// Human Directionals submenu
		var subMenu11 = menu1.addMenu(menu1.items[0]);
		subMenu11.addItem("ROI", currentPath+"solutions/directionals/dir_roi.php");
		subMenu11.addItem("Targeted Marketing", currentPath+"solutions/directionals/dir_targeted.php"); 
		subMenu11.addItem("Real Time", currentPath+"solutions/directionals/dir_realtime.php");   
		subMenu11.addItem("Geographically Defined", currentPath+"solutions/directionals/dir_geograph.php");
		
		// Live Billboards submenu
		var subMenu12 = menu1.addMenu(menu1.items[1]);
		subMenu12.addItem("ROI", currentPath+"solutions/livebb/livebb_roi.php");
		subMenu12.addItem("Targeted Marketing", currentPath+"solutions/livebb/livebb_targeted.php"); 
		subMenu12.addItem("Real Time", currentPath+"solutions/livebb/livebb_realtime.php");   
		subMenu12.addItem("Geographically Defined", currentPath+"solutions/livebb/livebb_geograph.php");
		
		// Balloons & Inflatables submenu
		var subMenu13 = menu1.addMenu(menu1.items[2]);
		subMenu13.addItem("ROI", currentPath+"solutions/balloons/balloons_roi.php");
		subMenu13.addItem("Targeted Marketing", currentPath+"solutions/balloons/balloons_targeted.php"); 
		subMenu13.addItem("Real Time", currentPath+"solutions/balloons/balloons_realtime.php");   
		subMenu13.addItem("Geographically Defined", currentPath+"solutions/balloons/balloons_geograph.php");
		
		// Flyer Distribution submenu
		var subMenu14 = menu1.addMenu(menu1.items[3]);
		subMenu14.addItem("ROI", currentPath+"solutions/flyer/flyer_roi.php");
		subMenu14.addItem("Targeted Marketing", currentPath+"solutions/flyer/flyer_targeted.php"); 
		subMenu14.addItem("Real Time", currentPath+"solutions/flyer/flyer_realtime.php");   
		subMenu14.addItem("Geographically Defined", currentPath+"solutions/flyer/flyer_geograph.php");
		
		// Bike Billboards submenu
		var subMenu15 = menu1.addMenu(menu1.items[4]);
		subMenu15.addItem("ROI", currentPath+"solutions/bikebb/bikebb_roi.php");
		subMenu15.addItem("Targeted Marketing", currentPath+"solutions/bikebb/bikebb_targeted.php"); 
		subMenu15.addItem("Real Time", currentPath+"solutions/bikebb/bikebb_realtime.php");   
		subMenu15.addItem("Geographically Defined", currentPath+"solutions/bikebb/bikebb_geograph.php");
		
		// Mobile Billboards submenu
		var subMenu16 = menu1.addMenu(menu1.items[5]);
		subMenu16.addItem("ROI", currentPath+"solutions/mobilebb/mobilebb_roi.php");
		subMenu16.addItem("Targeted Marketing", currentPath+"solutions/mobilebb/mobilebb_targeted.php"); 
		subMenu16.addItem("Real Time", currentPath+"solutions/mobilebb/mobilebb_realtime.php");   
		subMenu16.addItem("Geographically Defined", currentPath+"solutions/mobilebb/mobilebb_geograph.php");
		
		// Sign Production submenu
		var subMenu17 = menu1.addMenu(menu1.items[6]);
		subMenu17.addItem("ROI", currentPath+"solutions/sign/sign_roi.php");
		subMenu17.addItem("Targeted Marketing", currentPath+"solutions/sign/sign_targeted.php"); 
		subMenu17.addItem("Real Time", currentPath+"solutions/sign/sign_realtime.php");   
		subMenu17.addItem("Geographically Defined", currentPath+"solutions/sign/sign_geograph.php");*/

		//==================================================================================================

		//==================================================================================================
		//
		// Our Approach
		//
		var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("Our People Make the Difference", currentPath+"approach/ourpeople.php");
		menu2.addItem("The Technological Advantage", currentPath+"approach/technological.php");
		menu2.addItem("Media Nation Outdoor Across the Nation", currentPath+"approach/acrossnation.php");
		menu2.addItem("Case Studies", currentPath+"approach/casestudies.php");

		//
		// Company
		//
	    var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("About Us", currentPath+"company/aboutus.php");
        //menu3.addItem("Management Team", currentPath+"company/management.php");
        //menu3.addItem("Coverage Area", currentPath+"company/coverage.php");
        menu3.addItem("Careers", currentPath+"company/careers.php");
		//menu3.addItem("Info Request", currentPath+"company/inforequest.php");
		//menu3.addItem("Offices", currentPath+"company/offices.php");
		menu3.addItem("Contact Us", currentPath+"company/contactus.php");
		
		//
		// Clients
		//
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("Clients and Industries", currentPath+"clients/clients.php");
		//menu4.addItem("Media Buyers", currentPath+"clients/mediabuyers.php");
		//menu4.addItem("Retail", currentPath+"clients/retail.php");
		//menu4.addItem("Events &amp; Sports Marketing", currentPath+"clients/eventssports.php");	
		//menu4.addItem("Home Builders", currentPath+"clients/homebuilders.php");	
		//menu4.addItem("Apartment Communities &amp; Management", currentPath+"clients/apartment.php");	
		menu4.addItem("Testimonials", currentPath+"clients/testimonials.php");

		
		//
		// Contact
		//
		//var menu6 = ms.addMenu(document.getElementById("menu6"));
		//menu6.addItem("First level sub menu 1", "");	
		//==================================================================================================

		//==================================================================================================
		// 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();
	}
