	// 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
		//==================================================================================================

		var menu1 = ms.addMenu(document.getElementById("menu1"));
		menu1.addItem("<span class=mt_dropdown_memu_text>บทวิเคราะห์ทั้งหมด</span>", "research.php?type=a");
		menu1.addItem("<span class=mt_dropdown_memu_text>กลยุทธ์การลงทุนวันนี้</span>", "research.php?type=b");
		menu1.addItem("<span class=mt_dropdown_memu_text>บทวิเคราะห์ทางเทคนิค</span>", "research.php?type=3");
		menu1.addItem("<span class=mt_dropdown_memu_text>บทวิเคราะห์หุ้นรายบริษัท   </span>", "research.php?type=7");
		menu1.addItem("<span class=mt_dropdown_memu_text>บทวิเคราะห์อุตสาหกรรม </span>", "research.php?type=6");
		menu1.addItem("<span class=mt_dropdown_memu_text>บทวิเคราะห์ TFEX</span>", "research.php?type=y");
		menu1.addItem("<span class=mt_dropdown_memu_text>KKS Smart Port </span>", "research.php?type=p");
		menu1.addItem("<span class=mt_dropdown_memu_text>ทิศทางการลงทุน</span>", "research.php?type=x");
		menu1.addItem("<span class=mt_dropdown_memu_text>Wealth Hunter</span>", "research.php?type=C");
		menu1.addItem("<span class=mt_dropdown_memu_text>หุ้นเด่นประจำสัปดาห์</span>", "research.php?type=4");
		menu1.addItem("<span class=mt_dropdown_memu_text>ข่าว/เหตุการณ์/ตารางหุ้น</span>", "research.php?type=2");
	menu1.addItem("<span class=mt_dropdown_memu_text>เอกสารสัมมนา KKS </span>", "research.php?type=s");
		menu1.addItem("<span class=mt_dropdown_memu_text>ถามนักวิเคราะห์ </span>", "research_faq.php");
		
		var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("<span class=mt_dropdown_memu_text>ขั้นตอนการเปิดบัญชี</span>", "kks_openaccount.htm");
		menu2.addItem("<span class=mt_dropdown_memu_text>ลงทะเบียนเปิดบัญชีซื้อขายหลักทรัพย์</span>", "kks_open_new_account.htm");
		menu2.addItem("<span class=mt_dropdown_memu_text>ลงทะเบียนเปิดบัญชีซื้อขายอนุพันธ์</span>", "kks_open_new_account_tfex.htm");
		menu2.addItem("<span class=mt_dropdown_memu_text >ลงทะเบียน E-Service</span>", "https://e-service.kks.co.th");
		menu2.addItem("<span class=mt_dropdown_memu_text>ลงทะเบียนทดลองใช้ฟรี 15 วัน </span>", "kks_open_new_account_free.htm");

		var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("<span class=mt_dropdown_memu_text>โปรโมชั่น</span>", "kks_promotion.php");
		menu3.addItem("<span class=mt_dropdown_memu_text>กิจกรรม</span>", "kks_activity.php");		
		menu3.addItem("<span class=mt_dropdown_memu_text>สัมมนา</span>", "kks_seminar.php");
		menu3.addItem("<span class=mt_dropdown_memu_text>ปฏิทินกิจกรรม</span>", "kks_calendar.php");	
         
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("<span class=mt_dropdown_memu_text>ความรู้นักลงทุน</span>", "kks_investo_knowledge.htm");
		menu4.addItem("<span class=mt_dropdown_memu_text>ถาม-ตอบ</span>", "kks_faq.htm");
		menu4.addItem("<span class=mt_dropdown_memu_text>สอบถามข้อมูล</span>", "kks_contactus.php");
		
		 var menu5 = ms.addMenu(document.getElementById("menu5"));
		menu5.addItem("<span class=mt_dropdown_memu_text>ประกาศ </span>", "announce_all.php?type=2&atype=a");
		menu5.addItem("<span class=mt_dropdown_memu_text>Turnover List</span>", "announce_all.php?type=2&atype=t");
		menu5.addItem("<span class=mt_dropdown_memu_text>ค่าธรรมเนียม</span>", "announce_all.php?type=2&atype=f");

		mtDropDown.renderAll();
	}
