// 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("Qu'est-ce que l'architecture", "../../../architecture_architects/what_is_architecture/index_f.htm");
		menu1.addItem("Qu'est-ce que la pratique d'architecture", "../../../architecture_architects/what_is_practice/index_f.htm");
		menu1.addItem("Qu'est-ce qu'un architecte", "../../../architecture_architects/what_is_an_architect/index_f.htm");
		menu1.addItem("Devenir architecte", "../../../architecture_architects/becoming_an_architect/index_f.htm");
		menu1.addItem("Sélection d'un architecte", "../../../architecture_architects/choosing_an_architect/index_f.htm");
		menu1.addItem("Concours d’architecture", "../../../architecture_architects/architectural_competitions/index_f.htm");
		menu1.addItem("L'architecture dans les écoles", "../../../architecture_architects/architecture_in_schools/index_f.htm");
		menu1.addItem("Architecture verte", "../../../architecture_architects/green_architecture/2030_about_f.htm");
			menu1.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Défi 2030", "../../../architecture_architects/green_architecture/2030_index_f.htm");
			menu1.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Architecture durable", "../../../architecture_architects/green_architecture/sustainability_f.htm");
		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("raic"));
		menu2.addItem("Profil", "../../../raic/about_us/mission_f.htm");
		menu2.addItem("Collège des fellows", "../../../raic/college_of_fellows/index_f.htm");
		menu2.addItem("Fondation de l'IRAC", "../../../raic/raic_foundation/index_f.htm");
		menu2.addItem("Promotion et défense des intérêts", "../../../raic/advocacy/index_f.htm");
			menu2.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Approvisionnements fédéraux", "../../../raic/advocacy/federal_procurement_f.htm");
			menu2.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Politique modèle de l’architecture", "../../../raic/advocacy/model_f.htm");
			menu2.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Chaque bâtiment a son architecte", "../../../raic/advocacy/everybuilding_f.htm");
			menu2.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L'architecture, c'est important", "../../raic/advocacy/architecture-matters_f.htm");
		menu2.addItem("Festival d'architecture", "http://festival.raic.org/index_f.htm", "_blank");
		menu2.addItem("Intérêts professionnels", "../../../raic/professional_interest/index_f.htm");

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

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("international"));
		menu3.addItem("Travailler dans le domaine de l'architecture au Canada", "http://www.architectesaucanada.raic.org/", "_blank");
		menu3.addItem("Mandat international", "../../../international/international_mandate/index_f.htm");
		menu3.addItem("Inscription à l'APEC", "../../../international/apec/index_f.htm");
		menu3.addItem("Opportunités d'affaires à l'étranger", "../../../international/opportunities/index_f.htm");
		menu3.addItem("Services du gouvernement fédéral", "../../../international/federal_government_services/index_f.htm");
		//==================================================================================================
	
		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("membership"));
		menu4.addItem("Avantages d'être membre", "../../../membership/benefits/index_f.htm");
		menu4.addItem("Devenir membre", "../../../membership/becoming_a_member/index_f.htm");
		menu4.addItem("Formulaires d'adhésion", "../../../membership/becoming_a_member/membershipforms_f.htm");
		menu4.addItem("Répertoire des membres", "https://portal.raic.org/fr/civicrm/profile?reset=1&force=0&gid=10&lcMessages=fr_CA", "_blank");
		menu4.addItem("FAQ", "../../../membership/faqs/index_f.htm");
		//==================================================================================================

		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("practice"));
		menu5.addItem("Manuel canadien de pratique de l’architecture (MCPA)", "../../../practice/chop/index_f.htm");		
	menu5.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Centre de commande du MCPA", "https://www.raic.org/chop/registration/index.cfm?lang=f");
			menu5.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exemples de formulaires", "../../../practice/chop/forms_f.htm");
		
		menu5.addItem("Déterminer les honoraires appropriés pour les services d’un architecte", "https://portal.raic.org/fr/node/67874", "_blank");
		menu5.addItem("Documents contractuels", "../../../practice/contract_documents/index_f.htm");
		menu5.addItem("Modélisation des données du bâtiment (BIM)", "../../../practice/bim/index_f.htm");
		menu5.addItem("Bâtisseurs d'entreprises", "../../../practice/practice_builders/index_f.htm");
		menu5.addItem("Devis", "../../../practice/specifications/index_f.htm");
		menu5.addItem("Présentations", "../../../practice/presentations/index_f.htm");
		//==================================================================================================

		var menu6 = ms.addMenu(document.getElementById("resources"));
		menu6.addItem("Communiqués", "../../../resources_archives/media_releases/index_f.htm");
		menu6.addItem("Bulletins d'information", "../../../resources_archives/newsletters_bulletins/index_f.htm");
		menu6.addItem("Rapports annuels", "../../../resources_archives/reports/index_f.htm");
		menu6.addItem("Magazine <i>Architecture</i> ", "../../../resources_archives/magazine/index_f.htm");
		menu6.addItem("Cours antérieurs", "../../../resources_archives/past_courses/index_f.htm");
		menu6.addItem("Recherche", "../../../resources_archives/research/index_f.htm");
		menu6.addItem("Affiliations et liens", "../../../resources_archives/links/index_f.htm");
		menu6.addItem("Calendrier des activités", "../../../resources_archives/events/index_f.htm");
		//==================================================================================================
				
		var menu7 = ms.addMenu(document.getElementById("con_edu"));
		menu7.addItem("Inscription", "http://members.raic.org/courses.php?language=2", "_blank");
		menu7.addItem("Inscription de crédits/Consultation des relevés", "https://www.raic.org/transcripts/default.htm", "_blank");
		menu7.addItem("Cours actuels du volet de base", "../../../continuing_education/current_core/index_f.htm");
		menu7.addItem("Cours d’apprentissage autonome", "../../../continuing_education/self_directed/index_f.htm");
		menu7.addItem("Apprentissage à distance", "../../../continuing_education/distance_learning/index_f.htm");
	<!--	menu7.addItem("Rapports sur la participation",  "../../../continuing_education/attendance_reports/index_f.htm"); -->
		menu7.addItem("Présentations de cours", 
"../../../continuing_education/presentations/index_f.htm");
		menu7.addItem("Normes nationales", "../../continuing_education/quality-assurance_f.pdf", "_blank");
		
		var menu8 = ms.addMenu(document.getElementById("interns"));
		menu8.addItem("Centre de commande du MCPA", "https://www.raic.org/chop/registration/index.cfm?lang=f");
		menu8.addItem("Syllabus de l'IRAC", "../../../interns_students/syllabus/index_f.htm");
		menu8.addItem("Programme de Stage en Architecture", "../../../interns_students/internship/index_f.htm");
		menu8.addItem("Livret de stage canadien (LSC)", "../../../interns_students/canadian_experience/CERBFINALENG.pdf", "_blank");
		menu8.addItem("Examens pour stagiaires", "../../../interns_students/intern_examinations/index_f.htm");
		menu8.addItem("Médaille étudiante", "../../../honours_and_awards/honours_students_medal/index_f.htm");
		menu8.addItem("Tableau d'honneur", "../../../honours_and_awards/honours_honour_roll/index_f.htm");
		
		var menu9 = ms.addMenu(document.getElementById("honours"));
		menu9.addItem("Distinctions", "../../../honours_and_awards/honours_introduction/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collège des fellows", "../../../raic/college_of_fellows/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Médaille d'or", "../../../honours_and_awards/honours_gold_medal/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Médaille du président", "../../../honours_and_awards/honours_president_medal/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Médaille étudiante", "../../../honours_and_awards/honours_students_medal/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tableau d'honneur", "../../../honours_and_awards/honours_honour_roll/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Certificat d'appréciation", "../../../honours_and_awards/honours_certificate/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L'Ordre du Canada", "../../../honours_and_awards/honours_order_of_canada/index_f.htm");
		menu9.addItem("Prix", "../../../ honours_and_awards/awards_introduction/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prix d'excellence", "../../../honours_and_awards/awards_raic_awards/index_f.htm");

			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prix du cabinet d'architectes de l'année", "../../../honours_and_awards/awards_firm/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Médailles du gouverneur général", "../../../honours_and_awards/awards_gg_medals/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prix du jeune architecte", "../../../honours_and_awards/awards_young/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prix de design urbain", "../../../honours_and_awards/awards_urban/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prix du XXe siècle", "../../../honours_and_awards/awards_xxe/index_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prix de la Fondation de l'IRAC", "../../../raic/raic_foundation/awards-foundation_f.htm");
			menu9.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prix de journalisme de la présidence", "../../../honours_and_awards/awards_journalism/index_f.htm");
		
		var menu10 = ms.addMenu(document.getElementById("chapters"));
		menu10.addItem("Alberta", "http://www.raic.org/alberta", "_blank");
		menu10.addItem("Colombie-Britannique", "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();
	}
	
