	// 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
		//==================================================================================================
		
		var menu1 = ms.addMenu(document.getElementById("aboutus"));
		menu1.addItem("About NIMR", "aboutus.php?page=an"); 
		menu1.addItem("Essential Units", "aboutus.php?page=eu");
		menu1.addItem("NIMR Gallery", "aboutus.php?page=ng");

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("directors"));
		menu2.addItem("Director of Research [Microbiology]", "directors.php?page=drm");
		menu2.addItem("Deputy Director of Research [Microbiology]", "directors.php?page=ddrm");
		menu2.addItem("Director of Research [Biochemistry]", "directors.php?page=drb");
		menu2.addItem("Director of Research [Public Health]", "directors.php?page=drp");
		menu2.addItem("Deputy Director of Research [Public Health]", "directors.php?page=ddrp");
		menu2.addItem("Deputy Director of Research [Clinical Science]", "directors.php?page=ddrc");
		menu2.addItem("Director of Admin", "directors.php?page=dra");
		menu2.addItem("Director of Finance & Accounts", "directors.php?page=drf");
		
		
		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("library"));
		menu3.addItem("Publications", "publications.php");
		menu3.addItem("Journals", "library.php?page=j");
		menu3.addItem("Newsletter", "library.php?page=n");
		menu3.addItem("Annual Reports", "library.php?page=ar");
		menu3.addItem("New Acquisitions", "library.php?page=na");
		menu3.addItem("Archives", "Archives.php");

		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("labservice"));
		menu4.addItem("NIMR Human Virology Lab", "labservice.php?page=hvl");
		menu4.addItem("NIMR Clinical Diagnostic Lab", "labservice.php?page=cdl");

		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("nimrirb"));
		menu5.addItem("About NIMR IRB", "nimrirb.php?page=ani");
		menu5.addItem("NIMR IRB Guidelines", "nimrirb.php?page=nig");

		//==================================================================================================
		var menu6 = ms.addMenu(document.getElementById("publications"));
		menu6.addItem("Newsletter", "library.php?page=n");
		menu6.addItem("Annual Reports", "library.php?page=ar");
		menu6.addItem("Research Articles", "publications.php?page=rp");
		
		//==================================================================================================
		var menu7 = ms.addMenu(document.getElementById("projects"));
		menu7.addItem("Institute Projects", "projects.php");

		//==================================================================================================
		var menu8 = ms.addMenu(document.getElementById("researchlab"));
		menu8.addItem("Research Laboratory", "researchlab.php");
		
		//==================================================================================================
		var menu9 = ms.addMenu(document.getElementById("contact"));
		menu9.addItem("Our Contact", "contact.php?page=oc");
		menu9.addItem("Support Form", "contact.php?page=sf");
		
		//==================================================================================================
		var menu10 = ms.addMenu(document.getElementById("researchdiv"));
		menu10.addItem("Microbiology", "researchdiv.php?page=m");
		menu10.addItem("Biochemistry", "researchdiv.php?page=b");
		menu10.addItem("Public Health", "researchdiv.php?page=ph");
		menu10.addItem("Clinical Science", "researchdiv.php?page=cs");
		menu10.addItem("Molecular Biology & Biotechnology", "researchdiv.php?page=mb");
		
		//==================================================================================================
		var menu11 = ms.addMenu(document.getElementById("omstaff"));
		menu11.addItem("Deputy Director, Administration", "otherms.php?page=dda");		
		menu11.addItem("Institute Librarian", "otherms.php?page=il");
		menu11.addItem("Deputy Director Laboratory Service", "otherms.php?page=ddl");
		menu11.addItem("Deputy Director/HOD Internal Audit", "otherms.php?page=ddia");
		menu11.addItem("Chief Engr/HOD Maintenance", "otherms.php?page=ceml");		
		menu11.addItem("Chief Medical Laboratory Scientist / HOU Central Laboratory & Environmental Sanitation Unit", "otherms.php?page=cmls");
		//==================================================================================================
		// 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();
	}
