<!--
	// Top Menu
	var addTopText = "H_";
	var oldTopMainId = "";
	var oldTopSubId = "";
	var timerTopId = null;
	var pauseTop = 1000;
	
	function moverTop(itemId, level, nextid, dir) {
		clearTimeout(timerTopId);
		var el=document.getElementById(addTopText+ itemId);
		var nextel	= null;
		
		if(itemId == '' )
		{
			if(oldTopMainId != "")
			{
				document.getElementById(addTopText+ oldTopMainId).style.background = "#000000";
			}
			HideTopAll();
			return;
		}
		
		if(oldTopMainId != "" && oldTopMainId != itemId)
		{
			document.getElementById(addTopText+ oldTopMainId).style.background = "#000000";
		}
		if (nextid != "")
		{
			nextel = document.getElementById(addTopText + nextid);
		}
		
		if (level == "main")
		{
			el.style.background = "#808080";
			if (nextid != "")
			{
				nextel.style.left = el.offsetLeft + el.offsetParent.offsetLeft + 'px';
				nextel.style.top = el.offsetTop + el.offsetHeight +el.offsetParent.offsetTop+ 'px';
			}
						
			if (oldTopSubId != "")
			{
				if(document.getElementById(addTopText+ oldTopSubId).className != "dvTSSelSel")
					document.getElementById(addTopText+ oldTopSubId).style.background = "#E0D9CF"
			}
						
			HideTopAll();
			
			oldTopMainId = itemId;
		}
		else if (level == "sub")
		{
			if(oldTopMainId != "" && itemId.indexOf('dlTopSSel__ctl') == -1)
			{
				document.getElementById(addTopText+ oldTopMainId).style.background = "#808080";
			}
			else if(oldTopMainId != "" && itemId.indexOf('dlTopSSel__ctl') != -1)
			{ 
				document.getElementById(addTopText+ oldTopMainId).style.background = "#000000";
				oldTopMainId = "";
			}
				
			if(oldTopSubId != "" && document.getElementById(addTopText+ oldTopSubId).className != "dvTSSelSel")
				document.getElementById(addTopText+ oldTopSubId).style.background = "#E0D9CF";
			
			el.style.background = "#FFFFFF";
			
			if (itemId.indexOf('dlTopSSel__ctl') != -1)
			{
				HideTopAll();
			}
			
			oldTopSubId = itemId;
		}
		
			
		if (nextid != "")
		{
			document.getElementById(addTopText + nextid).style.visibility = "visible";
		}
	}
	
	function moverSubDiv()
	{
		clearTimeout(timerTopId);
	}
	
	
	function moutSubDiv()
	{
		clearTimeout(timerTopId);
		timerTopId=setTimeout('ClearAllSelectedTop()',pauseTop);
	}
	
	function HideTopAll()
	{
		if(document.getElementById(addTopText + "MyTestForDivTableTop").tagName.toLowerCase() == "table")
		{
		
			for (i=0; i < document.getElementsByTagName("table").length ;i++)
			{
				var el = document.getElementsByTagName("table")[i];
				if(el["id"] != null)
				{
					if ( el["id"].indexOf(addTopText +'dlTopS__ctl_') != -1 )
						el.style.visibility = "hidden";
				}
			}
		}
		else
		{
			for (i=0; i < document.getElementsByTagName("div").length ;i++)
			{
				var el = document.getElementsByTagName("div")[i];				
				
				if(el["id"] != null)
				{
					if ( el["id"].indexOf(addTopText +'dlTopS__ctl_') != -1 )
						el.style.visibility = "hidden";
				}
			}
		}
		
	}
	
	
	
	function moutTop() 
	{
		clearTimeout(timerTopId);
		timerTopId=setTimeout('ClearAllSelectedTop()',pauseTop);

	}
	
	function ClearAllSelectedTop()
	{
		if (oldTopMainId != "")
		{
			document.getElementById(addTopText+oldTopMainId).style.background = "#000000";
		}
		if (oldTopSubId != "")
		{
			if(document.getElementById(addTopText+ oldTopSubId).className != "dvTSSelSel")
				document.getElementById(addTopText+ oldTopSubId).style.background = "#E0D9CF";
		}
		
		oldTopMainId = "";			
		oldTopSubId = "";
		oldTopSubSubId = "";
		
		HideTopAll();
	}
	


