// 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("home"));
			menu1.addItem("Beedie Group", "http://www.beediegroup.ca"); 

		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("company"));
			menu2.addItem("About the Company","../files/about.php");
			menu2.addItem("Beedie Developments Corp.","../files/prop-dev.php");
			menu2.addItem("Construction","../files/construction.php");
			menu2.addItem("Property Management","../files/property-management.php");

			
		var submenu2 = menu2.addMenu(menu2.items[0]);

			submenu2.addItem("About the Company", "../files/about.php");
			submenu2.addItem("History", "../files/history.php");
			submenu2.addItem("Keith & Betty Beedie Foundation", "../files/keith+betty.php");
			submenu2.addItem("Corporate Brochure", "../files/corp.php");
			submenu2.addItem("Staff Bios", "../files/staff.php");
			

		var submenu2 = menu2.addMenu(menu2.items[2]);

			submenu2.addItem("Construction Services", "../files/construction.php");
			submenu2.addItem("8 Step Building Process", "../files/8steps.php");
			submenu2.addItem("BGreen Solutions", "../files/BGreen-solutions.php");
			submenu2.addItem("Plan Source Room", "http://www.infinitesource.ca/sp/sites/beedie.htm");

			

		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("projects"));

			menu3.addItem("Industrial","../projects/property/search?&name=&propertyTypeIds=1&availableDateId=-1&propertySizeId=-1");
			menu3.addItem("Commercial","../projects/property/search?&name=&propertyTypeIds=3&availableDateId=-1&propertySizeId=-1");
			menu3.addItem("Residential","../projects/property/search?&name=&propertyTypeIds=2&availableDateId=-1&propertySizeId=-1");
			//menu3.addItem("Current Development","");
			//menu3.addItem("BGreen Solutions","../files/BGreen-solutions.php");
			


		//==================================================================================================

		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("departments"));
			menu4.addItem("Construction","../files/construction.php");
			menu4.addItem("Developments","");
			menu4.addItem("Property Management","../files/property-management.php");

			
		var submenu4 = menu4.addMenu(menu4.items[0]);

			submenu4.addItem("Construction Services", "../files/construction.php");
			submenu4.addItem("8 Step Building Process", "../files/8steps.php");
			submenu4.addItem("BGreen Solutions", "../files/BGreen-solutions.php");
			submenu4.addItem("Plan Source Room", "http://www.infinitesource.ca/sp/sites/beedie.htm");


		var submenu4 = menu4.addMenu(menu4.items[1]);

			submenu4.addItem("Development", "../files/dep-development.php");
			submenu4.addItem("Fraser Mills", "http://www.villageatfrasermills.com/");
			submenu4.addItem("Strata Developments", "../files/dep-stratadevelopment.php");


		//==================================================================================================

		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("leasing"));
			menu5.addItem("Available Properties","../projects/property/search?&name=&salesTypeIds=2&availableDateId=-1&propertySizeId=-1");

			
		//==================================================================================================

		//==================================================================================================
		//var menu6 = ms.addMenu(document.getElementById("news"));
			//menu6.addItem("News","../files/news.php");


			
		//==================================================================================================

		//==================================================================================================
		var menu7 = ms.addMenu(document.getElementById("contact"));
			menu7.addItem("Contact Info","../files/contact.php");


		//==================================================================================================

		//==================================================================================================
		var menu8 = ms.addMenu(document.getElementById("careers"));
			menu8.addItem("Employment &amp; Careers","../files/careers.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();
	}
