﻿$().ready(function() {

	
	
	$("#txtDestination").autocomplete("/booking/ver20/search.aspx?Parameter=BusquedaCiudad", {
		width: 200,
		minChars: 3,
		delay:200,
		cacheLength:15,
		mustMatch:false,
		selectFirst: true
	});
	
	
	$("#txtDestination").result(function(event, data, formatted) {
		if (data)
		    {
		    
		        $("#txtDestination").val(data[1]);
		    }
			
	});
	
	$("#Departure").autocomplete("/es/booking/ver20/search.aspx?Parameter=BusquedaAerpuertoAuto", {
		width: 200,
		minChars: 3,
		delay:200,
		cacheLength:15,
		mustMatch:false,
		selectFirst: true
	});
	
	
	$("#Departure").result(function(event, data, formatted) {
		if (data)
		    {
		    
		        $("#Departure").val(data[1]);
		    }
			
	});
	
		$("#txtPkgDestination").autocomplete("/es/booking/ver20/search.aspx?Parameter=BusquedaAerpuertoAuto", {
		width: 200,
		minChars: 3,
		delay:200,
		cacheLength:15,
		mustMatch:false,
		selectFirst: true
	});
	
	
	$("#txtPkgDestination").result(function(event, data, formatted) {
		if (data)
		    {
		    
		        $("#txtPkgDestination").val(data[1]);
		    }
			
	});
	
	
	
	
	
	
	/*Inicia vuelos*/
	
	$("#txtCity1").autocomplete("/es/booking/ver20/search.aspx?Parameter=BusquedaVuelo&type=Departure", {
		width: 200,
		minChars: 3,
		delay:200,
		cacheLength:15,
		mustMatch:false,
		selectFirst: true
	});
	
	
	$("#txtCity1").result(function(event, data, formatted) {
		if (data)
		    {
		    
		        $("#txtCity1").val(data[1]);
		    }
			
	});
	
		$("#txtCity2").autocomplete("/es/booking/ver20/search.aspx?Parameter=BusquedaVuelo&type=Arrival", {
		width: 200,
		minChars: 3,
		delay:200,
		cacheLength:15,
		mustMatch:false,
		selectFirst: true
	});
	
	
	$("#txtCity2").result(function(event, data, formatted) {
		if (data)
		    {
		    
		        $("#txtCity2").val(data[1]);
		    }
			
	});
	
	/*Inicia Autos*/	

	
		$("#txtCarAirport").autocomplete("/es/booking/ver20/search.aspx?Parameter=BusquedaAerpuertoAuto", {
		width: 200,
		minChars: 3,
		delay:200,
		cacheLength:15,
		mustMatch:false,
		selectFirst: true
	});
	
		$("#txtCarAirport").result(function(event, data, formatted) {
		if (data)
		    {
		    
		        $("#txtCarAirport").val(data[1]);
		    }
			
	});
	
	$("#txtCarcity").autocomplete("/es/booking/ver20/search.aspx?Parameter=BusquedaCiudadAuto", {
		width: 200,
		minChars: 3,
		delay:200,
		cacheLength:15,
		mustMatch:false,
		selectFirst: true
	});
	
		$("#txtCarcity").result(function(event, data, formatted) {
		if (data)
		    {
		    
		        $("#txtCarcity").val(data[1]);
		    }
			
	});
	/*Inicia Actividades*/
	

/*Inicia Restaurantes*/
	
});