//preload some Images

function preloadLGImages() {
	element = document.getElementById("selectedLanguage");	
	if (element != null && element.value != "Done")
	{
		language = element.value;
		if (language != null && document.images) 
		{
			for(var i=0; i<preloadLGImages.arguments.length; i++)
			{
				newPreloadedImage(preloadLGImages.arguments[i], language);	
			}
		}		
	}
}

function newPreloadedImage(imgbasename, lg) {
	imgsrc = 'images/buttons/'+ imgbasename + lg + '.gif';
	rslt = new Image();
	rslt.src = imgsrc;
}

// set the cursor
function focusField(id)
{
	var el = document.getElementById(id);
	if(el != null)  el.focus();
}

// in Booking2
function TermsConditions(){
	winTC = window.open('TermsConditionsPopup.aspx', '_blank', 'toolbar=no, location=no, menubar=no, width=730, height=425, scrollbars=yes');
	winTC.focus();
}
// ErrorWindow
function ShowError(){
	var element = document.getElementById('cvSummary');
	if (element != null && element.innerHTML != '')
	{
		element.style.display = "none";
		var showtext = element.innerHTML;		
	
		var errwin = window.open('./MessagePopup.aspx?Message=' +  showtext+ '', 'Message', 'toolbar=no,menubar=no,status=no,location=no,width=250, height=250, modal=yes, left=300,top=300');
		errwin.focus();
	}
}

//Popup for Hotels
function OpenHotelPicturePopup(brand, pid)
	{
		var win = window.open('./HotelsPicturePopup.aspx?BRAND=' + brand +'&PID=' +pid, 'ASEANHotelPicturePopup', 'resizable=no, toolbar=no, location=no, menubar=no, width=460, height=430, left=300, modal=yes');
		win.focus();
	}
	
//Popup for Hotels
function OpenProductPicturePopup(sgid)
	{
		var win = window.open('./HotelsPicturePopup.aspx?SGID=' + sgid, 'ASEANHotelPicturePopup', 'resizable=no, toolbar=no, location=no, menubar=no, width=460, height=430, left=300, modal=yes');
		win.focus();
	}

//Popup for MapsResult
function OpenPicturePopup(type, id)
	{
		if (type == 'DEID')
		{
			var win = window.open('./MapsPicturePopup.aspx?DEID=' + id, 'ASEANPicturePopup', 'resizable=no,toolbar=no, location=no, menubar=no, width=460, height=430, left=300, modal=yes');
			win.focus();
		}
		else
		{
			var win = window.open('./MapsPicturePopup.aspx?TQID=' + id, 'ASEANPicturePopup', 'resizable=no,toolbar=no, location=no, menubar=no, width=460, height=430, left=300, modal=yes');
			win.focus();
		}
	}
//Popup for Concierge
function OpenPopup(url)
	{
		self.window.name = "ASEAN";
		window.open(url, '_blank', 'toolbar=no, location=no, menubar=no, width=300, height=210, modal=yes');
	}

//Popup for Geo
function OpenGeoPicturePopup( language)
	{
		var win = window.open('./GeoPicturePopup.aspx?LG=' + language, 'ASEANPicturePopup', 'resizable=no,toolbar=no, location=no, menubar=no, width=460, height=460, left=300, modal=yes');
		win.focus();
	}
	
//Popup for Landingpages
function OpenGeoMapPopup( language)
	{
		var win = window.open('./ViewMap.aspx?LG=' + language, 'ASEANPicturePopup', 'resizable=no,toolbar=no, location=no, menubar=no, width=460, height=430, left=300, modal=yes');
		win.focus();
	}
//Popup for Landingpages
function OpenIntroductionPopup(language)
	{
		var win = window.open('./IntroductionPopup.aspx?LG=' + language, 'ASEANPicturePopup', 'resizable=no,toolbar=no, location=no, menubar=no, width=820, height=640, left=300, modal=yes');
		win.focus();
	}
//Popup for Disclaimer
function OpenWowDisclaimer()
	{
		var win = window.open('/WowDisclaimer.aspx', 'WowDisclaimer', 'toolbar=no, location=no, menubar=no, width=630, height=500, scrollbars=yes');
		win.focus();
	}
// -->	

// -->
