function Spainportugal()
	{
		var login = window.open('../pdfspecials/Spain and Portugal.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
	}
	
	function EgyptDudai()
	{
		var login = window.open('../pdfspecials/Eqypt_Dubai_Oman.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
	}
	function Greece() 
	{
		var login = window.open('../pdfspecials/greece.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
	}
	function ItalyFrance() 
	{
		var login = window.open('../pdfspecials/FranceandItaly.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
	}
	function UkIreland() 
	{
		var login = window.open('../pdfspecials/UkandIreland.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
	}
	<!-- End Of tempo best Seller -->     
                                         	
function australia() {
			var login = window.open('../pdfspecials/whatshot_austria.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
		}
function  britain()   {
			var login = window.open('../pdfspecials/whatshot_britainIreland.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
		}
function  Egypt() {
			var login = window.open('../pdfspecials/whatshot_Egyptdubai.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
		}
function  greece() {
			var login = window.open('../pdfspecials/whatshot_GreeceTurkey.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
		}
function  italy()  {
			var login = window.open('../pdfspecials/whatshot_ItalyFrance.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
		}
function  spain()  {
			var login = window.open('../pdfspecials/whatshot_spain.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
		}
function  car()  {
			var login = window.open('../pdfspecials/whatshot_CARENTAL.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
		}
function  stham()   {
			var login = window.open('../pdfspecials/whatshot_souththamerica.pdf','na',"scrollbars=no,status=no,resizable=no,toolbar=no,height=600,width=800");
		}
		
function clientlettter() {
//alert('fddhdhfdh')
	window.open("../../../pdfspecials/clientletter.pdf",'na','scrollbars=no,status=no,resizable=no,toolbar=no,height=560,width=700');
}

function OpenInvoicePopUp(_ServerPath,strcompanyid,struserid,strclientid,strdtformat,Resxid,strDocument,strProductId)
{
	//alert('fddhdhfdh')
	url = _ServerPath+"/sitePages/Payments/frmNoteToClientPopup.aspx?companyId="+strcompanyid+"&userId="+struserid+"&dtformat="+strdtformat+"&bookingId="+Resxid+"&documentId=20&clientId="+strclientid+"&productid=1" 
	window.open(url,'','menubars=no,toolbar=no,resizable=yes,scrollbars=yes,left=0,top=0,width=710,height=540')
}

function check(txtboxid)
{
	if(txtboxid.value=="")
	{
		alert("Please enter search data");
		return false;
	}
	return true;
}

function CUENDETPDF() 
 		{
		    window.open(strRootUrl + "pdfspecials/NZ_PDfs/CUENDET%20VILLAS%20AND%20APARTMENTS%20NZ.pdf",'na','scrollbars=no,status=no,resizable=no,toolbar=no,height=560,width=700');
		}
function EDINBURGHPDF() 
 		{
		    window.open(strRootUrl + "pdfspecials/NZ_PDfs/Edinburgh Military Tattoo NZ.pdf",'na','scrollbars=no,status=no,resizable=no,toolbar=no,height=560,width=700');
		}
		
//==============================new additions on 26-jan-2006==================================================
var ucTopMenuPath='ucTopMenuNew1_';
var strRootUrl="../../"
var strUcContainer="";
function setRootUrl(paraUrl)
{
	strRootUrl=paraUrl;
}

function setTopMenuPath(paraPath)
{
	ucTopMenuPath=paraPath;
}

function showSearchControl(paraWhatType)
{
	document.all('divAccom').style.display='block';
	/*document.all('divFlights').style.display='none';
	document.all('divAccom').style.display='none';
	document.all('divPackage').style.display='none';
	document.all('divActivities').style.display='none';
	document.all('divSightSeeing').style.display='none';
	document.all('divCarRental').style.display='none';
	document.all('divCruising').style.display='none';
	document.all('divServices').style.display='none';
	*/
	//--------------------------------------------
	document.all(ucTopMenuPath+'imgFlights').src=strRootUrl + "newImages/Flights_01.jpg";
	document.all(ucTopMenuPath+'imgAccomodation_a').src=strRootUrl + "newImages/accomm_01.jpg";
	document.all(ucTopMenuPath+'imgPackages_a').src=strRootUrl + "newImages/Packages_01.jpg";
	document.all(ucTopMenuPath+'imgActivities_a').src=strRootUrl + "newImages/activities_01.jpg";
	document.all(ucTopMenuPath+'imgsightSeeing_a').src=strRootUrl + "newImages/sightseeing_01.jpg";
	document.all(ucTopMenuPath+'imgCarHire_a').src=strRootUrl + "newImages/car_rental_01.jpg";
	document.all(ucTopMenuPath+'imgCruising_a').src=strRootUrl + "newImages/cruising_01.jpg";
	document.all(ucTopMenuPath+'imgServices_a').src=strRootUrl + "newImages/services_01.jpg";
	//-------------------------------------------------------
	
	if(paraWhatType=="FLIGHTS")
	{	
		//document.all('divFlights').style.display='block';
		document.all(ucTopMenuPath+'imgFlights').src=strRootUrl + "newImages/Flights_02.jpg";
		document.all('hidCurrentSearch').value='FLIGHTS';
	}
	else if(paraWhatType=="ACCOM")
	{
		//document.all('divAccom').style.display='block';
		document.all(ucTopMenuPath+'imgAccomodation_a').src=strRootUrl + "newImages/accomm_02.jpg";
		setPagePathACCOM(strUcContainer+"UcSearchAccom1_");
		document.all('hidCurrentSearch').value='ACCOM';
	}
	else if(paraWhatType=="PACKAGE")
	{
		//document.all('divPackage').style.display='block';
		document.all(ucTopMenuPath+'imgPackages_a').src=strRootUrl + "newImages/Packages_02.jpg";
		setPagePathPACKAGES(strUcContainer+"UcSearchPack1_");
		document.all('hidCurrentSearch').value='PACKAGE';
	}
	else if(paraWhatType=="ACTIVITIES")
	{
		//document.all('divActivities').style.display='block';
		document.all(ucTopMenuPath+'imgActivities_a').src=strRootUrl + "newImages/activities_02.jpg";
		setPagePathACTIVITIES(strUcContainer+"UcSearchAct1_");
		document.all('hidCurrentSearch').value='ACTIVITIES';
	}
	else if(paraWhatType=="SIGHTSEEING")
	{
		//document.all('divSightSeeing').style.display='block';
		document.all(ucTopMenuPath+'imgsightSeeing_a').src=strRootUrl + "newImages/sightseeing_02.jpg";
		setPagePathSIGHTSEEING(strUcContainer+"UcSearchSightSeeing1_");
		document.all('hidCurrentSearch').value='SIGHTSEEING';
	}
	else if(paraWhatType=="CARHIRE")
	{
		//document.all('divCarRental').style.display='block';
		document.all(ucTopMenuPath+'imgCarHire_a').src=strRootUrl + "newImages/car_rental_02.jpg";
		setPagePathCAR(strUcContainer+"UcSearchCar1_");
		document.all('hidCurrentSearch').value='CARHIRE';
	}
	else if(paraWhatType=="CRUISES")
	{
		//document.all('divCruising').style.display='block';
		document.all(ucTopMenuPath+'imgCruising_a').src=strRootUrl + "newImages/cruising_02.jpg";
		setPagePathCRUISES(strUcContainer+"UcSearchCruise1_");
		document.all('hidCurrentSearch').value='CRUISES';
	}
	else if(paraWhatType=="SERVICE")
	{
		//document.all('divServices').style.display='block';
		document.all(ucTopMenuPath+'imgServices_a').src=strRootUrl + "newImages/services_02.jpg";
		setPagePathSERVICES(strUcContainer+"UcSearchServices1_");
		document.all('hidCurrentSearch').value='SERVICE';
	}
}

//--------what to display in mouse over
function showMouseControl(paraWhatType,mouseover)
{	
	if(mouseover==1)
	{
		//===================case of mouseover
		if(paraWhatType=="FLIGHTS")
		{
			document.all(ucTopMenuPath+'imgFlights').src=strRootUrl + 'newImages/Flights_02.jpg';
		}
		else if(paraWhatType=="ACCOM")
		{
			document.all(ucTopMenuPath+'imgAccomodation_a').src=strRootUrl + 'newImages/accomm_02.jpg';
		}
		else if(paraWhatType=="PACKAGE")
		{
			document.all(ucTopMenuPath+'imgPackages_a').src=strRootUrl + 'newImages/Packages_02.jpg';
		}
		else if(paraWhatType=="ACTIVITIES")
		{
			document.all(ucTopMenuPath+'imgActivities_a').src=strRootUrl + 'newImages/activities_02.jpg';
		}
		else if(paraWhatType=="SIGHTSEEING")
		{
			document.all(ucTopMenuPath+'imgsightSeeing_a').src=strRootUrl + 'newImages/sightseeing_02.jpg';
		}
		else if(paraWhatType=="CARHIRE")
		{
			document.all(ucTopMenuPath+'imgCarHire_a').src=strRootUrl + 'newImages/car_rental_02.jpg';
		}
		else if(paraWhatType=="CRUISES")
		{
			document.all(ucTopMenuPath+'imgCruising_a').src=strRootUrl + 'newImages/cruising_02.jpg';
		}
		else if(paraWhatType=="SERVICE")
		{
			document.all(ucTopMenuPath+'imgServices_a').src=strRootUrl + 'newImages/services_02.jpg';
		}
	}
	else
	{
	//===============case of mouseout============================================
		if(paraWhatType=="FLIGHTS")
		{
			if(document.all('hidCurrentSearch').value!=paraWhatType)
			document.all(ucTopMenuPath+'imgFlights').src=strRootUrl + 'newImages/Flights_01.jpg';
		}
		else if(paraWhatType=="ACCOM")
		{
			if(document.all('hidCurrentSearch').value!=paraWhatType)
			document.all(ucTopMenuPath+'imgAccomodation_a').src=strRootUrl + 'newImages/accomm_01.jpg';
		}
		else if(paraWhatType=="PACKAGE")
		{
			if(document.all('hidCurrentSearch').value!=paraWhatType)
			document.all(ucTopMenuPath+'imgPackages_a').src=strRootUrl + 'newImages/Packages_01.jpg';
		}
		else if(paraWhatType=="ACTIVITIES")
		{
			if(document.all('hidCurrentSearch').value!=paraWhatType)
			document.all(ucTopMenuPath+'imgActivities_a').src=strRootUrl + 'newImages/activities_01.jpg';
		}
		else if(paraWhatType=="SIGHTSEEING")
		{
			if(document.all('hidCurrentSearch').value!=paraWhatType)
			document.all(ucTopMenuPath+'imgsightSeeing_a').src=strRootUrl + 'newImages/sightseeing_01.jpg';
		}
		else if(paraWhatType=="CARHIRE")
		{
			if(document.all('hidCurrentSearch').value!=paraWhatType)
			document.all(ucTopMenuPath+'imgCarHire_a').src=strRootUrl + 'newImages/car_rental_01.jpg';
		}
		else if(paraWhatType=="CRUISES")
		{
			if(document.all('hidCurrentSearch').value!=paraWhatType)
			document.all(ucTopMenuPath+'imgCruising_a').src=strRootUrl + 'newImages/cruising_01.jpg';
		}
		else if(paraWhatType=="SERVICE")
		{
			if(document.all('hidCurrentSearch').value!=paraWhatType)
			document.all(ucTopMenuPath+'imgServices_a').src=strRootUrl + 'newImages/services_01.jpg';
		}
	}
}
function restorePreviousSearch()
{
	showSearchControl(document.all('hidCurrentSearch').value);
	var paraWhatType=document.all('hidCurrentSearch').value;
	
		if(paraWhatType=="FLIGHTS")
		{
			//restorePreviousFlights();
		}
		else if(paraWhatType=="ACCOM")
		{
			restorePreviousAccom();
		}
		else if(paraWhatType=="PACKAGE")
		{
			restorePreviousPackages();
		}
		else if(paraWhatType=="ACTIVITIES")
		{
			restorePreviousActivities();
		}
		else if(paraWhatType=="SIGHTSEEING")
		{
			restorePreviousSightSeeing();
		}
		else if(paraWhatType=="CARHIRE")
		{
			restorePreviousCar();
		}
		else if(paraWhatType=="CRUISES")
		{
			restorePreviousCruises();
		}
		else if(paraWhatType=="SERVICE")
		{
			restorePreviousServices();
		}
}


function showSearchControlFromLeftPane(paraWhatType)
{
	document.all('hidCurrentSearch').value=paraWhatType;
	showSearchControl(paraWhatType);
}

//-----------to be called from default page
function setPagePathDefault()
{	
	strUcContainer="";
	setTopMenuPath(strUcContainer+"UcTopMenuNew1_")
	setPagePathACCOM(strUcContainer+"UcSearchAccom1_");
	setPagePathPACKAGES(strUcContainer+"UcSearchPack1_");
	setPagePathACTIVITIES(strUcContainer+"UcSearchAct1_");
	setPagePathCAR(strUcContainer+"UcSearchCar1_");
	setPagePathCRUISES(strUcContainer+"UcSearchCruise1_");
	setPagePathSIGHTSEEING(strUcContainer+"UcSearchSightSeeing1_");
	setPagePathSERVICES(strUcContainer+"UcSearchServices1_");
	//----------------------------------------
	restorePreviousSearch();
}
//---------------------------------------
