// JavaScript Document
// 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("about"));
		menu1.addItem("What is Architecture", "../../../architecture_architects/what_is_architecture/index_e.htm");
		menu1.addItem("What is the Practice of Architecture", "../../../architecture_architects/what_is_practice/index_e.htm");
		menu1.addItem("What is an Architect", "../../../architecture_architects/what_is_an_architect/index_e.htm");
		menu1.addItem("Becoming an Architect", "../../../architecture_architects/becoming_an_architect/index_e.htm");
		menu1.addItem("Choosing an Architect", "../../../architecture_architects/choosing_an_architect/index_e.htm");
		menu1.addItem("Architectural Competitions", "../../../architecture_architects/architectural_competitions/index_e.htm");
		menu1.addItem("Architecture in Schools", "../../../architecture_architects/architecture_in_schools/index_e.htm");
			menu1.addItem("Green Architecture", "../../../architecture_architects/green_architecture/2030_index_e.htm");
			menu1.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2030 Challenge", "../../../architecture_architects/green_architecture/2030_about_e.htm");
			menu1.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sustainability and the Built Environment", "../../../architecture_architects/green_architecture/sustainability_e.htm");
			//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("raic"));
		menu2.addItem("About Us", "../../../raic/about_us/mission_e.htm");
		menu2.addItem("College of Fellows", "../../../raic/college_of_fellows/index_e.htm");
		menu2.addItem("RAIC Foundation", "../../../raic/raic_foundation/index_e.htm");
		menu2.addItem("Advocacy", "../../../raic/advocacy/index_e.htm");
			menu2.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Federal Procurement", "../../../raic/advocacy/federal_procurement_e.htm");
			menu2.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Model Architecture Policy", "../../../raic/advocacy/model_e.htm");
			menu2.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Every Building Has an Architect", "../../../raic/advocacy/everybuilding_e.htm");
			menu2.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Architecture Matters", "../../raic/advocacy/architecture-matters_e.htm");
		menu2.addItem("Professional Interest Areas", "../../../raic/professional_interest/index_e.htm");

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

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

