	// 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.
	
	function isSafariAgain(){
		res = navigator.appVersion;
		ret = (res.indexOf("Safari") > 1) ;//? true : false;
		return ret;
	}
	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, -7, (isSafariAgain()) ? -2 : 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("plan"));
		menu1.addItem("Mengurus Wang Anda","/01_plan_your_finances/0101_managing_your_money/overview.php");
		menu1.addItem("Melabur Wang Anda","/01_plan_your_finances/0102_investing_your_money/overview.php");
		menu1.addItem("Mengurus Hutang Anda"," /01_plan_your_finances/0103_managing_your_debt/managing_your_debt.php");
		menu1.addItem("Mengurus Kekayaan bagi IKS"," /01_plan_your_finances/0104_wealth_management_sme/wealth_mgmt_sme.php");
		menu1.addItem("Pelaburan Berstruktur","/01_plan_your_finances/0105_structured_investments/structured_investments.php");
		
			// Managing Your Money submenu	
			var submenu0 = menu1.addMenu(menu1.items[0]);
			submenu0.addItem("Langkah-langkah Pengurusan Kewangan","/01_plan_your_finances/0101_managing_your_money/stepbystep.php");
			submenu0.addItem("Alat Bantuan Perancangan Kewangan","/01_plan_your_finances/0101_managing_your_money/financial_planning_tools.php");
			
			// Investing Your Money submenu	
			var submenu0 = menu1.addMenu(menu1.items[1]);
			submenu0.addItem("Rancang Pelaburan Anda"," /01_plan_your_finances/0102_investing_your_money/planning_investment.php");
			submenu0.addItem("Pilih Pelaburan Yang Betul","/01_plan_your_finances/0102_investing_your_money/determining_investment.php");
			submenu0.addItem("Strategi Peringkat Hidup"," /01_plan_your_finances/0102_investing_your_money/lifecycle_strategies.php");
			submenu0.addItem("Lindungi Pelaburan Anda","/01_plan_your_finances/0102_investing_your_money/protecting_investment.php");
			
		
		//--------------------------------------------------------------------------//
		
		var menu2 = ms.addMenu(document.getElementById("know"));
		menu2.addItem("Memilih Akaun Yang Betul", "/02_know_your_products/0201_choosing_right_account/overview.php"); 
		menu2.addItem("Memohon Pinjaman", "/02_know_your_products/0202_applying_for_loan/overview.php");
		menu2.addItem("Mengetahui Kad Anda", "/02_know_your_products/0203_knowing_your_cards/overview.php");
		menu2.addItem("Memenuhi Keperluan Perniagaan Anda", "/02_know_your_products/0204_addressing_business_needs/overview.php");
		menu2.addItem("Produk E-Saluran", "/02_know_your_products/0205_using_echannels/overview.php");
		//menu2.addItem("Things To Note", "#");
			
			// Chosing The Right Account Submenu	
			var submenu0 = menu2.addMenu(menu2.items[0]);
			submenu0.addItem("Perkhidmatan Perbankan Asas","/02_know_your_products/0201_choosing_right_account/basic_banking_services.php");
			submenu0.addItem("Akaun Simpanan","/02_know_your_products/0201_choosing_right_account/savings_account.php");
			submenu0.addItem("Akaun Semasa","/02_know_your_products/0201_choosing_right_account/current_account.php");
			
			// Applying For A Loan Submenu	
			var submenu1 = menu2.addMenu(menu2.items[1]);
			submenu1.addItem("Sewa Beli","/02_know_your_products/0202_applying_for_loan/hire_purchase.php");
			submenu1.addItem("Perumahan","/02_know_your_products/0202_applying_for_loan/housing_loans.php");
			
			// Card Transactions Submenu	
			var submenu2 = menu2.addMenu(menu2.items[2]);
			submenu2.addItem("Kad Kredit","/02_know_your_products/0203_knowing_your_cards/credit_cards.php");
			submenu2.addItem("Kad Caj","/02_know_your_products/0203_knowing_your_cards/charge_cards.php");
			
			// SME Loans Submenu	
			var submenu3 = menu2.addMenu(menu2.items[3]);
			submenu3.addItem("Perolehan Aset","/02_know_your_products/0204_addressing_business_needs/asset_acquisition.php");
			submenu3.addItem("Modal Kerja","/02_know_your_products/0204_addressing_business_needs/working_capital.php");
			submenu3.addItem("Pembiayaan Dagangan","/02_know_your_products/0204_addressing_business_needs/trade_financing.php");
			submenu3.addItem("Perkhidmatan Dagangan","/02_know_your_products/0204_addressing_business_needs/trade_services.php");
			submenu3.addItem("Jaminan","/02_know_your_products/0204_addressing_business_needs/guarantees.php");
			
			// E-Payments Submenu	
			var submenu4 = menu2.addMenu(menu2.items[4]);
			submenu4.addItem("Perbankan Internet","/02_know_your_products/0205_using_echannels/internet_banking.php");

			
			// Things To Note Submenu	
			//var submenu5 = menu2.addMenu(menu2.items[5]);
			//submenu5.addItem("Your Cheques","/02_know_your_products/0206_things_to_note/your_cheques.php");
			//submenu5.addItem("Your Loans","#");
			//submenu5.addItem("Your Cards","#");
	
		
		//--------------------------------------------------------------------------//
		
		var menu3 = ms.addMenu(document.getElementById("discover"));
		menu3.addItem("Konsep Syariah","/03_discover_islamic_banking/0301_syariah_concepts/syariah_concepts.php");
		menu3.addItem("Permohonan Pembiayaan","/03_discover_islamic_banking/0302_applying_for_financing/overview.php");
			
			// Applying For Financing Submenu
			var submenu1 = menu3.addMenu(menu3.items[1]);
			submenu1.addItem("Pembiayaan Perumahan-i","/03_discover_islamic_banking/0302_applying_for_financing/house_financing.php");
			
			
		//--------------------------------------------------------------------------//
		
		var menu4 = ms.addMenu(document.getElementById("seek"));
		menu4.addItem("Alat Bantuan","/04_help_and_advice/0401_useful_tools/overview.php");
		menu4.addItem("Panduan Berguna","/04_help_and_advice/0402_helpful_guides/overview.php");
		menu4.addItem("Pengumuman","/04_help_and_advice/0403_announcements/announcements.php");
		menu4.addItem("Maklumat Am","/04_help_and_advice/0404_general_information/general_information.php");
		menu4.addItem("Undian","/04_help_and_advice/0405_polls/polls.php");
		menu4.addItem("Kuiz","/04_help_and_advice/quizzes/main_quiz_index.php");
		menu4.addItem("Glosari","/04_help_and_advice/0406_glossary/glossary.php");
		menu4.addItem("Soalan Lazim","/04_help_and_advice/0407_faqs/overview.php");
		menu4.addItem("Hubungi Kami","/04_help_and_advice/0408_contact_us/feedback_form.php");
		
			// Useful Tools Submenu	
			var submenu0 = menu4.addMenu(menu4.items[0]);
			submenu0.addItem("Jadual Perbandingan","/04_help_and_advice/0401_useful_tools/comparative_tables/comparative_table.php");
			submenu0.addItem("Kalkulator Kewangan","/04_help_and_advice/0401_useful_tools/loan_calculator_landing.php");
			submenu0.addItem("Kalkulator Belanjawan","/04_help_and_advice/0401_useful_tools/budget_calculator.php");
			submenu0.addItem("Kalkulator Pinjaman Perumahan","/04_help_and_advice/0401_useful_tools/home_loan_cal.php");
			submenu0.addItem("Senarai Semak","/04_help_and_advice/0401_useful_tools/checklists.php");
			
			// Helpful Guides Submenu	
			var submenu1 = menu4.addMenu(menu4.items[1]);
			submenu1.addItem("Membuat Aduan","/04_help_and_advice/0402_helpful_guides/making_a_complaint.php");
			submenu1.addItem("Pengiriman Wang","/04_help_and_advice/0402_helpful_guides/remittance_of_money.php");
			submenu1.addItem("Penipuan Kewangan","/04_help_and_advice/0402_helpful_guides/financial_scams.php");
			submenu1.addItem("Menjadi Penjamin","/04_help_and_advice/0402_helpful_guides/becoming_a_guarantor.php");
			submenu1.addItem("Menyediakan Pelan Perniagaan","/04_help_and_advice/0402_helpful_guides/preparing_business_plan.php");
			submenu1.addItem("Tip","/04_help_and_advice/0402_helpful_guides/tips.php");
			
			// General Information Submenu	
			var submenu3 = menu4.addMenu(menu4.items[3]);
			submenu3.addItem("Bank Negara Malaysia","/04_help_and_advice/0404_general_information/bank_negara_malaysia.php");
			submenu3.addItem("Biro Kredit","/04_help_and_advice/0404_general_information/credit_bureau.php");
			submenu3.addItem("Matawang Malaysia","/04_help_and_advice/0404_general_information/malaysian_currency.php");
			submenu3.addItem("Credit Guarantee Corporation","/04_help_and_advice/0404_general_information/cgc.php");
			submenu3.addItem("Pautan Berguna","/04_help_and_advice/0404_general_information/related_links.php");
		
					
		//--------------------------------------------------------------------------//
		
		var menu5 = ms.addMenu(document.getElementById("learning"));
		menu5.addItem("Ringkasan Program","/05_learning_programmes/programme_overview.php");
		menu5.addItem("Ingin Turut Serta? ","/05_learning_programmes/apply_now_index.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();
	}