// 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
		//==================================================================================================
		var ms = new TransMenuSet(TransMenu.direction.down, 0, 1, TransMenu.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("homex"));
			menu1.addItem("Jones Soda", "index.php"); 
			menu1.addItem("Jones Soda Store", "http://www.myjones.com/shop/");
			menu1.addItem("myJones", "http://www.myjones.com");

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

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("aboutus"));
			menu2.addItem("Jones Soda Story","files/about.php");
			menu2.addItem("Media Center","files/media_center.php");
			menu2.addItem("People at Jones","files/people.php");
			menu2.addItem("Jobs with Jones","files/jobs.php");
			menu2.addItem("Distributor Inquires","files/distributor-buy.php");
			menu2.addItem("Vendor Inquiries","files/owner-sell.php");
			menu2.addItem("Investor Relations","invest/index.php");
			menu2.addItem("Partners","files/partners.php");
			menu2.addItem("Contact Us","files/contact_us.php");
			menu2.addItem("Keeping It Real","files/keeping-it-real.php");
			
			var submenu0 = menu2.addMenu(menu2.items[1]);
			var submenu1 = menu2.addMenu(menu2.items[6]);

				submenu0.addItem("Executive Bios", "invest/governance.php");
				submenu0.addItem("Jones in the Media", "files/media_archive.php");
				submenu0.addItem("Press Releases", "invest/newsreleases.php");
				submenu0.addItem("Artwork and Downloads", "files/media_artwork.php");
				submenu0.addItem("Awards", "files/awards.php");
				submenu0.addItem("Homework Cheatsheet", "files/home.php");

				submenu1.addItem("Investor Overview", "invest/index.php");
				submenu1.addItem("Company Profile", "invest/company_profile.php");
				submenu1.addItem("Stock Information", "invest/stock_info.php");
				submenu1.addItem("Financial Reports", "invest/financial_reports.php");
				submenu1.addItem("Investor Relations", "invest/contact_info.php");
				
								
		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("community"));
			menu3.addItem("Jones in the community","files/community.php");
			menu3.addItem("Jones BLOG","wordpress/");
			menu3.addItem("Community Support","files/community_support.php");
			menu3.addItem("Jones Youth Advisory Board","files/jyab.php");
			menu3.addItem("Jones Team","files/team.php");
			menu3.addItem("Events Calendar","files/news.php");
			menu3.addItem("Guestbook","guestbook/");
			menu3.addItem("Jones Forum","forum/");
			menu3.addItem("Fun Corner","files/fun.php");
			menu3.addItem("Under the Cap Contest","underthecap/");
			menu3.addItem("Jones on the Map","files/frappr.php");
			
			var submenu2 = menu3.addMenu(menu3.items[4]);
			var submenu3 = menu3.addMenu(menu3.items[5]);
			var submenu4 = menu3.addMenu(menu3.items[6]);
			var submenu5 = menu3.addMenu(menu3.items[8]);

				submenu2.addItem("Jones Pro Team", "files/athletes.php");
				submenu2.addItem("Emerging Talent", "files/am_athletes.php");
				submenu2.addItem("Athlete Sponsorship", "files/sponsor_athlete.php");
				submenu2.addItem("Jones RV", "files/rv.php");

				submenu3.addItem("Event Sponsorship", "files/sponsor_event.php");
				
				submenu4.addItem("myJones Music", "http://www.myjonesmusic.com");
	  			submenu4.addItem("myJones Video", "http://www.myjonesvideo.com");
				
				submenu5.addItem("Lead Page Quotes", "files/sayings.php");
				submenu5.addItem("Pin Yourself to the Jones Map", "files/frappr.php");
				submenu5.addItem("Stuff for your computer", "files/fun.php");
				submenu5.addItem("Wallpaper", "wallpaper/index.php");
				submenu5.addItem("Memory Game", "memory/memory.php");
				submenu5.addItem("Magnetic Words", "magnetic/");


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

		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("products"));
			menu4.addItem("Jones Products","files/products-glass.php");
			menu4.addItem("Jones Soda Locator","files/locator.php");
			menu4.addItem("National Accounts Locator","files/locator_national.php");
			//menu4.addItem("Suggest Flavors","files/products-glass.php");
			menu4.addItem("Under cap fortunes","files/cookies.php");
			
			var submenu6 = menu4.addMenu(menu4.items[0]);
			
				submenu6.addItem("Pure Cane Soda", "files/products-glass.php");
				submenu6.addItem("12-pack cans", "files/products-canned.php");
				submenu6.addItem("Jones Naturals", "files/products-natural.php");
				submenu6.addItem("Jones Organics", "files/products-organic.php");
				submenu6.addItem("Jones GABA", "files/products-gaba.php");
				submenu6.addItem("Jones Energy", "files/products-energy.php");
				submenu6.addItem("24C", "files/products-24c.php");
				submenu6.addItem("Jones Candy", "files/products-candy.php");
				submenu6.addItem("Limited Editions", "files/limited_editions.php");
				submenu6.addItem("Retired Products", "files/products-retired.php");
				
		//==================================================================================================

		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("labels"));
			menu5.addItem("Submit your photo","files/yrlab.php");
			menu5.addItem("Photo Gallery","gallery/");
			menu5.addItem("Gallery Map","gallery/map.php");
			menu5.addItem("Selected Labels","files/selected_labels.php");
			menu5.addItem("Labels on the Map","gallery/map.php");
			
		var submenu0 = menu5.addMenu(menu5.items[3]);

			submenu0.addItem("Regular Series", "files/selected_labels.php");
			submenu0.addItem("Special Series", "");
			submenu0.addItem("Limited Editions", "files/limited_editions.php");
		//==================================================================================================
		
		var submenu00 = submenu0.addMenu(submenu0.items[1]);

			submenu00.addItem("Landmark Series", "files/landmark_labels.php");
			submenu00.addItem("Blazer Series", "files/blazers_labels.php");
			
		//==================================================================================================

		//==================================================================================================
		var menu6 = ms.addMenu(document.getElementById("shopjones"));
			menu6.addItem("Jones Clothing", "http://www.myjones.com/store/jones-clothing.html");
			menu6.addItem("Beverages", "http://www.myjones.com/store/beverages.html");
			menu6.addItem("Jones Candy and Stuff", "http://www.myjones.com/store/jones-candy.html");
			menu6.addItem("Limited Edition!!", "http://www.myjones.com/store/limited-edition.html");
			menu6.addItem("On Sale!!!", "http://www.myjones.com/store/on-sale.html");
			
		var submenu0 = menu6.addMenu(menu6.items[0]);

			submenu0.addItem("Jacket + Hoodies", "http://www.myjones.com/store/jones-clothing/jacket-hoodies.html");
			submenu0.addItem("T-Shirts", "http://www.myjones.com/store/jones-clothing/t-shirts.html");
			submenu0.addItem("Jones Stuff For Your Head", "http://www.myjones.com/store/jones-clothing/jones-stuff-for-your-head.html");

		var submenu0 = menu6.addMenu(menu6.items[1]);

			submenu0.addItem("Jones GABA", "http://www.myjones.com/store/beverages/jones-gaba.html");
			submenu0.addItem("24C", "http://www.myjones.com/store/beverages/24c.html");
			submenu0.addItem("Energy/Whoopass", "http://www.myjones.com/store/beverages/energy-whoopass.html");
			submenu0.addItem("Naturals", "http://www.myjones.com/store/beverages/naturals.html");
			submenu0.addItem("Organics", "http://www.myjones.com/store/beverages/organics.html");
			submenu0.addItem("Pure Cane Soda", "http://www.myjones.com/store/beverages/pure-cane-soda.html");
			submenu0.addItem("New Jones Soda Flavors", "http://www.myjones.com/store/beverages/new-jones-soda-flavors.html");
			submenu0.addItem("Sugar Free Soda", "http://www.myjones.com/store/beverages/sugar-free-soda.html");
			submenu0.addItem("Variety Packs", "http://www.myjones.com/store/beverages/variety-packs.html");

		var submenu0 = menu6.addMenu(menu6.items[2]);

			submenu0.addItem("Jones Stuff", "http://www.myjones.com/store/jones-candy/jones-stuff.html");
			submenu0.addItem("Jones Soda Accessories", "http://www.myjones.com/store/jones-candy/jones-stuff/jones-soda-accessories.html");
			submenu0.addItem("Stickers and Banners", "http://www.myjones.com/store/jones-candy/jones-stuff/stickers-and-banners.html");


			menu6.addItem("Customer Service", "http://www.myjones.com/shop/contacts/");
			
		//==================================================================================================

		//==================================================================================================
		var menu7 = ms.addMenu(document.getElementById("myjones"));
			menu7.addItem("Personalized labels", "http://www.myjones.com");
			menu7.addItem("Idea Gallery", "http://www.myjones.com/photos/actionshots/main.php");
			menu7.addItem("Guestbook", "http://www.myjones.com/files/guestbook.php");
			menu7.addItem("FAQs", "http://www.myjones.com/files/faqs.php");
			menu7.addItem("Seattle Seahawks", "http://www.myjones.com/seahawks/");
			menu7.addItem("Customer Service", "http://www.myjones.com/files/contact.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.
		//==================================================================================================
		TransMenu.renderAll();
	}
