	// 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
		//==================================================================================================

		//
		// About Robocup2004
		//
		/*var menu1 = ms.addMenu(document.getElementById("menu1"));
		
		menu1.addItem("About", "/aboutRobocup2004/");
		menu1.addItem("What is Robocup?", "/aboutRobocup2004/whatIsRobocup");
		menu1.addItem("Why Portugal?", "/aboutRobocup2004/whyPortugal");
		menu1.addItem("Venue", "/aboutRobocup2004/venue");
		menu1.addItem("Local Organizing Committee", "/aboutRobocup2004/orgCommittee");
		menu1.addItem("Schedule", "/aboutRobocup2004/schedule");
		menu1.addItem("General Public/Publico", "/aboutRobocup2004/visitors");*/
		//==================================================================================================

		//==================================================================================================
		// 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])
		//==================================================================================================		

		//
		// RoboCup Soccer
		//
		var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("Our Vision","/our_vision.html");
		menu2.addItem("Our Core Values","/our_core_values.html");
		menu2.addItem("Our Internal Guidelines","/our_internal_guidelines.html");
	//	menu2.addItem("Small-Sized Robot League","/robocupSoccer/smallSized/");
		//menu2.addItem("Middle-Sized Robot League","/robocupSoccer/middleSized/");
		//menu2.addItem("4 Legged Robot League","/robocupSoccer/4legged/");
		//menu2.addItem("Humanoid League","/robocupSoccer/humanoid/");
		
		//var subMenu21 = menu2.addMenu(menu2.items[1]);
	//	subMenu21.addItem("About","/robocupSoccer/eleague/");
		//subMenu21.addItem("Qualification", "/robocupSoccer/eleague/eleagueQualification/");    
		//subMenu21.addItem("Schedule", "/robocupSoccer/eleague/eleagueSchedule/");    
		//subMenu21.addItem("Rules", "/robocupSoccer/eleague/eleagueRules/");    
		//subMenu21.addItem("Teams", "/robocupSoccer/eleague/eleagueTeams/");    
		//subMenu21.addItem("Committees", "/robocupSoccer/eleague/eleagueCommittees/"); 
		//subMenu21.addItem("Results", "/robocupSoccer/eleague/eleagueResults/"); 

		//var subMenu22 = menu2.addMenu(menu2.items[2]);
		//subMenu22.addItem("About","/robocupSoccer/simulation/");
		//subMenu22.addItem("Qualification", "/robocupSoccer/simulation/socSimulQualification/");    
		//subMenu22.addItem("Schedule", "/robocupSoccer/simulation/socSimulSchedule/");    
		//subMenu22.addItem("Rules", "/robocupSoccer/simulation/socSimulRules/");    
		//subMenu22.addItem("Teams", "/robocupSoccer/simulation/socSimulTeams/");    
	//	subMenu22.addItem("Committees", "/robocupSoccer/simulation/socSimulCommittees/"); 
	//	subMenu22.addItem("Results", "/robocupSoccer/simulation/socSimulResults/"); 

		//var subMenu23 = menu2.addMenu(menu2.items[3]);
		//subMenu23.addItem("About","/robocupSoccer/smallSized/");
		//subMenu23.addItem("Qualification", "/robocupSoccer/smallSized/sslQualification/");    
		//subMenu23.addItem("Schedule", "/robocupSoccer/smallSized/sslSchedule/");    
		//subMenu23.addItem("Rules", "/robocupSoccer/smallSized/sslRules/");    
		//subMenu23.addItem("Teams", "/robocupSoccer/smallSized/sslTeams/");    
		//subMenu23.addItem("Committees", "/robocupSoccer/smallSized/sslCommittees/"); 
		//subMenu23.addItem("Results", "/robocupSoccer/smallSized/sslResults/"); 

		//var subMenu24 = menu2.addMenu(menu2.items[4]);
		//subMenu24.addItem("About","/robocupSoccer/middleSized/");
		//subMenu24.addItem("Qualification", "/robocupSoccer/middleSized/mslQualification/");    
		//subMenu24.addItem("Schedule", "/robocupSoccer/middleSized/mslSchedule/");    
		//subMenu24.addItem("Rules", "/robocupSoccer/middleSized/mslRules/");    
		//subMenu24.addItem("Teams", "/robocupSoccer/middleSized/mslTeams/");    
		//subMenu24.addItem("Committees", "/robocupSoccer/middleSized/mslCommittees/");        
		//subMenu24.addItem("Results", "/robocupSoccer/middleSized/mslResults/");        

		//var subMenu25 = menu2.addMenu(menu2.items[5]);
		//subMenu25.addItem("About","/robocupSoccer/4legged/");
		//subMenu25.addItem("Qualification", "/robocupSoccer/4legged/4legQualification/");    
		//subMenu25.addItem("Schedule", "/robocupSoccer/4legged/4legSchedule/");    
		//subMenu25.addItem("Rules", "/robocupSoccer/4legged/4legRules/");    
		//subMenu25.addItem("Teams", "/robocupSoccer/4legged/4legTeams/");    
		//subMenu25.addItem("Committees", "/robocupSoccer/4legged/4legCommittees/"); 
		//subMenu25.addItem("Results", "/robocupSoccer/4legged/4legResults/"); 

		//var subMenu26 = menu2.addMenu(menu2.items[6]);
		//subMenu26.addItem("About","/robocupSoccer/humanoid/");
		//subMenu26.addItem("Qualification", "/robocupSoccer/humanoid/humQualification/");    
		//subMenu26.addItem("Schedule", "/robocupSoccer/humanoid/humSchedule/");    
		//subMenu26.addItem("Rules", "/robocupSoccer/humanoid/humRules/");    
		//subMenu26.addItem("Teams", "/robocupSoccer/humanoid/humTeams/");    
		//subMenu26.addItem("Committees", "/robocupSoccer/humanoid/humCommittees/"); 
		//subMenu26.addItem("Results", "/robocupSoccer/humanoid/humResults/"); 

		//
		// RoboCup Rescue
		//
	      var menu3 = ms.addMenu(document.getElementById("menu3"));
            menu3.addItem("Advance Web Development", "/services.html");		
            menu3.addItem("Business Application Development", "/business_application.html");	
			

		var subMenu31 = menu3.addMenu(menu3.items[0]);
            subMenu31.addItem("Website Design and Development", "/services.html");
		subMenu31.addItem("Search Engine Optimisation Services", "/seo.html");    
		subMenu31.addItem("Web Application Development", "/web_development.html");    
		subMenu31.addItem("Web Page Database Programme", "/web_page_database.html");    
		subMenu31.addItem("E-Commerce/Web & Enterprise Portal Development", "/e_commerce_portal.html");
		

		var subMenu32 = menu3.addMenu(menu3.items[1]);
        subMenu32.addItem("Secure Intranets/ Extranets", "/business_application.html");
		subMenu32.addItem("Work Flow Management", "/work_flow_managemnt.html");    
		subMenu32.addItem("Supply Chain Management", "/supply_management.html");    
		subMenu32.addItem("Content and Document management", "/content_document.html");    
		subMenu32.addItem("Custom Software Development", "/custom_software.html");
		
		
		
		// Robocup Junior
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("Grapo ERP (Enterprise resource planning)","/products.html");		
		menu4.addItem("Grapo CRM (Customer Relationship Management) ","/grapo_crm.html");		
		

		var subMenu41 = menu4.addMenu(menu4.items[0]);
		//subMenu41.addItem("Why ERP?","/GrapesWebsite/products.html");		
		subMenu41.addItem("Production and Planning Module", "/product_planning.html");    
		subMenu41.addItem("Inventory & Warehouse ", "/inventory_wherehouse.html");    
		subMenu41.addItem("HR/Payroll System ", "/hr-payroll.html");    
		subMenu41.addItem("Purchase Module ", "/purchase_module.html"); 
		subMenu41.addItem("Quality Control Management  ", "/quality_control.html");    
		subMenu41.addItem("Sales Management  ", "/sales_management.html");  
		subMenu41.addItem("Software Administration  ", "/software_administrator.html");  
		subMenu41.addItem("Third Party Outsourcing   ", "/third_party_outsourching.html");  
		
		

		/*var subMenu42 = menu4.addMenu(menu4.items[1]);
		subMenu42.addItem("Why CRM?","/robocupJunior/jrRescue/");		
		subMenu42.addItem("Qualification", "/robocupJunior/jrRescue/jrRescueQualification/");    
		subMenu42.addItem("Schedule", "/robocupJunior/jrRescue/jrRescueSchedule/");    
		subMenu42.addItem("Rules", "/robocupJunior/jrRescue/jrRescueRules/");    
		subMenu42.addItem("Teams", "/robocupJunior/jrRescue/jrRescueTeams/");    */

	
		//
		// Symposium
		//
		var menu5 = ms.addMenu(document.getElementById("menu5"));
		menu5.addItem("Technology", "/competency.html");
		menu5.addItem("Standards Compliance","/standards_compliance.html");
		
		var subMenu51 = menu5.addMenu(menu5.items[0]);
		subMenu51.addItem("Microsoft.Net", "/microsoft_dotnet.html");
		subMenu51.addItem("Java/J2EE","/java_j2ee.html");
		subMenu51.addItem("PHP/MySQL (LAMP)","/php_lamp.html");
		subMenu51.addItem("AJAX","/ajax.html");		
		
		//
		// Participants
		//
		//var menu6 = ms.addMenu(document.getElementById("menu6"));
		//menu6.addItem("About", "/participants/");
		//menu6.addItem("News","/participants/participantsNews/");
		//menu6.addItem("Schedule","/participants/participantsSchedule/");
		//menu6.addItem("Registration","/participants/participantsRegistration/");
		//menu6.addItem("Travel Arrangements","/participants/travelArrangements/");    
		//menu6.addItem("Visa and Cargo Shipping","/participants/visaAndCargo/");    
    
		//
		// NewsRoom
		//
           // var menu7 = ms.addMenu(document.getElementById("menu7"));
			//menu7.addItem("About", "/newsRoom/");
          //  menu7.addItem("Press Releases","/newsRoom/pressReleases/");
          //  menu7.addItem("Media Accreditation", "/newsRoom/mediaAccreditation/");
          //  menu7.addItem("Media Facilities","/newsRoom/mediaFacilities/");
          //  menu7.addItem("Media Events","/newsRoom/mediaEvents/");
          //  menu7.addItem("Media Clipping","/newsRoom/mediaClipping/");

		//==================================================================================================
		// 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();
	}
