function ScrollOnglet(t){$(".container_tabs .nav-tabs").scrollTo(t,100,{offset:function(){return{top:0,left:-50}}})}function ScrollMenuPays(t){$("nav#menu-pays .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("/partir/ajax.php?id_ajax=graphique_pays&ville_id="+t+"&pays_id="+e)}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("/partir/ajax.php?id_ajax=graphique_hotels_pays&nb_etoiles="+t+"&pays_id="+e)}function change_graphique_hotels_subdivision(t,e){$("#graphiqueshotelsjs").html('

'),$(".nav.nav-tabs.categories li").removeClass("active"),$(".nav.nav-tabs.categories li#graph_"+t).addClass("active"),$("#graphiqueshotelsjs").load("/partir/ajax.php?id_ajax=graphique_hotels_subdivision&nb_etoiles="+t+"&subdivision_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("/partir/ajax.php?id_ajax=graphique_hotels_ville&nb_etoiles="+t+"&ville_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("/partir/ajax.php?id_ajax=meteo_pays_mois&ville_id="+t+"&mois_id="+e+"&pays_id="+i)}function change_meteo_mois_ville(t,e,i,o){$("#meteo_content").html('

'),$(".tabweather .nav.nav-tabs li").removeClass("active"),$(".tabweather .nav.nav-tabs li#periode_"+o).addClass("active"),$("#meteo_content").load("/partir/ajax.php?id_ajax=meteo_ville_mois&ville_id="+t+"&mois_id="+e+"&pays_id="+i+"&periode="+o)}function AlternativeFlightPartner(t,e,i,o){$("#"+t+" #alternative_form").is(":checked")&&$("#result_js_load_alternative_flight_redirect_"+t).load("/partir/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="+o)}!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 o(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&&1o.top&&-so.left&&-s");return s.each(o,function(t,e){"srcset"!==e.name&&e.name!==l||(e.value=h(e.value,i)),n.attr(e.name,e.value)}),t.replaceWith(n),n}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 o=0,n=i.length;o").attr({media:t.attr("data-media"),sizes:t.attr("data-sizes"),type:t.attr("data-type"),srcset:h(t.attr("data-srcset"),n)}).appendTo(t),r(t,n+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,threshold:1200,delay:1,onFinishedAll:function(){console.log("images toutes chargées.")}})}),$("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")})}),650<$(window).width()&&(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(n){var s,t,e,i=n.find("li"),o=i.first();o.outerHeight()s.top&&((i=n.find(".more")).length||(i=a('
  • ").append('
    '+i+"
    ").appendTo(t)}),$("#pays_guides").length&&($("#pays_guides").autocomplete({source:"/partir/autocomplete.php?a=5",minLength:2,focus:function(t,e){return $("#pays_guides").val(e.item.value),$("#pays_guides").css("background-color","#fff"),!1},select:function(t,e){return $("#pays_guides").css("background-color","#fff"),$("#pays_guides").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&&($("#villepays_budget").autocomplete({source:"/partir/autocomplete.php?a=3",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&&($("#villepays_vols").autocomplete({source:"/partir/autocomplete.php?a=4",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)}),$("#recherche").autocomplete({source:"/partir/autocomplete.php?a=2",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+"")+" dans "+e.rubrique_label+"",$("
  • ").append('
    '+i+"
    ").appendTo(t)}}),function(e){function i(t,e){var i,o;1