﻿/**** this file contains follwoing files included ***/
/*


1./shared/Destination-Guide/jquery.fancybox-1.2.1.pack.js



*/ 

function getDestinationListFromDB()
{var xmlHttp;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e)
{alert("Your browser does not support AJAX!");return false;}}}
xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4)
{suggestionText=xmlHttp.responseText;FinalHotelDestList=suggestionText.split(";");if(FinalHotelDestList!="")
{$("#ctl00_Main_HotelSearchControl_txtregion").autocomplete_Hotel(FinalHotelDestList);}}}
var url=generalpath+"webfunctionforHotelDestination.aspx";xmlHttp.open("GET",url,true);xmlHttp.send(null);}
getDestinationListFromDB();$(document).ready(function(){$("#ctl00_Main_HotelSearchControl_txtregion").focus(function(){if(this.value==this.defaultValue){this.value="";}}).blur(function(){if(!this.value.length){this.value=this.defaultValue;}});});function HideResult(value)
{document.getElementById("ctl00_Main_HotelSearchControl_txtregion").value=value;if(document.getElementById("divResult")!=null)
{document.getElementById("divResult").style.display="none";}}
function hide(ElementId)
{if(document.getElementById(ElementId))
document.getElementById(ElementId).style.display='none';}
function RedirectToHotelDetails(ServerURL,id){window.location=ServerURL+"Holiday-Details.aspx?cmd=Recommended&i="+id;}



    $(document).ready(function() {
    // Initialise the fancybox for SEND AN ENQUIRY
	$('#DIV_EmailDeals a.iframe').fancybox({
		'hideOnContentClick': 	true,
		'zoomSpeedIn':			0,
		'zoomSpeedOut':			0,
		'frameWidth':			665,
		'frameHeight':			500,
		'overlayShow':			true
	});		
	SetSearch('holidays');	
});



