//<script>

var menu_items = new Array();
var menu_items_thai = new Array();
var menu_links = new Array();

menu_items["Our Company"] = new Array("What we do", 
									"Vision Mission",
									"Board of Directors");

menu_items_thai["Our Company"] = new Array("สิ่งที่เราทำ", 
									"วิสัยทัศนและภารกิจ",
									"คณะกรรมการบริษัท");


menu_links["Our Company"] = new Array("http://www2.airportthai.co.th/airportnew/main/what_we_do.asp",
									"http://www2.airportthai.co.th/airportnew/main/message_from_chairman.asp",
									"http://www2.airportthai.co.th/airportnew/main/directors.asp");

menu_items["Responsibility"] = new Array("Corporate Responsibility", 
									"Environmental Concerns",
									"Security and Safety");

menu_items_thai["Responsibility"]= new Array("ความรับผิดชอบของบริษัท", 
									"นโยบาย",
									"โครงการก่อสร้าง",
									"การตรวจสอบคุณภาพสิ่งแวดล้อม",
									"ฝ่ายทรัพยากรบุคคล",
									"ชุมชน" );

menu_links["Responsibility"] = new Array("http://www2.airportthai.co.th/airportnew/main/corporate_responsibility.asp", 
									"http://www2.airportthai.co.th/airportnew/main/policy.asp",
									"http://www2.airportthai.co.th/airportnew/main/safety.asp");

menu_items["Investors"] = new Array("Introduction", 
									"Suvarnabhumi",
									"Bangkok",
									"Phuket",
									"Chiang Mai",
									"Chiang Rai",
									"Hat Yai");

menu_items_thai["Investors"] = new Array("นักลงทุน", 
									"ท่าอากาศยานสุวรรณภูมิ",
									"ท่าอากาศยานกรุงเทพ",
									"ท่าอากาศยานภูเก็ต",
									"ท่าอากาศยานเชียงใหม่",
									"ท่าอากาศยานเชียงราย",
									"ท่าอากาศยานหาดใหญ่");

menu_links["Investors"] = new Array("http://www2.airportthai.co.th/airportnew/main/Investor.asp", 
									"http://www2.airportthai.co.th/airportnew/main/suvarnabhumi.asp",
									"http://www2.airportthai.co.th/airportnew/main/bangkok.asp",
									"http://www2.airportthai.co.th/airportnew/main/phuket.asp",
									"http://www2.airportthai.co.th/airportnew/main/chiang_mai.asp",
									"http://www2.airportthai.co.th/airportnew/main/chiang_rai.asp",
									"http://www2.airportthai.co.th/airportnew/main/hat_yai.asp");



menu_items["Human Resources"] = new Array("Human Resources", 
									"Policy",
									"Projects and Operations",
									"Employee Relations");

menu_items_thai["Human Resources"] = new Array("ทรัพยากรบุคคล", 
									"นโยบาย",
									"แผนงานและการดำเนินงาน",
									"ส่วนการพนักงานสัมพันธ์");


menu_links["Human Resources"] = new Array("human_resources.asp", 
									"http://www2.airportthai.co.th/airportnew/main/human_resources.asp",
									"http://www2.airportthai.co.th/airportnew/main/human_resources.asp",
									"http://www2.airportthai.co.th/airportnew/main/human_resources.asp");

menu_items["Media"] = new Array("News");

menu_items_thai["Media"] = new Array("ข่าวสาร");

menu_links["Media"] = new Array("news.asp");


function menu_sub_on(menu_to_show, strLang)
{

	var td_to_show = document.getElementById('td_menu_top_sub_home');
	

	var strMenu_sub = '<table cellspacing="0" cellpadding="0"><tr>';

	if (menu_to_show == 'About')
	{
		strMenu_sub = '<table cellspacing="0" cellpadding="0" align="left"><tr>';
	}
	
	for (i = 0; i < menu_items[menu_to_show].length; i++)
	{
		if (strLang == 'en')
		{
			strMenu_sub += '<td id="td_menu_top_sub_home_text' + i + '" class="td_menu_top_sub_home_text"><a href="' + menu_links[menu_to_show][i] + '?">&bull;	' + menu_items[menu_to_show][i] + '</a></td>';
		}
		else
		{
			strMenu_sub += '<td id="td_menu_top_sub_home_text' + i + '" class="td_menu_top_sub_home_text"><a href="' + menu_links[menu_to_show][i] + '?lang=th">&bull;	' + menu_items_thai[menu_to_show][i] + '</a></td>';
		}
	}
	
	strMenu_sub += '</tr></table>';
	
	td_to_show.innerHTML = strMenu_sub;

	//increase = 1;
	//opacity = 0;
	
	//if (document.all && document.getElementById)
	//{
		//document.getElementById('td_menu_top_sub_home').filters.alpha.opacity = opacity * 100;
	//}
	//else
	//{
		//document.getElementById('td_menu_top_sub_home').style.MozOpacity = opacity;
	//}
	
	//setInterval("fade()", 20)

	
}
function menu_sub_off()
{
	var td_to_show = document.getElementById('td_menu_top_sub_home');
	td_to_show.innerHTML = '<p>&nbsp;</p>';
	//if (document.all && document.getElementById)
	//{
		//document.getElementById('td_menu_top_sub_home').filters.alpha.opacity = 0;
	//}
	//else
	//{
	//	document.getElementById('td_menu_top_sub_home').style.MozOpacity = 0;
	//}
}

var opacity=0; //opacity of image
var increase=1; //increase opacity indicator

function fade()
{

	if (opacity <= 1 && increase)
		opacity += 0.05;
	else
	{
		increase=0;
	}

	if (document.all && document.getElementById)
	{
		//document.getElementById('td_menu_top_sub_home').filters.alpha.opacity = opacity * 100;
	}
	else
	{
		document.getElementById('td_menu_top_sub_home').style.MozOpacity = opacity;
	}
	
}

