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(''),n.append(i)),t=o.prev(),e=o.nextAll().not(".dropdown"),i=a(".dropdown-menu",i),o.hasClass("dropdown")||(r(e,i),r(o,i)),r(t,i))})):(o=n.parent().width(),t=0,n.children("li").each(function(){t+=a(this).outerWidth(!0)}),e=o-t,n.find(".dropdown-menu li").each(function(){if(!(a(this).data("width")<=e))return!1;a(this).insertBefore(n.find(".more")),e-=a(this).data("width")}),n.find(".dropdown-menu li").length||n.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()}));for(var i=0;i<11;i++)$("#sejours_mobile").append("");var didScroll,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()}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()}),$(function(){$("#temperature").slider({range:!0,min:-10,max:45,values:[10,30],slide:function(t,e){-10==e.values[0]&&45==e.values[1]?($("#temp").val("Peu importe"),$("#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)+" °C / "+$("#temperature").slider("values",1)+" °C"),$("#mintemp").val($("#temperature").slider("values",0)),$("#maxtemp").val($("#temperature").slider("values",1))}),$(function(){$("#temperature-mer").slider({range:!0,min:0,max:35,values:[0,35],slide:function(t,e){0==e.values[0]&&35==e.values[1]?($("#tempmer").val("Peu importe"),$("#tempmermin").val(""),$("#tempmermax").val("")):($("#tempmer").val(e.values[0]+" °C / "+e.values[1]+"°C"),$("#tempmermin").val(e.values[0]),$("#tempmermax").val(e.values[1]))}}),$("#tempmer").val("Peu importe"),$("#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}});var lastScrollTop=0,delta=5,navbarHeight=$("#menu-pays").outerHeight();function hasScrolled(){var t=$(this).scrollTop();Math.abs(lastScrollTop-t)<=delta||(lastScrollTop"+e.label+", "+e.pays:""+e.label+"",$("").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