'
+ '
'
+ '
'
+ '
'
+ 'Destinos del país '+ capitalizeAll(pais.nombre)
+ ''
+'
'
+ ''
+ ''
+ '
'
+ '
';
$("html").append(html);
}
}
/*
* Evento click de un elemento del autocomplete
*/
function clickAutocompleteHotel(name, value, tipo){
tipo = tipo || false;
$(INPUT_NAME_AUTOC).val(name);
$(INPUT_VALUE_AUTOC).val(value);
$(INPUT_VALUE_AUTOC).trigger("change");
$('#autocompleteHoteles').remove();
$('#cargandoBackground').remove();
$('#cargandoContent').remove();
if( tipo && INPUT_VALUE_AUTOC.indexOf('_value')!=-1 ){
var inputTipo = INPUT_VALUE_AUTOC.replace('_value', '_type');
if( $(inputTipo).length )$(inputTipo).val(tipo)
}
// Para "Vuelo+Hotel" Comprobamos si el destino tiene descuento de residente
if( TIPO_CABECERA_AGENCIA=='Vuelo+Hotel' ){
if( IDMinorista!=="17" )comprobarResidente();
setTimeout(mostrarIconAeropuertosCercanos,50);
}
}
// Autocompletar Fernando:
function resetIDs() {
$('#txtDestino_id').val('');
if( false ){ $(INPUT_VALUE_AUTOC).val(''); }
else { borraList=true; }
if( $('#IDE').length ){ $('#IDE').val(''); }
// tren
$('#estTren_destino_name').val('');
$('#estTren_destino_value').val('');
$('#divEstacionTrenDestino').hide();
}
//fin autocompletar