function AlternativeFlightPartner(t,e,i,n){$("#"+t+" #alternative_form").is(":checked")&&$("#result_js_load_alternative_flight_redirect_"+t).load("/site/ajax.php?id_ajax=load_alternative_flight_redirect&departAllerIata="+$("#"+t+" #departAllerIata").val()+"&arriveeAllerIata="+$("#"+t+" #arriveeAllerIata").val()+"&dateAller="+$("#"+t+" #dateAller").val()+"&dateRetour="+$("#"+t+" #dateRetour").val()+"&adults="+$("#"+t+" #adults").val()+"&children="+$("#"+t+" #children").val()+"&infants="+$("#"+t+" #infants").val()+"&cabinclass="+$("#"+t+" #cabinclass").val()+"&page="+e+"&zone=moteur&categorie="+i+"&lang="+n)}function ScrollOnglet(t){$(".container_tabs .nav-tabs").scrollTo(t,100,{offset:function(){return{top:0,left:-50}}})}function change_graphique_pays(t,e){$("#graphiquesjs").html('

'),$(".nav.nav-tabs.villes li").removeClass("active"),$(".nav.nav-tabs.villes li#graph_"+t).addClass("active"),$("#graphiquesjs").load("/site/ajax.php?id_ajax=graphique_pays&ville_id="+t+"&pays_id="+e)}function change_meteo_mois_pays(t,e,i){$("#meteo_content").html('
'),$(".tabweather .nav.nav-tabs li").removeClass("active"),$(".tabweather .nav.nav-tabs li#ville_"+t).addClass("active"),$("#meteo_content").load("/site/ajax.php?id_ajax=meteo_pays_mois&ville_id="+t+"&mois_id="+e+"&pays_id="+i)}function change_meteo_mois_ville(t,e,i,n){$("#meteo_content").html('
'),$(".tabweather .nav.nav-tabs li").removeClass("active"),$(".tabweather .nav.nav-tabs li#periode_"+n).addClass("active"),$("#meteo_content").load("/site/ajax.php?id_ajax=meteo_ville_mois&ville_id="+t+"&mois_id="+e+"&pays_id="+i+"&periode="+n)}function change_graphique_hotels_pays(t,e){$("#graphiqueshotelsjs").html('
'),$(".nav.nav-tabs.categories li").removeClass("active"),$(".nav.nav-tabs.categories li#graph_"+t).addClass("active"),$("#graphiqueshotelsjs").load("/site/ajax.php?id_ajax=graphique_hotels_pays&nb_etoiles="+t+"&pays_id="+e)}function change_graphique_hotels_ville(t,e){$("#graphiqueshotelsjs").html('
'),$(".nav.nav-tabs.categories li").removeClass("active"),$(".nav.nav-tabs.categories li#graph_"+t).addClass("active"),$("#graphiqueshotelsjs").load("/site/ajax.php?id_ajax=graphique_hotels_ville&nb_etoiles="+t+"&ville_id="+e)}function change_graphique_flight_ville(t,e){$("#graphiquesflightjs").html('
'),$("#graphiquesflightjs").load("/site/ajax.php?id_ajax=graphique_flight_ville&provenance_id="+t+"&ville_id="+e)}!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(a){var g=a.scrollTo=function(t,e,i){return a(window).scrollTo(t,e,i)};function v(t){return!t.nodeName||-1!==a.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function e(t){return"function"==typeof t}function n(t){return e(t)||a.isPlainObject(t)?t:{top:t,left:t}}return g.defaults={axis:"xy",duration:0,limit:!0},a.fn.scrollTo=function(t,i,m){"object"==typeof i&&(m=i,i=0),"function"==typeof m&&(m={onAfter:m}),"max"===t&&(t=9e9),m=a.extend({},g.defaults,m),i=i||m.duration;var f=m.queue&&1n.top&&-sn.left&&-s");return s.each(n,function(t,e){"srcset"!==e.name&&e.name!==l||(e.value=h(e.value,i)),o.attr(e.name,e.value)}),t.replaceWith(o),o}function r(t,e,i){t=s("
").one("load",function(){i(!0)}).one("error",function(){i(!1)}).appendTo(t).attr("src",e);t.complete&&t.load()}function h(t,e){if(e){var i=t.split(",");t="";for(var n=0,o=i.length;n").attr({media:t.attr("data-media"),sizes:t.attr("data-sizes"),type:t.attr("data-type"),srcset:h(t.attr("data-srcset"),o)}).appendTo(t),r(t,o+t.attr(l),e),this.config("removeAttribute")&&t.removeAttr(l+" data-srcset data-media data-sizes data-type")):e(!1)):e(!1)})}(window.jQuery||window.Zepto),$(function(){$(".lazy").lazy({enableThrottle:!0,throttle:250})}),$(function(){$('[data-toggle="tooltip"]').tooltip()});for(var i=0;i<11;i++)$("#sejours_mobile").append("");var min_ext,max_ext,ext_min_default,ext_max_default,min_sea,max_sea,trs=$("#sejours_mobile div.media"),btnMore=$("#voirPlus"),trsLength=trs.length,currentIndex=3;function checkButton(){var t=$("#sejours_mobile div.media:visible").length;trsLength<=t?btnMore.hide():btnMore.show()}function CreerCookie(t,e){var i=new Date,n=new Date;n.setTime(i.getTime()+5184e5),document.cookie=t+"="+encodeURIComponent(e)+";expires="+n.toGMTString()+"; path=/"}function HideToolBar(t){return"unit"==t?($("#unit_bot_toolbar").fadeOut().remove(),CreerCookie("hide_unit_toolbar","yes"),!1):"money"==t?($("#money_bot_toolbar").fadeOut().remove(),CreerCookie("hide_money_toolbar","yes"),!1):void 0}function FormBudget(){return""!=$("#villepays_budget").val()||($("#villepays_budget").css({"background-color":"#FFB6C1"}),alert(trad_js_message_1),!1)}function FormVillePays(){return""!=$("#villepays").val()||($("#villepays").css({"background-color":"#FFB6C1"}),alert(trad_js_message_1),!1)}function FormVols(){return""!=$("#villepays_vols").val()||($("#villepays_vols").css({"background-color":"#FFB6C1"}),alert(trad_js_message_1),!1)}function FormRecherche(){return""!=$("#recherche").val()||($("#recherche").css({"background-color":"#FFB6C1"}),alert(trad_js_message_2),!1)}function FormContact(){return""==$("#nom").val()?($("#nom").css({"background-color":"#FFB6C1"}),alert(trad_js_message_3),!1):""==$("#email").val()?($("#email").css({"background-color":"#FFB6C1"}),alert(trad_js_message_4),!1):""==$("#sujet").val()?($("#sujet").css({"background-color":"#FFB6C1"}),alert(trad_js_message_5),!1):""!=$("#message").val()||($("#message").css({"background-color":"#FFB6C1"}),alert(trad_js_message_6),!1)}trs.hide(),trs.slice(0,3).show(),checkButton(),btnMore.click(function(t){t.preventDefault(),$("#sejours_mobile div.media").slice(currentIndex,currentIndex+3).show(),currentIndex+=3,checkButton()}),$(document).ready(function(){$(window).scroll(function(){300<$(this).scrollTop()?$(".bot_toolbar").fadeIn():$(".bot_toolbar").fadeOut()})}),$("body").on("click",function(t){$('[data-toggle="popover"]').each(function(){$(this).is(t.target)||0!==$(this).has(t.target).length||0!==$(".popover").has(t.target).length||$(this).popover("hide")})}),function(a){function r(t,e){t.each(function(){var t=a(this).outerWidth(!0);a(this).data("width",t)}),t.prependTo(e)}function e(o){var s,t,e,i=o.find("li"),n=i.first();n.outerHeight()s.top&&((i=o.find(".more")).length||(t=''+trad_js_plus+'',i=a(t),o.append(i)),t=n.prev(),e=n.nextAll().not(".dropdown"),i=a(".dropdown-menu",i),n.hasClass("dropdown")||(r(e,i),r(n,i)),r(t,i))})):(n=o.parent().width(),t=0,o.children("li").each(function(){t+=a(this).outerWidth(!0)}),e=n-t,o.find(".dropdown-menu li").each(function(){if(!(a(this).data("width")<=e))return!1;a(this).insertBefore(o.find(".more")),e-=a(this).data("width")}),o.find(".dropdown-menu li").length||o.find(".more").remove())}a.fn.responsiveTabs=function(){return this.each(function(){var t=a(this);e(t),a(window).resize(function(){e(t)})}),this}}(jQuery),$(function(){$(".nav-tabs").responsiveTabs(),$(".nav-tabs").css("visibility","visible"),$("#menu-pays, #menu-categories").css("overflow","visible"),$(".container_tabs").css("overflow","visible"),$(".nav-tabs").show()}),max_sea="C"==unite_temperature||""==unite_temperature?(min_ext=-10,max_ext=45,ext_min_default=10,ext_max_default=30,min_sea=0,35):(min_ext=10,max_ext=115,ext_min_default=50,ext_max_default=85,min_sea=32,95),$(function(){$("#temperature").slider({range:!0,min:min_ext,max:max_ext,values:[ext_min_default,ext_max_default],slide:function(t,e){-10==e.values[0]&&45==e.values[1]?($("#temp").val(trad_peuimporte),$("#mintemp").val(""),$("#maxtemp").val("")):($("#temp").val(e.values[0]+" °C / "+e.values[1]+"°C"),$("#mintemp").val(e.values[0]),$("#maxtemp").val(e.values[1]))}}),$("#temp").val($("#temperature").slider("values",0)+" °"+unite_temperature+" / "+$("#temperature").slider("values",1)+" °"+unite_temperature),$("#mintemp").val($("#temperature").slider("values",0)),$("#maxtemp").val($("#temperature").slider("values",1))}),$(function(){$("#temperature-mer").slider({range:!0,min:min_sea,max:max_sea,values:[min_sea,max_sea],slide:function(t,e){0==e.values[0]&&35==e.values[1]?($("#tempmer").val(trad_peuimporte),$("#tempmermin").val(""),$("#tempmermax").val("")):($("#tempmer").val(e.values[0]+" °"+unite_temperature+" / "+e.values[1]+"°"+unite_temperature),$("#tempmermin").val(e.values[0]),$("#tempmermax").val(e.values[1]))}}),$("#tempmer").val(trad_peuimporte),$("#tempmermin").val(""),$("#tempmermax").val("")}),$('a[href*="#"]:not([href="#"]):not([data-toggle]):not([data-slide])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var t=$(this.hash);if((t=t.length?t:$("[name="+this.hash.slice(1)+"]")).length)return $("html, body").animate({scrollTop:t.offset().top},1e3),!1}}),$("#villepays").length&&$(function(){$("#villepays").autocomplete({source:"/site/autocomplete.php?a=1&lng="+lang_site,minLength:2,focus:function(t,e){return $("#villepays").val(e.item.value),$("#villepays").css("background-color","#fff"),!1},select:function(t,e){return $("#villepays").css("background-color","#fff"),$("#villepays").val(e.item.value),!1}}).data("ui-autocomplete")._renderItem=function(t,e){var i;return i=""!=e.pays?""+e.label+", "+e.pays:""+e.label+"",$("").append('
'+i+"
").appendTo(t)}}),$("#villepays_budget").length&&$(function(){$("#villepays_budget").autocomplete({source:"/site/autocomplete.php?a=3&lng="+lang_site,minLength:2,focus:function(t,e){return $("#villepays_budget").val(e.item.value),$("#villepays_budget").css("background-color","#fff"),!1},select:function(t,e){return $("#villepays_budget").css("background-color","#fff"),$("#villepays_budget").val(e.item.value),!1}}).data("ui-autocomplete")._renderItem=function(t,e){var i;return i=""!=e.pays?""+e.label+", "+e.pays:""+e.label+"",$("").append('
'+i+"
").appendTo(t)}}),$("#villepays_vols").length&&$(function(){$("#villepays_vols").autocomplete({source:"/site/autocomplete.php?a=4&lng="+lang_site,minLength:2,focus:function(t,e){return $("#villepays_vols").val(e.item.value),$("#villepays_vols").css("background-color","#fff"),!1},select:function(t,e){return $("#villepays_vols").css("background-color","#fff"),$("#villepays_vols").val(e.item.value),!1}}).data("ui-autocomplete")._renderItem=function(t,e){var i;return i=""!=e.pays?""+e.label+", "+e.pays:""+e.label+"",$("").append('
'+i+"
").appendTo(t)}}),$(function(){$("#recherche").autocomplete({source:"/site/autocomplete.php?a=2&lng="+lang_site,minLength:2,focus:function(t,e){return!1},select:function(t,e){return $("#q_villepays").val(e.item.value),$("#q_rubrique").val(e.item.rubrique),$("#recherche").css("background-color","#fff"),null!=e.item.url?$(location).attr("href",e.item.url):$("#recherche_site").submit(),!1}}).autocomplete("instance")._renderItem=function(t,e){var i;return i=(i=""!=e.pays?""+e.label+" ("+e.pays+")":""+e.label+"")+" "+trad_in+" "+e.rubrique_label+"",$("").append('
'+i+"
").appendTo(t)}}),function(e){function i(t,e){var i,n;1