	// 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 (mtDropDown.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 mtDropDownSet(mtDropDown.direction.down, 0, 0, mtDropDown.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================

		//
		// About Robocup2004
		//

		var menu0 = ms.addMenu(document.getElementById("menu0"));
		menu0.addItem("<font size=1>Research Paper by Time</font>", jspath+"Research/researchpaper_main.asp");
		menu0.addItem("<font size=1>Research Paper by Type</font>",jspath+"Research/researchpaper_main.asp?viewsrh=StockHighlightbytype");
		menu0.addItem("<font size=1>Top Charts</font>",jspath+"Research/researchpaper_main.asp?viewsrh=TopCharts");
		menu0.addItem("<font size=1>Market Outlook</font>",jspath+"Research/researchpaper_main.asp?viewsrh=MarketOutlook");
		menu0.addItem("<font size=1>Market Statistic</font>",jspath+"Research/researchpaper_main.asp?viewsrh=MarketStat");
		menu0.addItem("<font size=1>Research Talk</font>",jspath+"Research/researchpaper_main.asp?viewsrh=ResearchTalk");
		menu0.addItem("<font size=1>Futures Daily Strategy</font>",jspath+"Research/researchpaper_main.asp?viewsrh=Futures");

		var menu1 = ms.addMenu(document.getElementById("menu1"));
		menu1.addItem("<font size=1>Investor Education</font>",jspath+"Howto/Howto_Commission.asp");
		menu1.addItem("<font size=1>General Question</font>",jspath+"Howto/Howto_FAQs.asp");
		menu1.addItem("<font size=1>Mobile Trading</font>",jspath+"Howto/Howto_MobileTrading.asp");
		menu1.addItem("<font size=1>PDA Trading</font>",jspath+"Howto/Howto_PDATrading.asp");
		menu1.addItem("<font size=1>STREAMING</font>",jspath+"Howto/Howto_STREAMING.asp");
		menu1.addItem("<font size=1>Trading Demo</font>",jshomepath+"demo/tradingdemo.htm");
		menu1.addItem("<font size=1>Manual OneClick</font>",jshomepath+"download/pdf/ManualOneClickV4.42.pdf");
		menu1.addItem("<font size=1>Liberty-i Help Page</font>",jshomepath+"Howto/Howto_Liberty.asp");

		var subMenu10 = menu1.addMenu(menu1.items[0]);
		subMenu10.addItem("<font size=1>Commission</font>",jspath+"Howto/Howto_Commission.asp");
		subMenu10.addItem("<font size=1>Financial Dictionary</font>",jspath+"Howto/Howto_FinDictionary.asp");    
		subMenu10.addItem("<font size=1>NVDR</font>",jspath+"Howto/Howto_NVDR.asp");
		subMenu10.addItem("<font size=1>Open An Account</font>",jspath+"Howto/Howto_OpenAccount.asp");
		subMenu10.addItem("<font size=1>Price Regulations</font>",jspath+"Howto/Howto_PriceReg.asp");

		var subMenu11 = menu1.addMenu(menu1.items[1]);
		subMenu11.addItem("<font size=1>FAQ</font>",jspath+"Howto/Howto_FAQs.asp");
		subMenu11.addItem("<font size=1>Technical Question</font>",jspath+"Howto/Howto_Technical.asp");
		subMenu11.addItem("<font size=1>Trading Question</font>",jspath+"Howto/Howto_Trading.asp");    
		subMenu11.addItem("<font size=1>How to E-Payment?</font>",jspath+"Howto/Howto_ePayment.asp");    
		
		var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("<font size=1>Equity Trading</font>",jspath+"Equity/Equity_main.asp");
		menu2.addItem("<font size=1>Credit Balance</font>",jspath+"CB/CreditBalance_main.asp");
		menu2.addItem("<font size=1>Futures</font>",jspath+"Futures/Futures_main.asp");
		menu2.addItem("<font size=1>Securities Borrowing  and Lending (SBL)</font>",jspath+"SBL/SBL_main.asp");
		menu2.addItem("<font size=1>Equity Derivatives</font>",jspath+"ED/ED_main.asp");
		menu2.addItem("<font size=1>Fixed Income</font>",jspath+"Fi/FixedIncome_main.asp");
		menu2.addItem("<font size=1>Investment Banking</font>",jspath+"IB/IB_main.asp");
		menu2.addItem("<font size=1>ETF </font>",jspath+"ETF/TDEX_main.asp");
		menu2.addItem("<font size=1>Derivative Warrants (DW)</font>",jspath+"ED/ED_DW.asp");
		
		var subMenu20 = menu2.addMenu(menu2.items[1]);
        subMenu20.addItem("<font size=1>Credit Balance</font>",jspath+"CB/CreditBalance_main.asp");
		subMenu20.addItem("<font size=1>Interest Rate</font>",jspath+"CB/CreditBalance_InterestRate.asp");    
		subMenu20.addItem("<font size=1>Marginable Securities</font>",jspath+"CB/CreditBalance_Marginable.asp");    

		var subMenu21 = menu2.addMenu(menu2.items[2]);
        subMenu21.addItem("<font size=1>Futures</font>",jspath+"Futures/Futures_main.asp");
		subMenu21.addItem("<font size=1>Futures Talk - Daily Market Commentary</font>",jspath+"Research/researchpaper_main.asp?viewsrh=Futures");
		subMenu21.addItem("<font size=1>Start Your Futures</font>",jspath+"Futures/Futures_OpenAccount.asp");
		subMenu21.addItem("<font size=1>Product Information</font>",jspath+"Futures/Futures_SET50Info.asp");
		subMenu21.addItem("<font size=1>Futures Classroom</font>",jspath+"Futures/Futures_Knowledge.asp");

		var subMenu22 = menu2.addMenu(menu2.items[5]);
        subMenu22.addItem("<font size=1>Fixed Income</font>",jspath+"Fi/FixedIncome_main.asp");
        subMenu22.addItem("<font size=1>Bond Quotation</font>",jspath+"Fi/FixedIncome_BondQuote.asp");
        subMenu22.addItem("<font size=1>Bond Education</font>",jspath+"Fi/FixedIncome_BondEducation.asp");
        subMenu22.addItem("<font size=1>Bond FAQs</font>",jspath+"Fi/FixedIncome_BondQA.asp");

		var subMenu23 = menu2.addMenu(menu2.items[7]);
        subMenu23.addItem("<font size=1>ETF : Exchange Traded Fund</font>",jspath+"ETF/ETF_main.asp");
		subMenu23.addItem("<font size=1>ThaiDEX SET50 ETF</font>",jspath+"ETF/TDEX_50_ETF.asp");
        subMenu23.addItem("<font size=1>ThaiDex FTSE SET Large Cap ETF</font>",jspath+"ETF/TDEX_FTSE_ETF.asp");		
		
		var menu3 = ms.addMenu(document.getElementById("menu3"));
        menu3.addItem("<font size=1>Company Profile</font>",jspath+"Corporate/Corporate_main.asp");		
        menu3.addItem("<font size=1>Investor Relations</font>",jspath+"Corporate/Corporate_inv_Governance.asp"); 
		menu3.addItem("<font size=1>KGI Activities</font>",jspath+"Corporate/Corporate_social.asp");
		
		var subMenu30 = menu3.addMenu(menu3.items[0]);
        subMenu30.addItem("<font size=1>Overview</font>", jspath+"Corporate/Corporate_main.asp");		
		subMenu30.addItem("<font size=1>Milestone</font>",jspath+"Corporate/Corporate_milestone.asp");
		subMenu30.addItem("<font size=1>Mission and Principles</font>",jspath+"Corporate/Corporate_mission.asp");
        subMenu30.addItem("<font size=1>Major Shareholders</font>", jspath+"Corporate/Corporate_shareholder.asp");		
		subMenu30.addItem("<font size=1>Organization</font>",jspath+"Corporate/Corporate_structure.asp");
		subMenu30.addItem("<font size=1>Directors</font>",jspath+"Corporate/Corporate_director.asp");
        subMenu30.addItem("<font size=1>Management</font>", jspath+"Corporate/Corporate_management.asp");		
		subMenu30.addItem("<font size=1>Subsidiaries</font>",jspath+"Corporate/Corporate_Subsidiary.asp");
        subMenu30.addItem("<font size=1>Financial Statements</font>", jspath+"Corporate/Corporate_fistatement.asp");		
		subMenu30.addItem("<font size=1>Awards of Achievement</font>",jspath+"Corporate/Corporate_Award.asp");
		subMenu30.addItem("<font size=1>KGI Group</font>",jspath+"Corporate/Corporate_kgiandkoos.asp");

		var subMenu30 = menu3.addMenu(menu3.items[1]);
        subMenu30.addItem("<font size=1>Good Governance</font>", jspath+"Corporate/Corporate_inv_Governance.asp");		
        subMenu30.addItem("<font size=1>Financial Highlights</font>", jspath+"Corporate/Corporate_inv_FiHilight.asp");		
        subMenu30.addItem("<font size=1>Credit Rating</font>", jspath+"Corporate/Corporate_inv_Rating.asp");		
        subMenu30.addItem("<font size=1>Dividend Information</font>", jspath+"Corporate/Corporate_inv_Dividend.asp");		
		subMenu30.addItem("<font size=1>Shareholders Meeting</font>",jspath+"Corporate/Corporate_inv_meeting.asp");
		subMenu30.addItem("<font size=1>Report to SET</font>",jspath+"Corporate/Corporate_inv_report2set.asp");
		subMenu30.addItem("<font size=1>Annual Report</font>",jspath+"Corporate/Corporate_inv_annualreport.asp");
		subMenu30.addItem("<font size=1>Annual Registration Statement (Form 56-1)</font>",jspath+"Corporate/Corporate_inv_AnnualRegis.asp");

		var subMenu301 = subMenu30.addMenu(subMenu30.items[0]);
        subMenu301.addItem("<font size=1>Corporate Governance Policy</font>", jspath+"Corporate/Corporate_inv_Governance.asp");		
		subMenu301.addItem("<font size=1>Corporate Governance Report</font>",jspath+"Corporate/Corporate_inv_Report.asp");
		subMenu301.addItem("<font size=1>Code of Conduct</font>",jspath+"Corporate/Corporate_inv_CodeOfConduct.asp");

		var subMenu30 = menu3.addMenu(menu3.items[2]);
		subMenu30.addItem("<font size=1>Seminar</font>",jspath+"Corporate/Corporate_Act_Seminar.asp");
		//subMenu30.addItem("<font size=1>RoadShow</font>",jspath+"Corporate/Corporate_Act_Roadshow.asp");
		subMenu30.addItem("<font size=1>Social Responsibility</font>",jspath+"Corporate/Corporate_Act_social.asp");

		//==================================================================================================
		// 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.
		//==================================================================================================
		mtDropDown.renderAll();
	}
