var countries = [];
var resorts = [];
var countries_resorts = [];
countries[1] = 'France';
countries_resorts[1] = [];
countries_resorts[1].push({id_resort: 31, nm_resort:'Alpe d\'Huez'})
countries_resorts[1].push({id_resort: 218, nm_resort:'Avoriaz'})
countries_resorts[1].push({id_resort: 207, nm_resort:'Chamonix'})
countries_resorts[1].push({id_resort: 249, nm_resort:'Chatel'})
countries_resorts[1].push({id_resort: 13, nm_resort:'Courchevel'})
countries_resorts[1].push({id_resort: 221, nm_resort:'Flaine'})
countries_resorts[1].push({id_resort: 14, nm_resort:'La Plagne'})
countries_resorts[1].push({id_resort: 42, nm_resort:'La Rosiere'})
countries_resorts[1].push({id_resort: 4, nm_resort:'Les Arcs'})
countries_resorts[1].push({id_resort: 226, nm_resort:'Les Carroz'})
countries_resorts[1].push({id_resort: 12, nm_resort:'Les Deux Alpes'})
countries_resorts[1].push({id_resort: 219, nm_resort:'Les Gets'})
countries_resorts[1].push({id_resort: 246, nm_resort:'Les Houches'})
countries_resorts[1].push({id_resort: 225, nm_resort:'Les Menuires'})
countries_resorts[1].push({id_resort: 2, nm_resort:'Meribel'})
countries_resorts[1].push({id_resort: 247, nm_resort:'Montgenevre'})
countries_resorts[1].push({id_resort: 243, nm_resort:'Samoens'})
countries_resorts[1].push({id_resort: 250, nm_resort:'Serre Chevalier'})
countries_resorts[1].push({id_resort: 15, nm_resort:'Tignes'})
countries_resorts[1].push({id_resort: 9, nm_resort:'Val d\'Isere '})
countries_resorts[1].push({id_resort: 8, nm_resort:'Val Thorens'})
countries_resorts[1].push({id_resort: 251, nm_resort:'Valloire'})
countries_resorts[1].push({id_resort: 248, nm_resort:'Valmorel'})
countries[7] = 'Austria';
countries_resorts[7] = [];
countries_resorts[7].push({id_resort: 30, nm_resort:'St Anton'})
countries[5] = 'USA';
countries_resorts[5] = [];
countries_resorts[5].push({id_resort: 22, nm_resort:'Aspen'})
countries_resorts[5].push({id_resort: 21, nm_resort:'Breckenridge'})
countries_resorts[5].push({id_resort: 29, nm_resort:'Park City'})
countries_resorts[5].push({id_resort: 20, nm_resort:'Vail'})
countries[6] = 'Canada';
countries_resorts[6] = [];
countries_resorts[6].push({id_resort: 27, nm_resort:'Banff'})
countries_resorts[6].push({id_resort: 25, nm_resort:'Whistler'})
countries[33] = 'Italy';
countries_resorts[33] = [];
countries_resorts[33].push({id_resort: 232, nm_resort:'Arabba'})
countries_resorts[33].push({id_resort: 238, nm_resort:'Cortina'})
countries_resorts[33].push({id_resort: 229, nm_resort:'Corvara & Colfosco'})
countries_resorts[33].push({id_resort: 203, nm_resort:'Courmayeur'})
countries_resorts[33].push({id_resort: 252, nm_resort:'La Thuile'})
countries_resorts[33].push({id_resort: 237, nm_resort:'La Villa'})
countries_resorts[33].push({id_resort: 206, nm_resort:'Madonna di Campiglio'})
countries_resorts[33].push({id_resort: 239, nm_resort:'San Cassiano'})
countries_resorts[33].push({id_resort: 230, nm_resort:'Selva Val Gardena'})
var id_resort_sel = id_resort_sel || 0;
function locationRestrictResorts() {
var id_country = $('#searchCountry :selected').val();
$('#searchResort').empty();
if (id_country == 0) {
$('#searchResort').append('');
} else {
$('#searchResort').append('');
$.each(countries_resorts[id_country], function(k,v) {
$('#searchResort').append('');
});
}
}
$(document).ready(function() {
locationRestrictResorts();
$('body').on('change', '#searchCountry',locationRestrictResorts);
});