// JavaScript Document
function hotelMenu(obj)
{
	url = location.href;
	menu = obj;
	url = menu;
	location.href = url+'.aspx';
}
function SwitchLang(obj)
{
	url = location.href;
	lang = obj;
	if (lang == 'th')
	{
		target = url.replace('/en/','/th/');
		target = url.replace('/gr/','/th/');
		target = url.replace('/jp/','/th/');
		target = url.replace('/kr/','/th/');
		target = url.replace('/ch/','/th/');
	}
	else 
	{
		target = url.replace('/th/','/en/');
		target = url.replace('/gr/','/en/');
		target = url.replace('/jp/','/en/');
		target = url.replace('/kr/','/en/');
		target = url.replace('/ch/','/en/');
	}
	location.href = target;
}
function Popup(url,w,h){
	var l = (screen.width-w)/2;
	var t = (screen.height-h)/2;
    if (typeof(w)=='undefined') w=500;
    if (typeof(h)=='undefined') h=320;
	window.open(url, "", "top="+t+",left="+l+",width="+w+", height="+h+", scrollbars=0"
	);
}