var menu3 = ms.addMenu(document.getElementById("international"));
		menu3.addItem("Working in Architecture in Canada", "http://www.architectstocanada.raic.org/", "_blank");
		menu3.addItem("RAIC International Mandate", "../../../international/international_mandate/index_e.htm");
		menu3.addItem("APEC Register", "../../../international/apec/index_e.htm");
		menu3.addItem("Opportunities", "../../../international/opportunities/index_e.htm");
		menu3.addItem("Federal Government Services", "../../../international/federal_government_services/index_e.htm");
		//==================================================================================================
	
		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("membership"));
		menu4.addItem("Member Benefits", "../../../membership/benefits/index_e.htm");
		menu4.addItem("Becoming a Member", "../../../membership/becoming_a_member/index_e.htm");
		menu4.addItem("Membership Forms", "../../../membership/becoming_a_member/membershipforms_e.htm");
		menu4.addItem("RAIC Members Directory", "http://members.raic.org/directory.php?language=1", "_blank");
		menu4.addItem("FAQ", "../../../membership/faqs/index_e.htm");
		//==================================================================================================

		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("practice"));
		menu5.addItem("Canadian Handbook of Practice (CHOP)", "../../../practice/chop/index_e.htm");
		menu5.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CHOP Order Centre", "https://www.raic.org/chop/");
		menu5.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sample Forms", "../../../practice/chop/forms_e.htm");	
		
		menu5.addItem("Determining Appropriate Fees for the Services of an Architect", "http://members.raic.org/practice_documents.php?product_category=2", "_blank");
		menu5.addItem("Contract Documents", "../../../practice/contract_documents/index_e.htm");
		menu5.addItem("Building Information Modelling (BIM)", "../../../practice/bim/index_e.htm");
		menu5.addItem("Practice Builders", "../../../practice/practice_builders/index_e.htm");
		menu5.addItem("Specifications", "../../../practice/specifications/index_e.htm");
		menu5.addItem("Presentations", "../../../practice/presentations/index_e.htm");
		//==================================================================================================

		var menu6 = ms.addMenu(document.getElementById("resources"));
		menu6.addItem("Resumes & Jobs", "http://www.archistaff.ca.htm", "_blank" );
		menu6.addItem("Media Releases", "../../../resources_archives/media_releases/index_e.htm");
		menu6.addItem("Newsletters &amp; Bulletins", "../../../resources_archives/newsletters_bulletins/index_e.htm");
		menu6.addItem("Annual Reports", "../../../resources_archives/reports/index_e.htm");
		menu6.addItem("<i>Architecture</i> Magazine", "../../../resources_archives/magazine/index_e.htm");
		menu6.addItem("Past RAIC Courses", "../../../resources_archives/past_courses/index_e.htm");
		menu6.addItem("Research", "../../../resources_archives/research/index_e.htm");
		menu6.addItem("Affiliations and Links", "../../../resources_archives/links/index_e.htm");
		menu6.addItem("Calendar of Events", "../../../resources_archives/events/index_e.htm");
		 
		//==================================================================================================
				
		var menu7 = ms.addMenu(document.getElementById("con_edu"));
		menu7.addItem("Register for RAIC Courses", "http://members.raic.org/courses.php?language=1", "_blank");
		menu7.addItem("Report Credits / Review Transcripts", "http://www.architranscripts.ca/default.htm", "_blank");
		menu7.addItem("Current Core Courses", "../../../continuing_education/current_core/index_e.htm");
		menu7.addItem("Self-Directed Learning", "../../../continuing_education/self_directed/index_e.htm");
		menu7.addItem("Distance Learning", "../../../continuing_education/distance_learning/index_e.htm");
		menu7.addItem("Attendance Reports", 
"../../../continuing_education/attendance_reports/index_e.htm");
		menu7.addItem("Course Presentations", 
"../../../continuing_education/presentations/index_e.htm");
		menu7.addItem("Quality Assurance for Continuing Education Activities", "../../continuing_education/quality-assurance_e.pdf", "_blank");
		
		var menu8 = ms.addMenu(document.getElementById("interns"));
		menu8.addItem("CHOP Order Centre", "https://www.raic.org/chop/");
		menu8.addItem("RAIC Syllabus", "../../../interns_students/syllabus/index_e.htm");
		menu8.addItem("Internship in Architecture Program", "../../../interns_students/internship/index_e.htm");
		menu8.addItem("Canadian Experience Record Book (CERB)", "../../../interns_students/canadian_experience/CERBFINALENG.pdf", "_blank");
		menu8.addItem("Intern Examinations", "../../../interns_students/intern_examinations/index_e.htm");
		menu8.addItem("Resumes & Jobs", "http://www.archistaff.ca", "_blank");
		menu8.addItem("Student Medal", "../../../honours_and_awards/honours_students_medal/index_e.htm");
		menu8.addItem("Student Honour Roll", "../../../honours_and_awards/honours_honour_roll/index_e.htm");
		
		var menu9 = ms.addMenu(document.getElementById("honours"));
		menu9.addItem("Honours", "../../../honours_and_awards/honours_introduction/index_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;College of Fellows", "../../../raic/college_of_fellows/index_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RAIC Gold Medal", "../../../honours_and_awards/honours_gold_medal/index_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;President's Medal", "../../../honours_and_awards/honours_president_medal/index_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Student Medal", "../../../honours_and_awards/honours_students_medal/index_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Student Honour Roll", "../../../honours_and_awards/honours_honour_roll/index_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Certificate of Appreciation", "../../../honours_and_awards/honours_certificate/index_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Order of Canada", "../../../honours_and_awards/honours_order_of_canada/index_e.htm");
		menu9.addItem("Awards", "../../../honours_and_awards/awards_introduction/index_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RAIC Awards of Excellence", "../../../honours_and_awards/awards_raic_awards/index_e.htm");

			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RAIC Architectural Firm Award", "../../../honours_and_awards/awards_firm/index_e.htm");

			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Governor General's Medals", "../../../honours_and_awards/awards_gg_medals/index_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Urban Design Awards", "../../../honours_and_awards/awards_urban/index_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prix du XXe siècle", "../../../honours_and_awards/awards_xxe/index_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RAIC Foundation Awards", "../../../raic/raic_foundation/awards-foundation_e.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;President’s Award in Architectural Journalism", "../../../honours_and_awards/awards_journalism/index_e.htm");
		
		var menu10 = ms.addMenu(document.getElementById("chapters"));
		menu10.addItem("Alberta", "http://www.raic.org/alberta", "_blank");
		menu10.addItem("British Columbia", "http://www.raic.org/bc", "_blank");
		
		//==================================================================================================

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