<!--
	// 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;
		
		document.getElementById('TopSubNavidef').className = "TopSubNavidef";
			
		if(itemId == '' )
		{
			if(oldTopMainId != "")
			{
				document.getElementById(addTopText+ oldTopMainId).style.background = "#e2d6b1";
			}
			HideTopAll();
			return;
		}
		
		if(oldTopMainId != "" && oldTopMainId != itemId)
		{
			document.getElementById(addTopText+ oldTopMainId).style.background = "#e2d6b1";
		}
		if (nextid != "")
		{
			nextel = document.getElementById(addTopText + nextid);
		}
		
		if (level == "main")
		{
			el.style.background = "#d4c48e";
			//el.style.borderTop = "1px solid gray";			
			if(nextid == "" && el.className != "dvTMSel")
			{
				document.getElementById('TopSubNavidef').className = "TopSubNavidef2";				
			}
			if (nextid != "")
			{
				nextel.style.top = el.offsetTop + el.offsetHeight + 'px';
			}
						
			if (oldTopSubId != "")
			{
				if(document.getElementById(addTopText+ oldTopSubId).className != "dvTSSelSel")
					document.getElementById(addTopText+ oldTopSubId).style.background = "#d4c48e";
			}
						
			HideTopAll();
			
			oldTopMainId = itemId;
		}
		else if (level == "sub")
		{
			if(oldTopMainId != "" && itemId.indexOf('dlTopSSel__ctl') == -1)
			{
				document.getElementById(addTopText+ oldTopMainId).style.background = "#d4c48e";
			}
			else if(oldTopMainId != "" && itemId.indexOf('dlTopSSel__ctl') != -1)
			{ 
				document.getElementById(addTopText+ oldTopMainId).style.background = "#e2d6b1";
				oldTopMainId = "";
			}
		
			if(oldTopSubId != "" && document.getElementById(addTopText+ oldTopSubId).className != "dvTSSelSel" && document.getElementById(addTopText+ oldTopSubId).className != "dvTSSel")
				document.getElementById(addTopText+ oldTopSubId).style.background = "#e2d6b1";
		
				
			el.style.background = "#d4c48e";
			
			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()
	{
		document.getElementById('TopSubNavidef').className = "TopSubNavidef";
		if (oldTopMainId != "")
			document.getElementById(addTopText+oldTopMainId).style.background = "#e2d6b1";
		
		if(oldTopSubId != "" && document.getElementById(addTopText+ oldTopSubId).className != "dvTSSelSel" && document.getElementById(addTopText+ oldTopSubId).className != "dvTSSel")
				document.getElementById(addTopText+ oldTopSubId).style.background = "#e2d6b1";
		
		
		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.style.display != "none")  el.focus();
}

// in Columbus Travel 
function OpenCPDisclaimer(){
	winTC = window.open('/CPDisclaimer.aspx', 'CPDisclaimer', 'toolbar=no, location=no, menubar=no, width=730, height=600, scrollbars=yes');
	winTC.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 = "GHAContent";
		window.open(url, '_blank', 'toolbar=no, location=no, menubar=no, width=300, height=250, modal=yes');
	}
	
//Popup for CPPictures
function OpenCPPicturePopup( coId)
	{
		var win = window.open('/CPPicturePopup.aspx?COID=' + coId, 'CPPicturePopup', 'resizable=no,toolbar=no, location=no, menubar=no, width=460, height=460, left=300, modal=yes');
		win.focus();
	}
	
//Popup for CPPictures
function OpenCRPicturePopup( rgId)
	{
		var win = window.open('/CPPicturePopup.aspx?RGID=' + rgId, 'CPPicturePopup', 'resizable=no,toolbar=no, location=no, menubar=no, width=460, height=460, left=300, modal=yes');
		win.focus();
	}
	
//Popup for CPPictures
function OpenCDPicturePopup( deId)
	{
		var win = window.open('/CPPicturePopup.aspx?DEID=' + deId, 'CPPicturePopup', 'resizable=no,toolbar=no, location=no, menubar=no, width=460, height=460, left=300, modal=yes');
		win.focus();
	}
	
//Popup for CPmaps
function OpenCPMapPopup( coId)
	{
		var win = window.open('/CPMap.aspx?COID=' + coId, 'CPMaps', 'resizable=yes,scrollbars=yes,toolbar=no, location=no, menubar=no, width=600, height=560, left=300, modal=no');
		win.focus();
	}
	
//Popup for CPmaps
function OpenCRMapPopup( rgId)
	{
		var win = window.open('/CPMap.aspx?RGID=' + rgId, 'CPMaps', 'resizable=yes,scrollbars=yes,toolbar=no, location=no, menubar=no, width=600, height=560, left=300, modal=no');
		win.focus();
	}
	
//Popup for CPmaps
function OpenCDMapPopup( deId)
	{
		var win = window.open('/CPMap.aspx?DEID=' + deId, 'CPMaps', 'resizable=yes,scrollbars=yes,toolbar=no, location=no, menubar=no, width=600, height=560, left=300, modal=no');
		win.focus();
	}

	
//Popup for Rates
function OpenRatePopup(param)
	{
		var zeit = new Date();
		var ms = zeit.getMilliseconds();

		var win = window.open('/HotelRatePopup.aspx' + param +'&' + ms, 'IxeoRatePopup', 'resizable=no,toolbar=no, location=no, menubar=no, width=470, height=375, left=300, modal=yes, scrollbars=yes');
		win.focus();
	
	}
	
//Popup for Help
function OpenHelpPopup(id)
	{
		var win = window.open('/HelpPopup.aspx?&ID=' + id, 'IxeoHelpPopup', 'resizable=no,toolbar=no, location=no, menubar=no, width=300, height=300, left=300, modal=yes');
		win.focus();
	}	

//Popup for Feedback
function OpenFeedbackPopup()
	{
		var win = window.open('/FeedbackForm.aspx', 'Feedback', 'resizable=no, toolbar=no, location=no, menubar=no, scrollbars=yes, width=600, height=700, left=150, modal=yes');
		win.focus();
	}	
	
//Popup for CPPictures
function OpenFareRules(countNR)
	{
		var win = window.open('/FareRulesPopup.aspx?NR=' + countNR, 'FareRulesPopup', 'resizable=no,scrollbars=yes,toolbar=no, location=no, menubar=no, width=540, height=560, left=300, modal=yes');
		win.focus();
	}
	
//Popup for SendMail
function OpenSendMail( toAddr )
	{
		var win = window.open('/SendMail.aspx?TO=' + toAddr, 'SendMail', 'resizable=yes,scrollbars=yes,toolbar=no, location=no, menubar=no, width=500, height=400, left=300, modal=no');
		win.focus();
	}
	
function CompetitionTermsConditions(){
	winTC = window.open('/CompetitionTermsConditionsPopup.aspx', '_blank', 'toolbar=no, location=no, menubar=no, width=730, height=425, scrollbars=yes');
	winTC.focus();
}
// -->
