// Menu Contents

	// 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, 1, 0, TransMenu.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================


// Menu 1 PROCESS
		var menu1 = ms.addMenu(document.getElementById("process"));
		menu1.addItem("- How Biorock Works", "/process.html");
		menu1.addItem("- Awards / Recognition", "/awards.html");
// ==================================================================================================		
// Menu 2 PROJECTS		
		var menu2 = ms.addMenu(document.getElementById("projects"));
		menu2.addItem("- Koh Tao", "/kohtao-intro.html"); 
		menu2.addItem("- Koh Samui", "/samui-fishery-intro.html");
				
		var submenu0 = menu2.addMenu(menu2.items[0]);
//		var submenu1 = menu1.addMenu(menu1.items[1]);
//
		submenu0.addItem("- Koh Tao Pilot Project", "");
				
		var submenu1 = menu2.addMenu(menu2.items[1]);
		submenu1.addItem("- Project Overview", "/samui-fishery-intro.html");
		submenu1.addItem("- Ban Makam", "");
		submenu1.addItem("- The Cliff", "");
		submenu1.addItem("- Koh Taen I", "");
		submenu1.addItem("- Koh Taen II", "");
		submenu1.addItem("- Chewang", "");
		
//		3rd level
//		var submenu00 = submenu0.addMenu(submenu0.items[0]);
//		submenu00.addItem("foo");
//		submenu00.addItem("bar");
// ==================================================================================================
// Menu 3 SERVICES
		var menu3 = ms.addMenu(document.getElementById("services"));
		menu3.addItem("- Biorock Educational Programs", "http://picasaweb.google.com/anumart.c");
		menu3.addItem("- Conservation Projects", "http://picasaweb.google.com/anumart.c/TheGreenIslandProjectKohSamui2008#");
//		menu2.addItem("- Analysis & Planning", "/analysis-planning.php");

		

//		var submenu10 = menu2.addMenu(menu2.items[0]);
//		var submenu11 = menu2.addMenu(menu2.items[1]);
//		
//		submenu10.addItem("- Systems Integration 1", "#");
//		submenu10.addItem("- Systems Integration 2", "#");
//
//		submenu11.addItem("- Network Security 1", "#");
//		submenu11.addItem("- Network Security 2", "#");
		
// ==================================================================================================
// Menu 4 FORUM		
		var menu4 = ms.addMenu(document.getElementById("forum"));
		menu4.addItem("- Public Forum", "/smforum/");
//		menu3.addItem("- Managed Web Hosting", "/web/managed-web-hosting.php");

//		var submenu20 = menu3.addMenu(menu3.items[0]);

//
//		submenu20.addItem("- Search Engine Optimization", "");
//		submenu20.addItem("- PPC Management", "");
//
//		submenu21.addItem("- Managed Hosting 1", "#");
//		submenu21.addItem("- Managed Hosting 2", "#");

//		submenu22.addItem("- Search Engine Optimization", "/web/search-engine-optimization.php");
//		submenu22.addItem("- PPC Management", "/web/ppc-management.php");
		
//==================================================================================================
// Menu 5 ABOUT US	
		var menu5 = ms.addMenu(document.getElementById("about"));
		menu5.addItem("- Sponsor - Friend Links", "/friends.html");
		menu5.addItem("- Local Weather: Samui", "/samui-weather.html");
		menu5.addItem("- Activity Calendar", "/activity-cal.html");
		menu5.addItem("- Crew", "");
		menu5.addItem("- Organization", "");
				
//		var submenu30 = menu4.addMenu(menu4.items[0]);
	//	var submenu31 = menu4.addMenu(menu4.items[1]);
		

//		submenu30.addItem("- About 1", "#");
//		submenu30.addItem("- About 2", "#");

//		submenu31.addItem("- Intel", "#");
//		submenu31.addItem("- Microsoft", "#");


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


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