(function(b,c,e){var d=b.app,g=b.Backbone,f=g.Marionette,a=b._;d.DataManagement=(function(){var o={},i=new d.Router(),q=true,j={gtmPushParams:false},n={},k={refine:function(){var t={};t.data=l();t.process="refine";t.deleteData=Object.keys(n);s(t);d.mediator.publish("dataManagement:getMoteurData",t)}};var i=new d.Router({appRoutes:{":id":"refine",},controller:k});c(b).bind("hashchange",function(){var u=document.location.origin+document.location.pathname,t=u.indexOf(document.referrer)!=-1?true:false;if(t){var v=l();if(v&&a.isEmpty(v)){var w=m();d.mediator.publish("dataManagement:getMoteurData",w);n=a.clone(w)}}return});var l=function(){var x=new RegExp("(%2F)","g"),w={},v=b.location.hash.substring(1).replace(x,"/").split("&");for(var y=0,u=v.length;y<u;y++){var t=v[y].indexOf("="),z=decodeURI(v[y].substr((t+1),v[y].length)).replace(/\+/," ");if(z){w[v[y].substr(0,t)]=z}}return w};var m=function(C){c(".moteur-loader-content").fadeIn("slow");var w=new RegExp("(%2F)","g"),z={},B,x={},v=b.location.hash.split("#").length>1?b.location.hash.split("#")[1]:null;if(typeof rechercheParams!=="undefined"){c.extend(true,x,rechercheParams)}if(typeof moteurParams!=="undefined"){c.extend(true,x,moteurParams)}if(KV.storage.isAvailable()){KV.storage.getItem(("dataSearchObj"),function(D){if(D){z.departureCities=D.villeDepartId?D.villeDepartId:"1188";if(D.dateDepart){z.departureDate=D.dateDepart}if(D.dateDepartRange){z.departureDateRange=D.dateDepartRange}if(D.theme){z.theme=D.theme}if(D.themespace){z.themespace=D.themespace}}})}if(z&&z.departureDate){var A=moment(),u=moment(z.departureDate,"DD/MM/YYYY");if(moment(u).isBefore(A)&&KV&&KV.storage&&x&&x.departureDate){x.departureDate=A.format("DD/MM/YYYY");KV.storage.removeItem("dataSearchObj");z=null}}if(z){c.extend(true,x,z)}if(x&&x.departureDate&&x.themespace&&x.themespace==="voyage-derniere-minute"){var y=new Date();y=(y.getDate()+1)+"/"+(y.getMonth()+1)+"/"+y.getFullYear();x.departureDate=y}B=l();if(a.isEmpty(B)){x.dontPushHistory=true}c.extend(true,x,B);if(C){c.extend(true,x,C)}for(var t in x){if(x.hasOwnProperty(t)){if(x[t]!==""){t=t.replace("%5B","[").replace("%3E",">");if(a.isArray(x[t])){x[t]=x[t][0]}}else{delete x[t]}}}var A=moment().format("DD/MM/YYYY");if(x.departureDate&&moment(x.departureDate).isBefore(A)){x.departureDate=A}if(x.page==="hp"){delete x.departureDate}if(x&&x.destinationCities){delete C.destinationZones}h(x);return x};var h=function(t){var u=typeof t!="string"?c.param(t,true):t;c(".overlay").fadeIn();c(".loader-content").fadeIn("slow");c(".kv-Results-container").addClass("kv-Results-container--loading");if(!t.dontPushHistory){i.navigate(u,{trigger:false})}else{delete t.dontPushHistory}c.ajax({type:"GET",contentType:"application/json",data:u,dataType:"json",url:rootPath+"ajax/getRecherche/",success:function(w){var v=w.moteurAffinageDataHolder.destinationFormalites===null?a.omit(w.moteurAffinageDataHolder,"destinationFormalites"):w.moteurAffinageDataHolder;d.mediator.publish("dataManagement:setSejlistData",w.sejlistDataHolder);d.mediator.publish("dataManagement:setPaginationData",w.paginationDataHolder);d.mediator.publish("dataManagement:setAffinageData",v);d.mediator.publish("dataManagement:setMapboxData",w.sejlistDataHolder.produitDataHolders);var x={result:{nombreResultatTotal:w.sejlistDataHolder.nombreResultatTotal,completionProduitDataHoldersTotal:w.sejlistDataHolder.completionProduitDataHolders!==null?w.sejlistDataHolder.completionProduitDataHolders.length:0}};if(!q){x.result.numeroPageSelect=w.paginationDataHolder.numeroPageSelect;d.mediator.publish("taggageOmniture:sejlist:productList",x)}else{x._prop=typeof _prop!=="undefined"?_prop:{};d.mediator.publish("taggageOmniture:sejlist:firstPush",x);q=false}if(j.gtmPushParams&&typeof dataLayer!=="undefined"){d.mediator.publish("taggageGTM:sejlist",t,dataLayer)}c(".kv-Results-container").removeClass("kv-Results-container--loading");c(".overlay").hide();c(".loader-content").hide();c(".moteur-loader-content").fadeOut("slow");d.mediator.publish("sejlist:ready")}})};var r=function(u,t){c.ajax({type:"GET",url:t,data:u,traditional:true,success:function(x){var w=x;if(w.indexOf("http")===-1){w=w.substring(1,x.length)}var y=decodeURIComponent(c.param(u,true));var v=d.config.rootPath.replace("/v2/","/");if(w.indexOf("http")===-1){if(d.WebApp){if(!o.settings.domain){b.location=v+w+d.WebApp.Config.url.symbole+y}else{if(o.settings.redirectionProtocol&&o.settings.domain){b.top.location.href=o.settings.redirectionProtocol+"://"+o.settings.domain+w+d.WebApp.Config.url.symbole+y}else{b.top.location.href=b.top.location.protocol+"//"+d.WebApp.Config.httpDomain+w+d.WebApp.Config.url.symbole+y}}}else{d.log("[Moteur:sendForm] app.WebApp n'est pas definie",d.log.WARN)}}else{b.location=w+d.WebApp.Config.url.symbole+y}if(b.location.pathname===v+w){b.location.reload(true)}c(".loading").removeClass("loading")},error:function(w,v){d.log("[Moteur:sendForm:Errors] erros: "+v,d.log.ERROR)}})};var s=function(B){var u=B.process||null,y=B.data||{},z=B.deleteData||[],x={};if(!y.pageNumber){z.push("pageNumber")}if(y&&y.moteur){d.mediator.publish("Onglet:reload");if(n){if(n.tempThemespace){z.push("themespace")}if(n.tempTheme){z.push("theme")}}}n=a.omit(n,z);if(n.destinationZones&&y&&y.destinationZones){n.destinationZones=y.destinationZones}c.extend(true,n,y);var v=["departureCities","priceRange","departureDate","departureDateRange","numberOfNightsRanges","theme","moteur","themespace","moteurExp","hotelCategories"];if(B.acceptAllDestinationParams){if(n.destinationCities){v.push("destinationCities")}if(n.destinationZones){v.push("destinationZones")}if(n.destinationCountries){v.push("destinationCountries")}if(n.logementIds){v.push("logementIds")}}else{if(n.destinationZones){v.push("destinationZones")}else{if(n.destinationCities){v.push("destinationCities")}else{if(n.destinationCountries){v.push("destinationCountries")}else{if(n.logementIds){v.push("logementIds")}}}}}if(n.partner){n.moteurId="partner";v.push("moteurId")}if(u){switch(u){case"refine":var A={};c.extend(true,A,a.omit(n,"numberByPage","tempThemespace","tempTheme"));d.mediator.publish("dataManagement:getMoteurData",{data:A});h(A);break;case"redirection":x=a.pick(n,v);var t=rootPath+"ajax/sejlist/urlcanonical/";d.mediator.publish("moteur:params",x);d.mediator.publish("handleSearchEngineEvent:clickSearch",x);r(x,t);break;default:return}}if(typeof n.departureDate==="string"){var w=n.departureDate.split("/").reverse().join("/");if(typeof dataLayer!=="undefined"){dataLayer.push({rechDateDepart:w,event:"rechDateDepartLoad"})}}};var p=a.bind(function(){d.mediator.subscribe("dataManagement:getSejlistData",m);d.mediator.subscribe("dataManagement:initGetSejlistData",m);d.mediator.subscribe("dataManagement:dataManagement",s)},o);o.init=function(t){var u={};d.log("[DataManagement:init] initialisation du DataManagement.",d.log.INFO);o.settings=c.extend(true,u,t);p()};return o})()})(window,jQuery);(function(){var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d='\r\n\r\n<div class="kv-MeilleuresVentes-list">\r\n';f=g["if"].call(i,(i!=null?i.topVentesFirstList:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"</div>"},"1":function(i,g,e,h){var f,d="";f=g.each.call(i,(i!=null?i.topVentesFirstList:i),{name:"each",hash:{},fn:this.program(2,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d},"2":function(k,h,e,i){var g,f=h.helperMissing,j=this.escapeExpression,d='   <div class="kv-MeilleureVentes-list--container">\r\n    <div class="kv-MeilleuresVentes-number">'+j(((h.math||(k&&k.math)||f).call(k,(i&&i.index),1,"+i",{name:"math",hash:{},data:i})))+'</div>\r\n    <div class="kv-MeilleuresVentes-description-container">\r\n     <div class="kv-MeilleuresVentes-description">\r\n';g=h["if"].call(k,(k!=null?k.ligne1:k),{name:"if",hash:{},fn:this.program(3,i),inverse:this.noop,data:i});if(g!=null){d+=g}d+="      ";g=h["if"].call(k,(k!=null?k.othersdetails:k),{name:"if",hash:{},fn:this.program(6,i),inverse:this.noop,data:i});if(g!=null){d+=g}d+='\r\n     </div>\r\n     <div class="kv-MeilleuresVentes-price">\r\n      <span>d&egrave;s </span>\r\n      <span>';g=((h.a||(k&&k.a)||f).call(k,(i&&i.root),{name:"a",hash:{"class":("kv-MeilleuresVentes-price-container"),rel:("nofollow"),href:((k!=null?k.linkProduct:k))},fn:this.program(9,i),inverse:this.noop,data:i}));if(g!=null){d+=g}return d+"</span>\r\n      <span>&euro;</span>\r\n      <span>TTC</span>\r\n     </div>\r\n    </div>\r\n   </div>\r\n"},"3":function(j,h,e,i){var g,f=h.helperMissing,d='      <div class="kv-MeilleuresVentes-destination">\r\n';g=((h.a||(j&&j.a)||f).call(j,(i&&i.root),{name:"a",hash:{rel:("nofollow"),href:((j!=null?j.linkProduct:j))},fn:this.program(4,i),inverse:this.noop,data:i}));if(g!=null){d+=g}return d+"      </div>\r\n"},"4":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"        "+i(((f=(f=g.ligne1||(k!=null?k.ligne1:k))!=null?f:e),(typeof f===j?f.call(k,{name:"ligne1",hash:{},data:h}):f)))+"\r\n"},"6":function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='<div class="kv-MeilleuresVentes-hotel">'+i(((f=(f=e.othersdetails||(m!=null?m.othersdetails:m))!=null?f:l),(typeof f===g?f.call(m,{name:"othersdetails",hash:{},data:j}):f)));d=e["if"].call(m,(m!=null?m.stars:m),{name:"if",hash:{},fn:this.program(7,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+"</div>"},"7":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return" "+i(((f=(f=g.stars||(k!=null?k.stars:k))!=null?f:e),(typeof f===j?f.call(k,{name:"stars",hash:{},data:h}):f)))+"<sup>*</sup>"},"9":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return i(((f=(f=g.price||(k!=null?k.price:k))!=null?f:e),(typeof f===j?f.call(k,{name:"price",hash:{},data:h}):f)))},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.seoHPMeilleuresVentes=c;var a=Handlebars.partials=Handlebars.partials||{};a.seoHPMeilleuresVentes=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j,n){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='\r\n\r\n<div class="bloc-image">\r\n <img class="vignette" src="'+i(((f=(f=e.image||(m!=null?m.image:m))!=null?f:l),(typeof f===g?f.call(m,{name:"image",hash:{},data:j}):f)))+'" alt="">\r\n <div class="logo-recommandation">\r\n  <div></div>\r\n  <p>vous recommande</p>\r\n </div>\r\n</div>\r\n\r\n<div class="list-recommandation">\r\n';d=e["if"].call(m,(m!=null?m.topVentesFirstList:m),{name:"if",hash:{},fn:this.program(1,j,n),inverse:this.noop,data:j});if(d!=null){h+=d}h+=" \r\n";d=e["if"].call(m,(m!=null?m.topVentesSecondList:m),{name:"if",hash:{},fn:this.program(10,j,n),inverse:this.noop,data:j});if(d!=null){h+=d}return h+"</div>"},"1":function(i,g,e,h){var f,d="  <ul>\r\n";f=g.each.call(i,(i!=null?i.topVentesFirstList:i),{name:"each",hash:{},fn:this.program(2,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"  </ul>\r\n"},"2":function(k,h,e,i){var g,f=h.helperMissing,j=this.escapeExpression,d='    <li>\r\n     <span class="numerotation">'+j(((h.math||(k&&k.math)||f).call(k,(i&&i.index),1,"+i",{name:"math",hash:{},data:i})))+"</span>\r\n";g=((h.a||(k&&k.a)||f).call(k,(i&&i.root),{name:"a",hash:{rel:("nofollow"),href:((k!=null?k.linkProduct:k))},fn:this.program(3,i),inverse:this.noop,data:i}));if(g!=null){d+=g}d+='      <span class="hotel">';g=h["if"].call(k,(k!=null?k.othersdetails:k),{name:"if",hash:{},fn:this.program(6,i),inverse:this.noop,data:i});if(g!=null){d+=g}d+="</span>\r\n";g=((h.a||(k&&k.a)||f).call(k,(i&&i.root),{name:"a",hash:{rel:("nofollow"),href:((k!=null?k.linkProduct:k))},fn:this.program(8,i),inverse:this.noop,data:i}));if(g!=null){d+=g}return d+"    </li>\r\n"},"3":function(i,g,e,h){var f,d='      <span class="desti">';f=g["if"].call(i,(i!=null?i.ligne1:i),{name:"if",hash:{},fn:this.program(4,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"</span>\r\n"},"4":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return" "+i(((f=(f=g.ligne1||(k!=null?k.ligne1:k))!=null?f:e),(typeof f===j?f.call(k,{name:"ligne1",hash:{},data:h}):f)))+" "},"6":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return" "+i(((f=(f=g.othersdetails||(k!=null?k.othersdetails:k))!=null?f:e),(typeof f===j?f.call(k,{name:"othersdetails",hash:{},data:h}):f)))+" "},"8":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'         <span class="des">d&egrave;s</span>\r\n      <span class="prix">'+i(((f=(f=g.price||(k!=null?k.price:k))!=null?f:e),(typeof f===j?f.call(k,{name:"price",hash:{},data:h}):f)))+"&euro;</span>\r\n"},"10":function(j,g,e,h,i){var f,d="  <ul>\r\n";f=g.each.call(j,(j!=null?j.topVentesSecondList:j),{name:"each",hash:{},fn:this.program(11,h,i),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"  </ul>\r\n"},"11":function(k,e,i,h,l){var d,j=e.helperMissing,g=this.escapeExpression,f='                <li>\r\n                    <span class="numerotation">'+g(((e.math||(k&&k.math)||j).call(k,(h&&h.index),(l[2]!=null?l[2].indexColonneDroite:l[2]),"+i",{name:"math",hash:{},data:h})))+"</span>\r\n";d=((e.a||(k&&k.a)||j).call(k,(h&&h.root),{name:"a",hash:{rel:("nofollow"),href:((k!=null?k.linkProduct:k))},fn:this.program(12,h,l),inverse:this.noop,data:h}));if(d!=null){f+=d}return f+"                </li>\r\n"},"12":function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='                        <span class="desti">';d=e["if"].call(m,(m!=null?m.ligne1:m),{name:"if",hash:{},fn:this.program(4,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='</span>\r\n                        <span class="hotel">';d=e["if"].call(m,(m!=null?m.othersdetails:m),{name:"if",hash:{},fn:this.program(6,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+'</span>\r\n                        <span class="des">d&egrave;s</span>\r\n                        <span class="prix">'+i(((f=(f=e.price||(m!=null?m.price:m))!=null?f:l),(typeof f===g?f.call(m,{name:"price",hash:{},data:j}):f)))+"&euro;</span>\r\n"},useData:true,useDepths:true});var b=Handlebars.templates=Handlebars.templates||{};b.seoTopVentes=c;var a=Handlebars.partials=Handlebars.partials||{};a.seoTopVentes=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d='\r\n\r\n<div class="kv-TopSells">\r\n <h2>TOP VENTES</h2>\r\n <div class="kv-TopSells-title">\r\n  <h3>S&Eacute;JOURS</h3>\r\n  <h3>CIRCUITS</h3>\r\n </div>\r\n <div class="kv-TopSells-container">\r\n  <ul>\r\n';f=g["if"].call(i,(i!=null?i.topVentesFirstList:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+="  </ul>\r\n  <ul>\r\n";f=g["if"].call(i,(i!=null?i.topVentesSecondList:i),{name:"if",hash:{},fn:this.program(14,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"  </ul>\r\n </div>\r\n</div>"},"1":function(i,g,e,h){var f,d="";f=g.each.call(i,(i!=null?i.topVentesFirstList:i),{name:"each",hash:{},fn:this.program(2,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d},"2":function(j,h,e,i){var g,f=h.helperMissing,d="     <li>\r\n      <div>\r\n       ";g=((h.a||(j&&j.a)||f).call(j,(i&&i.root),{name:"a",hash:{rel:("nofollow"),href:((j!=null?j.linkProduct:j))},fn:this.program(3,i),inverse:this.noop,data:i}));if(g!=null){d+=g}d+="\r\n       ";g=h["if"].call(j,(j!=null?j.ligne1:j),{name:"if",hash:{},fn:this.program(5,i),inverse:this.noop,data:i});if(g!=null){d+=g}d+="\r\n       ";g=h["if"].call(j,(j!=null?j.othersdetails:j),{name:"if",hash:{},fn:this.program(8,i),inverse:this.noop,data:i});if(g!=null){d+=g}d+='\r\n       <p class="kv-TopSells-container-price">';g=((h.a||(j&&j.a)||f).call(j,(i&&i.root),{name:"a",hash:{rel:("nofollow"),href:((j!=null?j.linkProduct:j))},fn:this.program(12,i),inverse:this.noop,data:i}));if(g!=null){d+=g}return d+"</p>\r\n      </div>\r\n     </li>\r\n"},"3":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"<img src="+i(((f=(f=g.urlToPicture||(k!=null?k.urlToPicture:k))!=null?f:e),(typeof f===j?f.call(k,{name:"urlToPicture",hash:{},data:h}):f)))+" alt="+i(((f=(f=g.ligne1||(k!=null?k.ligne1:k))!=null?f:e),(typeof f===j?f.call(k,{name:"ligne1",hash:{},data:h}):f)))+" />"},"5":function(j,h,e,i){var g,f=h.helperMissing,d='<p class="kv-TopSells-container-title">';g=((h.a||(j&&j.a)||f).call(j,(i&&i.root),{name:"a",hash:{rel:("nofollow"),href:((j!=null?j.linkProduct:j))},fn:this.program(6,i),inverse:this.noop,data:i}));if(g!=null){d+=g}return d+"</p>"},"6":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return i(((f=(f=g.ligne1||(k!=null?k.ligne1:k))!=null?f:e),(typeof f===j?f.call(k,{name:"ligne1",hash:{},data:h}):f)))},"8":function(j,h,e,i){var g,f=h.helperMissing,d='<p class="kv-TopSells-container-hotel">';g=((h.a||(j&&j.a)||f).call(j,(i&&i.root),{name:"a",hash:{rel:("nofollow"),href:((j!=null?j.linkProduct:j))},fn:this.program(9,i),inverse:this.noop,data:i}));if(g!=null){d+=g}return d+"</p>"},"9":function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h=i(((f=(f=e.othersdetails||(m!=null?m.othersdetails:m))!=null?f:l),(typeof f===g?f.call(m,{name:"othersdetails",hash:{},data:j}):f)));d=e["if"].call(m,(m!=null?m.stars:m),{name:"if",hash:{},fn:this.program(10,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h},"10":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return" <span>"+i(((f=(f=g.stars||(k!=null?k.stars:k))!=null?f:e),(typeof f===j?f.call(k,{name:"stars",hash:{},data:h}):f)))+"</span>"},"12":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"d&egrave;s <span>"+i(((f=(f=g.price||(k!=null?k.price:k))!=null?f:e),(typeof f===j?f.call(k,{name:"price",hash:{},data:h}):f)))+"<sup>&euro;</sup></span>"},"14":function(i,g,e,h){var f,d="";f=g.each.call(i,(i!=null?i.topVentesSecondList:i),{name:"each",hash:{},fn:this.program(2,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.seoTopVentesFram=c;var a=Handlebars.partials=Handlebars.partials||{};a.seoTopVentesFram=c})();(function(){var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(h,f,d,g){var e;e=f["if"].call(h,(h!=null?h.src:h),{name:"if",hash:{},fn:this.program(1,g),inverse:this.noop,data:g});if(e!=null){return e}else{return""}},"1":function(n,e,l,k){var d,f,g="function",m=e.helperMissing,j=this.escapeExpression,h=' <img src="'+j(((f=(f=e.src||(n!=null?n.src:n))!=null?f:m),(typeof f===g?f.call(n,{name:"src",hash:{},data:k}):f)))+'"';d=e["if"].call(n,(n!=null?n.alt:n),{name:"if",hash:{},fn:this.program(2,k),inverse:this.noop,data:k});if(d!=null){h+=d}return h+"/>\r\n"},"2":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return' alt="'+j(((f=(f=g.alt||(l!=null?l.alt:l))!=null?f:e),(typeof f===k?f.call(l,{name:"alt",hash:{},data:h}):f)))+'"'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.blockImage=c;var a=Handlebars.partials=Handlebars.partials||{};a.blockImage=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(j,g,e,h){var f,d='<div class="kv-overlay"></div>\r\n<div class="kv-modal">\r\n <div class="kv-popin-container" class="kv-modalStyle">\r\n     <div class="kv-topBar">\r\n         <div class="kv-closePopin">Fermer <span class="kv-closeButton">x</span>\r\n         </div>\r\n     </div>\r\n';f=this.invokePartial(e.blockModalVideo,"     ","blockModalVideo",j,undefined,g,e,h);if(f!=null){d+=f}return d+" </div>\r\n</div>"},usePartial:true,useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.blockModal=c;var a=Handlebars.partials=Handlebars.partials||{};a.blockModal=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return'<video controls width="800" autoplay> \r\n <source src='+j(((f=(f=g.videoUrl||(l!=null?l.videoUrl:l))!=null?f:e),(typeof f===k?f.call(l,{name:"videoUrl",hash:{},data:h}):f)))+">\r\n\r\n    Désolé, votre navigateur ne prend pas en charge cette vidéo.\r\n</video>"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.blockModalVideo=c;var a=Handlebars.partials=Handlebars.partials||{};a.blockModalVideo=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(j,g,e,h){var f,d='<span class="kv-scroll ';f=g["if"].call(j,(j!=null?j.classSup:j),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+=" ";f=g["if"].call(j,(j!=null?j.active:j),{name:"if",hash:{},fn:this.program(3,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+'"></span>'},"1":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return j(((f=(f=g.classSup||(l!=null?l.classSup:l))!=null?f:e),(typeof f===k?f.call(l,{name:"classSup",hash:{},data:h}):f)))},"3":function(g,e,d,f){return"kv-displayArrow"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b["ko/blockArrow"]=c;var a=Handlebars.partials=Handlebars.partials||{};a["ko/blockArrow"]=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(g,e,d,f){return'<div id="kv-manualControls-prev" class="kv-manualControls-arrow kv-manualControls-prev"></div>\r\n<div id="kv-manualControls-content"></div>\r\n<div id="kv-manualControls-next" class="kv-manualControls-arrow kv-manualControls-next"></div>'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b["ko/blockManualControls"]=c;var a=Handlebars.partials=Handlebars.partials||{};a["ko/blockManualControls"]=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(h,f,d,g){var e;e=f["if"].call(h,(h!=null?h.label:h),{name:"if",hash:{},fn:this.program(1,g),inverse:this.noop,data:g});if(e!=null){return e}else{return""}},"1":function(m,e,k,j){var d,f,g="function",l=e.helperMissing,h=' <span class="';d=e["if"].call(m,(m!=null?m.active:m),{name:"if",hash:{},fn:this.program(2,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+=" ";d=e["if"].call(m,(m!=null?m.viewId:m),{name:"if",hash:{},fn:this.program(4,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+=" ";d=e["if"].call(m,(m!=null?m.classSup:m),{name:"if",hash:{},fn:this.program(6,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='" ';d=e["if"].call(m,(m!=null?m.url:m),{name:"if",hash:{},fn:this.program(8,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+=">\r\n  ";d=e["if"].call(m,(m!=null?m.nbImages:m),{name:"if",hash:{},fn:this.program(10,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+=" ";d=((f=(f=e.label||(m!=null?m.label:m))!=null?f:l),(typeof f===g?f.call(m,{name:"label",hash:{},data:j}):f));if(d!=null){h+=d}return h+"\r\n </span>\r\n"},"2":function(g,e,d,f){return"active"},"4":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return j(((f=(f=g.viewId||(l!=null?l.viewId:l))!=null?f:e),(typeof f===k?f.call(l,{name:"viewId",hash:{},data:h}):f)))},"6":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return j(((f=(f=g.classSup||(l!=null?l.classSup:l))!=null?f:e),(typeof f===k?f.call(l,{name:"classSup",hash:{},data:h}):f)))},"8":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return'data-url="'+j(((f=(f=g.url||(l!=null?l.url:l))!=null?f:e),(typeof f===k?f.call(l,{name:"url",hash:{},data:h}):f)))+'"'},"10":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return j(((f=(f=g.nbImages||(l!=null?l.nbImages:l))!=null?f:e),(typeof f===k?f.call(l,{name:"nbImages",hash:{},data:h}):f)))},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b["ko/blockModalItem"]=c;var a=Handlebars.partials=Handlebars.partials||{};a["ko/blockModalItem"]=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(k,h,e,j){var g,f=h.helperMissing,d="<section ";g=h["if"].call(k,(k!=null?k.idMedia:k),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(g!=null){d+=g}d+=' class="';g=h["if"].call(k,(k!=null?k.activeView:k),{name:"if",hash:{},fn:this.program(3,j),inverse:this.noop,data:j});if(g!=null){d+=g}d+='">\r\n';g=((h.compare||(k&&k.compare)||f).call(k,(k!=null?k.activeView:k),"kv-map",{name:"compare",hash:{operator:("==")},fn:this.program(5,j),inverse:this.noop,data:j}));if(g!=null){d+=g}g=((h.compare||(k&&k.compare)||f).call(k,(k!=null?k.activeView:k),"kv-mapbox",{name:"compare",hash:{operator:("==")},fn:this.program(8,j),inverse:this.noop,data:j}));if(g!=null){d+=g}g=((h.compare||(k&&k.compare)||f).call(k,(k!=null?k.activeView:k),"kv-photos",{name:"compare",hash:{operator:("==")},fn:this.program(10,j),inverse:this.noop,data:j}));if(g!=null){d+=g}g=h["if"].call(k,(k!=null?k.manualControlsRegion:k),{name:"if",hash:{},fn:this.program(12,j),inverse:this.noop,data:j});if(g!=null){d+=g}return d+"</section>"},"1":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return'id="'+j(((f=(f=g.idMedia||(l!=null?l.idMedia:l))!=null?f:e),(typeof f===k?f.call(l,{name:"idMedia",hash:{},data:h}):f)))+'"'},"3":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return j(((f=(f=g.activeView||(l!=null?l.activeView:l))!=null?f:e),(typeof f===k?f.call(l,{name:"activeView",hash:{},data:h}):f)))},"5":function(j,g,e,h){var f,d='  <img src="';f=g["if"].call(j,(j!=null?j.imageMap:j),{name:"if",hash:{},fn:this.program(6,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+'"/>\r\n'},"6":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return j(((f=(f=g.imageMap||(l!=null?l.imageMap:l))!=null?f:e),(typeof f===k?f.call(l,{name:"imageMap",hash:{},data:h}):f)))},"8":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return'  <div id="'+j(((f=(f=g.mapBoxElementID||(l!=null?l.mapBoxElementID:l))!=null?f:e),(typeof f===k?f.call(l,{name:"mapBoxElementID",hash:{},data:h}):f)))+'"></div>\r\n'},"10":function(g,e,d,f){return'  <div id="kv-modal-slideshow" class="kv-slider"></div>\r\n'},"12":function(g,e,d,f){return'  <div id="kv-manualControls-container"></div>\r\n'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b["ko/blockModalMedia"]=c;var a=Handlebars.partials=Handlebars.partials||{};a["ko/blockModalMedia"]=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(j,g,e,h){var f,d='<section id="kv-js-threesixty" class="';f=g["if"].call(j,(j!=null?j.activeView:j),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+='">\r\n <div class="kv-threesixty-content">\r\n     <div id="kv-threesixty-container"></div>\r\n     <div id="kv-threesixty-menu-container">\r\n      <div id="kv-scroll-up" ';f=g["if"].call(j,(j!=null?j.activeArrows:j),{name:"if",hash:{},fn:this.program(3,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+'></div>\r\n      <div id="kv-threesixty-menu">\r\n       <div id="kv-threesixty-menu-pos"></div>\r\n      </div>\r\n      <div id="kv-scroll-down"></div>\r\n     </div>\r\n    </div>\r\n</section>'},"1":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return j(((f=(f=g.activeView||(l!=null?l.activeView:l))!=null?f:e),(typeof f===k?f.call(l,{name:"activeView",hash:{},data:h}):f)))},"3":function(g,e,d,f){return'class="kv-activeArrows"'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b["ko/blockModalThreesixty"]=c;var a=Handlebars.partials=Handlebars.partials||{};a["ko/blockModalThreesixty"]=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(h,f,d,g){var e;e=f["if"].call(h,(h!=null?h.hasFlash:h),{name:"if",hash:{},fn:this.program(1,g),inverse:this.program(4,g),data:g});if(e!=null){return e}else{return""}},"1":function(j,g,e,h){var f,d=' <embed width="536" height="454" ';f=g["if"].call(j,(j!=null?j.url:j),{name:"if",hash:{},fn:this.program(2,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+' id="threesixty-swf-container" quality="high" type="application/x-shockwave-flash">\r\n\r\n'},"2":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return'src="'+j(((f=(f=g.url||(l!=null?l.url:l))!=null?f:e),(typeof f===k?f.call(l,{name:"url",hash:{},data:h}):f)))+'"'},"4":function(j,g,e,h){var f,d="\r\n";f=g["if"].call(j,(j!=null?j.isIe:j),{name:"if",hash:{},fn:this.program(5,h),inverse:this.program(7,h),data:h});if(f!=null){d+=f}return d},"5":function(g,e,d,f){return"  <p style='color:black;padding:5px;font-size: 12px;margin-top: 100px;line-height: 18px;'>\r\n   Si vous rencontrez des probl&egrave;mes d'affichage, merci d'activer ou d'installer Adobe Flash en cliquant ici <a target='_blank' href='https://get.adobe.com/fr/flashplayer/otherversions/'>https://get.adobe.com/fr/flashplayer/</a>\r\n  </p>\r\n"},"7":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return'  <embed width="'+j(((f=(f=g.width||(l!=null?l.width:l))!=null?f:e),(typeof f===k?f.call(l,{name:"width",hash:{},data:h}):f)))+'" height="'+j(((f=(f=g.height||(l!=null?l.height:l))!=null?f:e),(typeof f===k?f.call(l,{name:"height",hash:{},data:h}):f)))+'" src="" id="videos_jwplayer-swf-container" quality="high" type="application/x-shockwave-flash">\r\n \r\n'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b["ko/blockModalThreesixtyContent"]=c;var a=Handlebars.partials=Handlebars.partials||{};a["ko/blockModalThreesixtyContent"]=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(j,g,e,h){var f,d='<div id="kv-block-video" class="kv-block-video ';f=g["if"].call(j,(j!=null?j.display3Pictures:j),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+='">\r\n';f=g["if"].call(j,(j!=null?j.display3Pictures:j),{name:"if",hash:{},fn:this.program(3,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+='    <div id="kv-main-slideshow" class="kv-js-slider kv-slider"></div>\r\n    <div id="kv-video-menu" class="kv-Video-menu"></div>\r\n';f=g["if"].call(j,(j!=null?j.displayMap:j),{name:"if",hash:{},fn:this.program(5,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"</div>"},"1":function(g,e,d,f){return"kv-virage"},"3":function(g,e,d,f){return'  <div id="kv-first-image" class="kv-js-slider"></div>\r\n'},"5":function(k,h,e,j){var g,f=h.helperMissing,d="";g=((h.ifAND||(k&&k.ifAND)||f).call(k,(k!=null?k.logementLattitude:k),(k!=null?k.logementLongitude:k),{name:"ifAND",hash:{},fn:this.program(6,j),inverse:this.program(8,j),data:j}));if(g!=null){d+=g}return d},"6":function(g,e,d,f){return'      <div class="kv-gmap kv-show-map">\r\n       <span>VOIR LA CARTE</span>\r\n      </div>\r\n'},"8":function(k,h,e,j){var g,f=h.helperMissing,d="";g=((h.ifAND||(k&&k.ifAND)||f).call(k,(k!=null?k.versionCircuit:k),(k!=null?k.noGmap:k),{name:"ifAND",hash:{},fn:this.program(9,j),inverse:this.noop,data:j}));if(g!=null){d+=g}return d},"9":function(g,e,d,f){return'       <div class="kv-map kv-show-map">\r\n        <span>VOIR LA CARTE</span>\r\n       </div>\r\n'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b["ko/blockMulti"]=c;var a=Handlebars.partials=Handlebars.partials||{};a["ko/blockMulti"]=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(h,f,d,g){var e;e=f["if"].call(h,(h!=null?h.src:h),{name:"if",hash:{},fn:this.program(1,g),inverse:this.noop,data:g});if(e!=null){return e}else{return""}},"1":function(n,e,l,k){var d,f,g="function",m=e.helperMissing,j=this.escapeExpression,h=' <img src="'+j(((f=(f=e.src||(n!=null?n.src:n))!=null?f:m),(typeof f===g?f.call(n,{name:"src",hash:{},data:k}):f)))+'"';d=e["if"].call(n,(n!=null?n.imageMinitature:n),{name:"if",hash:{},fn:this.program(2,k),inverse:this.noop,data:k});if(d!=null){h+=d}d=e["if"].call(n,(n!=null?n.alt:n),{name:"if",hash:{},fn:this.program(4,k),inverse:this.noop,data:k});if(d!=null){h+=d}return h+"/>\r\n"},"2":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return' data-mini="'+j(((f=(f=g.imageMinitature||(l!=null?l.imageMinitature:l))!=null?f:e),(typeof f===k?f.call(l,{name:"imageMinitature",hash:{},data:h}):f)))+'"'},"4":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return' alt="'+j(((f=(f=g.alt||(l!=null?l.alt:l))!=null?f:e),(typeof f===k?f.call(l,{name:"alt",hash:{},data:h}):f)))+'"'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b["ko/blockSlideshowImage"]=c;var a=Handlebars.partials=Handlebars.partials||{};a["ko/blockSlideshowImage"]=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(n,e,l,k){var d,f,g="function",m=e.helperMissing,j=this.escapeExpression,h='<a href="#">\r\n <img src="'+j(((f=(f=e.src||(n!=null?n.src:n))!=null?f:m),(typeof f===g?f.call(n,{name:"src",hash:{},data:k}):f)))+'" alt="';d=e["if"].call(n,(n!=null?n.alt:n),{name:"if",hash:{},fn:this.program(1,k),inverse:this.noop,data:k});if(d!=null){h+=d}return h+'"/>\r\n</a>'},"1":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return j(((f=(f=g.alt||(l!=null?l.alt:l))!=null?f:e),(typeof f===k?f.call(l,{name:"alt",hash:{},data:h}):f)))},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b["ko/blockSlideshowImageManualControls"]=c;var a=Handlebars.partials=Handlebars.partials||{};a["ko/blockSlideshowImageManualControls"]=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(j,g,e,h){var f,d="\r\n\r\n";f=g["if"].call(j,(j!=null?j.videoList:j),{name:"if",hash:{},fn:this.program(1,h),inverse:this.program(5,h),data:h});if(f!=null){d+=f}return d},"1":function(j,g,e,h){var f,d="";f=g.each.call(j,(j!=null?j.videoList:j),{name:"each",hash:{},fn:this.program(2,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d},"2":function(l,h,f,j){var g,e=this.lambda,k=this.escapeExpression,d='     <div class="kv-Video-push-container">\r\n         <section class="root-video-push-'+k(e((j&&j.index),l))+'">\r\n             <div class="kv-Video-push">\r\n                 <div class="kv-Video-push-wrapper">\r\n                     <img class="kv-Video-push_image" src="'+k(e((l!=null?l.pictureUrl:l),l))+'" alt="'+k(e((l!=null?l.pictureAlt:l),l))+'" />\r\n                     <div class="kv-Video-push_layer">\r\n                         <button type="button" class="kv-Video-push_layer_cta"></button>\r\n                         ';g=h["if"].call(l,(l!=null?l.videoTitle:l),{name:"if",hash:{},fn:this.program(3,j),inverse:this.noop,data:j});if(g!=null){d+=g}return d+"\r\n                     </div>\r\n                 </div>\r\n             </div>\r\n         </section>\r\n     </div>\r\n"},"3":function(j,f,e,g){var d=this.lambda,h=this.escapeExpression;return'<h2 class="kv-Video-push_layer_title">'+h(d((j!=null?j.videoTitle:j),j))+"</h2>"},"5":function(j,g,e,h){var f,d="";f=g["if"].call(j,(j!=null?j.videoUrl:j),{name:"if",hash:{},fn:this.program(6,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d},"6":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return'        <div class="kv-Video-push-container">\r\n            <section class="root-video-push-0">\r\n                <div class="kv-Video-push">\r\n                    <div class="kv-Video-push-wrapper">\r\n                        <img class="kv-Video-push_image" src="'+j(((f=(f=g.pictureUrl||(l!=null?l.pictureUrl:l))!=null?f:e),(typeof f===k?f.call(l,{name:"pictureUrl",hash:{},data:h}):f)))+'" alt="'+j(((f=(f=g.pictureAlt||(l!=null?l.pictureAlt:l))!=null?f:e),(typeof f===k?f.call(l,{name:"pictureAlt",hash:{},data:h}):f)))+'" />\r\n                        <div class="kv-Video-push_layer">\r\n                            <button type="button" class="kv-Video-push_layer_cta"></button>\r\n                            <h2 class="kv-Video-push_layer_title">'+j(((f=(f=g.videoTitle||(l!=null?l.videoTitle:l))!=null?f:e),(typeof f===k?f.call(l,{name:"videoTitle",hash:{},data:h}):f)))+"</h2>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </section>\r\n        </div>\r\n"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.produitVideo=c;var a=Handlebars.partials=Handlebars.partials||{};a.produitVideo=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(h,f,d,g){var e;e=f["if"].call(h,(h!=null?h.videoUrl:h),{name:"if",hash:{},fn:this.program(1,g),inverse:this.noop,data:g});if(e!=null){return e}else{return""}},"1":function(n,e,l,k){var d,f,g="function",m=e.helperMissing,j=this.escapeExpression,h='  <div class="kv-Video-push-wrapper" data-index="'+j(((f=(f=e.index||(n!=null?n.index:n))!=null?f:m),(typeof f===g?f.call(n,{name:"index",hash:{},data:k}):f)))+'">\r\n   <img class="kv-Video-push_image" src="'+j(((f=(f=e.pictureUrl||(n!=null?n.pictureUrl:n))!=null?f:m),(typeof f===g?f.call(n,{name:"pictureUrl",hash:{},data:k}):f)))+'" alt="'+j(((f=(f=e.pictureAlt||(n!=null?n.pictureAlt:n))!=null?f:m),(typeof f===g?f.call(n,{name:"pictureAlt",hash:{},data:k}):f)))+'" />\r\n   <div class="kv-Video-push_layer">\r\n    <button type="button" class="kv-Video-push_layer_cta"></button>\r\n    ';d=e["if"].call(n,(n!=null?n.videoTitle:n),{name:"if",hash:{},fn:this.program(2,k),inverse:this.noop,data:k});if(d!=null){h+=d}h+="\r\n   </div>\r\n  </div>\r\n";d=e["if"].call(n,(n!=null?n.isModalOpened:n),{name:"if",hash:{},fn:this.program(4,k),inverse:this.noop,data:k});if(d!=null){h+=d}return h},"2":function(l,g,d,h){var f,k="function",e=g.helperMissing,j=this.escapeExpression;return'<h2 class="kv-Video-push_layer_title">'+j(((f=(f=g.videoTitle||(l!=null?l.videoTitle:l))!=null?f:e),(typeof f===k?f.call(l,{name:"videoTitle",hash:{},data:h}):f)))+"</h2>"},"4":function(j,g,e,h){var f,d='  <div class="kv-Video-push_modal">\r\n';f=this.invokePartial(e.blockModal,"   ","blockModal",j,undefined,g,e,h);if(f!=null){d+=f}return d+"  </div>\r\n"},usePartial:true,useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.video=c;var a=Handlebars.partials=Handlebars.partials||{};a.video=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(j,g,e,h){var f,d='<div class="kv-Video-push-container kv-Video-push-container--bottom kv-js-VideoBottom">\r\n';f=this.invokePartial(e.produitVideo,"    ","produitVideo",j,undefined,g,e,h);if(f!=null){d+=f}return d+"</div>"},usePartial:true,useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.vignetteVideoBottom=c;var a=Handlebars.partials=Handlebars.partials||{};a.vignetteVideoBottom=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(j,g,e,h){var f,d='<div class="kv-Video-push-container kv-Video-push-container--side kv-js-VideoSide">\r\n    <h3>Videos</h3>\r\n';f=this.invokePartial(e.produitVideo,"    ","produitVideo",j,undefined,g,e,h);if(f!=null){d+=f}return d+"</div>\r\n"},usePartial:true,useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.vignetteVideoSidebar=c;var a=Handlebars.partials=Handlebars.partials||{};a.vignetteVideoSidebar=c})();(function(b,c,e){var d=b.app,g=b.Backbone,f=g.Marionette,a=b._;d.BlockVideo=(function(){var h={};h.init=function(j){var k=g.Model.extend({videoUrl:j.videoUrl,videoTitle:j.videoTitle,pictureUrl:j.pictureUrl,pictureAlt:j.pictureAlt,isModalOpened:false,index:j.index}),l=new this.Views.BlockVideo({model:new k(j)});return l};return h})()})(window,jQuery);(function(b,c,e){var d=b.app,g=b.Backbone,f=g.Marionette,a=b._;d.BlockVideo.Models=(function(){var h={};h.BlockModal=g.Model.extend({defaults:{}});return h})()})(window,jQuery);(function(b,c,e){var d=b.app,g=b.Backbone,f=g.Marionette,a=b._;d.BlockVideo.Views=(function(){var h={};h.BlockVideo=f.LayoutView.extend({template:Handlebars.templates.video,events:{"click .kv-Video-push-wrapper":"openModal","click .kv-closePopin":"closeModal","click .kv-overlay":"closeModal"},modelEvents:{"change:isModalOpened":"render"},className:"kv-Video-push",openModal:function(){this.model.set("isModalOpened",true)},closeModal:function(){this.model.set("isModalOpened",false)}});return h})()})(window,jQuery);if(typeof jwplayer=="undefined"){var jwplayer=function(a){if(jwplayer.api){return jwplayer.api.selectPlayer(a)}};var $jw=jwplayer;jwplayer.version="5.8.2011 (Licensed version)";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(b){b.utils=function(){};b.utils.typeOf=function(d){var c=typeof d;if(c==="object"){if(d){if(d instanceof Array){c="array"}}else{c="null"}}return c};b.utils.extend=function(){var e=b.utils.extend["arguments"];if(e.length>1){for(var d=1;d<e.length;d++){for(var c in e[d]){e[0][c]=e[d][c]}}return e[0]}return null};b.utils.clone=function(d){var e;var f=b.utils.clone["arguments"];if(f.length==1){switch(b.utils.typeOf(f[0])){case"object":e={};for(var c in f[0]){e[c]=b.utils.clone(f[0][c])}break;case"array":e=[];for(var c in f[0]){e[c]=b.utils.clone(f[0][c])}break;default:return f[0];break}}return e};b.utils.extension=function(c){if(!c){return""}c=c.substring(c.lastIndexOf("/")+1,c.length);c=c.split("?")[0];if(c.lastIndexOf(".")>-1){return c.substr(c.lastIndexOf(".")+1,c.length).toLowerCase()}return};b.utils.html=function(c,d){c.innerHTML=d};b.utils.wrap=function(c,d){if(c.parentNode){c.parentNode.replaceChild(d,c)}d.appendChild(c)};b.utils.ajax=function(d,c,e){var g;if(window.XMLHttpRequest){g=new XMLHttpRequest()}else{g=new ActiveXObject("Microsoft.XMLHTTP")}g.onreadystatechange=function(){if(g.readyState===4){if(g.status===200){if(c){if(!b.utils.exists(g.responseXML)){try{if(window.DOMParser){var h=(new DOMParser()).parseFromString(g.responseText,"text/xml");if(h){g=b.utils.extend({},g,{responseXML:h})}}else{h=new ActiveXObject("Microsoft.XMLDOM");h.async="false";h.loadXML(g.responseText);g=b.utils.extend({},g,{responseXML:h})}}catch(j){if(e){e(d)}}}c(g)}}else{if(e){e(d)}}}};try{g.open("GET",d,true);g.send(null)}catch(f){if(e){e(d)}}return g};b.utils.load=function(c,d,e){c.onreadystatechange=function(){if(c.readyState===4){if(c.status===200){if(d){d()}}else{if(e){e()}}}}};b.utils.find=function(d,c){return d.getElementsByTagName(c)};b.utils.append=function(c,d){c.appendChild(d)};b.utils.isIE=function(){return((!+"\v1")||(typeof window.ActiveXObject!="undefined"))};b.utils.userAgentMatch=function(d){var c=navigator.userAgent.toLowerCase();return(c.match(d)!==null)};b.utils.isIOS=function(){return b.utils.userAgentMatch(/iP(hone|ad|od)/i)};b.utils.isIPad=function(){return b.utils.userAgentMatch(/iPad/i)};b.utils.isIPod=function(){return b.utils.userAgentMatch(/iP(hone|od)/i)};b.utils.isAndroid=function(){return b.utils.userAgentMatch(/android/i)};b.utils.isLegacyAndroid=function(){return b.utils.userAgentMatch(/android 2.[012]/i)};b.utils.isBlackberry=function(){return b.utils.userAgentMatch(/blackberry/i)};b.utils.isMobile=function(){return b.utils.isIOS()};b.utils.getFirstPlaylistItemFromConfig=function(e){var c={};var d;if(e.playlist&&e.playlist.length){d=e.playlist[0]}else{d=e}c.file=d.file;c.levels=d.levels;c.streamer=d.streamer;c.playlistfile=d.playlistfile;c.provider=d.provider;if(!c.provider){if(c.file&&(c.file.toLowerCase().indexOf("youtube.com")>-1||c.file.toLowerCase().indexOf("youtu.be")>-1)){c.provider="youtube"}if(c.streamer&&c.streamer.toLowerCase().indexOf("rtmp://")==0){c.provider="rtmp"}if(d.type){c.provider=d.type.toLowerCase()}}if(c.provider=="audio"){c.provider="sound"}return c};b.utils.getOuterHTML=function(c){if(c.outerHTML){return c.outerHTML}else{try{return new XMLSerializer().serializeToString(c)}catch(d){return""}}};b.utils.setOuterHTML=function(c,g){if(c.outerHTML){c.outerHTML=g}else{var d=document.createElement("div");d.innerHTML=g;var e=document.createRange();e.selectNodeContents(d);var f=e.extractContents();c.parentNode.insertBefore(f,c);c.parentNode.removeChild(c)}};b.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined"){return true}if(typeof window.ActiveXObject!="undefined"){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return true}catch(c){}}return false};b.utils.getPluginName=function(c){if(c.lastIndexOf("/")>=0){c=c.substring(c.lastIndexOf("/")+1,c.length)}if(c.lastIndexOf("-")>=0){c=c.substring(0,c.lastIndexOf("-"))}if(c.lastIndexOf(".swf")>=0){c=c.substring(0,c.lastIndexOf(".swf"))}if(c.lastIndexOf(".js")>=0){c=c.substring(0,c.lastIndexOf(".js"))}return c};b.utils.getPluginVersion=function(c){if(c.lastIndexOf("-")>=0){if(c.lastIndexOf(".js")>=0){return c.substring(c.lastIndexOf("-")+1,c.lastIndexOf(".js"))}else{if(c.lastIndexOf(".swf")>=0){return c.substring(c.lastIndexOf("-")+1,c.lastIndexOf(".swf"))}else{return c.substring(c.lastIndexOf("-")+1)}}}return""};b.utils.getAbsolutePath=function(d,f){if(!b.utils.exists(f)){f=document.location.href}if(!b.utils.exists(d)){return undefined}if(a(d)){return d}var e=f.substring(0,f.indexOf("://")+3);var c=f.substring(e.length,f.indexOf("/",e.length+1));var h;if(d.indexOf("/")===0){h=d.split("/")}else{var j=f.split("?")[0];j=j.substring(e.length+c.length+1,j.lastIndexOf("/"));h=j.split("/").concat(d.split("/"))}var g=[];for(var k=0;k<h.length;k++){if(!h[k]||!b.utils.exists(h[k])||h[k]=="."){continue}else{if(h[k]==".."){g.pop()}else{g.push(h[k])}}}return e+c+"/"+g.join("/")};function a(c){if(!b.utils.exists(c)){return}var d=c.indexOf("://");var e=c.indexOf("?");return(d>0&&(e<0||(e>d)))}b.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};b.utils.getPluginPathType=function(f){if(typeof f!="string"){return}f=f.split("?")[0];var c=f.indexOf("://");if(c>0){return b.utils.pluginPathType.ABSOLUTE}var e=f.indexOf("/");var d=b.utils.extension(f);if(c<0&&e<0&&(!d||!isNaN(d))){return b.utils.pluginPathType.CDN}return b.utils.pluginPathType.RELATIVE};b.utils.mapEmpty=function(c){for(var d in c){return false}return true};b.utils.mapLength=function(c){var e=0;for(var d in c){e++}return e};b.utils.log=function(d,c){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(c){console.log(d,c)}else{console.log(d)}}};b.utils.css=function(f,d,e){if(b.utils.exists(f)){for(var g in d){try{if(typeof d[g]==="undefined"){continue}else{if(typeof d[g]=="number"&&!(g=="zIndex"||g=="opacity")){if(isNaN(d[g])){continue}if(g.match(/color/i)){d[g]="#"+b.utils.strings.pad(d[g].toString(16),6)}else{d[g]=Math.ceil(d[g])+"px"}}}f.style[g]=d[g]}catch(c){}}}};b.utils.isYouTube=function(c){return(c.indexOf("youtube.com")>-1||c.indexOf("youtu.be")>-1)};b.utils.transform=function(g,f,d,c,e){if(!b.utils.exists(f)){f=1}if(!b.utils.exists(d)){d=1}if(!b.utils.exists(c)){c=0}if(!b.utils.exists(e)){e=0}if(f==1&&d==1&&c==0&&e==0){g.style.webkitTransform="";g.style.MozTransform="";g.style.OTransform=""}else{var h="scale("+f+","+d+") translate("+c+"px,"+e+"px)";g.style.webkitTransform=h;g.style.MozTransform=h;g.style.OTransform=h}};b.utils.stretch=function(n,j,h,k,c,l){if(typeof h=="undefined"||typeof k=="undefined"||typeof c=="undefined"||typeof l=="undefined"){return}var f=h/c;var g=k/l;var p=0;var o=0;var e={};if(j.parentElement){j.parentElement.style.overflow="hidden"}b.utils.transform(j);switch(n.toUpperCase()){case b.utils.stretching.NONE:e.width=c;e.height=l;e.top=(k-e.height)/2;e.left=(h-e.width)/2;break;case b.utils.stretching.UNIFORM:if(f>g){e.width=c*g;e.height=l*g}else{e.width=c*f;e.height=l*f}e.top=(k-e.height)/2;e.left=(h-e.width)/2;break;case b.utils.stretching.FILL:if(f>g){e.width=c*f;e.height=l*f}else{e.width=c*g;e.height=l*g}e.top=(k-e.height)/2;e.left=(h-e.width)/2;break;case b.utils.stretching.EXACTFIT:e.width=c;e.height=l;var d=Math.round((c/2)*(1-1/f));var m=Math.round((l/2)*(1-1/g));b.utils.transform(j,f,g,d,m);e.top=e.left=0;break;default:break}b.utils.css(j,e)};b.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};b.utils.deepReplaceKeyName=function(f,g,d){switch(b.utils.typeOf(f)){case"array":for(var c=0;c<f.length;c++){f[c]=b.utils.deepReplaceKeyName(f[c],g,d)}break;case"object":for(var h in f){var e=h.replace(new RegExp(g,"g"),d);f[e]=b.utils.deepReplaceKeyName(f[h],g,d);if(h!=e){delete f[h]}}break}return f};b.utils.isInArray=function(d,c){if(!(d)||!(d instanceof Array)){return false}for(var e=0;e<d.length;e++){if(c===d[e]){return true}}return false};b.utils.exists=function(c){switch(typeof(c)){case"string":return(c.length>0);break;case"object":return(c!==null);case"undefined":return false}return true};b.utils.empty=function(c){if(typeof c.hasChildNodes=="function"){while(c.hasChildNodes()){c.removeChild(c.firstChild)}}};b.utils.parseDimension=function(c){if(typeof c=="string"){if(c===""){return 0}else{if(c.lastIndexOf("%")>-1){return c}else{return parseInt(c.replace("px",""),10)}}}return c};b.utils.getDimensions=function(c){if(c&&c.style){return{x:b.utils.parseDimension(c.style.left),y:b.utils.parseDimension(c.style.top),width:b.utils.parseDimension(c.style.width),height:b.utils.parseDimension(c.style.height)}}else{return{}}};b.utils.getElementWidth=function(c){if(!c){return null}else{if(c==document.body){return b.utils.parentNode(c).clientWidth}else{if(c.clientWidth>0){return c.clientWidth}else{if(c.style){return b.utils.parseDimension(c.style.width)}else{return null}}}}};b.utils.getElementHeight=function(c){if(!c){return null}else{if(c==document.body){return b.utils.parentNode(c).clientHeight}else{if(c.clientHeight>0){return c.clientHeight}else{if(c.style){return b.utils.parseDimension(c.style.height)}else{return null}}}}};b.utils.timeFormat=function(c){str="00:00";if(c>0){str=Math.floor(c/60)<10?"0"+Math.floor(c/60)+":":Math.floor(c/60)+":";str+=Math.floor(c%60)<10?"0"+Math.floor(c%60):Math.floor(c%60)}return str};b.utils.useNativeFullscreen=function(){return(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0)};b.utils.parentNode=function(c){if(!c){return docuemnt.body}else{if(c.parentNode){return c.parentNode}else{if(c.parentElement){return c.parentElement}else{return c}}}};b.utils.getBoundingClientRect=function(c){if(typeof c.getBoundingClientRect=="function"){return c.getBoundingClientRect()}else{return{left:c.offsetLeft+document.body.scrollLeft,top:c.offsetTop+document.body.scrollTop,width:c.offsetWidth,height:c.offsetHeight}}}})(jwplayer);(function(a){a.events=function(){};a.events.COMPLETE="COMPLETE";a.events.ERROR="ERROR"})(jwplayer);(function(jwplayer){jwplayer.events.eventdispatcher=function(debug){var _debug=debug;var _listeners;var _globallisteners;this.resetEventListeners=function(){_listeners={};_globallisteners=[]};this.resetEventListeners();this.addEventListener=function(type,listener,count){try{if(!jwplayer.utils.exists(_listeners[type])){_listeners[type]=[]}if(typeof(listener)=="string"){eval("listener = "+listener)}_listeners[type].push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeEventListener=function(type,listener){if(!_listeners[type]){return}try{for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){if(_listeners[type][listenerIndex].listener.toString()==listener.toString()){_listeners[type].splice(listenerIndex,1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.addGlobalListener=function(listener,count){try{if(typeof(listener)=="string"){eval("listener = "+listener)}_globallisteners.push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeGlobalListener=function(listener){if(!_globallisteners[type]){return}try{for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){if(_globallisteners[globalListenerIndex].listener.toString()==listener.toString()){_globallisteners.splice(globalListenerIndex,1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.sendEvent=function(type,data){if(!jwplayer.utils.exists(data)){data={}}if(_debug){jwplayer.utils.log(type,data)}if(typeof _listeners[type]!="undefined"){for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){try{_listeners[type][listenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_listeners[type][listenerIndex].listener)}if(_listeners[type][listenerIndex]){if(_listeners[type][listenerIndex].count===1){delete _listeners[type][listenerIndex]}else{if(_listeners[type][listenerIndex].count>0){_listeners[type][listenerIndex].count=_listeners[type][listenerIndex].count-1}}}}}for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){try{_globallisteners[globalListenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_globallisteners[globalListenerIndex].listener)}if(_globallisteners[globalListenerIndex]){if(_globallisteners[globalListenerIndex].count===1){delete _globallisteners[globalListenerIndex]}else{if(_globallisteners[globalListenerIndex].count>0){_globallisteners[globalListenerIndex].count=_globallisteners[globalListenerIndex].count-1}}}}}}})(jwplayer);(function(a){var b={};a.utils.animations=function(){};a.utils.animations.transform=function(c,d){c.style.webkitTransform=d;c.style.MozTransform=d;c.style.OTransform=d;c.style.msTransform=d};a.utils.animations.transformOrigin=function(c,d){c.style.webkitTransformOrigin=d;c.style.MozTransformOrigin=d;c.style.OTransformOrigin=d;c.style.msTransformOrigin=d};a.utils.animations.rotate=function(c,d){a.utils.animations.transform(c,["rotate(",d,"deg)"].join(""))};a.utils.cancelAnimation=function(c){delete b[c.id]};a.utils.fadeTo=function(j,c,m,f,e,l){if(b[j.id]!=l&&a.utils.exists(l)){return}if(j.style.opacity==c){return}var k=new Date().getTime();if(l>k){setTimeout(function(){a.utils.fadeTo(j,c,m,f,0,l)},l-k)}if(j.style.display=="none"){j.style.display="block"}if(!a.utils.exists(f)){f=j.style.opacity===""?1:j.style.opacity}if(j.style.opacity==c&&j.style.opacity!==""&&a.utils.exists(l)){if(c===0){j.style.display="none"}return}if(!a.utils.exists(l)){l=k;b[j.id]=l}if(!a.utils.exists(e)){e=0}var g=(m>0)?((k-l)/(m*1000)):0;g=g>1?1:g;var h=c-f;var d=f+(g*h);if(d>1){d=1}else{if(d<0){d=0}}j.style.opacity=d;if(e>0){b[j.id]=l+e*1000;a.utils.fadeTo(j,c,m,f,0,b[j.id]);return}setTimeout(function(){a.utils.fadeTo(j,c,m,f,0,l)},10)}})(jwplayer);(function(a){a.utils.arrays=function(){};a.utils.arrays.indexOf=function(c,d){for(var b=0;b<c.length;b++){if(c[b]==d){return b}}return-1};a.utils.arrays.remove=function(c,d){var b=a.utils.arrays.indexOf(c,d);if(b>-1){c.splice(b,1)}}})(jwplayer);(function(a){a.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}})(jwplayer);(function(g){g.utils.mediaparser=function(){};var a={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}};var h={};g.utils.mediaparser.parseMedia=function(j){return f(j)};function e(k,j){if(!g.utils.exists(j)){j=a[k]}else{g.utils.extend(j,a[k])}return j}function f(l,n){if(h[l.tagName.toLowerCase()]&&!g.utils.exists(n)){return h[l.tagName.toLowerCase()](l)}else{n=e("element",n);var m={};for(var o in n){if(o!="length"){var k=l.getAttribute(o);if(g.utils.exists(k)){m[n[o]]=k}}}var j=l.style["#background-color"];if(j&&!(j=="transparent"||j=="rgba(0, 0, 0, 0)")){m.screencolor=j}return m}}function b(l,o){o=e("media",o);var j=[];var n=g.utils.selectors("source",l);for(var k in n){if(!isNaN(k)){j.push(c(n[k]))}}var m=f(l,o);if(g.utils.exists(m.file)){j[0]={file:m.file}}m.levels=j;return m}function c(k,j){j=e("source",j);var l=f(k,j);l.width=l.width?l.width:0;l.bitrate=l.bitrate?l.bitrate:0;return l}function d(k,j){j=e("video",j);var l=b(k,j);return l}h.media=b;h.audio=b;h.source=c;h.video=d})(jwplayer);(function(a){a.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};a.utils.scriptloader=function(c){var d=a.utils.loaderstatus.NEW;var b=new a.events.eventdispatcher();a.utils.extend(this,b);this.load=function(){if(d==a.utils.loaderstatus.NEW){d=a.utils.loaderstatus.LOADING;var e=document.createElement("script");e.onload=function(f){d=a.utils.loaderstatus.COMPLETE;b.sendEvent(a.events.COMPLETE)};e.onerror=function(f){d=a.utils.loaderstatus.ERROR;b.sendEvent(a.events.ERROR)};e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete"){d=a.utils.loaderstatus.COMPLETE;b.sendEvent(a.events.COMPLETE)}};document.getElementsByTagName("head")[0].appendChild(e);e.src=c}};this.getStatus=function(){return d}}})(jwplayer);(function(a){a.utils.selectors=function(b,e){if(!a.utils.exists(e)){e=document}b=a.utils.strings.trim(b);var c=b.charAt(0);if(c=="#"){return e.getElementById(b.substr(1))}else{if(c=="."){if(e.getElementsByClassName){return e.getElementsByClassName(b.substr(1))}else{return a.utils.selectors.getElementsByTagAndClass("*",b.substr(1))}}else{if(b.indexOf(".")>0){var d=b.split(".");return a.utils.selectors.getElementsByTagAndClass(d[0],d[1])}else{return e.getElementsByTagName(b)}}}return null};a.utils.selectors.getElementsByTagAndClass=function(h,d,b){var e=[];if(!a.utils.exists(b)){b=document}var j=b.getElementsByTagName(h);for(var g=0;g<j.length;g++){if(a.utils.exists(j[g].className)){var f=j[g].className.split(" ");for(var c=0;c<f.length;c++){if(f[c]==d){e.push(j[g])}}}}return e}})(jwplayer);(function(a){a.utils.strings=function(){};a.utils.strings.trim=function(b){return b.replace(/^\s*/,"").replace(/\s*$/,"")};a.utils.strings.pad=function(c,d,b){if(!b){b="0"}while(c.length<d){c=b+c}return c};a.utils.strings.serialize=function(b){if(b==null){return null}else{if(b=="true"){return true}else{if(b=="false"){return false}else{if(isNaN(Number(b))||b.length>5||b.length==0){return b}else{return Number(b)}}}}};a.utils.strings.seconds=function(d){d=d.replace(",",".");var b=d.split(":");var c=0;if(d.substr(-1)=="s"){c=Number(d.substr(0,d.length-1))}else{if(d.substr(-1)=="m"){c=Number(d.substr(0,d.length-1))*60}else{if(d.substr(-1)=="h"){c=Number(d.substr(0,d.length-1))*3600}else{if(b.length>1){c=Number(b[b.length-1]);c+=Number(b[b.length-2])*60;if(b.length==3){c+=Number(b[b.length-3])*3600}}else{c=Number(d)}}}}return c};a.utils.strings.xmlAttribute=function(b,c){for(var d=0;d<b.attributes.length;d++){if(b.attributes[d].name&&b.attributes[d].name.toLowerCase()==c.toLowerCase()){return b.attributes[d].value.toString()}}return""};a.utils.strings.jsonToString=function(d){var f=f||{};if(f&&f.stringify){return f.stringify(d)}var g=typeof(d);if(g!="object"||d===null){if(g=="string"){d='"'+d.replace(/"/g,'\\"')+'"'}else{return String(d)}}else{var e=[],c=(d&&d.constructor==Array);for(var h in d){var b=d[h];switch(typeof(b)){case"string":b='"'+b.replace(/"/g,'\\"')+'"';break;case"object":if(a.utils.exists(b)){b=a.utils.strings.jsonToString(b)}break}if(c){if(typeof(b)!="function"){e.push(String(b))}}else{if(typeof(b)!="function"){e.push('"'+h+'":'+String(b))}}}if(c){return"["+String(e)+"]"}else{return"{"+String(e)+"}"}}}})(jwplayer);(function(a){var b=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);a.utils.typechecker=function(g,f){f=!a.utils.exists(f)?e(g):f;return c(g,f)};function e(f){var g=["true","false","t","f"];if(g.toString().indexOf(f.toLowerCase().replace(" ",""))>=0){return"boolean"}else{if(b.test(f)){return"color"}else{if(!isNaN(parseInt(f,10))&&parseInt(f,10).toString().length==f.length){return"integer"}else{if(!isNaN(parseFloat(f))&&parseFloat(f).toString().length==f.length){return"float"}}}}return"string"}function c(g,f){if(!a.utils.exists(f)){return g}switch(f){case"color":if(g.length>0){return d(g)}return null;case"integer":return parseInt(g,10);case"float":return parseFloat(g);case"boolean":if(g.toLowerCase()=="true"){return true}else{if(g=="1"){return true}}return false}return g}function d(f){switch(f.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:f=f.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(f.length==3){f=f.charAt(0)+f.charAt(0)+f.charAt(1)+f.charAt(1)+f.charAt(2)+f.charAt(2)}return parseInt(f,16)}return parseInt("000000",16)}})(jwplayer);(function(a){a.utils.parsers=function(){};a.utils.parsers.localName=function(b){if(!b){return""}else{if(b.localName){return b.localName}else{if(b.baseName){return b.baseName}else{return""}}}};a.utils.parsers.textContent=function(b){if(!b){return""}else{if(b.textContent){return b.textContent}else{if(b.text){return b.text}else{return""}}}}})(jwplayer);(function(a){a.utils.parsers.jwparser=function(){};a.utils.parsers.jwparser.PREFIX="jwplayer";a.utils.parsers.jwparser.parseEntry=function(c,d){for(var b=0;b<c.childNodes.length;b++){if(c.childNodes[b].prefix==a.utils.parsers.jwparser.PREFIX){d[a.utils.parsers.localName(c.childNodes[b])]=a.utils.strings.serialize(a.utils.parsers.textContent(c.childNodes[b]))}if(!d.file&&String(d.link).toLowerCase().indexOf("youtube")>-1){d.file=d.link}}return d};a.utils.parsers.jwparser.getProvider=function(c){if(c.type){return c.type}else{if(c.file.indexOf("youtube.com/w")>-1||c.file.indexOf("youtube.com/v")>-1||c.file.indexOf("youtu.be/")>-1){return"youtube"}else{if(c.streamer&&c.streamer.indexOf("rtmp")==0){return"rtmp"}else{if(c.streamer&&c.streamer.indexOf("http")==0){return"http"}else{var b=a.utils.strings.extension(c.file);if(extensions.hasOwnProperty(b)){return extensions[b]}}}}}return""}})(jwplayer);(function(a){a.utils.parsers.mediaparser=function(){};a.utils.parsers.mediaparser.PREFIX="media";a.utils.parsers.mediaparser.parseGroup=function(d,f){var e=false;for(var c=0;c<d.childNodes.length;c++){if(d.childNodes[c].prefix==a.utils.parsers.mediaparser.PREFIX){if(!a.utils.parsers.localName(d.childNodes[c])){continue}switch(a.utils.parsers.localName(d.childNodes[c]).toLowerCase()){case"content":if(!e){f.file=a.utils.strings.xmlAttribute(d.childNodes[c],"url")}if(a.utils.strings.xmlAttribute(d.childNodes[c],"duration")){f.duration=a.utils.strings.seconds(a.utils.strings.xmlAttribute(d.childNodes[c],"duration"))}if(a.utils.strings.xmlAttribute(d.childNodes[c],"start")){f.start=a.utils.strings.seconds(a.utils.strings.xmlAttribute(d.childNodes[c],"start"))}if(d.childNodes[c].childNodes&&d.childNodes[c].childNodes.length>0){f=a.utils.parsers.mediaparser.parseGroup(d.childNodes[c],f)}if(a.utils.strings.xmlAttribute(d.childNodes[c],"width")||a.utils.strings.xmlAttribute(d.childNodes[c],"bitrate")||a.utils.strings.xmlAttribute(d.childNodes[c],"url")){if(!f.levels){f.levels=[]}f.levels.push({width:a.utils.strings.xmlAttribute(d.childNodes[c],"width"),bitrate:a.utils.strings.xmlAttribute(d.childNodes[c],"bitrate"),file:a.utils.strings.xmlAttribute(d.childNodes[c],"url")})}break;case"title":f.title=a.utils.parsers.textContent(d.childNodes[c]);break;case"description":f.description=a.utils.parsers.textContent(d.childNodes[c]);break;case"keywords":f.tags=a.utils.parsers.textContent(d.childNodes[c]);break;case"thumbnail":f.image=a.utils.strings.xmlAttribute(d.childNodes[c],"url");break;case"credit":f.author=a.utils.parsers.textContent(d.childNodes[c]);break;case"player":var b=d.childNodes[c].url;if(b.indexOf("youtube.com")>=0||b.indexOf("youtu.be")>=0){e=true;f.file=a.utils.strings.xmlAttribute(d.childNodes[c],"url")}break;case"group":a.utils.parsers.mediaparser.parseGroup(d.childNodes[c],f);break}}}return f}})(jwplayer);(function(b){b.utils.parsers.rssparser=function(){};b.utils.parsers.rssparser.parse=function(d){var e=[];for(var c=0;c<d.childNodes.length;c++){if(b.utils.parsers.localName(d.childNodes[c]).toLowerCase()=="channel"){for(var f=0;f<d.childNodes[c].childNodes.length;f++){if(b.utils.parsers.localName(d.childNodes[c].childNodes[f]).toLowerCase()=="item"){e.push(a(d.childNodes[c].childNodes[f]))}}}}return e};function a(c){var d={};for(var e=0;e<c.childNodes.length;e++){if(!b.utils.parsers.localName(c.childNodes[e])){continue}switch(b.utils.parsers.localName(c.childNodes[e]).toLowerCase()){case"enclosure":d.file=b.utils.strings.xmlAttribute(c.childNodes[e],"url");break;case"title":d.title=b.utils.parsers.textContent(c.childNodes[e]);break;case"pubdate":d.date=b.utils.parsers.textContent(c.childNodes[e]);break;case"description":d.description=b.utils.parsers.textContent(c.childNodes[e]);break;case"link":d.link=b.utils.parsers.textContent(c.childNodes[e]);break;case"category":if(d.tags){d.tags+=b.utils.parsers.textContent(c.childNodes[e])}else{d.tags=b.utils.parsers.textContent(c.childNodes[e])}break}}d=b.utils.parsers.mediaparser.parseGroup(c,d);d=b.utils.parsers.jwparser.parseEntry(c,d);return new b.html5.playlistitem(d)}})(jwplayer);(function(b){var a={};var c={};b.plugins=function(){};b.plugins.loadPlugins=function(e,d){c[e]=new b.plugins.pluginloader(new b.plugins.model(a),d);return c[e]};b.plugins.registerPlugin=function(e,h,g){var f=b.utils.getPluginName(e);if(a[f]){a[f].registerPlugin(e,h,g)}else{b.utils.log("A plugin ("+e+") was registered with the player that was not loaded. Please check your configuration.");for(var d in c){c[d].pluginFailed()}}}})(jwplayer);(function(a){a.plugins.model=function(b){this.addPlugin=function(c){var d=a.utils.getPluginName(c);if(!b[d]){b[d]=new a.plugins.plugin(c)}return b[d]}}})(jwplayer);(function(a){a.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};a.plugins.plugin=function(j){var l="http://lp.longtailvideo.com";var f=a.utils.loaderstatus.NEW;var g;var e;var h;var k=new a.events.eventdispatcher();a.utils.extend(this,k);function b(){switch(a.utils.getPluginPathType(j)){case a.utils.pluginPathType.ABSOLUTE:return j;case a.utils.pluginPathType.RELATIVE:return a.utils.getAbsolutePath(j,window.location.href);case a.utils.pluginPathType.CDN:var n=a.utils.getPluginName(j);var m=a.utils.getPluginVersion(j);var o=(window.location.href.indexOf("https://")==0)?l.replace("http://","https://secure"):l;return o+"/"+a.version.split(".")[0]+"/"+n+"/"+n+(m!==""?("-"+m):"")+".js"}}function d(m){h=setTimeout(function(){f=a.utils.loaderstatus.COMPLETE;k.sendEvent(a.events.COMPLETE)},1000)}function c(m){f=a.utils.loaderstatus.ERROR;k.sendEvent(a.events.ERROR)}this.load=function(){if(f==a.utils.loaderstatus.NEW){if(j.lastIndexOf(".swf")>0){g=j;f=a.utils.loaderstatus.COMPLETE;k.sendEvent(a.events.COMPLETE);return}f=a.utils.loaderstatus.LOADING;var m=new a.utils.scriptloader(b());m.addEventListener(a.events.COMPLETE,d);m.addEventListener(a.events.ERROR,c);m.load()}};this.registerPlugin=function(n,m,o){if(h){clearTimeout(h);h=undefined}if(m&&o){g=o;e=m}else{if(typeof m=="string"){g=m}else{if(typeof m=="function"){e=m}else{if(!m&&!o){g=n}}}}f=a.utils.loaderstatus.COMPLETE;k.sendEvent(a.events.COMPLETE)};this.getStatus=function(){return f};this.getPluginName=function(){return a.utils.getPluginName(j)};this.getFlashPath=function(){if(g){switch(a.utils.getPluginPathType(g)){case a.utils.pluginPathType.ABSOLUTE:return g;case a.utils.pluginPathType.RELATIVE:if(j.lastIndexOf(".swf")>0){return a.utils.getAbsolutePath(g,window.location.href)}return a.utils.getAbsolutePath(g,b());case a.utils.pluginPathType.CDN:if(g.indexOf("-")>-1){return g+"h"}return g+"-h"}}return null};this.getJS=function(){return e};this.getPluginmode=function(){if(typeof g!="undefined"&&typeof e!="undefined"){return a.plugins.pluginmodes.HYBRID}else{if(typeof g!="undefined"){return a.plugins.pluginmodes.FLASH}else{if(typeof e!="undefined"){return a.plugins.pluginmodes.JAVASCRIPT}}}};this.getNewInstance=function(m,o,n){return new e(m,o,n)};this.getURL=function(){return j}}})(jwplayer);(function(a){a.plugins.pluginloader=function(g,d){var f={};var j=a.utils.loaderstatus.NEW;var c=false;var k=false;var b=new a.events.eventdispatcher();a.utils.extend(this,b);function e(){if(!k){k=true;j=a.utils.loaderstatus.COMPLETE;b.sendEvent(a.events.COMPLETE)}}function h(){if(!k){var m=0;for(plugin in f){var l=f[plugin].getStatus();if(l==a.utils.loaderstatus.LOADING||l==a.utils.loaderstatus.NEW){m++}}if(m==0){e()}}}this.setupPlugins=function(l,r,q){var s={length:0,plugins:{}};var n={length:0,plugins:{}};for(var m in f){var o=f[m].getPluginName();if(f[m].getFlashPath()){s.plugins[f[m].getFlashPath()]=r.plugins[m];s.plugins[f[m].getFlashPath()].pluginmode=f[m].getPluginmode();s.length++}if(f[m].getJS()){var p=document.createElement("div");p.id=l.id+"_"+o;p.style.position="absolute";p.style.zIndex=n.length+10;n.plugins[o]=f[m].getNewInstance(l,r.plugins[m],p);n.length++;if(typeof n.plugins[o].resize!="undefined"){l.onReady(q(n.plugins[o],p,true));l.onResize(q(n.plugins[o],p))}}}l.plugins=n.plugins;return s};this.load=function(){j=a.utils.loaderstatus.LOADING;c=true;for(var l in d){if(a.utils.exists(l)){f[l]=g.addPlugin(l);f[l].addEventListener(a.events.COMPLETE,h);f[l].addEventListener(a.events.ERROR,h)}}for(l in f){f[l].load()}c=false;h()};this.pluginFailed=function(){e()};this.getStatus=function(){return j}}})(jwplayer);(function(b){var a=[];b.api=function(s){this.container=s;this.id=s.id;var n={};var p={};var j={};var r=[];var f=undefined;var l=false;var g=[];var q=b.utils.getOuterHTML(s);var k={};var h={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};function c(u,t){return function(w,x,y,z){if(u.renderingMode=="flash"||u.renderingMode=="html5"){var v;if(x){h[w]=x;v="jwplayer('"+u.id+"').callback('"+w+"')"}else{if(!x&&h[w]){delete h[w]}}f.jwDockSetButton(w,v,y,z)}return t}}this.getPlugin=function(t){var v=this;var u={};if(t=="dock"){return b.utils.extend(u,{setButton:c(v,u),show:function(){v.callInternal("jwDockShow");return u},hide:function(){v.callInternal("jwDockHide");return u},onShow:function(w){v.componentListener("dock",b.api.events.JWPLAYER_COMPONENT_SHOW,w);return u},onHide:function(w){v.componentListener("dock",b.api.events.JWPLAYER_COMPONENT_HIDE,w);return u}})}else{if(t=="controlbar"){return b.utils.extend(u,{show:function(){v.callInternal("jwControlbarShow");return u},hide:function(){v.callInternal("jwControlbarHide");return u},onShow:function(w){v.componentListener("controlbar",b.api.events.JWPLAYER_COMPONENT_SHOW,w);return u},onHide:function(w){v.componentListener("controlbar",b.api.events.JWPLAYER_COMPONENT_HIDE,w);return u}})}else{if(t=="display"){return b.utils.extend(u,{show:function(){v.callInternal("jwDisplayShow");return u},hide:function(){v.callInternal("jwDisplayHide");return u},onShow:function(w){v.componentListener("display",b.api.events.JWPLAYER_COMPONENT_SHOW,w);return u},onHide:function(w){v.componentListener("display",b.api.events.JWPLAYER_COMPONENT_HIDE,w);return u}})}else{return this.plugins[t]}}}};this.callback=function(t){if(h[t]){return h[t]()}};this.getDuration=function(){return this.callInternal("jwGetDuration")};this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")};this.getHeight=function(){return this.callInternal("jwGetHeight")};this.getLockState=function(){return this.callInternal("jwGetLockState")};this.getMeta=function(){return this.getItemMeta()};this.getMute=function(){return this.callInternal("jwGetMute")};this.getPlaylist=function(){var u=this.callInternal("jwGetPlaylist");if(this.renderingMode=="flash"){b.utils.deepReplaceKeyName(u,"__dot__",".")}for(var t=0;t<u.length;t++){if(!b.utils.exists(u[t].index)){u[t].index=t}}return u};this.getPlaylistItem=function(t){if(!b.utils.exists(t)){t=this.getCurrentItem()}return this.getPlaylist()[t]};this.getPosition=function(){return this.callInternal("jwGetPosition")};this.getRenderingMode=function(){return this.renderingMode};this.getState=function(){return this.callInternal("jwGetState")};this.getVolume=function(){return this.callInternal("jwGetVolume")};this.getWidth=function(){return this.callInternal("jwGetWidth")};this.setFullscreen=function(t){if(!b.utils.exists(t)){this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"))}else{this.callInternal("jwSetFullscreen",t)}return this};this.setMute=function(t){if(!b.utils.exists(t)){this.callInternal("jwSetMute",!this.callInternal("jwGetMute"))}else{this.callInternal("jwSetMute",t)}return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(t){this.callInternal("jwLoad",t);return this};this.playlistItem=function(t){this.callInternal("jwPlaylistItem",t);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(u,t){if(this.renderingMode=="html5"){f.jwResize(u,t)}else{this.container.width=u;this.container.height=t;var v=document.getElementById(this.id+"_wrapper");if(v){v.style.width=u+"px";v.style.height=t+"px"}}return this};this.play=function(t){if(typeof t=="undefined"){t=this.getState();if(t==b.api.events.state.PLAYING||t==b.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPlay",t)}return this};this.pause=function(t){if(typeof t=="undefined"){t=this.getState();if(t==b.api.events.state.PLAYING||t==b.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPause",t)}return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(t){this.callInternal("jwSeek",t);return this};this.setVolume=function(t){this.callInternal("jwSetVolume",t);return this};this.onBufferChange=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_BUFFER,t)};this.onBufferFull=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL,t)};this.onError=function(t){return this.eventListener(b.api.events.JWPLAYER_ERROR,t)};this.onFullscreen=function(t){return this.eventListener(b.api.events.JWPLAYER_FULLSCREEN,t)};this.onMeta=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_META,t)};this.onMute=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_MUTE,t)};this.onPlaylist=function(t){return this.eventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,t)};this.onPlaylistItem=function(t){return this.eventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,t)};this.onReady=function(t){return this.eventListener(b.api.events.API_READY,t)};this.onResize=function(t){return this.eventListener(b.api.events.JWPLAYER_RESIZE,t)};this.onComplete=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_COMPLETE,t)};this.onSeek=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_SEEK,t)};this.onTime=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_TIME,t)};this.onVolume=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_VOLUME,t)};this.onBuffer=function(t){return this.stateListener(b.api.events.state.BUFFERING,t)};this.onPause=function(t){return this.stateListener(b.api.events.state.PAUSED,t)};this.onPlay=function(t){return this.stateListener(b.api.events.state.PLAYING,t)};this.onIdle=function(t){return this.stateListener(b.api.events.state.IDLE,t)};this.remove=function(){n={};g=[];if(b.utils.getOuterHTML(this.container)!=q){b.api.destroyPlayer(this.id,q)}};this.setup=function(u){if(b.embed){var t=this.id;this.remove();var v=b(t);v.config=u;return new b.embed(v)}return this};this.registerPlugin=function(v,u,t){b.plugins.registerPlugin(v,u,t)};this.setPlayer=function(t,u){f=t;this.renderingMode=u};this.stateListener=function(t,u){if(!p[t]){p[t]=[];this.eventListener(b.api.events.JWPLAYER_PLAYER_STATE,e(t))}p[t].push(u);return this};this.detachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwDetachMedia")}};this.attachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwAttachMedia")}};function e(t){return function(w){var v=w.newstate,y=w.oldstate;if(v==t){var x=p[v];if(x){for(var u=0;u<x.length;u++){if(typeof x[u]=="function"){x[u].call(this,{oldstate:y,newstate:v})}}}}}}this.componentListener=function(t,u,v){if(!j[t]){j[t]={}}if(!j[t][u]){j[t][u]=[];this.eventListener(u,m(t,u))}j[t][u].push(v);return this};function m(t,u){return function(w){if(t==w.component){var v=j[t][u];if(v){for(var x=0;x<v.length;x++){if(typeof v[x]=="function"){v[x].call(this,w)}}}}}}this.addInternalListener=function(t,u){t.jwAddEventListener(u,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+u+'", dat); }')};this.eventListener=function(t,u){if(!n[t]){n[t]=[];if(f&&l){this.addInternalListener(f,t)}}n[t].push(u);return this};this.dispatchEvent=function(v){if(n[v]){var u=d(v,arguments[1]);for(var t=0;t<n[v].length;t++){if(typeof n[v][t]=="function"){n[v][t].call(this,u)}}}};function d(v,t){var x=b.utils.extend({},t);if(v==b.api.events.JWPLAYER_FULLSCREEN&&!x.fullscreen){x.fullscreen=x.message=="true"?true:false;delete x.message}else{if(typeof x.data=="object"){x=b.utils.extend(x,x.data);delete x.data}}var u=["position","duration","offset"];for(var w in u){if(x[u[w]]){x[u[w]]=Math.round(x[u[w]]*1000)/1000}}return x}this.callInternal=function(u,t){if(l){if(typeof f!="undefined"&&typeof f[u]=="function"){if(b.utils.exists(t)){return(f[u])(t)}else{return(f[u])()}}return null}else{g.push({method:u,parameters:t})}};this.playerReady=function(v){l=true;if(!f){this.setPlayer(document.getElementById(v.id))}this.container=document.getElementById(this.id);for(var t in n){this.addInternalListener(f,t)}this.eventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,function(w){k={}});this.eventListener(b.api.events.JWPLAYER_MEDIA_META,function(w){b.utils.extend(k,w.metadata)});this.dispatchEvent(b.api.events.API_READY);while(g.length>0){var u=g.shift();this.callInternal(u.method,u.parameters)}};this.getItemMeta=function(){return k};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};function o(v,x,w){var t=[];if(!x){x=0}if(!w){w=v.length-1}for(var u=x;u<=w;u++){t.push(v[u])}return t}return this};b.api.selectPlayer=function(c){var e;if(!b.utils.exists(c)){c=0}if(c.nodeType){e=c}else{if(typeof c=="string"){e=document.getElementById(c)}}if(e){var d=b.api.playerById(e.id);if(d){return d}else{return b.api.addPlayer(new b.api(e))}}else{if(typeof c=="number"){return b.getPlayers()[c]}}return null};b.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};b.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};b.api.playerById=function(d){for(var c=0;c<a.length;c++){if(a[c].id==d){return a[c]}}return null};b.api.addPlayer=function(c){for(var d=0;d<a.length;d++){if(a[d]==c){return c}}a.push(c);return c};b.api.destroyPlayer=function(g,j){var f=-1;for(var e=0;e<a.length;e++){if(a[e].id==g){f=e;continue}}if(f>=0){var h=document.getElementById(a[f].id);if(document.getElementById(a[f].id+"_wrapper")){h=document.getElementById(a[f].id+"_wrapper")}if(h){if(j){b.utils.setOuterHTML(h,j)}else{var d=document.createElement("div");var c=h.id;if(h.id.indexOf("_wrapper")==h.id.length-8){newID=h.id.substring(0,h.id.length-8)}d.setAttribute("id",c);h.parentNode.replaceChild(d,h)}}a.splice(f,1)}return null};b.getPlayers=function(){return a.slice(0)}})(jwplayer);var _userPlayerReady=(typeof playerReady=="function")?playerReady:undefined;playerReady=function(b){var a=jwplayer.api.playerById(b.id);if(a){a.playerReady(b)}else{jwplayer.api.selectPlayer(b.id).playerReady(b)}if(_userPlayerReady){_userPlayerReady.call(this,b)}};(function(b){var a=b.utils;b.embed=function(k){var g={width:400,height:300,components:{controlbar:{position:"over"}}};var f=a.mediaparser.parseMedia(k.container);var e=new b.embed.config(a.extend(g,f,k.config),this);var d=b.plugins.loadPlugins(k.id,e.plugins);function h(l,n){for(var m in n){if(typeof l[m]=="function"){(l[m]).call(l,n[m])}}}function j(){if(d.getStatus()==a.loaderstatus.COMPLETE){for(var t=0;t<e.modes.length;t++){if(e.modes[t].type&&b.embed[e.modes[t].type]){var m=e.modes[t].config;var q=e;if(m){q=a.extend(a.clone(e),m);var p=["file","levels","playlist"];for(var s=0;s<p.length;s++){var n=p[s];if(a.exists(m[n])){for(var r=0;r<p.length;r++){if(r!=s){var l=p[r];if(a.exists(q[l])&&!a.exists(m[l])){delete q[l]}}}}}}var o=new b.embed[e.modes[t].type](document.getElementById(k.id),e.modes[t],q,d,k);if(o.supportsConfig()){o.embed();h(k,e.events);return k}}}a.log("No suitable players found");new b.embed.logo(a.extend({hide:true},e.components.logo),"none",k.id)}}d.addEventListener(b.events.COMPLETE,j);d.addEventListener(b.events.ERROR,j);d.load();return k};function c(){if(!document.body){return setTimeout(c,15)}var f=a.selectors.getElementsByTagAndClass("video","jwplayer");for(var d=0;d<f.length;d++){var e=f[d];if(e.id==""){e.id="jwplayer_"+Math.round(Math.random()*100000)}b(e.id).setup({})}}c()})(jwplayer);(function(d){function g(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}var j={players:"modes",autoplay:"autostart"};function a(m){var l=m.toLowerCase();var k=["left","right","top","bottom"];for(var n=0;n<k.length;n++){if(l==k[n]){return true}}return false}function b(l){var k=false;k=(l instanceof Array)||(typeof l=="object"&&!l.position&&!l.size);return k}function h(k){if(typeof k=="string"){if(parseInt(k).toString()==k||k.toLowerCase().indexOf("px")>-1){return parseInt(k)}}return k}var f=["playlist","dock","controlbar","logo","display"];function e(o){var m={};switch(d.utils.typeOf(o.plugins)){case"object":for(var l in o.plugins){m[d.utils.getPluginName(l)]=l}break;case"string":var n=o.plugins.split(",");for(var k=0;k<n.length;k++){m[d.utils.getPluginName(n[k])]=n[k]}break}return m}function c(n,m,l,p){if(d.utils.typeOf(n[m])!="object"){n[m]={}}var k=n[m][l];if(d.utils.typeOf(k)!="object"){n[m][l]=k={}}if(p){if(m=="plugins"){var o=d.utils.getPluginName(l);k[p]=n[o+"."+p];delete n[o+"."+p]}else{k[p]=n[l+"."+p];delete n[l+"."+p]}}}d.embed.deserialize=function(k){var l=e(k);for(var p in l){c(k,"plugins",l[p])}for(var o in k){if(o.indexOf(".")>-1){var n=o.split(".");var m=n[0];var o=n[1];if(d.utils.isInArray(f,m)){c(k,"components",m,o)}else{if(l[m]){c(k,"plugins",l[m],o)}}}}return k};d.embed.config=function(l,k){var u=d.utils.extend({},l);var s;if(b(u.playlist)){s=u.playlist;delete u.playlist}u=d.embed.deserialize(u);u.height=h(u.height);u.width=h(u.width);if(typeof u.plugins=="string"){var m=u.plugins.split(",");if(typeof u.plugins!="object"){u.plugins={}}for(var q=0;q<m.length;q++){var r=d.utils.getPluginName(m[q]);if(typeof u[r]=="object"){u.plugins[m[q]]=u[r];delete u[r]}else{u.plugins[m[q]]={}}}}for(var t=0;t<f.length;t++){var p=f[t];if(d.utils.exists(u[p])){if(typeof u[p]!="object"){if(!u.components[p]){u.components[p]={}}if(p=="logo"){u.components[p].file=u[p]}else{u.components[p].position=u[p]}delete u[p]}else{if(!u.components[p]){u.components[p]={}}d.utils.extend(u.components[p],u[p]);delete u[p]}}if(typeof u[p+"size"]!="undefined"){if(!u.components[p]){u.components[p]={}}u.components[p].size=u[p+"size"];delete u[p+"size"]}}if(typeof u.icons!="undefined"){if(!u.components.display){u.components.display={}}u.components.display.icons=u.icons;delete u.icons}for(var o in j){if(u[o]){if(!u[j[o]]){u[j[o]]=u[o]}delete u[o]}}var n;if(u.flashplayer&&!u.modes){n=g();n[0].src=u.flashplayer;delete u.flashplayer}else{if(u.modes){if(typeof u.modes=="string"){n=g();n[0].src=u.modes}else{if(u.modes instanceof Array){n=u.modes}else{if(typeof u.modes=="object"&&u.modes.type){n=[u.modes]}}}delete u.modes}else{n=g()}}u.modes=n;if(s){u.playlist=s}return u}})(jwplayer);(function(a){a.embed.download=function(b,g,d,c,f){this.embed=function(){var s=a.utils.extend({},d);var o={};var r=d.width?d.width:480;if(typeof r!="number"){r=parseInt(r,10)}var u=d.height?d.height:320;if(typeof u!="number"){u=parseInt(u,10)}var k,m,l;var h={};if(d.playlist&&d.playlist.length){h.file=d.playlist[0].file;m=d.playlist[0].image;h.levels=d.playlist[0].levels}else{h.file=d.file;m=d.image;h.levels=d.levels}if(h.file){k=h.file}else{if(h.levels&&h.levels.length){k=h.levels[0].file}}l=k?"pointer":"auto";var t={display:{style:{cursor:l,width:r,height:u,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:l,position:"absolute",display:k?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:l,position:"absolute",display:k?"block":"none",top:((u-50)/2),left:((r-50)/2),border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:r,height:u,display:m?"block":"none",position:"absolute",cursor:l,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};var q=function(w,y,v){var x=document.createElement(w);if(v){x.id=v}else{x.id=b.id+"_jwplayer_"+y}a.utils.css(x,t[y].style);return x};o.display=q("a","display",b.id);if(k){o.display.setAttribute("href",a.utils.getAbsolutePath(k))}o.display_image=q("img","display_image");o.display_image.setAttribute("alt","Click to download...");if(m){o.display_image.setAttribute("src",a.utils.getAbsolutePath(m))}if(true){o.display_icon=q("div","display_icon");o.display_iconBackground=q("div","display_iconBackground");o.display.appendChild(o.display_image);o.display_iconBackground.appendChild(o.display_icon);o.display.appendChild(o.display_iconBackground)}_css=a.utils.css;_hide=function(v){_css(v,{display:"none"})};function p(v){_imageWidth=o.display_image.naturalWidth;_imageHeight=o.display_image.naturalHeight;j()}function j(){a.utils.stretch(a.utils.stretching.UNIFORM,o.display_image,r,u,_imageWidth,_imageHeight)}o.display_image.onerror=function(v){_hide(o.display_image)};o.display_image.onload=p;b.parentNode.replaceChild(o.display,b);var n=(d.plugins&&d.plugins.logo)?d.plugins.logo:{};o.display.appendChild(new a.embed.logo(d.components.logo,"download",b.id));f.container=document.getElementById(f.id);f.setPlayer(o.display,"download")};this.supportsConfig=function(){if(d){var j=a.utils.getFirstPlaylistItemFromConfig(d);if(typeof j.file=="undefined"&&typeof j.levels=="undefined"){return true}else{if(j.file){return e(j.file,j.provider,j.playlistfile)}else{if(j.levels&&j.levels.length){for(var h=0;h<j.levels.length;h++){if(j.levels[h].file&&e(j.levels[h].file,j.provider,j.playlistfile)){return true}}}}}}else{return true}};function e(j,l,h){if(h){return false}var k=["image","sound","youtube","http"];if(l&&(k.toString().indexOf(l)>-1)){return true}if(!l||(l&&l=="video")){var m=a.utils.extension(j);if(m&&a.utils.extensionmap[m]){return true}}return false}}})(jwplayer);(function(a){a.embed.flash=function(m,b,f,l,d){function g(o,n,p){var q=document.createElement("param");q.setAttribute("name",n);q.setAttribute("value",p);o.appendChild(q)}function e(o,p,n){return function(q){if(n){document.getElementById(d.id+"_wrapper").appendChild(p)}var s=document.getElementById(d.id).getPluginConfig("display");o.resize(s.width,s.height);var r={left:s.x,top:s.y};a.utils.css(p,r)}}function k(p){if(!p){return{}}var r={};for(var o in p){var n=p[o];for(var q in n){r[o+"."+q]=n[q]}}return r}function c(q,p){if(q[p]){var s=q[p];for(var o in s){var n=s[o];if(typeof n=="string"){if(!q[o]){q[o]=n}}else{for(var r in n){if(!q[o+"."+r]){q[o+"."+r]=n[r]}}}}delete q[p]}}function h(q){if(!q){return{}}var t={},s=[];for(var n in q){var p=a.utils.getPluginName(n);var o=q[n];s.push(n);for(var r in o){t[p+"."+r]=o[r]}}t.plugins=s.join(",");return t}function j(p){var n=p.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&";for(var o in p){if(typeof(p[o])=="object"){n+=o+"="+encodeURIComponent("[[JSON]]"+a.utils.strings.jsonToString(p[o]))+"&"}else{n+=o+"="+encodeURIComponent(p[o])+"&"}}return n.substring(0,n.length-1)}this.embed=function(){f.id=d.id;var s;var w=a.utils.extend({},f);var t=w.width;var q=w.height;if(m.id+"_wrapper"==m.parentNode.id){s=document.getElementById(m.id+"_wrapper")}else{s=document.createElement("div");s.id=m.id+"_wrapper";a.utils.wrap(m,s);a.utils.css(s,{position:"relative",width:t,height:q})}var u=l.setupPlugins(d,w,e);if(u.length>0){a.utils.extend(w,h(u.plugins))}else{delete w.plugins}var y=["height","width","modes","events"];for(var o=0;o<y.length;o++){delete w[y[o]]}var v="opaque";if(w.wmode){v=w.wmode}c(w,"components");c(w,"providers");if(typeof w["dock.position"]!="undefined"){if(w["dock.position"].toString().toLowerCase()=="false"){w.dock=w["dock.position"];delete w["dock.position"]}}var r="#000000";var x;if(a.utils.isIE()){var p='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+r+'" width="100%" height="100%" id="'+m.id+'" name="'+m.id+'" tabindex=0"">';p+='<param name="movie" value="'+b.src+'">';p+='<param name="allowfullscreen" value="true">';p+='<param name="allowscriptaccess" value="always">';p+='<param name="seamlesstabbing" value="true">';p+='<param name="wmode" value="'+v+'">';p+='<param name="flashvars" value="'+j(w)+'">';p+="</object>";a.utils.setOuterHTML(m,p);x=document.getElementById(m.id)}else{var n=document.createElement("object");n.setAttribute("type","application/x-shockwave-flash");n.setAttribute("data",b.src);n.setAttribute("width","100%");n.setAttribute("height","100%");n.setAttribute("bgcolor","#000000");n.setAttribute("id",m.id);n.setAttribute("name",m.id);n.setAttribute("tabindex",0);g(n,"allowfullscreen","true");g(n,"allowscriptaccess","always");g(n,"seamlesstabbing","true");g(n,"wmode",v);g(n,"flashvars",j(w));m.parentNode.replaceChild(n,m);x=n}d.container=x;d.setPlayer(x,"flash")};this.supportsConfig=function(){if(a.utils.hasFlash()){if(f){var o=a.utils.getFirstPlaylistItemFromConfig(f);if(typeof o.file=="undefined"&&typeof o.levels=="undefined"){return true}else{if(o.file){return flashCanPlay(o.file,o.provider)}else{if(o.levels&&o.levels.length){for(var n=0;n<o.levels.length;n++){if(o.levels[n].file&&flashCanPlay(o.levels[n].file,o.provider)){return true}}}}}}else{return true}}return false};flashCanPlay=function(n,p){var o=["video","http","sound","image"];if(p&&(o.toString().indexOf(p<0))){return true}var q=a.utils.extension(n);if(!q){return true}if(a.utils.exists(a.utils.extensionmap[q])&&!a.utils.exists(a.utils.extensionmap[q].flash)){return false}return true}}})(jwplayer);(function(a){a.embed.html5=function(b,g,d,c,f){function e(j,k,h){return function(l){var m=document.getElementById(b.id+"_displayarea");if(h){m.appendChild(k)}j.resize(m.clientWidth,m.clientHeight);k.left=m.style.left;k.top=m.style.top}}this.embed=function(){if(a.html5){c.setupPlugins(f,d,e);b.innerHTML="";var j=a.utils.extend({screencolor:"0x000000"},d);var h=["plugins","modes","events"];for(var k=0;k<h.length;k++){delete j[h[k]]}if(j.levels&&!j.sources){j.sources=d.levels}if(j.skin&&j.skin.toLowerCase().indexOf(".zip")>0){j.skin=j.skin.replace(/\.zip/i,".xml")}var l=new(a.html5(b)).setup(j);f.container=document.getElementById(f.id);f.setPlayer(l,"html5")}else{return null}};this.supportsConfig=function(){if(!!a.vid.canPlayType){if(d){var j=a.utils.getFirstPlaylistItemFromConfig(d);if(typeof j.file=="undefined"&&typeof j.levels=="undefined"){return true}else{if(j.file){return html5CanPlay(a.vid,j.file,j.provider,j.playlistfile)}else{if(j.levels&&j.levels.length){for(var h=0;h<j.levels.length;h++){if(j.levels[h].file&&html5CanPlay(a.vid,j.levels[h].file,j.provider,j.playlistfile)){return true}}}}}}else{return true}}return false};html5CanPlay=function(k,j,l,h){if(h){return false}if(l&&l=="youtube"){return true}if(l&&l!="video"&&l!="http"&&l!="sound"){return false}var m=a.utils.extension(j);if(!a.utils.exists(m)||!a.utils.exists(a.utils.extensionmap[m])){return true}if(!a.utils.exists(a.utils.extensionmap[m].html5)){return false}if(a.utils.isLegacyAndroid()&&m.match(/m4v|mp4/)){return true}return browserCanPlay(k,a.utils.extensionmap[m].html5)};browserCanPlay=function(j,h){if(!h){return true}if(j.canPlayType(h)){return true}else{if(h=="audio/mp3"&&navigator.userAgent.match(/safari/i)){return j.canPlayType("audio/mpeg")}else{return false}}}}})(jwplayer);(function(a){a.embed.logo=function(p,o,f){var m={prefix:"http://l.longtailvideo.com/"+o+"/",file:"",link:"",margin:8,out:0.5,over:1,timeout:5,hide:false,position:"bottom-left"};_css=a.utils.css;var c;var l;n();function n(){d();e();h()}function d(){if(m.prefix){var q=a.version.split(/\W/).splice(0,2).join("/");if(m.prefix.indexOf(q)<0){m.prefix+=q+"/"}}l=a.utils.extend({},m,p)}function k(){var s={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};s.display=l.hide?"none":"block";var r=l.position.toLowerCase().split("-");for(var q in r){s[r[q]]=l.margin}return s}function e(){c=document.createElement("img");c.id=f+"_jwplayer_logo";c.style.display="none";c.onload=function(q){_css(c,k());g()};if(!l.file){return}if(l.file.indexOf("http://")===0){c.src=l.file}else{c.src=l.prefix+l.file}}if(!l.file){return}function h(){if(l.link){c.onmouseover=j;c.onmouseout=g;c.onclick=b}else{this.mouseEnabled=false}}function b(q){if(typeof q!="undefined"){q.preventDefault();q.stopPropagation()}if(l.link){window.open(l.link,"_blank")}return}function g(q){if(l.link){c.style.opacity=l.out}return}function j(q){if(l.hide){c.style.opacity=l.over}return}return c}})(jwplayer);(function(a){a.html5=function(b){var c=b;this.setup=function(d){a.utils.extend(this,new a.html5.api(c,d));return this};return this}})(jwplayer);(function(b){var a=b.utils;var c=a.css;b.html5.view=function(m,k,x){var u=m;var H=k;var E=x;var C;var y;var s;var o;var v;var f;var p;var h=false;var j,e;function g(){C=document.createElement("div");C.id=H.id;C.className=H.className;_videowrapper=document.createElement("div");_videowrapper.id=C.id+"_video_wrapper";H.id=C.id+"_video";c(C,{position:"relative",height:E.height,width:E.width,padding:0,backgroundColor:I(),zIndex:0});function I(){if(u.skin.getComponentSettings("display")&&u.skin.getComponentSettings("display").backgroundcolor){return u.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}c(H,{width:"100%",height:"100%",top:0,left:0,zIndex:1,margin:"auto",display:"block"});c(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});a.wrap(H,C);a.wrap(H,_videowrapper);o=document.createElement("div");o.id=C.id+"_displayarea";C.appendChild(o)}function B(){for(var I=0;I<E.plugins.order.length;I++){var J=E.plugins.order[I];if(a.exists(E.plugins.object[J].getDisplayElement)){E.plugins.object[J].height=a.parseDimension(E.plugins.object[J].getDisplayElement().style.height);E.plugins.object[J].width=a.parseDimension(E.plugins.object[J].getDisplayElement().style.width);E.plugins.config[J].currentPosition=E.plugins.config[J].position}}t()}function G(I){c(o,{display:(E.getMedia()&&E.getMedia().hasChrome()&&I.newstate!=b.api.events.state.IDLE)?"none":"block"})}function t(J){var L=E.getMedia()?E.getMedia().getDisplayElement():null;if(a.exists(L)){if(p!=L){if(p&&p.parentNode){p.parentNode.replaceChild(L,p)}p=L}for(var I=0;I<E.plugins.order.length;I++){var K=E.plugins.order[I];if(a.exists(E.plugins.object[K].getDisplayElement)){E.plugins.config[K].currentPosition=E.plugins.config[K].position}}}A(E.width,E.height)}this.setup=function(){if(E&&E.getMedia()){H=E.getMedia().getDisplayElement()}g();B();u.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,G);u.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_LOADED,t);u.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_META,function(){F()});var I;if(a.exists(window.onresize)){I=window.onresize}window.onresize=function(J){if(a.exists(I)){try{I(J)}catch(L){}}if(u.jwGetFullscreen()){if(!l()){var K=a.getBoundingClientRect(document.body);E.width=Math.abs(K.left)+Math.abs(K.right);E.height=window.innerHeight;A(E.width,E.height)}}else{A(E.width,E.height)}}};function z(I){switch(I.keyCode){case 27:if(u.jwGetFullscreen()){u.jwSetFullscreen(false)}break;case 32:if(u.jwGetState()!=b.api.events.state.IDLE&&u.jwGetState()!=b.api.events.state.PAUSED){u.jwPause()}else{u.jwPlay()}break}}function A(N,K){if(C.style.display=="none"){return}var M=[].concat(E.plugins.order);M.reverse();v=M.length+2;if(l()){try{if(E.fullscreen&&!E.getMedia().getDisplayElement().webkitDisplayingFullscreen){E.fullscreen=false}}catch(I){}}if(!E.fullscreen){y=N;s=K;if(typeof N=="string"&&N.indexOf("%")>0){y=a.getElementWidth(a.parentNode(C))*parseInt(N.replace("%"),"")/100}else{y=N}if(typeof K=="string"&&K.indexOf("%")>0){s=a.getElementHeight(a.parentNode(C))*parseInt(K.replace("%"),"")/100}else{s=K}c(o,{top:0,bottom:0,left:0,right:0,width:y,height:s,position:"absolute"});c(C,{height:s,width:y});var L=d(q,M);if(L.length>0){v+=L.length;var J=L.indexOf("playlist"),O=L.indexOf("controlbar");if(J>=0&&O>=0){L[J]=L.splice(O,1,L[J])[0]}d(D,L,true)}j=a.getElementWidth(o);e=a.getElementHeight(o)}else{if(!l()){d(r,M,true)}}F()}function d(P,L,M){var N=[];for(var K=0;K<L.length;K++){var O=L[K];if(a.exists(E.plugins.object[O].getDisplayElement)){if(E.plugins.config[O].currentPosition!=b.html5.view.positions.NONE){var I=P(O,v--);if(!I){N.push(O)}else{var J=I.width;var Q=I.height;if(M){delete I.width;delete I.height}c(E.plugins.object[O].getDisplayElement(),I);E.plugins.object[O].resize(J,Q)}}else{c(E.plugins.object[O].getDisplayElement(),{display:"none"})}}}return N}function q(J,K){if(a.exists(E.plugins.object[J].getDisplayElement)){if(E.plugins.config[J].position&&n(E.plugins.config[J].position)){if(!a.exists(E.plugins.object[J].getDisplayElement().parentNode)){C.appendChild(E.plugins.object[J].getDisplayElement())}var I=w(J);I.zIndex=K;return I}}return false}function D(I,J){if(!a.exists(E.plugins.object[I].getDisplayElement().parentNode)){o.appendChild(E.plugins.object[I].getDisplayElement())}return{position:"absolute",width:(a.getElementWidth(o)-a.parseDimension(o.style.left)-a.parseDimension(o.style.right)),height:(a.getElementHeight(o)-a.parseDimension(o.style.top)-a.parseDimension(o.style.bottom)),zIndex:J}}function r(I,J){return{position:"fixed",width:E.width,height:E.height,zIndex:J}}function F(){if(!a.exists(E.getMedia())){return}o.style.position="absolute";var K=E.getMedia().getDisplayElement();if(K&&K.tagName.toLowerCase()=="video"){K.style.position="absolute";if(K.parentNode){K.parentNode.style.left=o.style.left;K.parentNode.style.top=o.style.top}if(E.fullscreen&&u.jwGetStretching()==b.utils.stretching.EXACTFIT&&!a.isMobile()){var I=document.createElement("div");a.stretch(b.utils.stretching.UNIFORM,I,a.getElementWidth(o),a.getElementHeight(o),j,e);a.stretch(b.utils.stretching.EXACTFIT,K,a.parseDimension(I.style.width),a.parseDimension(I.style.height),K.videoWidth?K.videoWidth:400,K.videoHeight?K.videoHeight:300);c(K,{left:I.style.left,top:I.style.top})}else{a.stretch(u.jwGetStretching(),K,a.getElementWidth(o),a.getElementHeight(o),K.videoWidth?K.videoWidth:400,K.videoHeight?K.videoHeight:300)}}else{var J=E.plugins.object.display.getDisplayElement();if(J){E.getMedia().resize(a.parseDimension(J.style.width),a.parseDimension(J.style.height))}else{E.getMedia().resize(a.parseDimension(o.style.width),a.parseDimension(o.style.height))}}}function w(J){var K={position:"absolute",margin:0,padding:0,top:null};var I=E.plugins.config[J].currentPosition.toLowerCase();switch(I.toUpperCase()){case b.html5.view.positions.TOP:K.top=a.parseDimension(o.style.top);K.left=a.parseDimension(o.style.left);K.width=a.getElementWidth(o)-a.parseDimension(o.style.left)-a.parseDimension(o.style.right);K.height=E.plugins.object[J].height;o.style[I]=a.parseDimension(o.style[I])+E.plugins.object[J].height+"px";o.style.height=a.getElementHeight(o)-K.height+"px";break;case b.html5.view.positions.RIGHT:K.top=a.parseDimension(o.style.top);K.right=a.parseDimension(o.style.right);K.width=E.plugins.object[J].width;K.height=a.getElementHeight(o)-a.parseDimension(o.style.top)-a.parseDimension(o.style.bottom);o.style.width=a.getElementWidth(o)-K.width+"px";break;case b.html5.view.positions.BOTTOM:K.bottom=a.parseDimension(o.style.bottom);K.left=a.parseDimension(o.style.left);K.width=a.getElementWidth(o)-a.parseDimension(o.style.left)-a.parseDimension(o.style.right);K.height=E.plugins.object[J].height;o.style.height=a.getElementHeight(o)-K.height+"px";break;case b.html5.view.positions.LEFT:K.top=a.parseDimension(o.style.top);K.left=a.parseDimension(o.style.left);K.width=E.plugins.object[J].width;K.height=a.getElementHeight(o)-a.parseDimension(o.style.top)-a.parseDimension(o.style.bottom);o.style[I]=a.parseDimension(o.style[I])+E.plugins.object[J].width+"px";o.style.width=a.getElementWidth(o)-K.width+"px";break;default:break}return K}this.resize=A;this.fullscreen=function(N){var J;try{J=E.getMedia().getDisplayElement()}catch(I){}if(l()&&J&&J.webkitSupportsFullscreen){if(N&&!J.webkitDisplayingFullscreen){try{a.transform(J);J.webkitEnterFullscreen()}catch(M){}}else{if(!N){F();if(J.webkitDisplayingFullscreen){try{J.webkitExitFullscreen()}catch(M){}}}}h=false}else{if(N){document.onkeydown=z;clearInterval(f);var L=a.getBoundingClientRect(document.body);E.width=Math.abs(L.left)+Math.abs(L.right);E.height=window.innerHeight;var K={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};c(C,K);K.zIndex=1;if(E.getMedia()&&E.getMedia().getDisplayElement()){c(E.getMedia().getDisplayElement(),K)}K.zIndex=2;c(o,K);h=true}else{document.onkeydown="";E.width=y;E.height=s;c(C,{position:"relative",height:E.height,width:E.width,zIndex:0});h=false}A(E.width,E.height)}};function n(I){return([b.html5.view.positions.TOP,b.html5.view.positions.RIGHT,b.html5.view.positions.BOTTOM,b.html5.view.positions.LEFT].toString().indexOf(I.toUpperCase())>-1)}function l(){if(u.jwGetState()!=b.api.events.state.IDLE&&!h&&(E.getMedia()&&E.getMedia().getDisplayElement()&&E.getMedia().getDisplayElement().webkitSupportsFullscreen)&&a.useNativeFullscreen()){return true}return false}};b.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(a){var b={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:a.html5.view.positions.BOTTOM,idlehide:false,hideplaylistcontrols:false,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_utils=a.utils;_css=_utils.css;_hide=function(c){_css(c,{display:"none"})};_show=function(c){_css(c,{display:"block"})};a.html5.controlbar=function(al,p){window.controlbar=this;var ak=al;var A=_utils.extend({},b,ak.skin.getComponentSettings("controlbar"),p);if(A.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[A.position]=="undefined"){return}if(_utils.mapLength(ak.skin.getComponentLayout("controlbar"))>0){A.layout=ak.skin.getComponentLayout("controlbar")}var D;var h;var B;var C;var Z="none";var af;var aj;var E;var ae;var ad;var s;var j={};var T=false;var aa={};var v;var ah=false;var S;var ab;var m=false;var G=false;var I;var ai=new a.html5.eventdispatcher();_utils.extend(this,ai);function O(){if(!v){v=ak.skin.getSkinElement("controlbar","background");if(!v){v={width:0,height:0,src:null}}}return v}function f(){B=0;C=0;h=0;if(!T){var ao={height:O().height,backgroundColor:A.backgroundcolor};D=document.createElement("div");D.id=ak.id+"_jwplayer_controlbar";_css(D,ao)}var an=(ak.skin.getSkinElement("controlbar","capLeft"));var am=(ak.skin.getSkinElement("controlbar","capRight"));if(an){r("capLeft","left",false,D)}w("background",D,{position:"absolute",height:O().height,left:(an?an.width:0),zIndex:0},"img");if(O().src){j.background.src=O().src}w("elements",D,{position:"relative",height:O().height,zIndex:1});if(am){r("capRight","right",false,D)}}this.getDisplayElement=function(){return D};this.resize=function(ao,am){k();_utils.cancelAnimation(D);ad=ao;s=am;if(G!=ak.jwGetFullscreen()){G=ak.jwGetFullscreen();ab=undefined}var an=q();N({id:ak.id,duration:E,position:aj});Y({id:ak.id,bufferPercent:ae});return an};this.show=function(){if(ah){ah=false;_show(D);n()}};this.hide=function(){if(!ah){ah=true;_hide(D);y()}};function U(){var an=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var ao in an){var am=an[ao];if(typeof j[am]!="undefined"){aa[am]=_utils.getBoundingClientRect(j[am])}}}var ac;function ag(am){if(ah){return}clearTimeout(S);if(A.position==a.html5.view.positions.OVER||ak.jwGetFullscreen()){switch(ak.jwGetState()){case a.api.events.state.PAUSED:case a.api.events.state.IDLE:if(D&&D.style.opacity<1&&(!A.idlehide||_utils.exists(am))){ac=false;setTimeout(function(){if(!ac){o()}},100)}if(A.idlehide){S=setTimeout(function(){u()},2000)}break;default:ac=true;if(am){o()}S=setTimeout(function(){u()},2000);break}}else{o()}}function u(){if(!ah){y();if(D.style.opacity==1){_utils.cancelAnimation(D);_utils.fadeTo(D,0,0.1,1,0)}}}function o(){if(!ah){n();if(D.style.opacity==0){_utils.cancelAnimation(D);_utils.fadeTo(D,1,0.1,0,0)}}}function K(am){return function(){if(m&&ab!=am){ab=am;ai.sendEvent(am,{component:"controlbar",boundingRect:g()})}}}var n=K(a.api.events.JWPLAYER_COMPONENT_SHOW);var y=K(a.api.events.JWPLAYER_COMPONENT_HIDE);function g(){if(A.position==a.html5.view.positions.OVER||ak.jwGetFullscreen()){return _utils.getDimensions(D)}else{return{x:0,y:0,width:0,height:0}}}function w(aq,ap,ao,am){var an;if(!T){if(!am){am="div"}an=document.createElement(am);j[aq]=an;an.id=D.id+"_"+aq;ap.appendChild(an)}else{an=document.getElementById(D.id+"_"+aq)}if(_utils.exists(ao)){_css(an,ao)}return an}function e(){if(ak.jwGetHeight()<=40){A.layout=_utils.clone(A.layout);for(var am=0;am<A.layout.left.elements.length;am++){if(A.layout.left.elements[am].name=="fullscreen"){A.layout.left.elements.splice(am,1)}}for(am=0;am<A.layout.right.elements.length;am++){if(A.layout.right.elements[am].name=="fullscreen"){A.layout.right.elements.splice(am,1)}}R()}P(A.layout.left);P(A.layout.center);P(A.layout.right)}function P(ap,am){var aq=ap.position=="right"?"right":"left";var ao=_utils.extend([],ap.elements);if(_utils.exists(am)){ao.reverse()}var ap=w(ap.position+"Group",j.elements,{"float":"left",styleFloat:"left",cssFloat:"left",height:"100%"});for(var an=0;an<ao.length;an++){z(ao[an],aq,ap)}}function c(){return h++}function z(aq,at,av){var ap,an,ao,am,aw;if(!av){av=j.elements}if(aq.type=="divider"){r("divider"+c(),at,true,av,undefined,aq.width,aq.element);return}switch(aq.name){case"play":r("playButton",at,false,av);r("pauseButton",at,true,av);l("playButton","jwPlay");l("pauseButton","jwPause");break;case"prev":r("prevButton",at,true,av);l("prevButton","jwPlaylistPrev");break;case"stop":r("stopButton",at,true,av);l("stopButton","jwStop");break;case"next":r("nextButton",at,true,av);l("nextButton","jwPlaylistNext");break;case"elapsed":r("elapsedText",at,true,av);break;case"time":an=!_utils.exists(ak.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:ak.skin.getSkinElement("controlbar","timeSliderCapLeft").width;ao=!_utils.exists(ak.skin.getSkinElement("controlbar","timeSliderCapRight"))?0:ak.skin.getSkinElement("controlbar","timeSliderCapRight").width;ap=at=="left"?an:ao;aw={height:O().height,position:"relative","float":"left",styleFloat:"left",cssFloat:"left"};var ar=w("timeSlider",av,aw);r("timeSliderCapLeft",at,true,ar,"relative");r("timeSliderRail",at,false,ar,"relative");r("timeSliderBuffer",at,false,ar,"absolute");r("timeSliderProgress",at,false,ar,"absolute");r("timeSliderThumb",at,false,ar,"absolute");r("timeSliderCapRight",at,true,ar,"relative");t("time");break;case"fullscreen":r("fullscreenButton",at,false,av);r("normalscreenButton",at,true,av);l("fullscreenButton","jwSetFullscreen",true);l("normalscreenButton","jwSetFullscreen",false);break;case"volume":an=!_utils.exists(ak.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:ak.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;ao=!_utils.exists(ak.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:ak.skin.getSkinElement("controlbar","volumeSliderCapRight").width;ap=at=="left"?an:ao;am=ak.skin.getSkinElement("controlbar","volumeSliderRail").width+an+ao;aw={height:O().height,position:"relative",width:am,"float":"left",styleFloat:"left",cssFloat:"left"};var au=w("volumeSlider",av,aw);r("volumeSliderCapLeft",at,false,au,"relative");r("volumeSliderRail",at,false,au,"relative");r("volumeSliderProgress",at,false,au,"absolute");r("volumeSliderThumb",at,false,au,"absolute");r("volumeSliderCapRight",at,false,au,"relative");t("volume");break;case"mute":r("muteButton",at,false,av);r("unmuteButton",at,true,av);l("muteButton","jwSetMute",true);l("unmuteButton","jwSetMute",false);break;case"duration":r("durationText",at,true,av);break}}function r(ap,at,an,aw,aq,am,ao){if(_utils.exists(ak.skin.getSkinElement("controlbar",ap))||ap.indexOf("Text")>0||ap.indexOf("divider")===0){var ar={height:"100%",position:aq?aq:"relative",display:"block","float":"left",styleFloat:"left",cssFloat:"left"};if((ap.indexOf("next")===0||ap.indexOf("prev")===0)&&(ak.jwGetPlaylist().length<2||A.hideplaylistcontrols)){an=false;ar.display="none"}var ax;if(ap.indexOf("Text")>0){ap.innerhtml="00:00";ar.font=A.fontsize+"px/"+(O().height+1)+"px "+A.font;ar.color=A.fontcolor;ar.textAlign="center";ar.fontWeight=A.fontweight;ar.fontStyle=A.fontstyle;ar.cursor="default";ax=14+3*A.fontsize}else{if(ap.indexOf("divider")===0){if(am){if(!isNaN(parseInt(am))){ax=parseInt(am)}}else{if(ao){var au=ak.skin.getSkinElement("controlbar",ao);if(au){ar.background="url("+au.src+") repeat-x center left";ax=au.width}}else{ar.background="url("+ak.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";ax=ak.skin.getSkinElement("controlbar","divider").width}}}else{ar.background="url("+ak.skin.getSkinElement("controlbar",ap).src+") repeat-x center left";ax=ak.skin.getSkinElement("controlbar",ap).width}}if(at=="left"){if(an){B+=ax}}else{if(at=="right"){if(an){C+=ax}}}if(_utils.typeOf(aw)=="undefined"){aw=j.elements}ar.width=ax;if(T){_css(j[ap],ar)}else{var av=w(ap,aw,ar);if(_utils.exists(ak.skin.getSkinElement("controlbar",ap+"Over"))){av.onmouseover=function(ay){av.style.backgroundImage=["url(",ak.skin.getSkinElement("controlbar",ap+"Over").src,")"].join("")};av.onmouseout=function(ay){av.style.backgroundImage=["url(",ak.skin.getSkinElement("controlbar",ap).src,")"].join("")}}if(ap.indexOf("divider")==0){av.setAttribute("class","divider")}}}}function F(){ak.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,x);ak.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,W);ak.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,Y);ak.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,V);ak.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,N);ak.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,M);ak.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,Q);ak.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,d)}function x(){if(!A.hideplaylistcontrols){if(ak.jwGetPlaylist().length>1){_show(j.nextButton);_show(j.prevButton)}else{_hide(j.nextButton);_hide(j.prevButton)}q();H()}}function W(am){E=ak.jwGetPlaylist()[am.index].duration;N({id:ak.id,duration:E,position:0});Y({id:ak.id,bufferProgress:0})}function H(){N({id:ak.id,duration:ak.jwGetDuration(),position:0});Y({id:ak.id,bufferProgress:0});M({id:ak.id,mute:ak.jwGetMute()});V({id:ak.id,newstate:a.api.events.state.IDLE});Q({id:ak.id,volume:ak.jwGetVolume()})}function l(ao,ap,an){if(T){return}if(_utils.exists(ak.skin.getSkinElement("controlbar",ao))){var am=j[ao];if(_utils.exists(am)){_css(am,{cursor:"pointer"});if(ap=="fullscreen"){am.onmouseup=function(aq){aq.stopPropagation();ak.jwSetFullscreen(!ak.jwGetFullscreen())}}else{am.onmouseup=function(aq){aq.stopPropagation();if(_utils.exists(an)){ak[ap](an)}else{ak[ap]()}}}}}}function t(am){if(T){return}var an=j[am+"Slider"];_css(j.elements,{cursor:"pointer"});_css(an,{cursor:"pointer"});an.onmousedown=function(ao){Z=am};an.onmouseup=function(ao){ao.stopPropagation();L(ao.pageX)};an.onmousemove=function(ao){if(Z=="time"){af=true;var ap=ao.pageX-aa[am+"Slider"].left-window.pageXOffset;_css(j[Z+"SliderThumb"],{left:ap})}}}function L(an){af=false;var am;if(Z=="time"){am=an-aa.timeSliderRail.left+window.pageXOffset;var ap=am/aa.timeSliderRail.width*E;if(ap<0){ap=0}else{if(ap>E){ap=E-3}}if(ak.jwGetState()==a.api.events.state.PAUSED||ak.jwGetState()==a.api.events.state.IDLE){ak.jwPlay()}ak.jwSeek(ap)}else{if(Z=="volume"){am=an-aa.volumeSliderRail.left-window.pageXOffset;var ao=Math.round(am/aa.volumeSliderRail.width*100);if(ao<0){ao=0}else{if(ao>100){ao=100}}if(ak.jwGetMute()){ak.jwSetMute(false)}ak.jwSetVolume(ao)}}Z="none"}function Y(an){if(_utils.exists(an.bufferPercent)){ae=an.bufferPercent}if(aa.timeSliderRail){var ap=ak.skin.getSkinElement("controlbar","timeSliderCapLeft");var ao=aa.timeSliderRail.width;var am=isNaN(Math.round(ao*ae/100))?0:Math.round(ao*ae/100);_css(j.timeSliderBuffer,{width:am,left:ap?ap.width:0})}}function M(am){if(am.mute){_hide(j.muteButton);_show(j.unmuteButton);_hide(j.volumeSliderProgress)}else{_show(j.muteButton);_hide(j.unmuteButton);_show(j.volumeSliderProgress)}}function V(am){if(am.newstate==a.api.events.state.BUFFERING||am.newstate==a.api.events.state.PLAYING){_show(j.pauseButton);_hide(j.playButton)}else{_hide(j.pauseButton);_show(j.playButton)}ag();if(am.newstate==a.api.events.state.IDLE){_hide(j.timeSliderBuffer);_hide(j.timeSliderProgress);_hide(j.timeSliderThumb);N({id:ak.id,duration:ak.jwGetDuration(),position:0})}else{_show(j.timeSliderBuffer);if(am.newstate!=a.api.events.state.BUFFERING){_show(j.timeSliderProgress);_show(j.timeSliderThumb)}}}function d(am){Y({bufferPercent:0});N(_utils.extend(am,{position:0,duration:E}))}function N(ap){if(_utils.exists(ap.position)){aj=ap.position}if(_utils.exists(ap.duration)){E=ap.duration}var an=(aj===E===0)?0:aj/E;var ar=aa.timeSliderRail;if(ar){var am=isNaN(Math.round(ar.width*an))?0:Math.round(ar.width*an);var aq=ak.skin.getSkinElement("controlbar","timeSliderCapLeft");var ao=am+(aq?aq.width:0);if(j.timeSliderProgress){_css(j.timeSliderProgress,{width:am,left:aq?aq.width:0});if(!af){if(j.timeSliderThumb){j.timeSliderThumb.style.left=ao+"px"}}}}if(j.durationText){j.durationText.innerHTML=_utils.timeFormat(E)}if(j.elapsedText){j.elapsedText.innerHTML=_utils.timeFormat(aj)}}function R(){var am=j.elements.childNodes;var ar,ap;for(var ao=0;ao<am.length;ao++){var aq=am[ao].childNodes;for(var an in aq){if(isNaN(parseInt(an,10))){continue}if(aq[an].id.indexOf(D.id+"_divider")===0&&ap&&ap.id.indexOf(D.id+"_divider")===0&&aq[an].style.backgroundImage==ap.style.backgroundImage){aq[an].style.display="none"}else{if(aq[an].id.indexOf(D.id+"_divider")===0&&ar&&ar.style.display!="none"){aq[an].style.display="block"}}if(aq[an].style.display!="none"){ap=aq[an]}ar=aq[an]}}}function J(){if(ak.jwGetFullscreen()){_show(j.normalscreenButton);_hide(j.fullscreenButton)}else{_hide(j.normalscreenButton);_show(j.fullscreenButton)}if(ak.jwGetState()==a.api.events.state.BUFFERING||ak.jwGetState()==a.api.events.state.PLAYING){_show(j.pauseButton);_hide(j.playButton)}else{_hide(j.pauseButton);_show(j.playButton)}if(ak.jwGetMute()==true){_hide(j.muteButton);_show(j.unmuteButton)}else{_show(j.muteButton);_hide(j.unmuteButton)}}function q(){R();J();var ao={width:ad};var aw={"float":"left",styleFloat:"left",cssFloat:"left"};if(A.position==a.html5.view.positions.OVER||ak.jwGetFullscreen()){ao.left=A.margin;ao.width-=2*A.margin;ao.top=s-O().height-A.margin;ao.height=O().height}var aq=ak.skin.getSkinElement("controlbar","capLeft");var au=ak.skin.getSkinElement("controlbar","capRight");aw.width=ao.width-(aq?aq.width:0)-(au?au.width:0);var ap=_utils.getBoundingClientRect(j.leftGroup).width;var at=_utils.getBoundingClientRect(j.rightGroup).width;var ar=aw.width-ap-at;var an=ar;var am=ak.skin.getSkinElement("controlbar","timeSliderCapLeft");var av=ak.skin.getSkinElement("controlbar","timeSliderCapRight");if(_utils.exists(am)){an-=am.width}if(_utils.exists(av)){an-=av.width}j.timeSlider.style.width=ar+"px";j.timeSliderRail.style.width=an+"px";_css(D,ao);_css(j.elements,aw);_css(j.background,aw);U();return ao}function Q(ar){if(_utils.exists(j.volumeSliderRail)){var ao=isNaN(ar.volume/100)?1:ar.volume/100;var ap=_utils.parseDimension(j.volumeSliderRail.style.width);var am=isNaN(Math.round(ap*ao))?0:Math.round(ap*ao);var at=_utils.parseDimension(j.volumeSliderRail.style.right);var an=(!_utils.exists(ak.skin.getSkinElement("controlbar","volumeSliderCapLeft")))?0:ak.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(j.volumeSliderProgress,{width:am,left:an});if(j.volumeSliderThumb){var aq=(am-Math.round(_utils.parseDimension(j.volumeSliderThumb.style.width)/2));aq=Math.min(Math.max(aq,0),ap-_utils.parseDimension(j.volumeSliderThumb.style.width));_css(j.volumeSliderThumb,{left:aq})}if(_utils.exists(j.volumeSliderCapLeft)){_css(j.volumeSliderCapLeft,{left:0})}}}function k(){I=document.getElementById(ak.id);I.addEventListener("mousemove",ag)}function X(){f();e();U();T=true;F();A.idlehide=(A.idlehide.toString().toLowerCase()=="true");if(A.position==a.html5.view.positions.OVER&&A.idlehide){D.style.opacity=0;m=true}else{D.style.opacity=1;setTimeout((function(){m=true;n()}),1)}k();H()}X();return this}})(jwplayer);(function(c){var b=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];var a=c.utils;c.html5.controller=function(x,o,g,l){var w=x;var r=g;var n=l;var H=o;var s=true;var f=-1;var J=a.exists(r.config.debug)&&(r.config.debug.toString().toLowerCase()=="console");var t=new c.html5.eventdispatcher(H.id,J);a.extend(this,t);var L=[];var z=false;function q(Q){if(z){t.sendEvent(Q.type,Q)}else{L.push(Q)}}function B(Q){if(!z){z=true;t.sendEvent(c.api.events.JWPLAYER_READY,Q);if(c.utils.exists(window.playerReady)){playerReady(Q)}if(c.utils.exists(window[g.config.playerReady])){window[g.config.playerReady](Q)}while(L.length>0){var S=L.shift();t.sendEvent(S.type,S)}if(g.config.autostart&&!c.utils.isIOS()){v()}while(G.length>0){var R=G.shift();K(R.method,R.arguments)}}}r.addGlobalListener(q);r.addEventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){r.getMedia().play()});r.addEventListener(c.api.events.JWPLAYER_MEDIA_TIME,function(Q){if(Q.position>=r.playlist[r.item].start&&f>=0){r.playlist[r.item].start=f;f=-1}});r.addEventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,function(Q){setTimeout(M,25)});r.addEventListener(c.api.events.JWPLAYER_PLAYLIST_LOADED,v);r.addEventListener(c.api.events.JWPLAYER_FULLSCREEN,y);function d(){try{E(r.item);if(r.playlist[r.item].levels[0].file.length>0){if(s||r.state==c.api.events.state.IDLE){r.getMedia().load(r.playlist[r.item]);s=false}else{if(r.state==c.api.events.state.PAUSED){r.getMedia().play()}}}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function e(){try{if(r.playlist[r.item].levels[0].file.length>0){switch(r.state){case c.api.events.state.PLAYING:case c.api.events.state.BUFFERING:if(r.getMedia()){r.getMedia().pause()}break}}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function I(Q){try{if(r.playlist[r.item].levels[0].file.length>0){if(typeof Q!="number"){Q=parseFloat(Q)}switch(r.state){case c.api.events.state.IDLE:if(f<0){f=r.playlist[r.item].start;r.playlist[r.item].start=Q}d();break;case c.api.events.state.PLAYING:case c.api.events.state.PAUSED:case c.api.events.state.BUFFERING:r.seek(Q);break}}return true}catch(R){t.sendEvent(c.api.events.JWPLAYER_ERROR,R)}return false}function F(Q){if(!a.exists(Q)){Q=true}try{if(r.getMedia()){r.getMedia().stop(Q)}return true}catch(R){t.sendEvent(c.api.events.JWPLAYER_ERROR,R)}return false}function p(){try{if(r.playlist[r.item].levels[0].file.length>0){if(r.config.shuffle){E(P())}else{if(r.item+1==r.playlist.length){E(0)}else{E(r.item+1)}}}if(r.state!=c.api.events.state.IDLE){var R=r.state;r.state=c.api.events.state.IDLE;t.sendEvent(c.api.events.JWPLAYER_PLAYER_STATE,{oldstate:R,newstate:c.api.events.state.IDLE})}d();return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function k(){try{if(r.playlist[r.item].levels[0].file.length>0){if(r.config.shuffle){E(P())}else{if(r.item===0){E(r.playlist.length-1)}else{E(r.item-1)}}}if(r.state!=c.api.events.state.IDLE){var R=r.state;r.state=c.api.events.state.IDLE;t.sendEvent(c.api.events.JWPLAYER_PLAYER_STATE,{oldstate:R,newstate:c.api.events.state.IDLE})}d();return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function P(){var Q=null;if(r.playlist.length>1){while(!a.exists(Q)){Q=Math.floor(Math.random()*r.playlist.length);if(Q==r.item){Q=null}}}else{Q=0}return Q}function h(R){if(!r.playlist||!r.playlist[R]){return false}try{if(r.playlist[R].levels[0].file.length>0){var S=r.state;if(S!==c.api.events.state.IDLE){if(r.playlist[r.item].provider==r.playlist[R].provider){F(false)}else{F()}}E(R);d()}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function E(Q){if(!r.playlist[Q]){return}r.setActiveMediaProvider(r.playlist[Q]);if(r.item!=Q){r.item=Q;s=true;t.sendEvent(c.api.events.JWPLAYER_PLAYLIST_ITEM,{index:Q})}}function j(R){try{E(r.item);var S=r.getMedia();switch(typeof(R)){case"number":S.volume(R);break;case"string":S.volume(parseInt(R,10));break}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function A(R){try{E(r.item);var S=r.getMedia();if(typeof R=="undefined"){S.mute(!r.mute)}else{if(R.toString().toLowerCase()=="true"){S.mute(true)}else{S.mute(false)}}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function m(R,Q){try{r.width=R;r.height=Q;n.resize(R,Q);t.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:r.width,height:r.height});return true}catch(S){t.sendEvent(c.api.events.JWPLAYER_ERROR,S)}return false}function D(R){try{if(typeof R=="undefined"){R=!r.fullscreen}if(R!=r.fullscreen){if(R.toString().toLowerCase()=="true"){r.fullscreen=true;n.fullscreen(true);t.sendEvent(c.api.events.JWPLAYER_FULLSCREEN,{fullscreen:true})}else{r.fullscreen=false;n.fullscreen(false);t.sendEvent(c.api.events.JWPLAYER_FULLSCREEN,{fullscreen:false})}t.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:r.width,height:r.height})}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function O(Q){try{F();r.loadPlaylist(Q);if(r.playlist[r.item].provider){E(r.item);if(r.config.autostart.toString().toLowerCase()=="true"){d()}return true}else{return false}}catch(R){t.sendEvent(c.api.events.JWPLAYER_ERROR,R)}return false}function v(Q){E(r.playlist[r.item]);if(r.config.autostart.toString().toLowerCase()=="true"){d()}}function y(Q){D(Q.fullscreen)}function C(){try{return r.getMedia().detachMedia()}catch(Q){return null}}function u(){try{return r.getMedia().attachMedia()}catch(Q){return null}}c.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function M(){switch(r.config.repeat.toUpperCase()){case c.html5.controller.repeatoptions.SINGLE:d();break;case c.html5.controller.repeatoptions.ALWAYS:if(r.item==r.playlist.length-1&&!r.config.shuffle){h(0)}else{p()}break;case c.html5.controller.repeatoptions.LIST:if(r.item==r.playlist.length-1&&!r.config.shuffle){F();E(0)}else{p()}break;default:F();break}}var G=[];function N(Q){return function(){if(z){K(Q,arguments)}else{G.push({method:Q,arguments:arguments})}}}function K(S,R){var Q=[];for(i=0;i<R.length;i++){Q.push(R[i])}S.apply(this,Q)}this.play=N(d);this.pause=N(e);this.seek=N(I);this.stop=N(F);this.next=N(p);this.prev=N(k);this.item=N(h);this.setVolume=N(j);this.setMute=N(A);this.resize=N(m);this.setFullscreen=N(D);this.load=N(O);this.playerReady=B;this.detachMedia=C;this.attachMedia=u}})(jwplayer);(function(a){a.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.1"><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/><setting name="fontcolor" value="0x000000"/></settings><layout><group position="left"><button name="play"/><divider name="divider"/><button name="prev"/><divider name="divider"/><button name="next"/><divider name="divider"/><text name="elapsed"/></group><group position="center"><slider name="time"/></group><group position="right"><text name="duration"/><divider name="divider"/><button name="blank"/><divider name="divider"/><button name="mute"/><slider name="volume"/><divider name="divider"/><button name="fullscreen"/></group></layout><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUOI3t1LERACAMQlFgGvcfxNIhHMK4gsUvUviOmgtNsiAZkBSEKxKEnCYkkQrJn/YwbUNiSDDYRZaQRDaShv+oX9GBZEIuK+8hXVLs+/YAAAAASUVORK5CYII="/><element name="blankButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUCB0FwcENgEAAw7Aq+893g8APUILNOQcbFRktVGqUVFRkWNz3xTa2sUaLNUosKlRUvvf5AdbWOTtzmzyWAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAANUlEQVR42u2RsQkAAAjD/NTTPaW6dXLrINJA1kBpGPMAjDWmOgp1HFQXx+b1KOefO4oxY57R73YnVYCQUCQAAAAASUVORK5CYII="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAIUlEQVQ4jWNgGAWjYOiD/0gYG3/U0FFDB4Oho2AUDAYAAEwiL9HrpdMVAAAAAElFTkSuQmCC"/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQklEQVQ4y2NgGAWjYOiD/1AMA/JAfB5NjCJD/YH4PRaLyDa0H4lNNUP/DxlD59PCUBCIp3ZEwYA+NZLUKBgFgwEAAN+HLX9sB8u8AAAAAElFTkSuQmCC"/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQElEQVQ4y2NgGAWjYOiD/0B8Hojl0cT+U2ooCL8HYn9qGwrD/bQw9P+QMXQ+tSMqnpoRBUpS+tRMUqNgFAwGAADxZy1/mHvFnAAAAABJRU5ErkJggg=="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAOElEQVRIDe3BwQkAIRADwAhhw/nU/kWwUK+KPITMABFh19Y+F0acY8CJvX9wYpXgRElwolSIiMf9ZWEDhtwurFsAAAAASUVORK5CYII="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAN0lEQVRIDe3BwQkAMQwDMBcc55mRe9zi7RR+FCwBEWG39vcfGHFm4MTuhhMlwYlVBSdKhYh43AW/LQMKm1spzwAAAABJRU5ErkJggg=="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAIElEQVRIiWNgGAWjYBTQBfynMR61YCRYMApGwSigMQAAiVWPcbq6UkIAAAAASUVORK5CYII="/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAYCAYAAAA/OUfnAAAAO0lEQVQYlWP4//8/Awwz0JgDBP/BeN6Cxf/hnI2btiI4u/fsQ3AOHjqK4Jw4eQbBOX/hEoKDYjSd/AMA4cS4mfLsorgAAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAJklEQVQ4y2NgGAUjDcwH4v/kaPxPikZkxcNVI9mBQ5XoGAWDFwAAsKAXKQQmfbUAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAMklEQVQ4y2NgGAWDHPyntub5xBr6Hwv/Pzk2/yfVG/8psRFE25Oq8T+tQnsIaB4FVAcAi2YVysVY52AAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAACmpqampqbBXAu8AAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderCapRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAQklEQVRIiWNgGAWjYMiD/0iYFDmSLbDHImdPLQtgBpEiR7Zl2NijAA5oEkT/0Whi5UiyAJ8BVMsHNMtoo2AUDAIAAGdcIN3IDNXoAAAAAElFTkSuQmCC"/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAP0lEQVRIx2NgGAWjYMiD/1RSQ5QB/wmIUWzJfzx8qhj+n4DYCAY0DyJ7PBbYU8sHMEvwiZFtODXUjIJRMJgBACpWIN2ZxdPTAAAAAElFTkSuQmCC"/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiUlEQVR42u3XSw2AMBREURwgAQlIQAISKgUpSEFKJeCg5b0E0kWBTVcD9ySTsL0Jn9IBAAAA+K2UUrBlW/Rr5ZDoIeeuoFkxJD9ss03aIXXQqB9SttoG7ZA6qNcOKdttiwcJh9RB+iFl4SshkRBuLR72+9cvH0SOKI2HRo7x/Fi1/uoCAAAAwLsD8ki99IlO2dQAAAAASUVORK5CYII="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVR42u3WMQrAIAxAUW/g/SdvGmvpoOBeSHgPsjj5QTANAACARCJilIhYM0tEvJM+Ik3Id9E957kQIb+F3OdCPC0hPkQriqWx9hp/x/QGAABQyAPLB22VGrpLDgAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAA/0lEQVR42u2U0QmEMBAF7cASLMESUoIlpARLSCkpwRJSgiWkhOvAXD4WsgRkyaG5DbyB+Yvg8KITAAAAAAAYk+u61mwk15EjPtlEfihmqIiZR1Qx80ghjgdUuiHXGHSVsoag0x6x8DUoyjD5KovmEJ9NTDMRPIT0mtdIUkjlonuNohO+Ha99DTmkuGgKCTcvebAzx82ZoCWC3/3aIMWSRucaxcjORSFY4xpFdjYJGp1rFGcyCYZ/RVh6AUnfcNZ2zih3/mGj1jVCdiNDwyrq1rA/xMdeEXvDVdnYc1vDc3uPkDObXrlaxbNHSOohQhr/WOeLEWfWTgAAAAAAADzNF9sHJ7PJ57MlAAAAAElFTkSuQmCC"/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACBklEQVR42u3Zv0sCYRzH8USTzOsHHEWGkC1HgaDgkktGDjUYtDQ01RDSljQ1BLU02+rk1NTm2NLq4Nx/0L/h9fnCd3j4cnZe1/U8xiO8h3uurufF0/3COd/3/0UWYiEWYiEWYiGJQ+J8xuPxKhXjEMZANinjIZhkGuVRNioE4wVURo4JkHm0xKWmhRAc1bh1EyCUw5BcBIjHiApKa4CErko6DEJwuRo6IRKzyJD8FJAyI3Zp2zRImiBcRhlfo5RtlxCcE3CcDNpGrhYIT2IhAJKilO0VRmzJ32fAMTpBTS0QMfGwlcuKMRftE0DJ0wCJdcOsCkBdXP3Mh9CEFUBTPS9mDZJBG6io4aqVzMdCokCw9H3kT6j/C/9iDdSeUMNC7DkyyxAs/Rk6Qss8FPWRZgdVtUH4DjxEn1zxh+/zj1wHlf4MQhNGrwqA6sY40U8JonRJwEQh+AO3AvCG6gHv4U7IY4krxkroWoAOkoQMGfCBrgIm+YBGqPENpIJ66CJg3x66Y0gnSUidAEEnNr9jjLiWMn5DiWP0OC/oAsCgkq43xBdGDMQr7YASP/vEkHvdl1+JOCcEV5sC4hGEOzTlPuKgd0b0xD4JkRcOgnRRTjdErkYhAsQVq6IdUuPJtmk7BCL3t/h88cx91pKQkI/pkDx6pmYTIjEoxiHsN1YWYiEWYiEWknhflZ5IErA5nr8AAAAASUVORK5CYII="/></elements></component><component name="dock"><settings><setting name="fontcolor" value="0xffffff"/></settings><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/></elements></component><component name="playlist"><settings><setting name="backgroundcolor" value="0xe8e8e8"/></settings><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHBJREFUaN7t2MENwCAMBEEe9N8wSKYC/D8YV7CyJoRkVtVImxkZPQInMxoP0XiIxkM0HsGbjjSNBx544IEHHnjggUe/6UQeey0PIh7XTftGxKPj4eXCtLsHHh+ZxkO0Iw8PR55Ni8ZD9Hu/EAoP0dc5RRg9qeRjVF8AAAAASUVORK5CYII="/><element name="sliderCapTop" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAKElEQVQ4y2P4//8/Az68bNmy/+iYkB6GUUNHDR01dNTQUUNHDaXcUABUDOKhcxnsSwAAAABJRU5ErkJggg=="/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAJUlEQVQ4T2P4//8/Ay4MBP9xYbz6Rg0dNXTU0FFDRw0dNZRyQwHH4NBa7GJsXAAAAABJRU5ErkJggg=="/><element name="sliderCapBottom" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/></elements></component></components></skin>';this.xml=null;if(window.DOMParser){parser=new DOMParser();this.xml=parser.parseFromString(this.text,"text/xml")}else{this.xml=new ActiveXObject("Microsoft.XMLDOM");this.xml.async="false";this.xml.loadXML(this.text)}return this}})(jwplayer);(function(a){_utils=a.utils;_css=_utils.css;_hide=function(b){_css(b,{display:"none"})};_show=function(b){_css(b,{display:"block"})};a.html5.display=function(Q,E){var P={icons:true,showmute:false};var S=_utils.extend({},P,E);var O=Q;var o={};var L;var r;var u;var k;var p;var G;var y;var H=!_utils.exists(O.skin.getComponentSettings("display").bufferrotation)?15:parseInt(O.skin.getComponentSettings("display").bufferrotation,10);var l=!_utils.exists(O.skin.getComponentSettings("display").bufferinterval)?100:parseInt(O.skin.getComponentSettings("display").bufferinterval,10);var x=-1;var q="";var b=true;var K;var N=false;var e=false;var t,f;var F=new a.html5.eventdispatcher();_utils.extend(this,F);var B={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:c},display_icon:{style:{cursor:"pointer",position:"absolute",top:((O.skin.getSkinElement("display","background").height-O.skin.getSkinElement("display","playIcon").height)/2),left:((O.skin.getSkinElement("display","background").width-O.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((r-O.skin.getSkinElement("display","background").height)/2),left:((L-O.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",O.skin.getSkinElement("display","background").src,")"]).join(""),width:O.skin.getSkinElement("display","background").width,height:O.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:L,height:r,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};O.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,h);O.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,h);O.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,h);O.jwAddEventListener(a.api.events.JWPLAYER_ERROR,j);d();function d(){o.display=A("div","display");o.display_text=A("div","display_text");o.display.appendChild(o.display_text);o.display_image=A("img","display_image");o.display_image.onerror=function(T){_hide(o.display_image)};o.display_image.onload=w;o.display_icon=A("div","display_icon");o.display_iconBackground=A("div","display_iconBackground");o.display.appendChild(o.display_image);o.display_iconBackground.appendChild(o.display_icon);o.display.appendChild(o.display_iconBackground);M();setTimeout((function(){e=true;if(S.icons.toString()=="true"){D()}}),1)}this.getDisplayElement=function(){return o.display};this.resize=function(U,T){_css(o.display,{width:U,height:T});_css(o.display_text,{width:(U-10),top:((T-_utils.getBoundingClientRect(o.display_text).height)/2)});_css(o.display_iconBackground,{top:((T-O.skin.getSkinElement("display","background").height)/2),left:((U-O.skin.getSkinElement("display","background").width)/2)});if(L!=U||r!=T){L=U;r=T;K=undefined;D()}if(!O.jwGetFullscreen()){t=U;f=T}J();h({})};this.show=function(){if(N){N=false;n(O.jwGetState())}};this.hide=function(){if(!N){z();N=true}};function w(T){u=o.display_image.naturalWidth;k=o.display_image.naturalHeight;J()}function J(){if(O.jwGetFullscreen()&&O.jwGetStretching()==a.utils.stretching.EXACTFIT){var T=document.createElement("div");_utils.stretch(a.utils.stretching.UNIFORM,T,L,r,t,f);_utils.stretch(a.utils.stretching.EXACTFIT,o.display_image,_utils.parseDimension(T.style.width),_utils.parseDimension(T.style.height),u,k);_css(o.display_image,{left:T.style.left,top:T.style.top})}else{_utils.stretch(O.jwGetStretching(),o.display_image,L,r,u,k)}}function A(T,V){var U=document.createElement(T);U.id=O.id+"_jwplayer_"+V;_css(U,B[V].style);return U}function M(){for(var T in o){if(_utils.exists(B[T].click)){o[T].onclick=B[T].click}}}function c(T){if(typeof T.preventDefault!="undefined"){T.preventDefault()}else{T.returnValue=false}if(O.jwGetState()!=a.api.events.state.PLAYING){O.jwPlay()}else{O.jwPause()}}function m(T){if(y){z();return}o.display_icon.style.backgroundImage=(["url(",O.skin.getSkinElement("display",T).src,")"]).join("");_css(o.display_icon,{width:O.skin.getSkinElement("display",T).width,height:O.skin.getSkinElement("display",T).height,top:(O.skin.getSkinElement("display","background").height-O.skin.getSkinElement("display",T).height)/2,left:(O.skin.getSkinElement("display","background").width-O.skin.getSkinElement("display",T).width)/2});I();if(_utils.exists(O.skin.getSkinElement("display",T+"Over"))){o.display_icon.onmouseover=function(U){o.display_icon.style.backgroundImage=["url(",O.skin.getSkinElement("display",T+"Over").src,")"].join("")};o.display_icon.onmouseout=function(U){o.display_icon.style.backgroundImage=["url(",O.skin.getSkinElement("display",T).src,")"].join("")}}else{o.display_icon.onmouseover=null;o.display_icon.onmouseout=null}}function z(){if(S.icons.toString()=="true"){_hide(o.display_icon);_hide(o.display_iconBackground);g()}}function I(){if(!N&&S.icons.toString()=="true"){_show(o.display_icon);_show(o.display_iconBackground);D()}}function j(T){y=true;z();o.display_text.innerHTML=T.message;_show(o.display_text);o.display_text.style.top=((r-_utils.getBoundingClientRect(o.display_text).height)/2)+"px"}function C(){o.display_image.style.display="none"}function h(T){if((T.type==a.api.events.JWPLAYER_PLAYER_STATE||T.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&y){y=false;_hide(o.display_text)}var U=O.jwGetState();if(U==q){return}q=U;if(x>=0){clearTimeout(x)}if(b||O.jwGetState()==a.api.events.state.PLAYING||O.jwGetState()==a.api.events.state.PAUSED){n(O.jwGetState())}else{x=setTimeout(R(O.jwGetState()),500)}}function R(T){return(function(){n(T)})}function n(T){if(_utils.exists(G)){clearInterval(G);G=null;_utils.animations.rotate(o.display_icon,0)}switch(T){case a.api.events.state.BUFFERING:if(_utils.isMobile()){C();z()}else{if(O.jwGetPlaylist()[O.jwGetItem()].provider=="sound"){s()}p=0;G=setInterval(function(){p+=H;_utils.animations.rotate(o.display_icon,p%360)},l);m("bufferIcon");b=true}break;case a.api.events.state.PAUSED:if(!_utils.isMobile()){if(O.jwGetPlaylist()[O.jwGetItem()].provider!="sound"){_css(o.display_image,{background:"transparent no-repeat center center"})}m("playIcon");b=true}break;case a.api.events.state.IDLE:if(O.jwGetPlaylist()[O.jwGetItem()]&&O.jwGetPlaylist()[O.jwGetItem()].image){s()}else{C()}m("playIcon");b=true;break;default:if(O.jwGetPlaylist()[O.jwGetItem()]&&O.jwGetPlaylist()[O.jwGetItem()].provider=="sound"){if(_utils.isMobile()){C();b=false}else{s()}}else{C();b=false}if(O.jwGetMute()&&S.showmute){m("muteIcon")}else{z()}break}x=-1}function s(){if(O.jwGetPlaylist()[O.jwGetItem()]&&O.jwGetPlaylist()[O.jwGetItem()].image){_css(o.display_image,{display:"block"});o.display_image.src=_utils.getAbsolutePath(O.jwGetPlaylist()[O.jwGetItem()].image)}}function v(T){return function(){if(!e){return}if(!N&&K!=T){K=T;F.sendEvent(T,{component:"display",boundingRect:_utils.getDimensions(o.display_iconBackground)})}}}var D=v(a.api.events.JWPLAYER_COMPONENT_SHOW);var g=v(a.api.events.JWPLAYER_COMPONENT_HIDE);return this}})(jwplayer);(function(b){var a=b.utils;var c=a.css;b.html5.dock=function(w,o){function x(){return{align:b.html5.view.positions.RIGHT}}var g=a.extend({},x(),o);if(g.align=="FALSE"){return}var F={};var E=[];var d;var s;var B=false;var n=false;var D={x:0,y:0,width:0,height:0};var C;var h;var A;var f=new b.html5.eventdispatcher();a.extend(this,f);var m=document.createElement("div");m.id=w.id+"_jwplayer_dock";m.style.opacity=1;j();w.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,k);this.getDisplayElement=function(){return m};this.setButton=function(J,G,H,I){if(!G&&F[J]){a.arrays.remove(E,J);m.removeChild(F[J].div);delete F[J]}else{if(G){if(!F[J]){F[J]={}}F[J].handler=G;F[J].outGraphic=H;F[J].overGraphic=I;if(!F[J].div){E.push(J);F[J].div=document.createElement("div");F[J].div.style.position="relative";m.appendChild(F[J].div);F[J].div.appendChild(document.createElement("img"));F[J].div.childNodes[0].style.position="absolute";F[J].div.childNodes[0].style.left=0;F[J].div.childNodes[0].style.top=0;F[J].div.childNodes[0].style.zIndex=10;F[J].div.childNodes[0].style.cursor="pointer";F[J].div.appendChild(document.createElement("img"));F[J].div.childNodes[1].style.position="absolute";F[J].div.childNodes[1].style.left=0;F[J].div.childNodes[1].style.top=0;if(w.skin.getSkinElement("dock","button")){F[J].div.childNodes[1].src=w.skin.getSkinElement("dock","button").src}F[J].div.childNodes[1].style.zIndex=9;F[J].div.childNodes[1].style.cursor="pointer";F[J].div.onmouseover=function(){if(F[J].overGraphic){F[J].div.childNodes[0].src=F[J].overGraphic}if(w.skin.getSkinElement("dock","buttonOver")){F[J].div.childNodes[1].src=w.skin.getSkinElement("dock","buttonOver").src}};F[J].div.onmouseout=function(){if(F[J].outGraphic){F[J].div.childNodes[0].src=F[J].outGraphic}if(w.skin.getSkinElement("dock","button")){F[J].div.childNodes[1].src=w.skin.getSkinElement("dock","button").src}};if(w.skin.getSkinElement("dock","button")){F[J].div.childNodes[1].src=w.skin.getSkinElement("dock","button").src}}if(F[J].outGraphic){F[J].div.childNodes[0].src=F[J].outGraphic}else{if(F[J].overGraphic){F[J].div.childNodes[0].src=F[J].overGraphic}}if(G){F[J].div.onclick=function(K){K.preventDefault();b(w.id).callback(J);if(F[J].overGraphic){F[J].div.childNodes[0].src=F[J].overGraphic}if(w.skin.getSkinElement("dock","button")){F[J].div.childNodes[1].src=w.skin.getSkinElement("dock","button").src}}}}}e(d,s)};function q(G){}function e(R,P){j();if(E.length>0){var S=10;var O=S;var L=-1;var M=w.skin.getSkinElement("dock","button").height;var K=w.skin.getSkinElement("dock","button").width;var I=R-K-S;var N,H;if(g.align==b.html5.view.positions.LEFT){L=1;I=S}for(var T=0;T<E.length;T++){var Q=Math.floor(O/P);if((O+M+S)>((Q+1)*P)){O=((Q+1)*P)+S;Q=Math.floor(O/P)}var G=F[E[T]].div;G.style.top=(O%P)+"px";G.style.left=(I+(w.skin.getSkinElement("dock","button").width+S)*Q*L)+"px";var J={x:a.parseDimension(G.style.left),y:a.parseDimension(G.style.top),width:K,height:M};if(!N||(J.x<=N.x&&J.y<=N.y)){N=J}if(!H||(J.x>=H.x&&J.y>=H.y)){H=J}O+=w.skin.getSkinElement("dock","button").height+S}D={x:N.x,y:N.y,width:H.x-N.x+H.width,height:N.y-H.y+H.height}}if(n!=w.jwGetFullscreen()||d!=R||s!=P){d=R;s=P;n=w.jwGetFullscreen();C=undefined;setTimeout(p,1)}}function y(G){return function(){if(!B&&C!=G&&E.length>0){C=G;f.sendEvent(G,{component:"dock",boundingRect:D})}}}function k(G){if(a.isMobile()){if(G.newstate==b.api.events.state.IDLE){v()}else{z()}}else{l()}}function l(G){if(B){return}clearTimeout(A);if(o.position==b.html5.view.positions.OVER||w.jwGetFullscreen()){switch(w.jwGetState()){case b.api.events.state.PAUSED:case b.api.events.state.IDLE:if(m&&m.style.opacity<1&&(!o.idlehide||a.exists(G))){r()}if(o.idlehide){A=setTimeout(function(){t()},2000)}break;default:if(a.exists(G)){r()}A=setTimeout(function(){t()},2000);break}}else{r()}}var p=y(b.api.events.JWPLAYER_COMPONENT_SHOW);var u=y(b.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=e;var v=function(){c(m,{display:"block"});if(B){B=false;p()}};var z=function(){c(m,{display:"none"});if(!B){u();B=true}};function t(){if(!B){u();if(m.style.opacity==1){a.cancelAnimation(m);a.fadeTo(m,0,0.1,1,0)}}}function r(){if(!B){p();if(m.style.opacity==0){a.cancelAnimation(m);a.fadeTo(m,1,0.1,0,0)}}}function j(){h=document.getElementById(w.id);h.addEventListener("mousemove",l)}this.hide=z;this.show=v;return this}})(jwplayer);(function(a){a.html5.eventdispatcher=function(d,b){var c=new a.events.eventdispatcher(b);a.utils.extend(this,c);this.sendEvent=function(e,f){if(!a.utils.exists(f)){f={}}a.utils.extend(f,{id:d,version:a.version,type:e});c.sendEvent(e,f)}}})(jwplayer);(function(a){var b={prefix:"",file:"",link:"",margin:8,out:0.5,over:1,timeout:5,hide:true,position:"bottom-left"};_css=a.utils.css;a.html5.logo=function(s,k){var h=s;var u;var e;var t;var n=false;l();function l(){d();h.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,o);c();q()}function d(){if(b.prefix){var v=s.version.split(/\W/).splice(0,2).join("/");if(b.prefix.indexOf(v)<0){b.prefix+=v+"/"}}if(k.position==a.html5.view.positions.OVER){k.position=b.position}try{if(window.location.href.indexOf("https")==0){b.prefix=b.prefix.replace("http://l.longtailvideo.com","https://securel.longtailvideo.com")}}catch(w){}e=a.utils.extend({},b,k)}function c(){t=document.createElement("img");t.id=h.id+"_jwplayer_logo";t.style.display="none";t.onload=function(v){_css(t,p());f()};if(!e.file){return}if(e.file.indexOf("/")>=0){t.src=e.file}else{t.src=e.prefix+e.file}}if(!e.file){return}this.resize=function(w,v){};this.getDisplayElement=function(){return t};function q(){if(e.link){t.onmouseover=j;t.onmouseout=f;t.onclick=m}else{this.mouseEnabled=false}}function m(v){if(typeof v!="undefined"){v.stopPropagation()}if(!n){return}h.jwPause();h.jwSetFullscreen(false);if(e.link){window.open(e.link,"_top")}return}function f(v){if(e.link&&n){t.style.opacity=e.out}return}function j(v){if(n){t.style.opacity=e.over}return}function p(){var x={textDecoration:"none",position:"absolute",cursor:"pointer"};x.display=(e.hide.toString()=="true"&&!n)?"none":"block";var w=e.position.toLowerCase().split("-");for(var v in w){x[w[v]]=e.margin}return x}function r(){if(e.hide.toString()=="true"){t.style.display="block";t.style.opacity=0;a.utils.fadeTo(t,e.out,0.1,parseFloat(t.style.opacity));u=setTimeout(function(){g()},e.timeout*1000)}n=true}function g(){n=false;if(e.hide.toString()=="true"){a.utils.fadeTo(t,0,0.1,parseFloat(t.style.opacity))}}function o(v){if(v.newstate==a.api.events.state.BUFFERING){clearTimeout(u);r()}}return this}})(jwplayer);(function(e){var b={ended:e.api.events.state.IDLE,playing:e.api.events.state.PLAYING,pause:e.api.events.state.PAUSED,buffering:e.api.events.state.BUFFERING};var c=e.utils;var a=c.css;var d=c.isMobile();e.html5.mediavideo=function(w,m){var k={abort:F,canplay:z,canplaythrough:z,durationchange:I,emptied:F,ended:z,error:r,loadeddata:I,loadedmetadata:I,loadstart:z,pause:z,play:F,playing:z,progress:C,ratechange:F,seeked:z,seeking:z,stalled:z,suspend:z,timeupdate:q,volumechange:j,waiting:z,canshowcurrentframe:F,dataunavailable:F,empty:F,load:g,loadedfirstframe:F,webkitfullscreenchange:x};var y=new e.html5.eventdispatcher();c.extend(this,y);var H=w,A=m,B,n,l,D,u,L=false,M=false,o,K,f;J();this.load=function(Q,N){if(typeof N=="undefined"){N=true}if(!M){return}D=Q;c.empty(B);f=0;if(Q.levels&&Q.levels.length>0){if(Q.levels.length==1){B.src=Q.levels[0].file}else{t(Q.levels);if(B.src){B.removeAttribute("src")}for(var P=0;P<Q.levels.length;P++){var O=B.ownerDocument.createElement("source");O.src=Q.levels[P].file;B.appendChild(O);f++}}}else{B.src=Q.file}if(d){if(Q.image){B.poster=Q.image}B.style.display="block";setTimeout(function(){B.setAttribute("controls","controls")},100)}o=K=l=false;H.buffer=0;if(!c.exists(Q.start)){Q.start=0}H.duration=Q.duration;y.sendEvent(e.api.events.JWPLAYER_MEDIA_LOADED);if((!d&&Q.levels.length==1)||!L){B.load()}L=false;if(N){s(e.api.events.state.BUFFERING);y.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});this.play()}};this.play=function(){if(!M){return}if(n!=e.api.events.state.PLAYING){p();if(K){s(e.api.events.state.PLAYING)}else{s(e.api.events.state.BUFFERING)}B.play()}};this.pause=function(){if(!M){return}B.pause();s(e.api.events.state.PAUSED)};this.seek=function(N){if(!M){return}if(!(H.duration<=0||isNaN(H.duration))&&!(H.position<=0||isNaN(H.position))){B.currentTime=N;B.play()}};_stop=this.stop=function(P){if(!M){return}if(!c.exists(P)){P=true}v();if(P){B.style.display="none";K=false;var N=navigator.userAgent;if(N.match(/chrome/i)){B.src=undefined}else{if(N.match(/safari/i)||N.match(/firefox/i)){B.removeAttribute("src")}else{B.src=""}}B.removeAttribute("controls");B.removeAttribute("poster");c.empty(B);B.load();L=true;if(B.webkitSupportsFullscreen){try{B.webkitExitFullscreen()}catch(O){}}}s(e.api.events.state.IDLE)};this.fullscreen=function(N){if(N===true){this.resize("100%","100%")}else{this.resize(H.config.width,H.config.height)}};this.resize=function(O,N){};this.volume=function(N){if(!d){B.volume=N/100}};this.mute=function(N){if(!d){B.muted=N}};this.getDisplayElement=function(){return B};this.hasChrome=function(){return d};this.detachMedia=function(){M=false;return this.getDisplayElement()};this.attachMedia=function(){M=true};function h(O,N){return function(P){if(M&&c.exists(P.target.parentNode)){N(P)}}}function J(){B=document.createElement("video");n=e.api.events.state.IDLE;for(var N in k){B.addEventListener(N,h(N,k[N]),true)}M=true;B.setAttribute("x-webkit-airplay","allow");if(A.parentNode){A.parentNode.replaceChild(B,A)}if(!B.id){B.id=A.id}B.volume=H.volume/100}function s(N){if(N==e.api.events.state.PAUSED&&n==e.api.events.state.IDLE){return}if(n!=N){var O=n;H.state=n=N;y.sendEvent(e.api.events.JWPLAYER_PLAYER_STATE,{oldstate:O,newstate:N})}}function F(N){}function j(N){var O=Math.round(B.volume*100);if(O!=H.volume){H.volume=O;y.sendEvent(e.api.events.JWPLAYER_MEDIA_VOLUME,{volume:H.volume})}if(B.muted!=H.mute){H.mute=B.muted;y.sendEvent(e.api.events.JWPLAYER_MEDIA_MUTE,{mute:H.mute})}}function C(O){var N;if(c.exists(O)&&O.lengthComputable&&O.total){N=O.loaded/O.total*100}else{if(c.exists(B.buffered)&&(B.buffered.length>0)){var P=B.buffered.length-1;if(P>=0){N=B.buffered.end(P)/B.duration*100}}}if(K===false&&n==e.api.events.state.BUFFERING){y.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER_FULL);K=true}if(!o){if(N==100){o=true}if(c.exists(N)&&(N>H.buffer)){H.buffer=Math.round(N);y.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(N)})}}}function q(O){if(c.exists(O)&&c.exists(O.target)){if(!isNaN(O.target.duration)&&(isNaN(H.duration)||H.duration<1)){if(O.target.duration==Infinity){H.duration=0}else{H.duration=Math.round(O.target.duration*10)/10}}if(!l&&B.readyState>0){B.style.display="block";s(e.api.events.state.PLAYING)}if(n==e.api.events.state.PLAYING){if(!l&&B.readyState>0){l=true;try{if(B.currentTime<D.start){B.currentTime=D.start}}catch(N){}B.volume=H.volume/100;B.muted=H.mute}H.position=H.duration>0?(Math.round(O.target.currentTime*10)/10):0;y.sendEvent(e.api.events.JWPLAYER_MEDIA_TIME,{position:H.position,duration:H.duration});if(H.position>=H.duration&&(H.position>0||H.duration>0)){G()}}}C(O)}function g(N){}function z(N){if(b[N.type]){if(N.type=="ended"){G()}else{s(b[N.type])}}}function I(N){var P=Math.round(N.target.duration*10)/10;var O={height:N.target.videoHeight,width:N.target.videoWidth,duration:P};if((H.duration<P||isNaN(H.duration))&&N.target.duration!=Infinity){H.duration=P}y.sendEvent(e.api.events.JWPLAYER_MEDIA_META,{metadata:O})}function r(O){if(n==e.api.events.state.IDLE){return}var N="There was an error: ";if((O.target.error&&O.target.tagName.toLowerCase()=="video")||O.target.parentNode.error&&O.target.parentNode.tagName.toLowerCase()=="video"){var P=!c.exists(O.target.error)?O.target.parentNode.error:O.target.error;switch(P.code){case P.MEDIA_ERR_ABORTED:N="You aborted the video playback: ";break;case P.MEDIA_ERR_NETWORK:N="A network error caused the video download to fail part-way: ";break;case P.MEDIA_ERR_DECODE:N="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case P.MEDIA_ERR_SRC_NOT_SUPPORTED:N="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:N="An unknown error occurred: ";break}}else{if(O.target.tagName.toLowerCase()=="source"){f--;if(f>0){return}N="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{c.log("An unknown error occurred.  Continuing...");return}}_stop(false);N+=E();_error=true;y.sendEvent(e.api.events.JWPLAYER_ERROR,{message:N});return}function E(){var N="";for(var Q in D.levels){var P=D.levels[Q];var O=A.ownerDocument.createElement("source");N+=e.utils.getAbsolutePath(P.file);if(Q<(D.levels.length-1)){N+=", "}}return N}function p(){if(!c.exists(u)){u=setInterval(function(){C()},100)}}function v(){clearInterval(u);u=null}function G(){if(n!=e.api.events.state.IDLE){_stop(false);y.sendEvent(e.api.events.JWPLAYER_MEDIA_COMPLETE)}}function x(N){if(c.exists(B.webkitDisplayingFullscreen)){if(H.fullscreen&&!B.webkitDisplayingFullscreen){y.sendEvent(e.api.events.JWPLAYER_FULLSCREEN,{fullscreen:false})}}}function t(N){if(N.length>0&&c.isIOS()){if(c.extension(N[0].file)!="mp4"){var P=-1;for(var Q=1;Q<N.length;Q++){if(c.extension(N[Q].file)=="mp4"){P=Q;break}}if(P>-1){var O=N.splice(P,1)[0];N.unshift(O)}}}}}})(jwplayer);(function(b){var a={ended:b.api.events.state.IDLE,playing:b.api.events.state.PLAYING,pause:b.api.events.state.PAUSED,buffering:b.api.events.state.BUFFERING};var c=b.utils.css;b.html5.mediayoutube=function(d,l){var m=new b.html5.eventdispatcher();b.utils.extend(this,m);var f=d;var o=document.getElementById(l.id);var n=b.api.events.state.IDLE;var h,g;function e(p){if(n!=p){var q=n;f.state=p;n=p;m.sendEvent(b.api.events.JWPLAYER_PLAYER_STATE,{oldstate:q,newstate:p})}}this.getDisplayElement=this.detachMedia=function(){return o};this.attachMedia=function(){};this.play=function(){if(n==b.api.events.state.IDLE){m.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100});m.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL);e(b.api.events.state.PLAYING)}else{if(n==b.api.events.state.PAUSED){e(b.api.events.state.PLAYING)}}};this.pause=function(){e(b.api.events.state.PAUSED)};this.seek=function(p){};this.stop=function(p){if(!_utils.exists(p)){p=true}f.position=0;e(b.api.events.state.IDLE);if(p){c(o,{display:"none"})}};this.volume=function(p){f.volume=p;m.sendEvent(b.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(p)})};this.mute=function(p){o.muted=p;f.mute=p;m.sendEvent(b.api.events.JWPLAYER_MEDIA_MUTE,{mute:p})};this.resize=function(q,p){if(q*p>0&&h){h.width=g.width=q;h.height=g.height=p}};this.fullscreen=function(p){if(p===true){this.resize("100%","100%")}else{this.resize(f.config.width,f.config.height)}};this.load=function(p){j(p);c(h,{display:"block"});e(b.api.events.state.BUFFERING);m.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});m.sendEvent(b.api.events.JWPLAYER_MEDIA_LOADED);this.play()};this.hasChrome=function(){return(n!=b.api.events.state.IDLE)};function j(u){var r=u.levels[0].file;r=["http://www.youtube.com/v/",k(r),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");h=document.createElement("object");h.id=o.id;h.style.position="absolute";var t={movie:r,allowfullscreen:"true",allowscriptaccess:"always"};for(var v in t){var s=document.createElement("param");s.name=v;s.value=t[v];h.appendChild(s)}g=document.createElement("embed");h.appendChild(g);var p={src:r,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:h.width,height:h.height};for(var q in p){g.setAttribute(q,p[q])}h.appendChild(g);h.style.zIndex=2147483000;if(o!=h&&o.parentNode){o.parentNode.replaceChild(h,o)}o=h}function k(q){var p=q.split(/\?|\#\!/);var s="";for(var r=0;r<p.length;r++){if(p[r].substr(0,2)=="v="){s=p[r].substr(2)}}if(s==""){if(q.indexOf("/v/")>=0){s=q.substr(q.indexOf("/v/")+3)}else{if(q.indexOf("youtu.be")>=0){s=q.substr(q.indexOf("youtu.be/")+9)}else{s=q}}}if(s.indexOf("?")>-1){s=s.substr(0,s.indexOf("?"))}if(s.indexOf("&")>-1){s=s.substr(0,s.indexOf("&"))}return s}this.embed=g;return this}})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){var _api=api;var _container=container;var _model={id:_container.id,playlist:[],state:jwplayer.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:false,fullscreen:false,repeat:"",stretching:jwplayer.utils.stretching.UNIFORM,autostart:false,debug:undefined,screencolor:undefined}};var _media;var _eventDispatcher=new jwplayer.html5.eventdispatcher();var _components=["display","logo","controlbar","playlist","dock"];jwplayer.utils.extend(_model,_eventDispatcher);for(var option in options){if(typeof options[option]=="string"){var type=/color$/.test(option)?"color":null;options[option]=jwplayer.utils.typechecker(options[option],type)}var config=_model.config;var path=option.split(".");for(var edge in path){if(edge==path.length-1){config[path[edge]]=options[option]}else{if(!jwplayer.utils.exists(config[path[edge]])){config[path[edge]]={}}config=config[path[edge]]}}}for(var index in _configurableStateVariables){var configurableStateVariable=_configurableStateVariables[index];_model[configurableStateVariable]=_model.config[configurableStateVariable]}var pluginorder=_components.concat([]);if(jwplayer.utils.exists(_model.plugins)){if(typeof _model.plugins=="string"){var userplugins=_model.plugins.split(",");for(var userplugin in userplugins){if(typeof userplugins[userplugin]=="string"){pluginorder.push(userplugins[userplugin].replace(/^\s+|\s+$/g,""))}}}}if(jwplayer.utils.isMobile()){pluginorder=["display","logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}else{if(_model.config.chromeless){pluginorder=["logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}}_model.plugins={order:pluginorder,config:{},object:{}};if(typeof _model.config.components!="undefined"){for(var component in _model.config.components){_model.plugins.config[component]=_model.config.components[component]}}var playlistVisible=false;for(var pluginIndex in _model.plugins.order){var pluginName=_model.plugins.order[pluginIndex];var pluginConfig=!jwplayer.utils.exists(_model.plugins.config[pluginName])?{}:_model.plugins.config[pluginName];_model.plugins.config[pluginName]=!jwplayer.utils.exists(_model.plugins.config[pluginName])?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig);if(!jwplayer.utils.exists(_model.plugins.config[pluginName].position)){if(pluginName=="playlist"){_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.NONE}else{_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER}}else{if(pluginName=="playlist"){playlistVisible=true}_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase()}}if(_model.plugins.config.controlbar&&playlistVisible){_model.plugins.config.controlbar.hideplaylistcontrols=true}if(typeof _model.plugins.config.dock!="undefined"){if(typeof _model.plugins.config.dock!="object"){var position=_model.plugins.config.dock.toString().toUpperCase();_model.plugins.config.dock={position:position}}if(typeof _model.plugins.config.dock.position!="undefined"){_model.plugins.config.dock.align=_model.plugins.config.dock.position;_model.plugins.config.dock.position=jwplayer.html5.view.positions.OVER}if(typeof _model.plugins.config.dock.idlehide=="undefined"){try{_model.plugins.config.dock.idlehide=_model.plugins.config.controlbar.idlehide}catch(e){}}}function _loadExternal(playlistfile){var loader=new jwplayer.html5.playlistloader();loader.addEventListener(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,function(evt){_model.playlist=new jwplayer.html5.playlist(evt);_loadComplete(true)});loader.addEventListener(jwplayer.api.events.JWPLAYER_ERROR,function(evt){_model.playlist=new jwplayer.html5.playlist({playlist:[]});_loadComplete(false)});loader.load(playlistfile)}function _loadComplete(){if(_model.config.shuffle){_model.item=_getShuffleItem()}else{if(_model.config.item>=_model.playlist.length){_model.config.item=_model.playlist.length-1}else{if(_model.config.item<0){_model.config.item=0}}_model.item=_model.config.item}_model.position=0;_model.duration=_model.playlist.length>0?_model.playlist[_model.item].duration:0;_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist});_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_ITEM,{index:_model.item})}_model.loadPlaylist=function(arg){var input;if(typeof arg=="string"){if(arg.indexOf("[")==0||arg.indexOf("{")=="0"){try{input=eval(arg)}catch(err){input=arg}}else{input=arg}}else{input=arg}var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input};break}_model.playlist=new jwplayer.html5.playlist(config);_model.item=_model.config.item>=0?_model.config.item:0;if(!_model.playlist[_model.item].provider){_loadExternal(_model.playlist[_model.item].file)}else{_loadComplete()}};function _getShuffleItem(){var result=null;if(_model.playlist.length>1){while(!jwplayer.utils.exists(result)){result=Math.floor(Math.random()*_model.playlist.length);if(result==_model.item){result=null}}}else{result=0}return result}function forward(evt){if(evt.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED){_container=_media.getDisplayElement()}_eventDispatcher.sendEvent(evt.type,evt)}var _mediaProviders={};_model.setActiveMediaProvider=function(playlistItem){if(playlistItem.provider=="audio"){playlistItem.provider="sound"}var provider=playlistItem.provider;var current=_media?_media.getDisplayElement():null;if(provider=="sound"||provider=="http"||provider==""){provider="video"}if(!jwplayer.utils.exists(_mediaProviders[provider])){switch(provider){case"video":_media=new jwplayer.html5.mediavideo(_model,current?current:_container);break;case"youtube":_media=new jwplayer.html5.mediayoutube(_model,current?current:_container);break}if(!jwplayer.utils.exists(_media)){return false}_media.addGlobalListener(forward);_mediaProviders[provider]=_media}else{if(_media!=_mediaProviders[provider]){if(_media){_media.stop()}_media=_mediaProviders[provider]}}return true};_model.getMedia=function(){return _media};_model.seek=function(pos){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_SEEK,{position:_model.position,offset:pos});return _media.seek(pos)};_model.setupPlugins=function(){if(!jwplayer.utils.exists(_model.plugins)||!jwplayer.utils.exists(_model.plugins.order)||_model.plugins.order.length==0){jwplayer.utils.log("No plugins to set up");return _model}for(var i=0;i<_model.plugins.order.length;i++){try{var pluginName=_model.plugins.order[i];if(jwplayer.utils.exists(jwplayer.html5[pluginName])){if(pluginName=="playlist"){_model.plugins.object[pluginName]=new jwplayer.html5.playlistcomponent(_api,_model.plugins.config[pluginName])}else{_model.plugins.object[pluginName]=new jwplayer.html5[pluginName](_api,_model.plugins.config[pluginName])}}else{_model.plugins.order.splice(plugin,plugin+1)}if(typeof _model.plugins.object[pluginName].addGlobalListener=="function"){_model.plugins.object[pluginName].addGlobalListener(forward)}}catch(err){jwplayer.utils.log("Could not setup "+pluginName)}}};return _model}})(jwplayer);(function(a){a.html5.playlist=function(b){var d=[];if(b.playlist&&b.playlist instanceof Array&&b.playlist.length>0){for(var c in b.playlist){if(!isNaN(parseInt(c))){d.push(new a.html5.playlistitem(b.playlist[c]))}}}else{d.push(new a.html5.playlistitem(b))}return d}})(jwplayer);(function(b){var a={size:180,position:b.html5.view.positions.NONE,itemheight:60,thumbs:true,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""};var c={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=b.utils;_css=_utils.css;_hide=function(d){_css(d,{display:"none"})};_show=function(d){_css(d,{display:"block"})};b.html5.playlistcomponent=function(t,s){var z=t;var e=b.utils.extend({},a,z.skin.getComponentSettings("playlist"),s);if(e.position==b.html5.view.positions.NONE||typeof b.html5.view.positions[e.position]=="undefined"){return}var A;var l;var u;var d;var g;var f;var k=-1;var h={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined};this.getDisplayElement=function(){return A};this.resize=function(F,D){l=F;u=D;if(z.jwGetFullscreen()){_hide(A)}else{var E={display:"block",width:l,height:u};_css(A,E)}};this.show=function(){_show(A)};this.hide=function(){_hide(A)};function j(){A=document.createElement("div");A.id=z.id+"_jwplayer_playlistcomponent";A.style.overflow="hidden";switch(e.position){case b.html5.view.positions.RIGHT:case b.html5.view.positions.LEFT:A.style.width=e.size+"px";break;case b.html5.view.positions.TOP:case b.html5.view.positions.BOTTOM:A.style.height=e.size+"px";break}q();if(h.item){e.itemheight=h.item.height}A.style.backgroundColor="#C6C6C6";z.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,v);z.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,x);z.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,m)}function p(){var D=document.createElement("ul");_css(D,{width:A.style.width,minWidth:A.style.width,height:A.style.height,backgroundColor:e.backgroundcolor,backgroundImage:h.background?"url("+h.background.src+")":"",color:e.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:c[e.font]?c[e.font]:c._sans,fontSize:(e.fontsize?e.fontsize:11)+"px",fontStyle:e.fontstyle,fontWeight:e.fontweight,overflowY:"auto"});return D}function B(D){return function(){var E=f.getElementsByClassName("item")[D];var F=e.fontcolor;var G=h.item?"url("+h.item.src+")":"";if(D==z.jwGetPlaylistIndex()){if(e.activecolor!==""){F=e.activecolor}if(h.itemActive){G="url("+h.itemActive.src+")"}}_css(E,{color:e.overcolor!==""?e.overcolor:F,backgroundImage:h.itemOver?"url("+h.itemOver.src+")":G})}}function o(D){return function(){var E=f.getElementsByClassName("item")[D];var F=e.fontcolor;var G=h.item?"url("+h.item.src+")":"";if(D==z.jwGetPlaylistIndex()){if(e.activecolor!==""){F=e.activecolor}if(h.itemActive){G="url("+h.itemActive.src+")"}}_css(E,{color:F,backgroundImage:G})}}function r(F){var M=d[F];var L=document.createElement("li");L.className="item";_css(L,{height:e.itemheight,display:"block",cursor:"pointer",backgroundImage:h.item?"url("+h.item.src+")":"",backgroundSize:"100% "+e.itemheight+"px"});L.onmouseover=B(F);L.onmouseout=o(F);var G=document.createElement("div");var P=new Image();var H=0;var I=0;var J=0;if(y()&&(M.image||M["playlist.image"]||h.itemImage)){P.className="image";if(h.itemImage){H=(e.itemheight-h.itemImage.height)/2;I=h.itemImage.width;J=h.itemImage.height}else{I=e.itemheight*4/3;J=e.itemheight}_css(G,{height:J,width:I,"float":"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:H+"px",position:"relative"});_css(P,{position:"relative"});G.appendChild(P);P.onload=function(){b.utils.stretch(b.utils.stretching.FILL,P,I,J,this.naturalWidth,this.naturalHeight)};if(M["playlist.image"]){P.src=M["playlist.image"]}else{if(M.image){P.src=M.image}else{if(h.itemImage){P.src=h.itemImage.src}}}L.appendChild(G)}var O=l-I-H*2;if(u<e.itemheight*d.length){O-=15}var N=document.createElement("div");_css(N,{position:"relative",height:"100%",overflow:"hidden"});var D=document.createElement("span");if(M.duration>0){D.className="duration";_css(D,{fontSize:(e.fontsize?e.fontsize:11)+"px",fontWeight:(e.fontweight?e.fontweight:"bold"),width:"40px",height:e.fontsize?e.fontsize+10:20,lineHeight:24,"float":"right",styleFloat:"right",cssFloat:"right"});D.innerHTML=_utils.timeFormat(M.duration);N.appendChild(D)}var K=document.createElement("span");K.className="title";_css(K,{padding:"5px 5px 0 "+(H?0:"5px"),height:e.fontsize?e.fontsize+10:20,lineHeight:e.fontsize?e.fontsize+10:20,overflow:"hidden","float":"left",styleFloat:"left",cssFloat:"left",width:((M.duration>0)?O-50:O)-10+"px",fontSize:(e.fontsize?e.fontsize:13)+"px",fontWeight:(e.fontweight?e.fontweight:"bold")});K.innerHTML=M?M.title:"";N.appendChild(K);if(M.description){var E=document.createElement("span");E.className="description";_css(E,{display:"block","float":"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:K.style.paddingLeft,paddingRight:K.style.paddingRight,lineHeight:(e.fontsize?e.fontsize+4:16)+"px",overflow:"hidden",position:"relative"});E.innerHTML=M.description;N.appendChild(E)}L.appendChild(N);return L}function v(E){A.innerHTML="";d=z.jwGetPlaylist();if(!d){return}items=[];f=p();for(var F=0;F<d.length;F++){var D=r(F);D.onclick=C(F);f.appendChild(D);items.push(D)}k=z.jwGetPlaylistIndex();o(k)();A.appendChild(f);if(_utils.isIOS()&&window.iScroll){f.style.height=e.itemheight*d.length+"px";var G=new iScroll(A.id)}}function C(D){return function(){z.jwPlaylistItem(D);z.jwPlay(true)}}function n(){f.scrollTop=z.jwGetPlaylistIndex()*e.itemheight}function y(){return e.thumbs.toString().toLowerCase()=="true"}function x(D){if(k>=0){o(k)();k=D.index}o(D.index)();n()}function m(){if(e.position==b.html5.view.positions.OVER){switch(z.jwGetState()){case b.api.events.state.IDLE:_show(A);break;default:_hide(A);break}}}function q(){for(var D in h){h[D]=w(D)}}function w(D){return z.skin.getSkinElement("playlist",D)}j();return this}})(jwplayer);(function(b){b.html5.playlistitem=function(c){var d={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};var e=b.utils.extend({},d,c);if(e.type){e.provider=e.type;delete e.type}if(e.levels.length===0){e.levels[0]=new b.html5.playlistitemlevel(e)}if(!e.provider){e.provider=a(e.levels[0])}else{e.provider=e.provider.toLowerCase()}return e};function a(c){if(b.utils.isYouTube(c.file)){return"youtube"}else{var d=b.utils.extension(c.file);var e;if(d&&b.utils.extensionmap[d]){if(d=="m3u8"){return"video"}e=b.utils.extensionmap[d].html5}else{if(c.type){e=c.type}}if(e){var f=e.split("/")[0];if(f=="audio"){return"sound"}else{if(f=="video"){return f}}}}return""}})(jwplayer);(function(a){a.html5.playlistitemlevel=function(b){var d={file:"",streamer:"",bitrate:0,width:0};for(var c in d){if(a.utils.exists(b[c])){d[c]=b[c]}}return d}})(jwplayer);(function(a){a.html5.playlistloader=function(){var c=new a.html5.eventdispatcher();a.utils.extend(this,c);this.load=function(e){a.utils.ajax(e,d,b)};function d(f){var e=[];try{var e=a.utils.parsers.rssparser.parse(f.responseXML.firstChild);c.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new a.html5.playlist({playlist:e})})}catch(g){b("Could not parse the playlist")}}function b(e){c.sendEvent(a.api.events.JWPLAYER_ERROR,{message:e?e:"Could not load playlist an unknown reason."})}}})(jwplayer);(function(a){a.html5.skin=function(){var b={};var c=false;this.load=function(d,e){new a.html5.skinloader(d,function(f){c=true;b=f;e()},function(){new a.html5.skinloader("",function(f){c=true;b=f;e()})})};this.getSkinElement=function(d,e){if(c){try{return b[d].elements[e]}catch(f){a.utils.log("No such skin component / element: ",[d,e])}}return null};this.getComponentSettings=function(d){if(c){return b[d].settings}return null};this.getComponentLayout=function(d){if(c){return b[d].layout}return null}}})(jwplayer);(function(a){a.html5.skinloader=function(b,p,f){var n={};var o=p;var g=f;var s=true;var e;var l=b;var k=false;function j(){if(typeof l!="string"||l===""){r(a.html5.defaultSkin().xml)}else{a.utils.ajax(a.utils.getAbsolutePath(l),function(t){try{if(a.utils.exists(t.responseXML)){r(t.responseXML);return}}catch(u){d()}r(a.html5.defaultSkin().xml)},function(t){r(a.html5.defaultSkin().xml)})}}function r(H){var x=H.getElementsByTagName("component");if(x.length===0){return}for(var E=0;E<x.length;E++){var v=x[E].getAttribute("name");var u={settings:{},elements:{},layout:{}};n[v]=u;var B=x[E].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var z=0;z<B.length;z++){m(B[z],v)}var J=x[E].getElementsByTagName("settings")[0];if(J&&J.childNodes.length>0){var K=J.getElementsByTagName("setting");for(var P=0;P<K.length;P++){var Q=K[P].getAttribute("name");var G=K[P].getAttribute("value");var F=/color$/.test(Q)?"color":null;n[v].settings[Q]=a.utils.typechecker(G,F)}}var L=x[E].getElementsByTagName("layout")[0];if(L&&L.childNodes.length>0){var M=L.getElementsByTagName("group");for(var D=0;D<M.length;D++){var t=M[D];n[v].layout[t.getAttribute("position")]={elements:[]};for(var O=0;O<t.attributes.length;O++){var w=t.attributes[O];n[v].layout[t.getAttribute("position")][w.name]=w.value}var N=t.getElementsByTagName("*");for(var C=0;C<N.length;C++){var y=N[C];n[v].layout[t.getAttribute("position")].elements.push({type:y.tagName});for(var A=0;A<y.attributes.length;A++){var I=y.attributes[A];n[v].layout[t.getAttribute("position")].elements[C][I.name]=I.value}if(!a.utils.exists(n[v].layout[t.getAttribute("position")].elements[C].name)){n[v].layout[t.getAttribute("position")].elements[C].name=y.tagName}}}}s=false;h()}}function h(){clearInterval(e);if(!k){e=setInterval(function(){q()},100)}}function m(t,z){var y=new Image();var v=t.getAttribute("name");var x=t.getAttribute("src");var A;if(x.indexOf("data:image/png;base64,")===0){A=x}else{var w=a.utils.getAbsolutePath(l);var u=w.substr(0,w.lastIndexOf("/"));A=[u,z,x].join("/")}n[z].elements[v]={height:0,width:0,src:"",ready:false,image:y};y.onload=function(B){c(y,v,z)};y.onerror=function(B){k=true;h();g()};y.src=A}function d(){for(var u in n){var w=n[u];for(var t in w.elements){var x=w.elements[t];var v=x.image;v.onload=null;v.onerror=null;delete x.image;delete w.elements[t]}delete n[u]}}function q(){for(var t in n){if(t!="properties"){for(var u in n[t].elements){if(!n[t].elements[u].ready){return}}}}if(s===false){clearInterval(e);o(n)}}function c(t,v,u){if(n[u]&&n[u].elements[v]){n[u].elements[v].height=t.height;n[u].elements[v].width=t.width;n[u].elements[v].src=t.src;n[u].elements[v].ready=true;h()}else{a.utils.log("Loaded an image for a missing element: "+u+"."+v)}}j()}})(jwplayer);(function(a){a.html5.api=function(h,g){var e={};var l=document.createElement("div");h.parentNode.replaceChild(l,h);l.id=h.id;e.version=a.version;e.id=l.id;var d=new a.html5.model(e,l,g);var b=new a.html5.view(e,l,d);var c=new a.html5.controller(e,l,d,b);e.skin=new a.html5.skin();e.jwPlay=function(o){if(typeof o=="undefined"){k()}else{if(o.toString().toLowerCase()=="true"){c.play()}else{c.pause()}}};e.jwPause=function(o){if(typeof o=="undefined"){k()}else{if(o.toString().toLowerCase()=="true"){c.pause()}else{c.play()}}};function k(){if(d.state==a.api.events.state.PLAYING||d.state==a.api.events.state.BUFFERING){c.pause()}else{c.play()}}e.jwStop=c.stop;e.jwSeek=c.seek;e.jwPlaylistItem=c.item;e.jwPlaylistNext=c.next;e.jwPlaylistPrev=c.prev;e.jwResize=c.resize;e.jwLoad=c.load;e.jwDetachMedia=c.detachMedia;e.jwAttachMedia=c.attachMedia;function n(o){return function(){return d[o]}}function j(o,q,p){return function(){var r=d.plugins.object[o];if(r&&r[q]&&typeof r[q]=="function"){r[q].apply(r,p)}}}e.jwGetItem=n("item");e.jwGetPosition=n("position");e.jwGetDuration=n("duration");e.jwGetBuffer=n("buffer");e.jwGetWidth=n("width");e.jwGetHeight=n("height");e.jwGetFullscreen=n("fullscreen");e.jwSetFullscreen=c.setFullscreen;e.jwGetVolume=n("volume");e.jwSetVolume=c.setVolume;e.jwGetMute=n("mute");e.jwSetMute=c.setMute;e.jwGetStretching=function(){return d.stretching.toUpperCase()};e.jwGetState=n("state");e.jwGetVersion=function(){return e.version};e.jwGetPlaylist=function(){return d.playlist};e.jwGetPlaylistIndex=e.jwGetItem;e.jwAddEventListener=c.addEventListener;e.jwRemoveEventListener=c.removeEventListener;e.jwSendEvent=c.sendEvent;e.jwDockSetButton=function(r,o,p,q){if(d.plugins.object.dock&&d.plugins.object.dock.setButton){d.plugins.object.dock.setButton(r,o,p,q)}};e.jwControlbarShow=j("controlbar","show");e.jwControlbarHide=j("controlbar","hide");e.jwDockShow=j("dock","show");e.jwDockHide=j("dock","hide");e.jwDisplayShow=j("display","show");e.jwDisplayHide=j("display","hide");e.jwGetLevel=function(){};e.jwGetBandwidth=function(){};e.jwGetLockState=function(){};e.jwLock=function(){};e.jwUnlock=function(){};function f(){if(d.config.playlistfile){d.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,m);d.loadPlaylist(d.config.playlistfile)}else{if(typeof d.config.playlist=="string"){d.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,m);d.loadPlaylist(d.config.playlist)}else{d.loadPlaylist(d.config);setTimeout(m,25)}}}function m(o){d.removeEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,m);d.setupPlugins();b.setup();var o={id:e.id,version:e.version};c.playerReady(o)}if(d.config.chromeless&&!a.utils.isIOS()){f()}else{e.skin.load(d.config.skin,f)}return e}})(jwplayer)};"use strict";Handlebars.registerHelper("affichageDestiByContinent",function(c,b){if(typeof(b.orderByContinent)!=="undefined"){var d=b.orderByContinent[b.orderByContinentType]}var a=b.zt3!==undefined?b.zt3:true;return globalByContinent(c,b,d,a)});function removeAccentsContinent(e){var a=[/[\u00C0-\u00C6]/g,/[\u00E0-\u00E6]/g,/[\u00C8-\u00CB]/g,/[\u00E8-\u00EB]/g,/[\u00CC-\u00CF]/g,/[\u00EC-\u00EF]/g,/[\u00D2-\u00D6]/g,/[\u00F2-\u00F6]/g,/[\u00D9-\u00DC]/g,/[\u00F9-\u00FC]/g,/[\u00D1]/g,/[\u00F1]/g,/[\u00C7]/g,/[\u00E7]/g,];var d=["A","a","E","e","I","i","O","o","U","u","N","n","C","c"];for(var c=0,b=a.length;c<b;c++){if(e.search(a[c])!==-1){e=e.replace(a[c],d[c])}}return e}function parseTitle(a){a=a.replace(/ /g,"-").toLowerCase();return removeAccentsContinent(a)}function displayOneElementByContinent(b,e,c,a,f,h,g){var d="";d+="<"+a+' data-value="'+f+'" ';d+='data-name="'+e+'" ';if(f==="-1"&&h==="title"){d+='data-title="'+parseTitle(e.trim())+'" '}d+='class="'+h+'" >'+e;d+="</"+a+">";return d}function checkContinent(b,c){for(var a in c){if(b.zt.text.indexOf(a)!=-1){return c[a]}}}function globalByContinent(u,a,i,s){var d=a.className;if(u!==undefined){for(var g in u){if(u.hasOwnProperty(g)){var b=u[g];var t=checkContinent(b,i);if(t){if(window["colCalqueDestiByContinent"+t]){window["colCalqueDestiByContinent"+t].push(b)}else{window["colCalqueDestiByContinent"+t]=[b]}}}}var v="<ul>";for(var q=1;q<5;++q){if(window["colCalqueDestiByContinent"+q]){var f=0;for(var p=0,n=window["colCalqueDestiByContinent"+q].length;p<n;++p){var o=window["colCalqueDestiByContinent"+q][p];if(f<2&&o&&(o.zt.text.trim()==="Europe"||o.zt.text.trim()==="France")){window["colCalqueDestiByContinent"+q].push(o);delete window["colCalqueDestiByContinent"+q][p];n++;f++}if(window["colCalqueDestiByContinent"+q][p]){v+=displayOneElementByContinent(window["colCalqueDestiByContinent"+q][p],window["colCalqueDestiByContinent"+q][p].zt.text,1,"div",window["colCalqueDestiByContinent"+q][p].zt.value,"title");for(var g in window["colCalqueDestiByContinent"+q][p].children){if(window["colCalqueDestiByContinent"+q][p].children.hasOwnProperty(g)){var c=window["colCalqueDestiByContinent"+q][p].children[g];v+=displayOneElementByContinent(window["colCalqueDestiByContinent"+q][p],c.zt.text,1,"li",c.zt.value,"child",g);if(s){for(var g in c.children){if(c.children.hasOwnProperty(g)){var r=c.children[g];var e="- "+r.zt.text;v+=displayOneElementByContinent(window["colCalqueDestiByContinent"+q][p],e,1,"li",r.zt.value,"child",g)}}}}}}}v+="</ul><ul>"}}for(var h=1;h<5;++h){if(window["colCalqueDestiByContinent"+h]){window["colCalqueDestiByContinent"+h]=null}}v+='<li class="all-desti child kv-js-SE-resetDestination" data-value="-1">Destination indiff&eacute;rente</li></ul>';setTimeout(function(){$(".kv-js-SE-layerDestination").addClass(d);var k=$(".kv-SE-destination .dataContainer").height();var j=$(".kv-SE-destination .top-country").height();if(k<j){k=j+50}$(".kv-SE-destination .dataContainer").css("height",k);$(".kv-SE-destination .top-country").css("height",k)},100);return v}}"use strict";var elInColonne;var nbMaxElByColonne;Handlebars.registerHelper("affichageDesti",function(c,i){if(c&&i){var e=i.nombreColonnes||3,m=i.position||"right",a=i.listZoneSki||null,f=i.suite||false,j=i.noDestinationLabel||"Destination indiff&eacute;rente";elInColonne=0;nbMaxElByColonne=0;nbMaxElByColonne=calculTailleMaxColonne(c,m,e);var g="<ul>";for(var h in c){if(c.hasOwnProperty(h)){var d=c[h];if(c.ztoneLinkables!==undefined&&c.ztoneLinkables===true){g+=displayOneElement(d,d.zt.text,2,"div",d.zt.value,"title child",false)}else{g+=displayOneElement(d,d.zt.text,2,"div",d.zt.value,"title",false)}for(var h in d.children){if(d.children.hasOwnProperty(h)){var k=d.children[h];g+=displayOneElement(d,k.zt.text,1,"li",k.zt.value,"child",f,a,k.zt.codeIsoPays);for(var h in k.children){if(k.children.hasOwnProperty(h)){var l=k.children[h];var b="- "+l.zt.text;g+=displayOneElement(d,b,1,"li",l.zt.value,"child",f,a,l.zt.codeIsoPays)}}}}}}g+='<li class="all-desti child kv-js-SE-resetDestination" data-value="-1" >';g+=j;g+="</li></ul>";return g}});function calculTailleMaxColonne(c,e,d){var a=d||3;function b(g,i){var h=i||0;_.each(g,function(j){h++;if(j.children.length){h=b(j.children,h)}});return h}var f=b(c);return parseInt(f/a)+f%a}function firstItemOtherCol(a,b,d){var c="";if(elInColonne>nbMaxElByColonne){c+="</ul><ul>";if(d){c+='<div class="suite">'+a.zt.text+" <span>(suite)</span> </div>"}elInColonne=0}return c}function removeAccents(e){var a=[/[\u00C0-\u00C6]/g,/[\u00E0-\u00E6]/g,/[\u00C8-\u00CB]/g,/[\u00E8-\u00EB]/g,/[\u00CC-\u00CF]/g,/[\u00EC-\u00EF]/g,/[\u00D2-\u00D6]/g,/[\u00F2-\u00F6]/g,/[\u00D9-\u00DC]/g,/[\u00F9-\u00FC]/g,/[\u00D1]/g,/[\u00F1]/g,/[\u00C7]/g,/[\u00E7]/g,];var d=["A","a","E","e","I","i","O","o","U","u","N","n","C","c"];for(var c=0,b=a.length;c<b;c++){if(e.search(a[c])!==-1){e=e.replace(a[c],d[c])}}return e}function parseTitle(a){a=a.replace(/ /g,"-").toLowerCase();return removeAccents(a)}function displayOneElement(b,g,d,l,k,c,h,a,j){elInColonne++;var f=firstItemOtherCol(b,d,h);f+="<"+l+' data-value="'+k+'" ';if(j){f+='data-iso="'+j+'" '}if(k==="-1"&&c==="title"){f+='data-title="'+parseTitle(g)+'" '}f+='class="'+c+'" data-name="'+g+'">'+g;if(a!==undefined&&a!==null){for(var e=0;e<a.length;e++){if(k==a[e]){f+='&nbsp;<span class="bgclr3 clr1">SKI</span>'}}}f+="</"+l+">";return f}"use strict";Handlebars.registerHelper("selectedOption",function(){var b="",a="",d="";for(var c=0;c<arguments.length;c++){if(_.isArray(arguments[c])){var b=_.find(arguments[c],{selected:true});if(b!==undefined){if(app.WebApp&&app.WebApp.Config&&app.WebApp.Config.moteur.selectLabel&&arguments[1]=="Flexibilité"){d="Flexibilité : "+b.text;return d}else{if(app.WebApp&&app.WebApp.Config&&app.WebApp.Config.moteur.shortSelectLabel&&arguments[1]=="Flexibilité"){d="Flexi : "+b.text;return d}else{return b.text}}}}else{if(_.isObject(arguments[c])){var b=arguments[c].selected;if(b!==undefined&&b===true){return arguments[c].text}}}if(_.isString(arguments[c])){a=arguments[c]}}if(_.isEmpty(b)){return a}});Handlebars.registerHelper("selectedOptionDateJour",function(){var b="",a="";for(var c=0;c<arguments.length;c++){if(_.isArray(arguments[c])){var b=_.find(arguments[c],{selected:true});if(b!==undefined){if(b.text=="Peu m'importe"){b.value="--";return b.value}else{return b.value}}}else{if(_.isObject(arguments[c])){var b=arguments[c].selected;if(b!==undefined&&b===true){return arguments[c].value}}}if(_.isString(arguments[c])){a=arguments[c]}}if(_.isEmpty(b)){return a}});(function(){var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d='<div class="kv-js-SE-selectOptions kv-SE-calendar kv-js-SE-calendar">\r\n';f=g["if"].call(i,(i!=null?i.showCalendarCompleteDate:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+=' <div class="kv-SE-selectContainer ';f=g["if"].call(i,(i!=null?i.displayCalendar:i),{name:"if",hash:{},fn:this.program(6,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+='">\r\n  <div class="datepicker"></div>\r\n';f=g["if"].call(i,(i!=null?i.showCalendarClearDate:i),{name:"if",hash:{},fn:this.program(8,h),inverse:this.noop,data:h});if(f!=null){d+=f}f=g["if"].call(i,(i!=null?i.showCalendarHelp:i),{name:"if",hash:{},fn:this.program(10,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"    </div>\r\n</div>\r\n\r\n"},"1":function(i,g,e,h){var f,d='  <div class="kv-SE-selectedItem">\r\n';f=g["if"].call(i,(i!=null?i.selectedItemDateLabel:i),{name:"if",hash:{},fn:this.program(2,h),inverse:this.program(4,h),data:h});if(f!=null){d+=f}return d+"  </div>\r\n"},"2":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"    "+i(((f=(f=g.selectedItemDateLabel||(k!=null?k.selectedItemDateLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectedItemDateLabel",hash:{},data:h}):f)))+"\r\n"},"4":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"    "+i(((f=(f=g.selectDateLabel||(k!=null?k.selectDateLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectDateLabel",hash:{},data:h}):f)))+"\r\n"},"6":function(g,e,d,f){return"kv-SE-selectContainer--sh"},"8":function(g,e,d,f){return'   <div class="kv-js-SE-clearDate kv-SE-clearDate">Date indiff&eacute;rente</div>\r\n'},"10":function(i,g,e,h){var f,d='   <div class="aide kv-Calendar-holidaysHelp">\r\n       <p><span>AIDE</span></p>\r\n       <span> Dates des vacances scolaires par zone</span>\r\n       <select>\r\n                 <option>Toussaint 2020</option>\r\n     <option>No&euml;l 2020</option>\r\n     <option>Hiver 2021</option>\r\n     <option>Printemps 2021</option>\r\n     <option>&Eacute;t&eacute; 2021</option>\r\n       </select>\r\n';f=this.invokePartial(e.holidays,"     ","holidays",i,undefined,g,e,h);if(f!=null){d+=f}return d+"          </div>\r\n"},usePartial:true,useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.calendar=c;var a=Handlebars.partials=Handlebars.partials||{};a.calendar=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d='<div class="kv-js-SE-selectOptions kv-SE-calendar kv-js-SE-calendar">\r\n';f=g["if"].call(i,(i!=null?i.showCalendarCompleteDate:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+=' <div class="kv-SE-selectContainer ';f=g["if"].call(i,(i!=null?i.displayCalendar:i),{name:"if",hash:{},fn:this.program(6,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+='">\r\n';f=g["if"].call(i,(i!=null?i.showCalendarClearDate:i),{name:"if",hash:{},fn:this.program(8,h),inverse:this.noop,data:h});if(f!=null){d+=f}f=g["if"].call(i,(i!=null?i.showCalendarHelp:i),{name:"if",hash:{},fn:this.program(10,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+='  <div class="datepicker"></div>\r\n';f=g["if"].call(i,(i!=null?i.showCalendarHelp:i),{name:"if",hash:{},fn:this.program(12,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"     \r\n </div> \r\n</div>\r\n\r\n"},"1":function(i,g,e,h){var f,d='  <div class="kv-SE-selectedItem">\r\n';f=g["if"].call(i,(i!=null?i.selectedItemDateLabel:i),{name:"if",hash:{},fn:this.program(2,h),inverse:this.program(4,h),data:h});if(f!=null){d+=f}return d+"  </div>\r\n"},"2":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"    "+i(((f=(f=g.selectedItemDateLabel||(k!=null?k.selectedItemDateLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectedItemDateLabel",hash:{},data:h}):f)))+"\r\n"},"4":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"    "+i(((f=(f=g.selectDateLabel||(k!=null?k.selectDateLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectDateLabel",hash:{},data:h}):f)))+"\r\n"},"6":function(g,e,d,f){return"kv-SE-selectContainer--sh"},"8":function(g,e,d,f){return'   <span class="kv-js-SE-clearDate kv-Calendar-clearDate">Date indiff&eacute;rente</span>\r\n'},"10":function(g,e,d,f){return'   <span class="kv-Calendar-holidaysTrigger kv-js-Calendar-holidaysTrigger">Voir les vacances scolaires</span>\r\n'},"12":function(i,g,e,h){var f,d='    <div class="kv-Calendar-holidays">\r\n';f=g["if"].call(i,(i!=null?i.showCalendarClearDate:i),{name:"if",hash:{},fn:this.program(13,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+='    <span class="kv-Calendar-datePickerTrigger kv-js-Calendar-datePickerTrigger">Retour au calendrier</span>\r\n\r\n       <p>Dates des vacances scolaires par zone</p>\r\n       <ul>\r\n     <li class="selected">No&euml;l 2020</li>\r\n     <li>Hiver 2021</li>\r\n     <li>Printemps 2021</li>\r\n     <li>&Eacute;t&eacute; 2021</li>\r\n       </ul>\r\n';f=this.invokePartial(e.holidays,"       ","holidays",i,undefined,g,e,h);if(f!=null){d+=f}return d+"   </div> \r\n"},"13":function(g,e,d,f){return'     <span class="kv-js-SE-clearDate kv-Calendar-clearDate">Date indiff&eacute;rente</span>\r\n'},usePartial:true,useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.calendar2Months=c;var a=Handlebars.partials=Handlebars.partials||{};a.calendar2Months=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(g,e,d,f){return'\r\n<!-- noel 2020 -->\r\n<div class="periode selected">\r\n  <div class="zone">\r\n        <span>Zone A</span><span class="puce-numerotation">i</span>\r\n        <div class="infoBulle"><span></span> Acad&eacute;mie : Besan&ccedil;on, Bordeaux, Clermont-Ferrand, Dijon, Grenoble, Limoges, Lyon, Poitiers</div>\r\n        <p>\r\n            Fin des cours :<span> samedi 19 d&eacute;cembre 2020</span><br/>\r\n            Reprise des cours :<span> lundi 4 janvier 2021</span>\r\n        </p>\r\n    </div>\r\n    <div class="zone">\r\n        <span>Zone B</span><span class="puce-numerotation">i</span>\r\n        <div class="infoBulle"><span></span> Acad&eacute;mie : Aix-Marseille, Amiens, Caen, Lille, Nancy-Metz, Nantes, Nice, Orl&eacute;ans-Tours, Reims, Rennes, Rouen, Strasbourg</div>\r\n        <p>\r\n            Fin des cours :<span> samedi 19 d&eacute;cembre 2020</span><br/>\r\n            Reprise des cours :<span> lundi 4 janvier 2021</span>\r\n        </p>\r\n    </div>\r\n    <div class="zone">\r\n        <span>Zone C</span><span class="puce-numerotation">i</span>\r\n        <div class="infoBulle"><span></span> Acad&eacute;mie : Cr&eacute;teil, Montpellier, Paris, Toulouse, Versailles</div>\r\n        <p>\r\n            Fin des cours :<span> samedi 19 d&eacute;cembre 2020</span><br/>\r\n            Reprise des cours :<span> lundi 4 janvier 2021</span>\r\n        </p>\r\n    </div>\r\n</div>\r\n\r\n<!-- hiver 2021 -->\r\n<div class="periode">\r\n    <div class="zone">\r\n        <span>Zone A</span><span class="puce-numerotation">i</span>\r\n        <div class="infoBulle"><span></span> Acad&eacute;mie : Besan&ccedil;on, Bordeaux, Clermont-Ferrand, Dijon, Grenoble, Limoges, Lyon, Poitiers</div>\r\n        <p>\r\n            Fin des cours :<span> samedi 6 f&eacute;vrier 2021</span><br/>\r\n            Reprise des cours :<span> lundi 22 f&eacute;vrier 2021</span>\r\n        </p>\r\n    </div>\r\n    <div class="zone">\r\n        <span>Zone B</span><span class="puce-numerotation">i</span>\r\n        <div class="infoBulle"><span></span> Acad&eacute;mie : Aix-Marseille, Amiens, Caen, Lille, Nancy-Metz, Nantes, Nice, Orl&eacute;ans-Tours, Reims, Rennes, Rouen, Strasbourg</div>\r\n        <p>\r\n            Fin des cours :<span> samedi 20 f&eacute;vrier 2021</span><br/>\r\n            Reprise des cours :<span> lundi 8 mars 2021</span>\r\n        </p>\r\n    </div>\r\n    <div class="zone">\r\n        <span>Zone C</span><span class="puce-numerotation">i</span>\r\n        <div class="infoBulle"><span></span> Acad&eacute;mie : Cr&eacute;teil, Montpellier, Paris, Toulouse, Versailles</div>\r\n        <p>\r\n            Fin des cours :<span> samedi 13 f&eacute;vrier 2021</span><br/>\r\n            Reprise des cours :<span> lundi 1 mars 2021</span>\r\n        </p>\r\n    </div>\r\n</div>\r\n\r\n<!-- printemps 2021 -->\r\n<div class="periode">\r\n    <div class="zone">\r\n        <span>Zone A</span><span class="puce-numerotation">i</span>\r\n        <div class="infoBulle"><span></span> Acad&eacute;mie : Besan&ccedil;on, Bordeaux, Clermont-Ferrand, Dijon, Grenoble, Limoges, Lyon, Poitiers</div>\r\n        <p>\r\n            Fin des cours :<span> samedi 10 avril 2021</span><br/>\r\n            Reprise des cours :<span> lundi 26 avril 2021</span>\r\n        </p>\r\n    </div>\r\n    <div class="zone">\r\n        <span>Zone B</span><span class="puce-numerotation">i</span>\r\n        <div class="infoBulle"><span></span> Acad&eacute;mie : Aix-Marseille, Amiens, Caen, Lille, Nancy-Metz, Nantes, Nice, Orl&eacute;ans-Tours, Reims, Rennes, Rouen, Strasbourg</div>\r\n        <p>\r\n            Fin des cours :<span> samedi 24 avril 2021</span><br/>\r\n            Reprise des cours :<span> lundi 10 mai 2021</span>\r\n        </p>\r\n    </div>\r\n    <div class="zone">\r\n        <span>Zone C</span><span class="puce-numerotation">i</span>\r\n        <div class="infoBulle"><span></span> Acad&eacute;mie : Cr&eacute;teil, Montpellier, Paris, Toulouse, Versailles</div>\r\n        <p>\r\n            Fin des cours :<span> samedi 17 avril 2021</span><br/>\r\n            Reprise des cours :<span> lundi 3 mai 2021</span>\r\n        </p>\r\n    </div>\r\n</div>\r\n\r\n<!-- ete 2021 -->\r\n<div class="periode">\r\n    <div class="zone">\r\n        <p>\r\n            Fin des cours :<span> mardi 6 juillet 2021</span>\r\n        </p>\r\n    </div>\r\n</div>\r\n'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.holidays=c;var a=Handlebars.partials=Handlebars.partials||{};a.holidays=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(k,h,f,i){var g,e=this.lambda,j=this.escapeExpression,d='<div class="dataContainer display-'+j(e(((g=(k!=null?k.calqueDesti:k))!=null?g.position:g),k))+" kv-SE-Container--col"+j(e(((g=(k!=null?k.calqueDesti:k))!=null?g.nombreColonnes:g),k))+'">\r\n ';g=h["if"].call(k,((g=(k!=null?k.calqueDesti:k))!=null?g.btnClose:g),{name:"if",hash:{},fn:this.program(1,i),inverse:this.noop,data:i});if(g!=null){d+=g}d+='\r\n <div class="top-country" style="float:left;">\r\n  <div class="title">\r\n   ';g=h["if"].call(k,((g=(k!=null?k.calqueDesti:k))!=null?g.title:g),{name:"if",hash:{},fn:this.program(3,i),inverse:this.noop,data:i});if(g!=null){d+=g}d+="\r\n  </div>\r\n";g=h["if"].call(k,(k!=null?k.topDestinationsWTabs:k),{name:"if",hash:{},fn:this.program(5,i),inverse:this.program(15,i),data:i});if(g!=null){d+=g}g=h["if"].call(k,((g=(k!=null?k.calqueDesti:k))!=null?g.image:g),{name:"if",hash:{},fn:this.program(18,i),inverse:this.noop,data:i});if(g!=null){d+=g}g=h["if"].call(k,((g=(k!=null?k.calqueDesti:k))!=null?g.noDestinationInTopDestination:g),{name:"if",hash:{},fn:this.program(20,i),inverse:this.noop,data:i});if(g!=null){d+=g}d+='  \r\n </div>\r\n <div class="all-destination" style="float:left;">\r\n  <div class="title">\r\n   <label>Toutes les destinations</label>\r\n  </div>\r\n  <div id="block-destination">\r\n';g=h["if"].call(k,((g=(k!=null?k.calqueDesti:k))!=null?g.orderByContinent:g),{name:"if",hash:{},fn:this.program(22,i),inverse:this.program(24,i),data:i});if(g!=null){d+=g}return d+"  </div>\r\n </div>\r\n</div>"},"1":function(g,e,d,f){return'<span class="close btn-close">X</span>'},"3":function(j,h,f,i){var g,e=this.lambda,d=" <label>";g=e(((g=(j!=null?j.calqueDesti:j))!=null?g.title:g),j);if(g!=null){d+=g}return d+"</label> "},"5":function(i,g,e,h){var f,d='   <div class="kv-SETopDestinations-title">\r\n    <ul>\r\n';f=g.each.call(i,(i!=null?i.topDestinationsWTabs:i),{name:"each",hash:{},fn:this.program(6,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+="    </ul>\r\n   </div>\r\n";f=g.each.call(i,(i!=null?i.topDestinationsWTabs:i),{name:"each",hash:{},fn:this.program(10,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d},"6":function(i,g,e,h){var f,d="       ";f=g["if"].call(i,(i!=null?i.title:i),{name:"if",hash:{},fn:this.program(7,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"\r\n"},"7":function(k,h,f,i){var g,e=this.lambda,j=this.escapeExpression,d='<li class="kv-SETopDestinations-tab kv-js-SETopDestinations-tab ';g=h["if"].call(k,(k!=null?k.displayFirst:k),{name:"if",hash:{},fn:this.program(8,i),inverse:this.noop,data:i});if(g!=null){d+=g}return d+'" data-name="kv-SETopDestinations-tab'+j(e((i&&i.index),k))+'">'+j(e((k!=null?k.title:k),k))+"</li>"},"8":function(g,e,d,f){return"kv-SETopDestinations-tab--active"},"10":function(k,h,f,i){var g,e=this.lambda,j=this.escapeExpression,d='    <ul class="kv-SETopDestinations-list ';g=h["if"].call(k,(k!=null?k.displayFirst:k),{name:"if",hash:{},fn:this.program(11,i),inverse:this.noop,data:i});if(g!=null){d+=g}d+='" data-name="kv-SETopDestinations-tab'+j(e((i&&i.index),k))+'">\r\n';g=h.each.call(k,(k!=null?k.topDestinations:k),{name:"each",hash:{},fn:this.program(13,i),inverse:this.noop,data:i});if(g!=null){d+=g}return d+"    </ul>\r\n"},"11":function(g,e,d,f){return"kv-SETopDestinations-list--active"},"13":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'      <li class="child" data-name="'+i(((f=(f=g.text||(k!=null?k.text:k))!=null?f:e),(typeof f===j?f.call(k,{name:"text",hash:{},data:h}):f)))+'" data-value="'+i(((f=(f=g.value||(k!=null?k.value:k))!=null?f:e),(typeof f===j?f.call(k,{name:"value",hash:{},data:h}):f)))+'"><span class="img-'+i(((f=(f=g.value||(k!=null?k.value:k))!=null?f:e),(typeof f===j?f.call(k,{name:"value",hash:{},data:h}):f)))+'" data-value="'+i(((f=(f=g.value||(k!=null?k.value:k))!=null?f:e),(typeof f===j?f.call(k,{name:"value",hash:{},data:h}):f)))+'"></span>'+i(((f=(f=g.text||(k!=null?k.text:k))!=null?f:e),(typeof f===j?f.call(k,{name:"text",hash:{},data:h}):f)))+"</li>\r\n"},"15":function(i,g,e,h){var f,d="\r\n   <ul>\r\n";f=g.each.call(i,(i!=null?i.topDestinations:i),{name:"each",hash:{},fn:this.program(16,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"   </ul>\r\n"},"16":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'     <li class="child" data-name="'+i(((f=(f=g.text||(k!=null?k.text:k))!=null?f:e),(typeof f===j?f.call(k,{name:"text",hash:{},data:h}):f)))+'" data-value="'+i(((f=(f=g.value||(k!=null?k.value:k))!=null?f:e),(typeof f===j?f.call(k,{name:"value",hash:{},data:h}):f)))+'"><span class="img-'+i(((f=(f=g.value||(k!=null?k.value:k))!=null?f:e),(typeof f===j?f.call(k,{name:"value",hash:{},data:h}):f)))+'" data-value="'+i(((f=(f=g.value||(k!=null?k.value:k))!=null?f:e),(typeof f===j?f.call(k,{name:"value",hash:{},data:h}):f)))+'"></span>'+i(((f=(f=g.text||(k!=null?k.text:k))!=null?f:e),(typeof f===j?f.call(k,{name:"text",hash:{},data:h}):f)))+"</li>\r\n"},"18":function(j,g,e,h){var f,d=this.lambda,i=this.escapeExpression;return'   <a href="'+i(d(((f=(j!=null?j.calqueDesti:j))!=null?f.imageLink:f),j))+'">\r\n    <img src="'+i(d(((f=(j!=null?j.calqueDesti:j))!=null?f.image:f),j))+'" />\r\n   </a> \r\n'},"20":function(g,e,d,f){return'   <p class="all-desti kv-js-SE-resetDestination child" data-value="-1">Destination indiff&eacute;rente</p>\r\n'},"22":function(j,h,e,i){var g,f=h.helperMissing,d="    ";g=((h.affichageDestiByContinent||(j&&j.affichageDestiByContinent)||f).call(j,(j!=null?j.zt:j),(j!=null?j.calqueDesti:j),{name:"affichageDestiByContinent",hash:{},data:i}));if(g!=null){d+=g}return d+"\r\n"},"24":function(j,h,e,i){var g,f=h.helperMissing,d="    ";g=((h.affichageDesti||(j&&j.affichageDesti)||f).call(j,(j!=null?j.zt:j),(j!=null?j.calqueDesti:j),{name:"affichageDesti",hash:{},data:i}));if(g!=null){d+=g}return d+"\r\n"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.layerDestination=c;var a=Handlebars.partials=Handlebars.partials||{};a.layerDestination=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(g,e,d,f){return'<div class="kv-SE-selectEngineTab kv-js-SE-selectEngineTab"></div>  \r\n<div class="kv-js-SE-iframe kv-SE-iframe"></div>\r\n<div class="kv-SE-inputContainer kv-js-SE-inputContainer">\r\n <div class="kv-js-SE-departureCity kv-SE-select kv-SE-select--departureCity"></div>\r\n <div class="kv-js-SE-destination kv-SE-select"></div>\r\n <div class="kv-js-SE-ZTDestination kv-SE-select"></div>\r\n <div class="kv-js-SE-departureDate kv-SE-select kv-SE-select--departureDate"></div>\r\n <div class="kv-js-SE-departureDateRange kv-SE-select kv-SE-select--departureDateRange"></div>\r\n <div class="kv-js-SE-numberOfNightsRanges kv-SE-select kv-SE-select--numberOfNightsRanges"></div>\r\n <div class="kv-js-SE-priceRange kv-SE-select kv-SE-select--priceRange"></div>\r\n <div class="kv-js-SE-submit kv-SE-submit">\r\n  <button>Rechercher</button>\r\n </div>\r\n</div>\r\n'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngine=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngine=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d="";f=g["if"].call(i,(i!=null?i.overlay:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}f=g["if"].call(i,(i!=null?i.titleTexte:i),{name:"if",hash:{},fn:this.program(3,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+'<div class="kv-SE-selectEngineTab kv-js-SE-selectEngineTab"></div>\r\n\r\n<div class="kv-SE-inputContainer kv-js-SE-inputContainer">\r\n <div class="kv-js-SE-departureCity kv-SE-select kv-SE-select--departureCity"></div>\r\n <div class="kv-js-SE-destination kv-SE-select"></div>\r\n <div class="kv-js-SE-departureDate kv-SE-select kv-SE-select--departureDate"></div>\r\n <div class="kv-js-SE-numberOfNightsRanges kv-SE-select kv-SE-select--numberOfNightsRanges"></div>\r\n <div class="kv-js-SE-departureDateRange kv-SE-select kv-SE-select--departureDateRange"></div>\r\n <div class="kv-js-SE-priceRange kv-SE-select kv-SE-select--priceRange"></div>\r\n <div class="kv-js-SE-submit kv-SE-submit">\r\n  <button>Rechercher</button>\r\n </div>\r\n </div>'},"1":function(g,e,d,f){return' <div class="kv-SE-overlay"><div class="kv-SE-loader"></div></div>\r\n'},"3":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return' <h2 class="kv-SE-title">'+i(((f=(f=g.titleTexte||(k!=null?k.titleTexte:k))!=null?f:e),(typeof f===j?f.call(k,{name:"titleTexte",hash:{},data:h}):f)))+"</h2>\r\n"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngineExportable=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngineExportable=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d='<div class="kv-SE-hiddenInputContainer">\r\n <div class="kv-SE-selectEngineTab kv-js-SE-selectEngineTab"></div>\r\n <div class="kv-js-SE-priceRange kv-SE-select kv-SE-select--priceRange"></div>\r\n</div>\r\n<div class="kv-SE-inputContainer kv-js-SE-inputContainer">\r\n ';f=g["if"].call(i,(i!=null?i.hasHighlight:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+'\r\n <div class="kv-js-SE-departureCity kv-SE-select kv-SE-select--departureCity"></div>\r\n <div class="kv-js-SE-numberOfNightsRanges kv-SE-select kv-SE-select--numberOfNightsRanges"></div>\r\n <div class="kv-js-SE-destination kv-SE-select"></div>\r\n <div class="kv-js-SE-departureDate kv-SE-select kv-SE-select--departureDate"></div>\r\n <div class="kv-js-SE-departureDateRange kv-SE-select kv-SE-select--departureDateRange"></div>\r\n <div class="kv-js-SE-submit kv-SE-submit">\r\n  <button>Rechercher</button>\r\n </div>\r\n</div>'},"1":function(g,e,d,f){return'<div class="kv-js-SE-overlay kv-SE-overlay"></div>'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngineExportable_v2=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngineExportable_v2=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'<iframe src="'+i(((f=(f=g.iframeURL||(k!=null?k.iframeURL:k))!=null?f:e),(typeof f===j?f.call(k,{name:"iframeURL",hash:{},data:h}):f)))+'" width="'+i(((f=(f=g.iframeWidth||(k!=null?k.iframeWidth:k))!=null?f:e),(typeof f===j?f.call(k,{name:"iframeWidth",hash:{},data:h}):f)))+'" height="'+i(((f=(f=g.iframeHeight||(k!=null?k.iframeHeight:k))!=null?f:e),(typeof f===j?f.call(k,{name:"iframeHeight",hash:{},data:h}):f)))+'">\r\n\r\n'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngineIframe=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngineIframe=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='<div class="kv-js-SE-title kv-SE-title">'+i(((f=(f=e.searchEngineTitle||(m!=null?m.searchEngineTitle:m))!=null?f:l),(typeof f===g?f.call(m,{name:"searchEngineTitle",hash:{},data:j}):f)))+'</div>\r\n\r\n<div class="kv-SE-selectEngineTab kv-js-SE-selectEngineTab"></div>\r\n \r\n<div class="kv-js-SE-iframe kv-SE-iframe"></div>\r\n\r\n<div class="kv-js-SE-script kv-SE-script"></div>\r\n\r\n<div class="kv-SE-hiddenInputContainer">\r\n <div class="kv-SE-selectEngineTab kv-js-SE-selectEngineTab"></div>\r\n <div class="kv-js-SE-priceRange kv-SE-select kv-SE-select--priceRange"></div>\r\n</div>\r\n<div class="kv-SE-inputContainer kv-js-SE-inputContainer">\r\n ';d=e["if"].call(m,(m!=null?m.hasHighlight:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+'\r\n <div class="kv-js-SE-destination kv-SE-select"></div>\r\n <div class="kv-js-SE-departureCity kv-SE-select kv-SE-select--departureCity"></div>\r\n <div class="kv-js-SE-departureDate kv-SE-select kv-SE-select--departureDate"></div>\r\n <div class="kv-js-SE-departureDateRange kv-SE-select kv-SE-select--departureDateRange"></div>\r\n <div class="kv-js-SE-numberOfNightsRanges kv-SE-select kv-SE-select--numberOfNightsRanges"></div>\r\n <div class="kv-js-SE-submit kv-SE-submit">\r\n  <button>JE RECHERCHE</button>\r\n </div>\r\n</div>\r\n'},"1":function(g,e,d,f){return'<div class="kv-js-SE-overlay kv-SE-overlay"></div>'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngineOneLevel=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngineOneLevel=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d="";f=g["if"].call(i,(i!=null?i.display:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d},"1":function(i,g,e,h){var f,d=" <div ";f=g["if"].call(i,(i!=null?i.dataContainer:i),{name:"if",hash:{},fn:this.program(2,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"></div>\r\n"},"2":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'id="'+i(((f=(f=g.dataContainer||(k!=null?k.dataContainer:k))!=null?f:e),(typeof f===j?f.call(k,{name:"dataContainer",hash:{},data:h}):f)))+'"'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngineScript=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngineScript=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return i(((f=(f=g.searchEngineTitle||(k!=null?k.searchEngineTitle:k))!=null?f:e),(typeof f===j?f.call(k,{name:"searchEngineTitle",hash:{},data:h}):f)))},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngineTitle=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngineTitle=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d="";f=g["if"].call(i,(i!=null?i.overlay:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}f=g["if"].call(i,(i!=null?i.titleTexte:i),{name:"if",hash:{},fn:this.program(3,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+=' <div class="kv-SE-selectEngineTab kv-js-SE-selectEngineTab"></div>\r\n   \r\n <div class="kv-js-SE-iframe kv-SE-iframe"></div>\r\n\r\n <div class="kv-SE-inputContainer kv-js-SE-inputContainer">\r\n     <div class="level-1">\r\n      <div class="kv-js-SE-departureCity kv-SE-select kv-SE-select--departureCity"></div>\r\n  <div class="kv-js-SE-departureDate kv-SE-select kv-SE-select--departureDate"></div>\r\n  <div class="kv-js-SE-numberOfNightsRanges kv-SE-select kv-SE-select--numberOfNightsRanges"></div>\r\n     </div>\r\n     <div class="level-2">\r\n      <div class="kv-js-SE-destination kv-SE-select"></div>\r\n  <div class="kv-js-SE-departureDateRange kv-SE-select kv-SE-select--departureDateRange"></div>\r\n  <div class="kv-js-SE-priceRange kv-SE-select kv-SE-select--priceRange"></div>\r\n  <div class="kv-js-SE-submit kv-SE-submit">\r\n   <button> ';f=g["if"].call(i,(i!=null?i.btSubmitLabel:i),{name:"if",hash:{},fn:this.program(5,h),inverse:this.program(7,h),data:h});if(f!=null){d+=f}return d+"</button>\r\n  </div>\r\n </div>\r\n</div>\r\n"},"1":function(g,e,d,f){return' <div class="kv-SE-overlay"><div class="kv-SE-loader"></div></div>\r\n'},"3":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return' <h2 class="kv-SE-title">'+i(((f=(f=g.titleTexte||(k!=null?k.titleTexte:k))!=null?f:e),(typeof f===j?f.call(k,{name:"titleTexte",hash:{},data:h}):f)))+"</h2>\r\n"},"5":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return i(((f=(f=g.btSubmitLabel||(k!=null?k.btSubmitLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"btSubmitLabel",hash:{},data:h}):f)))},"7":function(g,e,d,f){return"Rechercher"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngineTwoLevels=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngineTwoLevels=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d='\r\n<div class="kv-js-SE-title kv-SE-title"></div>\r\n<div class="kv-SE-selectEngineTab kv-js-SE-selectEngineTab"></div>\r\n<div class="kv-js-SE-iframe kv-SE-iframe"></div>\r\n\r\n<div class="kv-SE-inputContainer kv-js-SE-inputContainer">\r\n';f=g["if"].call(i,(i!=null?i.hasHighlight:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+=' <div class="kv-js-SE-destination kv-SE-select kv-SE-select--destination"></div>\r\n <div class="kv-js-SE-departureCity kv-SE-select kv-SE-select--departureCity"></div>\r\n <div class="kv-js-SE-ZTDestination kv-SE-select kv-SE-select--ZTDestination"></div>\r\n <div class="kv-js-SE-departureDate kv-SE-select kv-SE-select--departureDate"></div>\r\n <div class="kv-js-SE-numberOfNightsRanges kv-SE-select kv-SE-select--numberOfNightsRanges"></div>\r\n <div class="kv-js-SE-departureDateRange kv-SE-select kv-SE-select--departureDateRange"></div>\r\n <div class="kv-js-SE-priceRange kv-SE-select kv-SE-select--priceRange"></div>\r\n <div class="kv-js-SE-themespace kv-SE-select kv-SE-select--themespace"></div>\r\n <div class="kv-js-SE-hotelCategory kv-SE-select kv-SE-select--hotelCategory"></div>\r\n';f=g["if"].call(i,(i!=null?i.hasMoreCriteria:i),{name:"if",hash:{},fn:this.program(3,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+' <div class="kv-js-SE-submit kv-SE-submit">\r\n  <button>RECHERCHER</button>\r\n </div>\r\n</div>\r\n'},"1":function(g,e,d,f){return'  <div class="kv-js-SE-overlay kv-SE-overlay"></div>\r\n'},"3":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'  <div class="kv-js-SE-moreCriteria kv-SE-moreCriteria"> \r\n   <span> '+i(((f=(f=g.moreCriteriaLabel||(k!=null?k.moreCriteriaLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"moreCriteriaLabel",hash:{},data:h}):f)))+" </span>\r\n  </div>\r\n"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngine_Fram=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngine_Fram=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d='\r\n<div class="kv-js-SE-title kv-SE-title"></div>\r\n<div class="kv-SE-selectEngineTab kv-js-SE-selectEngineTab"></div>\r\n<div class="kv-js-SE-iframe kv-SE-iframe"></div>\r\n\r\n<div class="kv-SE-inputContainer kv-js-SE-inputContainer">\r\n';f=g["if"].call(i,(i!=null?i.hasHighlight:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+=' <div class="kv-js-SE-departureCity kv-SE-select kv-SE-select--departureCity"></div>\r\n <div class="kv-js-SE-numberOfNightsRanges kv-SE-select kv-SE-select--numberOfNightsRanges"></div>\r\n <div class="kv-js-SE-destination kv-SE-select kv-SE-select--destination"></div>\r\n <div class="kv-js-SE-ZTDestination kv-SE-select kv-SE-select--ZTDestination"></div>\r\n <div class="kv-js-SE-departureDate kv-SE-select kv-SE-select--departureDate"></div>\r\n <div class="kv-js-SE-departureDateRange kv-SE-select kv-SE-select--departureDateRange"></div>\r\n <div class="kv-js-SE-priceRange kv-SE-select kv-SE-select--priceRange"></div>\r\n <div class="kv-js-SE-themespace kv-SE-select kv-SE-select--themespace"></div>\r\n <div class="kv-js-SE-hotelCategory kv-SE-select kv-SE-select--hotelCategory"></div>\r\n';f=g["if"].call(i,(i!=null?i.hasMoreCriteria:i),{name:"if",hash:{},fn:this.program(3,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+' <div class="kv-js-SE-submit kv-SE-submit">\r\n  <button>Rechercher</button>\r\n </div>\r\n</div>\r\n'},"1":function(g,e,d,f){return'  <div class="kv-js-SE-overlay kv-SE-overlay"></div>\r\n'},"3":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'  <div class="kv-js-SE-moreCriteria kv-SE-moreCriteria"> \r\n   <span> '+i(((f=(f=g.moreCriteriaLabel||(k!=null?k.moreCriteriaLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"moreCriteriaLabel",hash:{},data:h}):f)))+" </span>\r\n  </div>\r\n"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngine_v2=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngine_v2=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='\r\n<div class="kv-js-SE-title kv-SE-title"></div>\r\n<div class="kv-SE-selectEngineTab kv-js-SE-selectEngineTab"></div>\r\n<div class="kv-js-SE-iframe kv-SE-iframe"></div>\r\n<div class="kv-SE-inputContainer kv-js-SE-inputContainer kv-SE-inputContainer--'+i(((f=(f=e.moteurType||(m!=null?m.moteurType:m))!=null?f:l),(typeof f===g?f.call(m,{name:"moteurType",hash:{},data:j}):f)))+'">\r\n <div class="kv-SE-subtitle">'+i(((f=(f=e.titleTexte||(m!=null?m.titleTexte:m))!=null?f:l),(typeof f===g?f.call(m,{name:"titleTexte",hash:{},data:j}):f)))+"</div>\r\n";d=e["if"].call(m,(m!=null?m.hasHighlight:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+=' <div class="kv-js-SE-departureCity kv-SE-select kv-SE-select--departureCity"></div>\r\n <div class="kv-js-SE-destination kv-SE-select kv-SE-select--destination"></div>\r\n';d=((e.includeElement||(m&&m.includeElement)||l).call(m,(m!=null?m.moteurType:m),"FRANCE",{name:"includeElement",hash:{},fn:this.program(3,j),inverse:this.program(5,j),data:j}));if(d!=null){h+=d}h+=' <div class="kv-js-SE-priceRange kv-SE-select kv-SE-select--priceRange"></div>\r\n <div class="kv-js-SE-themespace kv-SE-select kv-SE-select--themespace"></div>\r\n <div class="kv-js-SE-hotelCategory kv-SE-select kv-SE-select--hotelCategory"></div>\r\n';d=e["if"].call(m,(m!=null?m.hasMoreCriteria:m),{name:"if",hash:{},fn:this.program(7,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+' <div class="kv-js-SE-submit kv-SE-submit">\r\n  <button>Rechercher</button>\r\n </div>\r\n</div>\r\n'},"1":function(g,e,d,f){return'  <div class="kv-js-SE-overlay kv-SE-overlay"></div>\r\n'},"3":function(g,e,d,f){return'  <div class="kv-js-SE-numberOfNightsRanges kv-SE-select kv-SE-select--numberOfNightsRanges"></div>\r\n  <div class="kv-js-SE-departureDate kv-SE-select kv-SE-select--departureDate"></div>\r\n  <div class="kv-js-SE-departureDateRange kv-SE-select kv-SE-select--departureDateRange"></div>\r\n'},"5":function(g,e,d,f){return'  <div class="kv-js-SE-departureDate kv-SE-select kv-SE-select--departureDate"></div>\r\n  <div class="kv-js-SE-departureDateRange kv-SE-select kv-SE-select--departureDateRange"></div>\r\n  <div class="kv-js-SE-numberOfNightsRanges kv-SE-select kv-SE-select--numberOfNightsRanges"></div>\r\n'},"7":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'  <div class="kv-js-SE-moreCriteria kv-SE-moreCriteria"> \r\n   <span> '+i(((f=(f=g.moreCriteriaLabel||(k!=null?k.moreCriteriaLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"moreCriteriaLabel",hash:{},data:h}):f)))+" </span>\r\n  </div>\r\n"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngine_v3=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngine_v3=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d='<div class="kv-SE-hiddenInputContainer">\r\n <div class="kv-SE-selectEngineTab kv-js-SE-selectEngineTab"></div>\r\n <div class="kv-js-SE-priceRange kv-SE-select kv-SE-select--priceRange"></div>\r\n <div class="kv-js-SE-destination kv-SE-select"></div>\r\n <div class="kv-js-SE-numberOfNightsRanges kv-SE-select kv-SE-select--numberOfNightsRanges"></div>\r\n</div>\r\n<div class="kv-SE-inputContainer kv-js-SE-inputContainer">\r\n ';f=g["if"].call(i,(i!=null?i.hasHighlight:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+'\r\n <div class="kv-js-SE-departureCity kv-SE-select kv-SE-select--departureCity"></div>\r\n <div class="kv-js-SE-departureDate kv-SE-select kv-SE-select--departureDate"></div>\r\n <div class="kv-js-SE-departureDateRange kv-SE-select kv-SE-select--departureDateRange"></div>\r\n <div class="kv-js-SE-submit kv-SE-submit">\r\n  <button>Rechercher</button>\r\n </div>\r\n</div>'},"1":function(g,e,d,f){return'<div class="kv-js-SE-overlay kv-SE-overlay"></div>'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngine_v4=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngine_v4=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(g,e,d,f){return'<div class="kv-js-SE-title kv-SE-title"></div>\r\n<div class="kv-SE-selectEngineTab kv-js-SE-selectEngineTab"></div>\r\n<div class="kv-js-SE-iframe kv-SE-iframe"></div>\r\n\r\n<div class="kv-SE-inputContainer kv-js-SE-inputContainer">\r\n <div class="kv-js-SE-destination kv-SE-select kv-SE-select--destination"></div>\r\n <div class="kv-js-SE-departureCity kv-SE-select kv-SE-select--departureCity"></div>\r\n <div class="kv-js-SE-departureDate kv-SE-select kv-SE-select--departureDate"></div>\r\n <div class="kv-js-SE-departureDateRange kv-SE-select kv-SE-select--departureDateRange"></div>\r\n <div class="kv-js-SE-numberOfNightsRanges kv-SE-select kv-SE-select--numberOfNightsRanges"></div>\r\n <div class="kv-js-SE-priceRange kv-SE-select kv-SE-select--priceRange"></div>\r\n <div class="kv-js-SE-themespace kv-SE-select kv-SE-select--themespace"></div>\r\n <div class="kv-js-SE-submit kv-SE-submit">\r\n  <button>Rechercher</button>\r\n </div>\r\n</div>\r\n<div class="kv-SE-hiddenInputContainer">\r\n <div class="kv-js-SE-ZTDestination kv-SE-select kv-SE-select--ZTDestination"></div>\r\n</div>'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.searchEngine_v5=c;var a=Handlebars.partials=Handlebars.partials||{};a.searchEngine_v5=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(i,g,e,h){var f,d="";f=g["if"].call(i,(i!=null?i.selectList:i),{name:"if",hash:{},fn:this.program(1,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"1":function(i,g,e,h){var f,d=' <ul class="kv-SE-selectBoxInput ';f=g["if"].call(i,(i!=null?i.displaySelectBox:i),{name:"if",hash:{},fn:this.program(2,h),inverse:this.noop,data:h});if(f!=null){d+=f}d+='"  >\r\n';f=g.each.call(i,(i!=null?i.selectList:i),{name:"each",hash:{},fn:this.program(4,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+" </ul>\r\n"},"2":function(g,e,d,f){return"kv-SE-selectBoxInput--display"},"4":function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='    <li class="kv-SE-selectBoxItem ';d=e["if"].call(m,(m!=null?m.selected:m),{name:"if",hash:{},fn:this.program(5,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+'" data-value="'+i(((f=(f=e.value||(m!=null?m.value:m))!=null?f:l),(typeof f===g?f.call(m,{name:"value",hash:{},data:j}):f)))+'" data-type="'+i(((f=(f=e.type||(m!=null?m.type:m))!=null?f:l),(typeof f===g?f.call(m,{name:"type",hash:{},data:j}):f)))+'">\r\n       '+i(((f=(f=e.text||(m!=null?m.text:m))!=null?f:l),(typeof f===g?f.call(m,{name:"text",hash:{},data:j}):f)))+"\r\n     </li>\r\n"},"5":function(g,e,d,f){return"kv-SE-selectBoxItem--selected"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.selectBoxInput=c;var a=Handlebars.partials=Handlebars.partials||{};a.selectBoxInput=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='<p class="kv-SE-libelle">'+i(((f=(f=e.selectLabel||(m!=null?m.selectLabel:m))!=null?f:l),(typeof f===g?f.call(m,{name:"selectLabel",hash:{},data:j}):f)))+'</p>\r\n<div class="kv-js-SE-selectOptions kv-SE-selectContainer kv-SE-selectContainer--departureCity ';d=e["if"].call(m,(m!=null?m.displaySelectList:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='">\r\n<div class="kv-SE-selectedItem">';d=e["if"].call(m,(m!=null?m.selectedItemLabelLong:m),{name:"if",hash:{},fn:this.program(3,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+=" "+i(((f=(f=e.selectedItemLabel||(m!=null?m.selectedItemLabel:m))!=null?f:l),(typeof f===g?f.call(m,{name:"selectedItemLabel",hash:{},data:j}):f)))+'</div>\r\n <div class="kv-SE-selectList kv-js-SE-selectList">\r\n';d=e["if"].call(m,(m!=null?m.showDepartureCityTitle:m),{name:"if",hash:{},fn:this.program(5,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+="  <ul>\r\n";d=e.each.call(m,(m!=null?m.topVillesDepart:m),{name:"each",hash:{},fn:this.program(7,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+="     </ul>\r\n";d=e["if"].call(m,(m!=null?m.showDepartureCityMoreCities:m),{name:"if",hash:{},fn:this.program(10,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+" </div>\r\n</div>\r\n"},"1":function(g,e,d,f){return"kv-SE-selectContainer--sh"},"3":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return i(((f=(f=g.selectedItemLabelLong||(k!=null?k.selectedItemLabelLong:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectedItemLabelLong",hash:{},data:h}):f)))},"5":function(g,e,d,f){return'   <span class="kv-SE-title">Top villes de d&eacute;part</span>\r\n'},"7":function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='             <li data-value="'+i(((f=(f=e.value||(m!=null?m.value:m))!=null?f:l),(typeof f===g?f.call(m,{name:"value",hash:{},data:j}):f)))+'">'+i(((f=(f=e.text||(m!=null?m.text:m))!=null?f:l),(typeof f===g?f.call(m,{name:"text",hash:{},data:j}):f)))+"</li>\r\n";d=((e.compare||(m&&m.compare)||l).call(m,(j&&j.index),5,{name:"compare",hash:{operator:("===")},fn:this.program(8,j),inverse:this.noop,data:j}));if(d!=null){h+=d}return h},"8":function(g,e,d,f){return"              </ul>\r\n              <ul>\r\n"},"10":function(i,g,e,h){var f,d='      <div class="kv-SE-moreCities kv-js-SE-moreCities">\r\n       <div>\r\n        <span class="kv-js-SE-more kv-SE-more">Plus de villes de d&eacute;part</span>\r\n        <span class="kv-js-SE-less kv-SE-less">Moins de villes de d&eacute;part</span>\r\n       </div>\r\n       <ul>\r\n';f=g.each.call(i,(i!=null?i.villesDepart:i),{name:"each",hash:{},fn:this.program(11,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"       </ul>\r\n      </div>\r\n"},"11":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'               <li data-value="'+i(((f=(f=g.value||(k!=null?k.value:k))!=null?f:e),(typeof f===j?f.call(k,{name:"value",hash:{},data:h}):f)))+'">'+i(((f=(f=g.text||(k!=null?k.text:k))!=null?f:e),(typeof f===j?f.call(k,{name:"text",hash:{},data:h}):f)))+"</li>\r\n"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.selectDepartureCity=c;var a=Handlebars.partials=Handlebars.partials||{};a.selectDepartureCity=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='<p class="kv-SE-libelle">'+i(((f=(f=e.selectLabel||(m!=null?m.selectLabel:m))!=null?f:l),(typeof f===g?f.call(m,{name:"selectLabel",hash:{},data:j}):f)))+'</p>\r\n<div class="kv-js-SE-selectOptions kv-SE-selectContainer kv-SE-selectContainer--departureCity ';d=e["if"].call(m,(m!=null?m.displaySelectList:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='">\r\n<div class="kv-SE-selectedItem">';d=e["if"].call(m,(m!=null?m.selectedItemLabelLong:m),{name:"if",hash:{},fn:this.program(3,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+=" "+i(((f=(f=e.selectedItemLabel||(m!=null?m.selectedItemLabel:m))!=null?f:l),(typeof f===g?f.call(m,{name:"selectedItemLabel",hash:{},data:j}):f)))+'</div>\r\n <div class="kv-SE-selectList kv-js-SE-selectList">\r\n  <span class="kv-SE-title">Top villes de d&eacute;part</span>\r\n  <ul>\r\n';d=e.each.call(m,(m!=null?m.topVillesDepart:m),{name:"each",hash:{},fn:this.program(5,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='     </ul>\r\n     <span class="kv-SE-title kv-SE-title--more">Toutes les villes de d&eacute;part</span>\r\n     <ul>\r\n';d=e.each.call(m,(m!=null?m.villesDepart:m),{name:"each",hash:{},fn:this.program(7,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+"     </ul>\r\n </div>\r\n</div>\r\n"},"1":function(g,e,d,f){return"kv-SE-selectContainer--sh"},"3":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return i(((f=(f=g.selectedItemLabelLong||(k!=null?k.selectedItemLabelLong:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectedItemLabelLong",hash:{},data:h}):f)))},"5":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'             <li data-value="'+i(((f=(f=g.value||(k!=null?k.value:k))!=null?f:e),(typeof f===j?f.call(k,{name:"value",hash:{},data:h}):f)))+'">'+i(((g.math||(k&&k.math)||e).call(k,(h&&h.index),1,"+i",{name:"math",hash:{},data:h})))+". "+i(((f=(f=g.text||(k!=null?k.text:k))!=null?f:e),(typeof f===j?f.call(k,{name:"text",hash:{},data:h}):f)))+"</li>\r\n"},"7":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'             <li data-value="'+i(((f=(f=g.value||(k!=null?k.value:k))!=null?f:e),(typeof f===j?f.call(k,{name:"value",hash:{},data:h}):f)))+'">'+i(((f=(f=g.text||(k!=null?k.text:k))!=null?f:e),(typeof f===j?f.call(k,{name:"text",hash:{},data:h}):f)))+"</li>\r\n"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.selectDepartureCity_v2=c;var a=Handlebars.partials=Handlebars.partials||{};a.selectDepartureCity_v2=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='<p class="kv-SE-libelle">'+i(((f=(f=e.selectLabel||(m!=null?m.selectLabel:m))!=null?f:l),(typeof f===g?f.call(m,{name:"selectLabel",hash:{},data:j}):f)))+'</p>\r\n<div class="kv-js-SE-selectOptions kv-js-SE-selectMonth  kv-SE-selectContainer kv-SE-selectContainer--month ';d=e["if"].call(m,(m!=null?m.displaySelectListMonths:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='">\r\n <div class="kv-SE-selectedItem">\r\n';d=e["if"].call(m,(m!=null?m.selectedItemMonthLabel:m),{name:"if",hash:{},fn:this.program(3,j),inverse:this.program(5,j),data:j});if(d!=null){h+=d}h+=' </div>\r\n <div class="kv-SE-selectList kv-js-SE-selectList">\r\n  <ul>\r\n';d=e.each.call(m,(m!=null?m.months:m),{name:"each",hash:{},fn:this.program(7,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='  </ul>\r\n </div>\r\n</div>\r\n\r\n<div class="kv-js-SE-selectOptions kv-js-SE-selectDay  kv-SE-selectContainer kv-SE-selectContainer--day ';d=e["if"].call(m,(m!=null?m.displaySelectListDays:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='">\r\n <div class="kv-SE-selectedItem">\r\n';d=e["if"].call(m,(m!=null?m.selectedItemDayLabel:m),{name:"if",hash:{},fn:this.program(10,j),inverse:this.program(12,j),data:j});if(d!=null){h+=d}h+=' </div>\r\n <div class="kv-SE-selectList kv-js-SE-selectList">\r\n  <ul>\r\n';d=e["if"].call(m,(m!=null?m.enableSelectDay:m),{name:"if",hash:{},fn:this.program(14,j),inverse:this.program(17,j),data:j});if(d!=null){h+=d}h+="\r\n  </ul>\r\n </div>\r\n</div>\r\n";d=((e.compare||(m&&m.compare)||l).call(m,(m!=null?m.numberOfMonths:m),1,{name:"compare",hash:{operator:(">")},fn:this.program(19,j),inverse:this.program(21,j),data:j}));if(d!=null){h+=d}return h+"\r\n"},"1":function(g,e,d,f){return"kv-SE-selectContainer--sh"},"3":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"   "+i(((f=(f=g.selectedItemMonthLabel||(k!=null?k.selectedItemMonthLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectedItemMonthLabel",hash:{},data:h}):f)))+"\r\n"},"5":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"   "+i(((f=(f=g.selectMonthLabel||(k!=null?k.selectMonthLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectMonthLabel",hash:{},data:h}):f)))+"\r\n"},"7":function(i,g,e,h){var f,d="    ";f=g["if"].call(i,(i!=null?i.selectable:i),{name:"if",hash:{},fn:this.program(8,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"\r\n"},"8":function(i,f,e,g){var d=this.lambda,h=this.escapeExpression;return'<li data-value="'+h(d((i!=null?i.value:i),i))+'">'+h(d((i!=null?i.text:i),i))+"</li>"},"10":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"   "+i(((f=(f=g.selectedItemDayLabel||(k!=null?k.selectedItemDayLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectedItemDayLabel",hash:{},data:h}):f)))+"\r\n"},"12":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"   "+i(((f=(f=g.selectDayLabel||(k!=null?k.selectDayLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectDayLabel",hash:{},data:h}):f)))+"\r\n"},"14":function(i,g,e,h){var f,d="";f=g.each.call(i,(i!=null?i.days:i),{name:"each",hash:{},fn:this.program(15,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d},"15":function(i,f,e,g){var d=this.lambda,h=this.escapeExpression;return'    <li data-value="'+h(d((i!=null?i.value:i),i))+'">'+h(d((i!=null?i.text:i),i))+"</li>\r\n"},"17":function(g,e,d,f){return'   <div class="defaut-jour">s&eacute;lectionner d\'abord un mois</div>\r\n'},"19":function(i,g,e,h){var f,d="";f=this.invokePartial(e.calendar2Months," ","calendar2Months",i,undefined,g,e,h);if(f!=null){d+=f}return d},"21":function(i,g,e,h){var f,d="";f=this.invokePartial(e.calendar," ","calendar",i,undefined,g,e,h);if(f!=null){d+=f}return d},usePartial:true,useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.selectDepartureDate=c;var a=Handlebars.partials=Handlebars.partials||{};a.selectDepartureDate=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='<p class="kv-SE-libelle">'+i(((f=(f=e.selectLabel||(m!=null?m.selectLabel:m))!=null?f:l),(typeof f===g?f.call(m,{name:"selectLabel",hash:{},data:j}):f)))+"</p>\r\n<div ";d=e["if"].call(m,(m!=null?m.selectId:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+=' class="kv-js-SE-selectOptions kv-SE-selectContainer ';d=e["if"].call(m,(m!=null?m.displaySelectList:m),{name:"if",hash:{},fn:this.program(3,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='">\r\n <div class="kv-SE-selectedItem">\r\n';d=e["if"].call(m,(m!=null?m.selectedItemLabel:m),{name:"if",hash:{},fn:this.program(5,j),inverse:this.program(8,j),data:j});if(d!=null){h+=d}h+=' </div>\r\n <div class="kv-SE-selectList kv-js-SE-selectList">\r\n  <ul>\r\n';d=e.each.call(m,(m!=null?m.selectList:m),{name:"each",hash:{},fn:this.program(10,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+"  </ul>\r\n </div>\r\n</div>"},"1":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'id="'+i(((f=(f=g.selectId||(k!=null?k.selectId:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectId",hash:{},data:h}):f)))+'"'},"3":function(g,e,d,f){return"kv-SE-selectContainer--sh"},"5":function(m,e,k,j){var d,f,l=e.helperMissing,g="function",i=this.escapeExpression,h="   ";d=((e.compare||(m&&m.compare)||l).call(m,(m!=null?m.selectedItemValue:m),0,{name:"compare",hash:{operator:("!=")},fn:this.program(6,j),inverse:this.noop,data:j}));if(d!=null){h+=d}return h+i(((f=(f=e.selectedItemLabel||(m!=null?m.selectedItemLabel:m))!=null?f:l),(typeof f===g?f.call(m,{name:"selectedItemLabel",hash:{},data:j}):f)))+"\r\n"},"6":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return i(((f=(f=g.selectedItemLabelLong||(k!=null?k.selectedItemLabelLong:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectedItemLabelLong",hash:{},data:h}):f)))+" "},"8":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"   "+i(((f=(f=g.selectInputLabel||(k!=null?k.selectInputLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectInputLabel",hash:{},data:h}):f)))+"\r\n"},"10":function(i,g,e,h){var f,d="    ";f=g["if"].call(i,(i!=null?i.selectable:i),{name:"if",hash:{},fn:this.program(11,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"\r\n"},"11":function(i,f,e,g){var d=this.lambda,h=this.escapeExpression;return'<li data-value="'+h(d((i!=null?i.value:i),i))+'">'+h(d((i!=null?i.text:i),i))+"</li>"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.selectDepartureDateRange_withLongLabel=c;var a=Handlebars.partials=Handlebars.partials||{};a.selectDepartureDateRange_withLongLabel=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='<p class="kv-SE-libelle">'+i(((f=(f=e.destinationPlaceholder||(m!=null?m.destinationPlaceholder:m))!=null?f:l),(typeof f===g?f.call(m,{name:"destinationPlaceholder",hash:{},data:j}):f)))+"</p>\r\n";d=e["if"].call(m,(m!=null?m.hasAutocomplete:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.program(3,j),data:j});if(d!=null){h+=d}return h+'<div class="kv-js-SE-layerDestination kv-SE-layerDestination"></div>\r\n'},"1":function(g,e,d,f){return' <span class="kv-js-SE-autocompleteReset kv-SE-autocompleteReset"></span>\r\n <div class="kv-js-SE-autocompleteInput kv-SE-autocompleteInput kv-js-SE-selectOptions"></div>\r\n <div class="kv-js-SE-autocompleteList kv-SE-autocompleteList"></div>\r\n'},"3":function(g,e,d,f){return' <div class="kv-js-SE-selectedItemContainer kv-SE-selectedItemContainer"></div>\r\n <span class="kv-js-reset-desti kv-reset-desti"></span>\r\n'},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.selectDestination=c;var a=Handlebars.partials=Handlebars.partials||{};a.selectDestination=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='<div data-name="'+i(((f=(f=e.nom||(m!=null?m.nom:m))!=null?f:l),(typeof f===g?f.call(m,{name:"nom",hash:{},data:j}):f)))+'" ';d=e["if"].call(m,(m!=null?m.omniture:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+=' class="kv-SE-selectEngineTabItem--'+i(((f=(f=e["class"]||(m!=null?m["class"]:m))!=null?f:l),(typeof f===g?f.call(m,{name:"class",hash:{},data:j}):f)))+" ";d=e["if"].call(m,(m!=null?m.selected:m),{name:"if",hash:{},fn:this.program(3,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='">\r\n';d=e["if"].call(m,(m!=null?m.url:m),{name:"if",hash:{},fn:this.program(5,j),inverse:this.program(7,j),data:j});if(d!=null){h+=d}return h+"</div>\r\n"},"1":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'data-omniture="'+i(((f=(f=g.omniture||(k!=null?k.omniture:k))!=null?f:e),(typeof f===j?f.call(k,{name:"omniture",hash:{},data:h}):f)))+'"'},"3":function(g,e,d,f){return"selected"},"5":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'  <a href="'+i(((f=(f=g.url||(k!=null?k.url:k))!=null?f:e),(typeof f===j?f.call(k,{name:"url",hash:{},data:h}):f)))+'" rel="nofollow">\r\n   <p>'+i(((f=(f=g.nom||(k!=null?k.nom:k))!=null?f:e),(typeof f===j?f.call(k,{name:"nom",hash:{},data:h}):f)))+"</p>\r\n   <span></span>\r\n  </a>\r\n"},"7":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"  <p>"+i(((f=(f=g.nom||(k!=null?k.nom:k))!=null?f:e),(typeof f===j?f.call(k,{name:"nom",hash:{},data:h}):f)))+"</p>\r\n  <span></span>\r\n"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.selectEngineTab=c;var a=Handlebars.partials=Handlebars.partials||{};a.selectEngineTab=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='<p class="kv-SE-libelle">'+i(((f=(f=e.selectLabel||(m!=null?m.selectLabel:m))!=null?f:l),(typeof f===g?f.call(m,{name:"selectLabel",hash:{},data:j}):f)))+"</p>\r\n<div ";d=e["if"].call(m,(m!=null?m.selectId:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+=' class="kv-js-SE-selectOptions kv-SE-selectContainer ';d=e["if"].call(m,(m!=null?m.displaySelectList:m),{name:"if",hash:{},fn:this.program(3,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='">\r\n <div class="kv-SE-selectedItem">\r\n';d=e["if"].call(m,(m!=null?m.selectedItemLabel:m),{name:"if",hash:{},fn:this.program(5,j),inverse:this.program(7,j),data:j});if(d!=null){h+=d}h+=' </div>\r\n <div class="kv-SE-selectList kv-js-SE-selectList">\r\n  <ul>\r\n';d=e.each.call(m,(m!=null?m.selectList:m),{name:"each",hash:{},fn:this.program(9,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+"  </ul>\r\n </div>\r\n</div>"},"1":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'id="'+i(((f=(f=g.selectId||(k!=null?k.selectId:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectId",hash:{},data:h}):f)))+'"'},"3":function(g,e,d,f){return"kv-SE-selectContainer--sh"},"5":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"   "+i(((f=(f=g.selectedItemLabel||(k!=null?k.selectedItemLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectedItemLabel",hash:{},data:h}):f)))+"\r\n"},"7":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"   "+i(((f=(f=g.selectInputLabel||(k!=null?k.selectInputLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectInputLabel",hash:{},data:h}):f)))+"\r\n"},"9":function(i,g,e,h){var f,d="    ";f=g["if"].call(i,(i!=null?i.selectable:i),{name:"if",hash:{},fn:this.program(10,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"\r\n"},"10":function(i,f,e,g){var d=this.lambda,h=this.escapeExpression;return'<li data-value="'+h(d((i!=null?i.value:i),i))+'">'+h(d((i!=null?i.text:i),i))+"</li>"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.selectInputSE=c;var a=Handlebars.partials=Handlebars.partials||{};a.selectInputSE=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h='<p class="kv-SE-libelle">'+i(((f=(f=e.selectLabel||(m!=null?m.selectLabel:m))!=null?f:l),(typeof f===g?f.call(m,{name:"selectLabel",hash:{},data:j}):f)))+"</p>\r\n<div ";d=e["if"].call(m,(m!=null?m.selectId:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+=' class="kv-js-SE-selectOptions kv-SE-selectContainer ';d=e["if"].call(m,(m!=null?m.displaySelectList:m),{name:"if",hash:{},fn:this.program(3,j),inverse:this.noop,data:j});if(d!=null){h+=d}h+='">\r\n <div class="kv-SE-selectedItem">\r\n';d=e["if"].call(m,(m!=null?m.selectedItemLabel:m),{name:"if",hash:{},fn:this.program(5,j),inverse:this.program(8,j),data:j});if(d!=null){h+=d}h+=' </div>\r\n <div class="kv-SE-selectList kv-js-SE-selectList">\r\n';d=e.each.call(m,(m!=null?m.selectListContainer:m),{name:"each",hash:{},fn:this.program(10,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+" </div>\r\n</div>"},"1":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return'id="'+i(((f=(f=g.selectId||(k!=null?k.selectId:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectId",hash:{},data:h}):f)))+'"'},"3":function(g,e,d,f){return"kv-SE-selectContainer--sh"},"5":function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h="   ";d=e["if"].call(m,(m!=null?m.selectedItemLabelLong:m),{name:"if",hash:{},fn:this.program(6,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+i(((f=(f=e.selectedItemLabel||(m!=null?m.selectedItemLabel:m))!=null?f:l),(typeof f===g?f.call(m,{name:"selectedItemLabel",hash:{},data:j}):f)))+"\r\n"},"6":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return i(((f=(f=g.selectedItemLabelLong||(k!=null?k.selectedItemLabelLong:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectedItemLabelLong",hash:{},data:h}):f)))},"8":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return"   "+i(((f=(f=g.selectInputLabel||(k!=null?k.selectInputLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectInputLabel",hash:{},data:h}):f)))+"\r\n"},"10":function(j,h,e,i){var g,f=h.helperMissing,d="   ";g=((h.compare||(j&&j.compare)||f).call(j,(i&&i.index),0,{name:"compare",hash:{operator:("!=")},fn:this.program(11,i),inverse:this.noop,data:i}));if(g!=null){d+=g}d+="\r\n   <ul>\r\n";g=h.each.call(j,(j!=null?j.items:j),{name:"each",hash:{},fn:this.program(13,i),inverse:this.noop,data:i});if(g!=null){d+=g}return d+"   </ul>\r\n"},"11":function(i,f,e,g){var d=this.lambda,h=this.escapeExpression;return"<p>"+h(d((i!=null?i.label:i),i))+"</p>"},"13":function(i,g,e,h){var f,d="     ";f=g["if"].call(i,(i!=null?i.selectable:i),{name:"if",hash:{},fn:this.program(14,h),inverse:this.noop,data:h});if(f!=null){d+=f}return d+"\r\n"},"14":function(i,f,e,g){var d=this.lambda,h=this.escapeExpression;return'<li data-value="'+h(d((i!=null?i.value:i),i))+'">'+h(d((i!=null?i.text:i),i))+"</li>"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.selectInputWTitles=c;var a=Handlebars.partials=Handlebars.partials||{};a.selectInputWTitles=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(j,g,e,h,i){var f,d="";f=g.each.call(j,((f=(j!=null?j.zonesTouristiqueDestination:j))!=null?f.children:f),{name:"each",hash:{},fn:this.program(1,h,i),inverse:this.noop,data:h});if(f!=null){d+=f}return d},"1":function(k,e,i,h,l){var d,j=this.lambda,g=this.escapeExpression,f=' <ul class="kv-SE-ZTList">\r\n  <li class="kv-SE-ZTItem kv-js-SE-ZTItem" data-value="'+g(j(((d=(k!=null?k.zt:k))!=null?d.value:d),k))+'" >'+g(j(((d=(k!=null?k.zt:k))!=null?d.text:d),k))+"</li>\r\n";d=e["if"].call(k,(k!=null?k.children:k),{name:"if",hash:{},fn:this.program(2,h,l),inverse:this.noop,data:h});if(d!=null){f+=d}return f+"    </ul>\r\n"},"2":function(j,g,e,h,i){var f,d="";f=g.each.call(j,(j!=null?j.children:j),{name:"each",hash:{},fn:this.program(3,h,i),inverse:this.noop,data:h});if(f!=null){d+=f}return d},"3":function(k,g,e,h,j){var f,d=this.lambda,i=this.escapeExpression;return'       <li class="kv-SE-ZTItem kv-SE-ZTItem--sub kv-js-SE-ZTItem" data-value="'+i(d(((f=(k!=null?k.zt:k))!=null?f.value:f),k))+'" data-parent="'+i(d(((f=(j[1]!=null?j[1].zt:j[1]))!=null?f.value:f),k))+'" >'+i(d(((f=(k!=null?k.zt:k))!=null?f.text:f),k))+"</li>\r\n"},useData:true,useDepths:true});var b=Handlebars.templates=Handlebars.templates||{};b.selectZTDestination=c;var a=Handlebars.partials=Handlebars.partials||{};a.selectZTDestination=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(h,f,d,g){var e;e=f["if"].call(h,(h!=null?h.selectedItemLabel:h),{name:"if",hash:{},fn:this.program(1,g),inverse:this.program(3,g),data:g});if(e!=null){return e}else{return""}},"1":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return" "+i(((f=(f=g.selectedItemLabel||(k!=null?k.selectedItemLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectedItemLabel",hash:{},data:h}):f)))+"\r\n"},"3":function(k,g,d,h){var f,j="function",e=g.helperMissing,i=this.escapeExpression;return" "+i(((f=(f=g.selectInputLabel||(k!=null?k.selectInputLabel:k))!=null?f:e),(typeof f===j?f.call(k,{name:"selectInputLabel",hash:{},data:h}):f)))+"\r\n"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.selectedItem=c;var a=Handlebars.partials=Handlebars.partials||{};a.selectedItem=c;var c=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(m,e,k,j){var d,f,g="function",l=e.helperMissing,i=this.escapeExpression,h="<input ";d=e["if"].call(m,(m!=null?m.disabled:m),{name:"if",hash:{},fn:this.program(1,j),inverse:this.noop,data:j});if(d!=null){h+=d}return h+' type="text"  value="'+i(((f=(f=e.selectedItemLabel||(m!=null?m.selectedItemLabel:m))!=null?f:l),(typeof f===g?f.call(m,{name:"selectedItemLabel",hash:{},data:j}):f)))+'" placeholder="'+i(((f=(f=e.placeholder||(m!=null?m.placeholder:m))!=null?f:l),(typeof f===g?f.call(m,{name:"placeholder",hash:{},data:j}):f)))+'"/>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n'},"1":function(g,e,d,f){return"readonly"},useData:true});var b=Handlebars.templates=Handlebars.templates||{};b.textInput=c;var a=Handlebars.partials=Handlebars.partials||{};a.textInput=c})();(function(b,c,e){var d=b.app,g=b.Backbone,f=g.Marionette,a=b._;d.Moteur=(function(){var h={};h.init=function(i){d.log("[Moteur:init] initialisation de l'appli Moteur.",d.log.INFO);c(".moteur-loader-content").fadeIn("slow");var j=new this.Views.MoteurView({model:new this.Models.MoteurModel(i)});return j};return h})()})(window,jQuery);(function(b,c,e){var d=b.app,g=b.Backbone,f=g.Marionette,a=b._;d.Moteur.Models=(function(){var h={};h.MoteurModel=g.Model.extend({url:rootPath+"ajax/getMoteur/",defaults:{searchParams:{},debounceTime:100,canSendForm:true}});h.SelectInput=g.Model.extend({defaults:{selectLabel:"",displaySelectList:false,selectedItemLabel:"",selectedItemValue:null,selectList:[],selectedItemLabelLong:"",selectable:true,taggage:{prop:"",actions:""}}});h.SelectDepartureCity=g.Model.extend({defaults:{selectLabel:"Ville de départ",selectedItemLabelLong:"Au départ de",displaySelectList:false,selectedItemLabel:"Paris",selectedItemValue:"1188",topVillesDepart:[],villesDepart:[],selectable:true,hasDepartureCityChangePublish:true}});h.SelectDepartureDate=g.Model.extend({defaults:{selectLabel:"Date de départ",displaySelectListMonths:false,displaySelectListDays:false,displayCalendar:false,selectDayLabel:"Jour",selectMonthLabel:"Mois",enableSelectDay:false,departureDateDefaut:true}});h.SelectZTDestination=g.Model.extend({defaults:{selectedItemValue:"",zonesTouristiqueDestination:[]}});h.MoteurDestination=g.Model.extend({defaults:{showLayerDestination:false}});h.searchTabItem=g.Model.extend({defaults:{nom:"","class":"",position:0,selected:false}});h.InputText=g.Model.extend({defaults:{}});h.SelectBox=g.Model.extend({defaults:{}});h.SelectBoxAutocomplete=g.Model.extend({defaults:{index:0},url:function(){if(this.has("autocompleteUrl")&&this.get("autocompleteUrl")){return this.get("autocompleteUrl")}return rootPath+"ajax/autocompletion/destination"},parse:function(i,j){var o=["villes","zones"];var n=[];var m={};var l=0;var k=[{id:0,typeLabel:"destinationCities"},{id:1,typeLabel:"destinationZones"},{id:2,typeLabel:"destinationZones"},{id:3,typeLabel:"destinationZones"},{id:4,typeLabel:"destinationZones"},{id:5,typeLabel:"destinationZones"},{id:6,typeLabel:"destinationZones"},{id:7,typeLabel:"destinationZones"}];a.each(i,function(q,p){if(a.indexOf(o,p)&&i[p]!==null&&i[p].length>0){a.each(i[p],function(t,s){var r=t.label.split(",");if(m[r[0]]){m[r[0]]+=1}else{m[r[0]]=1}})}});a.each(i,function(q,p){if(a.indexOf(o,p)&&i[p]!==null&&i[p].length>0){a.each(i[p],function(u,t){var s=u.label.split(",");var r=m[s[0]];if(typeof(r)!=="undefined"&&r>1){if(u.type==0){u.label="Ville de "+u.label}else{u.label=s[0]+" et ses alentours,"+s[1]}}u.type=a.findWhere(k,{id:u.type});if(typeof u.type!=="undefined"){u.type=u.type.typeLabel}else{delete(u.type)}u.value=u.id;u.text=u.label;u.index=l;u.selected=false;delete(u.label);delete(u.id);l++;n.push(u)})}});this.set("selectList",n)}});h.LayerDestination=g.Model.extend({defaults:{}});h.SelectedItem=g.Model.extend({defaults:{}});return h})()})(window,jQuery);(function(g,e,b){var c=g.app,k=g.Backbone,h=k.Marionette,l=g._;var d=function d(o){var n=document.cookie.match(new RegExp(o+"=([^;]+)"));n&&(n=JSON.parse(n[1]));return n};var m=function m(n,p){var o=[n,"=",JSON.stringify(p),"; domain=.",g.location.host.toString(),"; path=/;"].join("");document.cookie=o};var f=function f(n){document.cookie=[n,"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.",g.location.host.toString()].join("")};var j={dureeRegion:{type:"numberOfNightsRanges",selectId:"durees",selectLabel:"Durée",selectInputLabel:"Durée",taggage:{prop:"prop7",actions:"duree"},className:".kv-js-SE-numberOfNightsRanges"},budgetRegion:{type:"priceRange",selectId:"budgets",selectLabel:"Budget",selectInputLabel:"Budget par personne",taggage:{prop:"prop17",actions:"budget"},className:".kv-js-SE-priceRange"}};var a=function(){if(c.WebApp&&c.WebApp.Config&&c.WebApp.Config.bonsPlansOpened===true){c.WebApp.Config.bonsPlansOpened=false;e("#bons-plans .dataContainer").addClass("hd")}};var i=(function(){var n=0;return function(p,o){clearTimeout(n);n=setTimeout(p,o)}})();c.Moteur.Views=(function(){var x={};var C=c.Moteur.Models;x.MoteurView=h.LayoutView.extend({template:Handlebars.templates.searchEngine,className:"kv-SearchEngine",regions:{ongletMoteurRegion:".kv-js-SE-selectEngineTab",villeDepartRegion:".kv-js-SE-departureCity",dateDepartRegion:".kv-js-SE-departureDate",destinationRegion:".kv-js-SE-destination",sousDestiRegion:".kv-js-SE-ZTDestination",iframeRegion:".kv-js-SE-iframe"},initialize:function(F){var G={searchEngineTwoLevels:Handlebars.templates.searchEngineTwoLevels,searchEngineOneLevel:Handlebars.templates.searchEngineOneLevel,searchEngineExportable:Handlebars.templates.searchEngineExportable,searchEngine:Handlebars.templates.searchEngine,searchEngine_v2:Handlebars.templates.searchEngine_v2,searchEngine_v3:Handlebars.templates.searchEngine_v3,searchEngine_v4:Handlebars.templates.searchEngine_v4,searchEngine_v5:Handlebars.templates.searchEngine_v5,searchEngineExportable_v2:Handlebars.templates.searchEngineExportable_v2,searchEngine_Fram:Handlebars.templates.searchEngine_Fram};this.template=G[this.model.get("template")]||G.searchEngine;c.log("[Moteur:initialize] initialisation du Layout moteur",c.log.LOG);c.mediator.subscribe("moteur:selectZTDestination",l.bind(this.sendForm,this));c.mediator.subscribe("dataManagement:getMoteurData",l.bind(this.updateAll,this));c.mediator.subscribe("sejlist:ready",l.bind(this.hideLoader,this));e("#moteur").fadeIn()},events:{"click .kv-js-SE-submit":"sendForm","click .kv-js-SE-moreCriteria":"moreCriteria","dblclick .kv-js-SE-submit":"preventDoubleClick","submit .submitAutocomplete":"stopPropagationForAutocomplete"},modelEvents:{change:"updateRegions"},childEvents:{updateLocalstorage:"updateLocalstorage","setAttribute:process":function(){this.model.set("process","redirection",{silent:true})},"event:setDepartureDate":function(F){if(F.model.has("departureDateRange")){this.flexibiliteRegion.currentView.model.set("selectedItemValue",F.model.get("departureDateRange"))}else{if(this.flexibiliteRegion.hasView()&&this.flexibiliteRegion.currentView.model.get("departureDateRangeDefault")){if(F.model.has("setDepartureDate")&&F.model.get("setDepartureDate")&&F.model.has("departureDateDefaut")&&!F.model.get("departureDateDefaut")){if(F.model.has("selectedItemDayValue")&&F.model.get("selectedItemDayValue")){this.flexibiliteRegion.currentView.model.set("selectedItemValue",2);this.flexibiliteRegion.currentView.model.set("selectedItemLabel","+/- 2 jours")}else{this.flexibiliteRegion.currentView.model.set("selectedItemValue",15);this.flexibiliteRegion.currentView.model.set("selectedItemLabel","+/- 15 jours")}}else{this.flexibiliteRegion.currentView.model.set("selectedItemValue",30);this.flexibiliteRegion.currentView.model.set("selectedItemLabel","+/- 30 jours")}this.flexibiliteRegion.currentView.model.set("departureDateRangeDefault",true,{silent:true});this.flexibiliteRegion.currentView.render()}}},"event:showSelectOptions":function(F){var J=this;var I=this.getRegions();var H=F.model.get("displaySelectList");if(!H){if(F.model.get("displaySelectListMonths")||F.model.get("displaySelectListDays")||F.model.get("displayCalendar")||F.model.get("showLayerDestination")){H=true}}if(H){e("body").on("click",this.clickOutside.bind(this));l.each(I,function(L,K){if(L.hasView()&&L.currentView.model){if(L.currentView.cid!=F.cid){if(L.currentView.model.has("displaySelectListMonths")){L.currentView.model.set("displaySelectListMonths",false)}if(L.currentView.model.has("displaySelectListDays")){L.currentView.model.set("displaySelectListDays",false)}if(L.currentView.model.has("displayCalendar")){L.currentView.model.set("displayCalendar",false)}if(L.currentView.model.has("displaySelectList")){L.currentView.model.set("displaySelectList",false)}if(L.currentView.model.has("showLayerDestination")){L.currentView.model.set("showLayerDestination",false)}}}})}else{e("body").unbind("click");this.closeAllSelectOptions()}if(this.model.get("hasScrollToTop")){g.scrollTo({top:484,left:0,behavior:"smooth"})}if(this.model.get("hasScrollToWrapper")){var G=document.getElementsByClassName("kv-Layout-wrapper")[0];G.scrollIntoView({behavior:"smooth"})}},"event:highlight":function(F){if(this.model.has("hasHighlight")&&this.model.get("hasHighlight")){if(F.model.get("displaySelectList")||F.model.get("displaySelectListDays")||F.model.get("displaySelectListMonths")||F.model.get("displayCalendar")||F.model.get("showLayerDestination")){this.$el.find(".kv-js-SE-inputContainer").addClass("kv-SE-inputContainer--highlight")}else{this.$el.find(".kv-js-SE-inputContainer").removeClass("kv-SE-inputContainer--highlight")}}},"event:selectEngine":function(N,G){var H={};var L={};var J=G.get("type");var I={};var M=G.get("moteurType")||"";if(this.model.has("calqueDesti")){I=this.model.get("calqueDesti");if(G.has("nombreColonnes")){I.nombreColonnes=G.get("nombreColonnes")}}if(M){this.$el.find(".kv-js-SE-inputContainer").removeClass(function(O,P){return(P.match(/\bkv-SE-inputContainer--\S+/g)||[]).join(" ")});this.$el.find(".kv-js-SE-inputContainer").addClass("kv-SE-inputContainer--"+M)}if(this.getRegion("scriptRegion")&&this.scriptRegion.hasView()){this.scriptRegion.currentView.model.set("display",false)}if(J==="url"){g.location=G.get("url");return false}if(J==="script"){var K=new z({model:new k.Model({src:G.get("src"),dataTpncy:G.get("dataTpncy"),dataSize:G.get("dataSize"),dataContainer:G.get("dataContainer"),dataHash:G.get("dataHash"),id:G.get("id"),display:true})});this.addRegion("scriptRegion",".kv-js-SE-script");this.scriptRegion.show(K);this.$el.find(".kv-js-SE-inputContainer").hide();this.$el.find(".kv-js-SE-script").show()}if(J==="iframe"){var F=new n({model:new k.Model({iframeURL:G.get("iframeURL"),iframeWidth:G.get("iframeWidth"),iframeHeight:G.get("iframeHeight")})});this.iframeRegion.show(F);this.$el.find(".kv-js-SE-inputContainer").hide();this.$el.find(".iframe").show();return}else{this.iframeRegion.empty();this.$el.find(".iframe").hide()}if(this.destinationRegion.hasView()){this.destinationRegion.currentView.model.set({selectedItemValue:"",selectedItemLabel:""});L.destinationZones=""}if(J==="sejour"){H.moteurType=M;H.themespace="";H.numberOfNightsRanges="0";L.themespace="";L.theme="";I.orderByContinentType="sejour";this.model.set("themespace","",{silent:true});this.model.set("theme","",{silent:true});this.$el.find(".kv-js-SE-inputContainer").show()}else{if(J==="circuit"){H.moteurType="homepage_circuit";H.numberOfNightsRanges="0";H.themespace="circuit-touristique";H.theme=2;L.theme=2;L.themespace="circuit-touristique";I.orderByContinentType="homepage_circuit";this.model.set("themespace","circuit-touristique",{silent:true});this.model.set("theme",2,{silent:true});this.$el.find(".kv-js-SE-inputContainer").show()}else{if(J==="weekend"){H.moteurType="homepage_week_end";H.numberOfNightsRanges="[0->6)";H.themespace="week-end-pas-cher";H.theme="";L.themespace="week-end-pas-cher";L.theme="";this.model.set("themespace","week-end-pas-cher",{silent:true});this.model.set("theme","",{silent:true});this.$el.find(".kv-js-SE-inputContainer").show()}else{if(J=="thalasso"){H.moteurType=M;H.numberOfNightsRanges="";H.themespace="thalasso";H.theme=31;L.themespace="thalasso";L.theme=31;this.model.set("themespace","thalasso",{silent:true});this.model.set("theme",31,{silent:true});this.$el.find(".kv-js-SE-inputContainer").show()}else{if(J==="club_de_vacances"){H.moteurType=M;H.numberOfNightsRanges="";H.themespace="hotel-club-vacances";H.theme=216;L.theme=216;L.themespace="hotel-club-vacances";this.model.set("themespace","hotel-club-vacances",{silent:true});this.model.set("theme",216,{silent:true});this.$el.find(".kv-js-SE-inputContainer").show()}}}}}if(this.model.has("partner")&&this.model.get("partner")){H.partner=this.model.get("partner");L.partner=this.model.get("partner")}if(G.has("numberOfNightsRanges")){H.numberOfNightsRanges=G.get("numberOfNightsRanges")}if(G.has("departureDateRange")){H.departureDateRange=G.get("departureDateRange")}this.model.set("calqueDesti",I,{silent:true});this.model.set("searchParams",L,{silent:true});this.getDataAndFetch(H)}},closeAllSelectOptions:function(){var G=this;var F=this.getRegions();if(this.model.has("hasHighlight")&&this.model.get("hasHighlight")){this.$el.find(".kv-js-SE-inputContainer").removeClass("kv-SE-inputContainer--highlight")}l.each(F,function(I,H){if(I.hasView()&&I.currentView.model){if(I.currentView.model.has("displaySelectList")){I.currentView.model.set("displaySelectList",false)}if(I.currentView.model.has("displaySelectListMonths")){I.currentView.model.set("displaySelectListMonths",false)}if(I.currentView.model.has("displaySelectListDays")){I.currentView.model.set("displaySelectListDays",false)}if(I.currentView.model.has("displayCalendar")){I.currentView.model.set("displayCalendar",false)}if(I.currentView.model.has("showLayerDestination")){I.currentView.model.set("showLayerDestination",false)}}})},clickOutside:function(F){if(e(F.target).hasClass("kv-js-Calendar-datePickerTrigger")||e(F.target).hasClass("kv-js-Calendar-holidaysTrigger")||e(F.target).closest(".kv-Calendar-holidaysHelp").length){return}if(!e(F.target).hasClass("kv-js-SE-selectList")){e("body").unbind("click");this.closeAllSelectOptions()}},onRender:function(Q){var M=this;if(this.model.has("searchEngineTitle")){var K=new w({model:new k.Model({searchEngineTitle:M.model.get("searchEngineTitle")})});this.addRegion("titleRegion",".kv-js-SE-title");this.titleRegion.show(K)}if(this.model.has("onglets")){var J=k.Collection.extend({model:C.searchTabItem,comparator:"position"});var G=new r({collection:new J(this.model.get("onglets"))});this.ongletMoteurRegion.show(G)}if(this.model.has("budgetInputLabel")){j.budgetRegion.selectInputLabel=this.model.get("budgetInputLabel")}e.extend(true,j,M.model.get("moteurRegions"));if(!this.model.get("isIframe")){var L=new q({model:new C.SelectDepartureCity({type:"departureCities",hasDepartureCityChangePublish:M.model.has("hasDepartureCityChangePublish")?M.model.get("hasDepartureCityChangePublish"):true,hasDepartureCityRedirect:M.model.has("hasDepartureCityRedirect")?M.model.get("hasDepartureCityRedirect"):false,showDepartureCityTitle:M.model.has("showDepartureCityTitle")?M.model.get("showDepartureCityTitle"):true,showDepartureCityMoreCities:M.model.has("showDepartureCityMoreCities")?M.model.get("showDepartureCityMoreCities"):true,template:M.model.has("selectDepartureCityTemplate")?M.model.get("selectDepartureCityTemplate"):"selectDepartureCity"})});var N=new t({model:new C.SelectDepartureDate({type:"departureDate",selectDayLabel:"Jours",selectMonthLabel:"Mois",dayNamesMin:this.model.has("dayNamesMin")?this.model.get("dayNamesMin"):["Dim.","Lun.","Mar.","Mer.","Jeu.","Ven.","Sam."],showButtonPanel:M.model.has("showButtonPanel")?M.model.get("showButtonPanel"):false,changeMonth:M.model.has("changeMonth")?M.model.get("changeMonth"):true,changeYear:M.model.has("changeYear")?M.model.get("changeYear"):true,numberOfMonths:M.model.has("numberOfMonths")?M.model.get("numberOfMonths"):1,selectDateLabel:M.model.has("selectDateLabel")?M.model.get("selectDateLabel"):"",showCalendarCompleteDate:M.model.has("showCalendarCompleteDate")?M.model.get("showCalendarCompleteDate"):false,showCalendarClearDate:M.model.has("showCalendarClearDate")?M.model.get("showCalendarClearDate"):false,calendarClearDateLabel:M.model.has("calendarClearDateLabel")?M.model.get("calendarClearDateLabel"):"",showCalendarHelp:M.model.has("showCalendarHelp")?M.model.get("showCalendarHelp"):true,minDepartureDate:M.model.get("minDepartureDate")||{},hasDaySelectedLabel:M.model.get("hasDaySelectedLabel")||false})});var O=new s({model:new C.MoteurDestination({type:"destinationZones",destinationPlaceholder:M.model.has("destinationPlaceholder")?M.model.get("destinationPlaceholder"):"Destination",hasAutocomplete:M.model.has("hasAutocomplete")?M.model.get("hasAutocomplete"):false,autocompleteUrl:M.model.has("autocompleteUrl")?M.model.get("autocompleteUrl"):false,autocompleteAjaxMinLength:M.model.has("autocompleteAjaxMinLength")?parseInt(M.model.get("autocompleteAjaxMinLength"),10):3,showLayerDestination:M.model.has("showLayerDestination")?M.model.get("showLayerDestination"):false,inputLabel:"Destination"})});if(this.model.has("hasMoreCriteria")&&this.model.get("hasMoreCriteria")){if(this.$el.find(".kv-js-SE-themespace").length){var F=new D({model:new C.SelectInput({type:"themespace",selectId:"Thématique",selectLabel:"Thématique",selectInputLabel:this.model.get("themeInputLabel")||"Thématique",taggage:{prop:"prop17",actions:"thematique"},className:".kv-js-SE-themespace"})});this.addRegion("themespaceRegion",".kv-js-SE-themespace");this.listenTo(F.model,"change:selectedItemValue",this.updateModel);this.themespaceRegion.show(F)}if(this.$el.find(".kv-js-SE-hotelCategory").length){j.categorieRegion={type:"hotelCategories",selectId:"categorie",selectLabel:"Catégorie",selectInputLabel:"Catégorie de l'hôtel",taggage:{prop:"prop17",actions:"categories"},className:".kv-js-SE-hotelCategory"}}}var I=new E({model:new C.SelectInput({type:"departureDateRange",selectId:"flexibilites",selectLabel:"Flexibilité",selectInputLabel:"Flexibilité",selectedItemLabelLong:"Flexible à",taggage:{actions:"flexibilite"},template:M.model.has("departureDateRangeTemplate")?M.model.get("departureDateRangeTemplate"):"selectInputSE"})});M.listenTo(I.model,"change:selectedItemValue",M.updateModel);M.addRegion("flexibiliteRegion",".kv-js-SE-departureDateRange");M.getRegion("flexibiliteRegion").show(I);l.each(j,function(T,S){var R=new E({model:new C.SelectInput(T)});M.listenTo(R.model,"change:selectedItemValue",M.updateModel);M.addRegion(S,T.className);M.getRegion(S).show(R)});if(this.model.get("hasSelectZTDestination")){var H=new p({model:new C.SelectZTDestination({type:"destinationZones",selectedItemValue:null,zonesTouristiqueDestination:[]})});this.listenTo(H.model,"change:zonesTouristiqueDestination",H.render);this.sousDestiRegion.show(H)}this.listenTo(L.model,"change:selectedItemValue",this.updateModel);this.listenTo(O.model,"change:selectedItemValue",this.updateModel);this.listenTo(N.model,"change:selectedItemValue",this.updateModel);this.villeDepartRegion.show(L);this.dateDepartRegion.show(N);this.destinationRegion.show(O);var P=this.model.get("searchParams");if(this.model.has("themespace")){P.themespace=this.model.get("themespace")}if(this.model.has("theme")){P.theme=this.model.get("theme")}if(this.model.has("moteurType")){P.moteurType=this.model.get("moteurType")}if(this.model.has("partner")){P.partner=this.model.get("partner")}this.model.set("searchParams",P,{silent:true});if(g.trackTime){g.trackTime.tracking({category:"Functionalities",name:"init moteur before XHR"})}this.getDataAndFetch(this.model.get("searchParams"))}if(!l.isEmpty(this.model.get("btSubmitLabel"))){this.$el.find(".kv-js-SE-submit button").text(this.model.get("btSubmitLabel"))}},getDataFromLocalstorage:function(){if(this.model.has("hasPersonalisation")&&!this.model.get("hasPersonalisation")){return{}}var J={};var I=this;var K={villeDepartText:null,villeDepartId:"departureCities",dateDepartRange:"departureDateRange",dateDepart:"departureDate",duree:"numberOfNightsRanges",budget:"priceRange",destination:"destinationZones"};if(this.model.has("hasPersonalisation")){var F=I.model.get("hasPersonalisation");if(KV.storage.isAvailable()){KV.storage.getItem(("dataSearchObj"),function(N){for(var L in N){var M=K[L];if(M&&F[M]&&N[L]){J[M]=N[L]}}})}}else{if(KV.storage.isAvailable()){KV.storage.getItem(("dataSearchObj"),function(L){if(L){J.departureCities=L.villeDepartId?L.villeDepartId:"1188";if(L.dateDepart){J.departureDate=L.dateDepart}if(L.dateDepartRange){J.departureDateRange=L.dateDepartRange}}})}}if(J.departureDate){var G=this.model.has("minDepartureDate")?moment().add(this.model.get("minDepartureDate"),"days"):moment().subtract(1,"days").endOf("day");var H=moment(J.departureDate,"DD/MM/YYYY");if(moment(H).isBefore(G)){J.departureDate=G.format("DD/MM/YYYY");J={};KV.storage.removeItem("dataSearchObj")}}if(!J.departureCities){J.departureCities="1188"}return J},getDataAndFetch:function(N){e(".moteur-loader-content").fadeIn("slow");var H=new RegExp("(%2F)","g"),K={},M,I={},G=g.location.hash.split("#").length>1?g.location.hash.split("#")[1]:null;if(typeof moteurParams!=="undefined"){e.extend(true,I,moteurParams)}e.extend(true,I,this.getDataFromLocalstorage());if(I.themespace&&I.themespace==="voyage-derniere-minute"){var J=new Date();J=(J.getDate()+1)+"/"+(J.getMonth()+1)+"/"+J.getFullYear();I.departureDate=J}M=this.querystringToParamsObject();e.extend(true,I,M);var L=this.model.get("searchParams");if(M.themespace){this.model.set("themespace",M.themespace,{silent:true});L.themespace=M.themespace}if(M.theme){this.model.set("theme",M.theme,{silent:true});L.theme=M.theme}this.model.set("searchParams",L,{silent:true});if(N){e.extend(true,I,N)}for(var F in I){if(I.hasOwnProperty(F)){if(I[F]!==""){F=F.replace("%5B","[").replace("%3E",">");if(l.isArray(I[F])){I[F]=I[F][0]}}else{delete I[F]}}}if(I.departureDate){I.departureDate=moment(I.departureDate,"DD/MM/YYYY");if(moment(I.departureDate).isValid()){I.departureDate=I.departureDate.format("DD/MM/YYYY")}else{delete I.departureDate}}if(I.page==="hp"){delete I.departureDate}if(!parseInt(I.departureCities)){I.departureCities="1188"}this.model.fetch({data:e.param(I)})},querystringToParamsObject:function(L){var J=new RegExp("(%2F)","g");var I={};var H=g.location.hash.substring(1).replace(J,"/").split("&");for(var K=0,G=H.length;K<G;K++){var F=H[K].indexOf("=");I[H[K].substr(0,F)]=decodeURI(H[K].substr((F+1),H[K].length)).replace(/\+/," ")}return I},stopPropagationForAutocomplete:function(F){F.preventDefault()},updateRegions:function(){var G=this;var F=function(K){return l.find(K,function(L){return L.selected==true})};var J=function(M,K,N){if(!G.getRegion(N)||!G.getRegion(N).hasView()){return}G.getRegion(N).currentView.model.set(K,M,{silent:true});var L=F(M);if(L){G.getRegion(N).currentView.model.set("selectedItemLabel",L.text,{silent:true});G.getRegion(N).currentView.model.set("selectedItemValue",L.value)}};var I=function(L,O,P){if(!G.getRegion(P)||!G.getRegion(P).hasView()){return}G.getRegion(P).currentView.model.set(O,L,{silent:true});var M=[],R=Object.keys(L);for(var N=0;N<R.length;N++){var Q=L[R[N]]["items"];for(var K=0;K<Q.length;K++){if(Q[K]["selected"]===true){M=Q;break}}}var S=F(M);if(S){G.getRegion(P).currentView.model.set("selectedItemLabel",S.text,{silent:true});G.getRegion(P).currentView.model.set("selectedItemValue",S.value)}};if(this.model.has("mois")){this.dateDepartRegion.currentView.model.set("months",this.model.get("mois"))}if(this.model.has("jour")){this.dateDepartRegion.currentView.model.set("jour",this.model.get("jour"));this.dateDepartRegion.currentView.setDate()}if(this.model.has("hasDefaultDepartureDate")&&this.model.get("hasDefaultDepartureDate")=="none"){this.dateDepartRegion.currentView.changeDateMonth();this.dateDepartRegion.currentView.changeDateDay()}if(this.model.has("durees")){J(this.model.get("durees"),"selectList","dureeRegion")}if(this.model.has("flexibilites")){this.flexibiliteRegion.currentView.model.set("departureDateRangeDefault",true,{silent:true});J(this.model.get("flexibilites"),"selectList","flexibiliteRegion")}if(this.model.has("budgets")){J(this.model.get("budgets"),"selectList","budgetRegion")}if(this.model.has("rechercheThemes")&&this.model.get("hasSelectTypeCircuit")){J(this.model.get("rechercheThemes"),"selectList","typeCircuitRegion")}if(this.model.has("topVillesDepart")){J(this.model.get("topVillesDepart"),"topVillesDepart","villeDepartRegion")}if(this.model.has("villesDepart")){J(this.model.get("villesDepart"),"villesDepart","villeDepartRegion")}if(this.categorieRegion&&this.model.has("confort")){J(this.model.get("confort"),"selectList","categorieRegion")}if(this.themespaceRegion&&this.model.has("thematiques")){I(this.model.get("thematiques"),"selectListContainer","themespaceRegion")}else{if(this.themespaceRegion&&this.model.has("theme")&&this.model.has("themespace")){I(this.model.get("themespace")+"|"+this.model.get("theme"),"selectListContainer","themespaceRegion")}}var H=this.model.get("destinations")||{};if(this.model.has("ztoneLinkables")){H.ztoneLinkables=this.model.get("ztoneLinkables")}if(this.model.has("listZoneSki")){H.listZoneSki=this.model.get("listZoneSki")}if(this.model.has("calqueDesti")){H.calqueDesti=this.model.get("calqueDesti")}if(this.model.has("hasAutocomplete")){H.hasAutocomplete=this.model.get("hasAutocomplete")}if(this.model.has("topDestinations")){H.topDestinations=this.model.get("topDestinations")}if(this.model.has("topDestinationsWTabs")){H.topDestinationsWTabs=this.model.get("topDestinationsWTabs")}if(this.model.has("defaultDestinationZoneId")){H.defaultDestinationZoneId=this.model.get("defaultDestinationZoneId")}H.selectedItemLabel=this.model.get("destinationNameSelected")||this.destinationRegion.currentView.model.get("selectedItemLabel");H.selectedItemValue=this.model.get("idDestinationSelected")||this.model.get("defaultDestinationZoneId");if(this.model.get("acceptAllDestinationParams")&&this.model.has("destinationCity")&&this.model.get("destinationCity")!==null){H.selectedItemLabel=this.model.get("destinationCity").text||this.destinationRegion.currentView.model.get("selectedItemLabel");H.selectedItemValue=null;H.selectedItemValueObj={destinationCities:this.model.get("destinationCity").value,destinationZones:this.model.get("idDestinationSelected")};H.type=["destinationCities","destinationZones"]}else{if(this.model.has("destinationCity")&&this.model.get("destinationCity")!==null){H.selectedItemLabel=this.model.get("destinationCity").text||this.destinationRegion.currentView.model.get("selectedItemLabel");H.selectedItemValue=this.model.get("destinationCity").value||null;H.type="destinationCities"}}c.mediator.publish("CalqueDestiForIntentMedia",H);this.destinationRegion.currentView.model.set(H);if(this.model.has("zonesTouristiqueDestination")&&this.model.get("hasSelectZTDestination")){this.sousDestiRegion.currentView.model.set("zonesTouristiqueDestination",this.model.get("zonesTouristiqueDestination"))}if(g.trackTime){g.trackTime.tracking({category:"Functionalities",name:"getMoteur XHR end"})}e(".moteur-loader-content").fadeOut("slow")},updateModel:function(H){var J=H.get("type")||null;var K=H.get("selectedItemValue")||null;var I={};var L=this.model.get("searchParams");var G={};G.deleteData=[];G.process="updateGlobalSearchParams";if(J==="destinationCities"||J==="destinationZones"||J==="destinationCountries"){G.deleteData.push("destinationCities");G.deleteData.push("destinationZones");G.deleteData.push("destinationCountries");delete L.destinationCities;delete L.destinationZones;delete L.destinationCountries;G.deleteData=l.without(G.deleteData,J)}if(J==="departureDate"){L.departureDateDefaut=H.get("departureDateDefaut")}if(J==="departureDateRange"){H.set("departureDateRangeDefault",false,{silent:true})}if(J==="themespace"){var F=K.split("|");L.themespace=F[0];if(F[1]&&F[1]!=="0"){L.theme=F[1]}J=null}if(l.isArray(J)&&H.get("selectedItemValueObj")){if(l.indexOf(J,"destinationCities")>-1||l.indexOf(J,"destinationZones")>-1||l.indexOf(J,"destinationCountries")>-1){G.deleteData.push("destinationCities");G.deleteData.push("destinationZones");G.deleteData.push("destinationCountries");delete L.destinationCities;delete L.destinationZones;delete L.destinationCountries}l.each(J,function(M){L[M]=H.get("selectedItemValueObj")[M]});G.deleteData=l.difference(G.deleteData,J)}if(J&&!l.isArray(J)&&K){I[J]=K;e.extend(true,L,I)}else{if(L[J]&&!K){delete L[J];G.deleteData.push(J)}else{if(J&&!K){G.deleteData.push(J)}}}this.model.set("searchParams",L,{silent:true});G.data=L;c.mediator.publish("dataManagement:dataManagement",G);this.model.set("canSendForm",true,{silent:true})},updateAll:function(G){if(!G.data){return false}var H=this;var F=function(K,L){return l.find(K,function(M){return M.value==L})};var I=function(N,M){var L={};if(!M){var K=H.getRegion(N).currentView.model.get("selectInputLabel");H.getRegion(N).currentView.model.set("selectedItemLabel",K,{silent:true});H.getRegion(N).currentView.model.set("selectedItemValue",null)}else{if(H.getRegion(N).hasView()&&M){L=F(H.getRegion(N).currentView.model.get("selectList"),M);if(N==="villeDepartRegion"){L=F(H.getRegion(N).currentView.model.get("topVillesDepart"),M);if(!L){L=F(H.getRegion(N).currentView.model.get("villesDepart"),M)}}if(L){H.getRegion(N).currentView.model.set("selectedItemLabel",L.text,{silent:true});H.getRegion(N).currentView.model.set("selectedItemValue",M)}}}};I("flexibiliteRegion",G.data.departureDateRange);I("dureeRegion",G.data.numberOfNightsRanges);I("budgetRegion",G.data.priceRange);if(G.data.departureCities){I("villeDepartRegion",G.data.departureCities||"1188")}if(G.data.departureDate){this.dateDepartRegion.currentView.setDate(G.data.departureDate)}var J=this.model.get("searchParams");if(G.data.themespace){this.model.set("themespace",G.data.themespace);J.themespace=G.data.themespace}if(G.data.theme){this.model.set("theme",G.data.theme);J.theme=G.data.theme}this.model.set("searchParams",J)},sendForm:function(G){var J=this;if(this.model.get("canSendForm")){this.model.set("canSendForm",false,{silent:true});var H=this.model.get("webapp");var F=false;if(this.model.has("webapp")&&this.model.get("webapp")!=="FRAM"){F=false}else{F=true}var I=function(){var K={};K.data=J.model.get("searchParams");K.deleteData=[];K.acceptAllDestinationParams=J.model.get("acceptAllDestinationParams")||null;K.data.moteur=true;K.process=J.model.get("process")||"refine";if(!F){if(J.model.has("themespace")&&J.model.get("themespace")!==""){K.data.themespace=J.model.get("themespace")}else{if(K.process==="redirection"&&!J.model.has("themespace")){K.deleteData.push("themespace")}}if(J.model.has("theme")&&J.model.get("theme")!==""){K.data.theme=J.model.get("theme")}else{if(K.process==="redirection"&&!J.model.has("theme")){K.deleteData.push("theme")}}}if(J.model.has("hasCID")&&J.model.get("hasCID")){var L=document.location.search.replace("?cid=","");if(L){K.data.moteurExp=L}}J.updateLocalstorage();c.mediator.publish("dataManagement:dataManagement",K);if(G.target){G.preventDefault();if(J.model.get("loader")&&e(G.target).is("button")){e(G.target).addClass("loading")}}};setTimeout(I,J.model.get("debounceTime"))}},updateLocalstorage:function(){if(this.model.has("hasPersonalisation")&&!this.model.get("hasPersonalisation")){return}var G={},F={};if(this.themespaceRegion&&this.themespaceRegion.currentView&&this.themespaceRegion.currentView.model.has("selectedItemValue")){var I=["",""],H=this.themespaceRegion.currentView.model.get("selectedItemValue");if(typeof H!=="undefined"&&H!==null&&H.search("|")>-1){I=H.split("|")}G.themespace=I[0];G.theme=I[1]}G.villeDepartText=this.villeDepartRegion.currentView.model.get("selectedItemLabel");G.villeDepartId=this.villeDepartRegion.currentView.model.get("selectedItemValue");G.dateDepartRange=this.flexibiliteRegion.currentView.model.get("selectedItemValue");G.dateDepart=this.dateDepartRegion.currentView.model.get("selectedItemValue");G.duree=this.dureeRegion.currentView.model.get("selectedItemValue");G.budget=this.budgetRegion.currentView.model.get("selectedItemValue");G.destination=this.destinationRegion.currentView.model.get("selectedItemValue");if(KV.storage.isAvailable()){KV.storage.getItem("dataSearchObj",function(J){if(J){e.extend(true,J,G)}});KV.storage.setItem("dataSearchObj",G,null,60*60*24*365)}if(G.villeDepartId){F.name="villeChoix";F.value=G.villeDepartId;this.updateCookie(F)}},updateCookie:function(F){if(F&&F.name&&F.value){if(e.cookie){e.cookie(F.name,F.value,{expires:365,path:"/"})}}},hideLoader:function(){var F=this.$el.find("button");F.removeClass("loading");this.model.set("canSendForm",true,{silent:true})},preventDoubleClick:function(F){e(".overlay").hide();e(".loader-content").hide()},moreCriteria:function(G){var F=e(G.target).closest(".kv-js-SE-inputContainer");F.toggleClass("kv-SE-inputContainer--moreCriteria");var H=F.hasClass("kv-SE-inputContainer--moreCriteria")?"Moins":"Plus";H+=" de crit\u00e8res";F.find("span").text(H)}});var v=k.Marionette.ItemView.extend({tagName:"li",className:"kv-SE-selectEngineTabItem",events:{"click div":"selectEngine"},template:Handlebars.templates.selectEngineTab,initialize:function(){c.log("[Moteur:initialize] initialisation de la selectionMoteurRecherche",c.log.LOG)},selectEngine:function(){this.triggerMethod("select:selectEngine",this)}});var r=k.Marionette.CollectionView.extend({tagName:"ul",id:"liste-onglet",className:"kv-SE-selectEngineTabList",childView:v,childEvents:{"select:selectEngine":"selectEngineTab"},selectEngineTab:function(F){this.children.each(function(G){G.model.set("selected",false)});F.model.set("selected",true);c.mediator.publish("handleSearchEngineEvent:clickTab",F.model.get("nom"));this.render();this.triggerMethod("event:selectEngine",F.model)}});var E=h.ItemView.extend({template:Handlebars.templates.selectInputSE,initialize:function(F){var G={selectInputSE:Handlebars.templates.selectInputSE,selectDepartureDateRange_withLongLabel:Handlebars.templates.selectDepartureDateRange_withLongLabel,};this.template=G[this.model.get("template")]||this.template},events:{"click .kv-js-SE-selectOptions":"displayList","click .kv-js-SE-selectList ul li":"selectItem"},modelEvents:{change:"render","change:displaySelectList":function(){this.model.get("displaySelectList")?this.$el.addClass("kv-SE-selectInput--open"):this.$el.removeClass("kv-SE-selectInput--open");this.triggerMethod("event:highlight")}},displayList:function(F){if(F){F.stopPropagation()}a();this.model.set("displaySelectList",!this.model.get("displaySelectList"));this.triggerMethod("event:showSelectOptions")},selectItem:function(F){F.stopPropagation();var I=this.model.get("selectList"),G=this.getSelected(I,e(F.target).data("value")),J={};J.prop={};if(G.value!=this.model.get("selectedItemValue")){this.model.set("selectedItemLabel",G.text,{silent:true});this.model.set("selectedItemValue",G.value)}this.displayList();var H=this;if(this.model.get("taggage").prop){J.prop[this.model.get("taggage").prop]=this.model.get("selectedItemLabel")}if(this.model.get("taggage").actions){J.actions=this.model.get("taggage").actions}c.mediator.publish("taggageOmniture:sejlist:clickChange",J)},getSelected:function(F,G){return l.find(F,function(H){return H.value==G})}});var D=E.extend({template:Handlebars.templates.selectInputWTitles,selectItem:function(F){F.stopPropagation();var J=[];var I=e(F.target).data("value");l.each(this.model.get("selectListContainer"),function(L){J.push(L.items)});J=l.flatten(J);var G=this.getSelected(J,I);var K={};K.prop={};if(G.value!=this.model.get("selectedItemValue")){this.model.set("selectedItemLabel",G.text,{silent:true});this.model.set("selectedItemValue",G.value)}this.displayList();var H=this;if(this.model.get("taggage").prop){K.prop[this.model.get("taggage").prop]=this.model.get("selectedItemLabel")}if(this.model.get("taggage").actions){K.actions=this.model.get("taggage").actions}c.mediator.publish("taggageOmniture:sejlist:clickChange",K)}});var q=h.ItemView.extend({template:Handlebars.templates.selectDepartureCity,initialize:function(F){var G={selectDepartureCity:Handlebars.templates.selectDepartureCity,selectDepartureCity_v2:Handlebars.templates.selectDepartureCity_v2,};this.template=G[this.model.get("template")]||G.selectDepartureCity;c.mediator.subscribe("updateDepartureCityGlobal",l.bind(this.updateDepartureCity,this))},events:{"click .kv-js-SE-selectOptions":"displayList","click .kv-js-SE-moreCities":"showMoreVilles","click .kv-js-SE-selectList ul li":"selectItem"},modelEvents:{change:"render","change:displaySelectList":function(){this.model.get("displaySelectList")?this.$el.addClass("kv-SE-selectInput--open"):this.$el.removeClass("kv-SE-selectInput--open");this.triggerMethod("event:highlight")}},displayList:function(F){if(F){F.stopPropagation()}a();this.model.set("displaySelectList",!this.model.get("displaySelectList"));this.triggerMethod("event:showSelectOptions")},selectItem:function(G){G.stopPropagation();var J=l.union(this.model.get("topVillesDepart"),this.model.get("villesDepart"));var F={};var H=this.getSelected(J,e(G.target).data("value"));this.model.set("selectedItemLabel",H.text,{silent:true});this.model.set("displaySelectList",false);this.model.set("selectedItemValue",H.value);F.villeDepart=H.value;if(this.model.get("hasDepartureCityChangePublish")){c.mediator.publish("updateDepartureCityGlobal",F)}if(this.model.has("hasDepartureCityRedirect")&&this.model.get("hasDepartureCityRedirect")){this.triggerMethod("updateLocalstorage");c.mediator.publish("redirectWithNewDepatureCity",H.value)}c.mediator.publish("changeDepartureCityForGTM",this.model.get("selectedItemLabel"));var I=this;c.mediator.publish("taggageOmniture:sejlist:clickChange",{prop:{prop1:I.model.get("selectedItemLabel"),prop4:I.model.get("selectedItemLabel")},actions:"ville de depart"})},getSelected:function(F,G){return l.find(F,function(H){return H.value==G})},updateDepartureCity:function(F){if(F.villeDepart){var G=l.findWhere(this.model.get("villesDepart"),{value:F.villeDepart});if(G){this.model.set("selectedItemLabel",G.text);this.model.set("selectedItemValue",G.value)}}},showMoreVilles:function(F){F.stopPropagation();e(".kv-js-SE-moreCities").toggleClass("kv-SE-moreCities--show");e(".kv-js-SE-moreCities").parent().toggleClass("kv-SE-selectList--show")}});var t=h.ItemView.extend({template:Handlebars.templates.selectDepartureDate,events:{"click .kv-js-SE-selectMonth":"displaySelectListMonths","click .kv-js-SE-selectDay":"displaySelectListDays","click .kv-js-SE-selectMonth .kv-js-SE-selectList li":"changeDateMonth","click .kv-js-SE-selectDay .kv-js-SE-selectList li":"changeDateDay","click .kv-js-SE-calendar":"displayCalendar","click .kv-js-SE-clearDate":"clearDate","click .kv-js-Calendar-holidaysTrigger":"showHolidays","click .kv-js-Calendar-datePickerTrigger":"hideHolidays","click .kv-Calendar-holidaysTriggerHide":"hideHolidays","click .kv-js-Calendar-departureDateRange li":"departureDateRange","click .kv-js-Calendar-submit":"submit","change .aide select":"changeHolidaysSelect","click .kv-Calendar-holidays li":"changeHolidaysClick","click .vacances-scolaires li":"displayVacancesScolaire"},modelEvents:{change:"render","change:displaySelectListDays":function(){this.model.get("displaySelectListDays")?this.$el.addClass("kv-SE-selectInput--openDay"):this.$el.removeClass("kv-SE-selectInput--openDay");this.triggerMethod("event:highlight")},"change:displaySelectListMonths":function(){this.model.get("displaySelectListMonths")?this.$el.addClass("kv-SE-selectInput--openMonth"):this.$el.removeClass("kv-SE-selectInput--openMonth");this.triggerMethod("event:highlight")},"change:displayCalendar":function(){this.model.get("displayCalendar")?this.$el.addClass("kv-SE-selectInput--openCalendar"):this.$el.removeClass("kv-SE-selectInput--openCalendar");this.triggerMethod("event:highlight")}},submit:function(){this.model.set("submit",true,{silent:true})},departureDateRange:function(G){var F=e(G.target);F.siblings().removeClass("selected");F.addClass("selected");var H=F.data("value");this.model.set("departureDateRange",H,{silent:true})},displaySelectListMonths:function(F){if(F){F.stopPropagation()}this.model.set("displaySelectListDays",false);this.model.set("displayCalendar",false);this.model.set("displaySelectListMonths",!this.model.get("displaySelectListMonths"));this.triggerMethod("event:showSelectOptions")},displaySelectListDays:function(F){if(F){F.stopPropagation()}this.model.set("displaySelectListMonths",false);this.model.set("displayCalendar",false);this.model.set("displaySelectListDays",!this.model.get("displaySelectListDays"));this.triggerMethod("event:showSelectOptions")},displayCalendar:function(F){a();if(e(F.target).hasClass("kv-js-Calendar-datePickerTrigger")||e(F.target).hasClass("kv-js-Calendar-holidaysTrigger")||e(F.target).closest(".kv-Calendar-holidaysHelp").length){return}if(F){F.stopPropagation()}this.model.set("displaySelectListMonths",false);this.model.set("displaySelectListDays",false);this.model.set("displayCalendar",!this.model.get("displayCalendar"));this.triggerMethod("event:showSelectOptions")},clearDate:function(G){var F=this.getSelected(this.model.get("months"));if(F){F.selected=false}if(this.model.has("jour")){this.model.set("jour",{})}this.model.set("selectedItemDayLabel","",{silent:true});this.model.set("selectedItemMonthLabel","",{silent:true});this.model.set("selectedItemMonthValue","",{silent:true});this.model.set("selectedItemValue","");this.model.set("selectedItemDateLabel",this.model.get("calendarClearDateLabel"),{silent:true});this.model.set("enableSelectDay",false,{silent:true});this.model.set("displayCalendar",false);G.stopPropagation()},onRender:function(){if(this.model.has("displayCalendar")){var F=this;var G=this.model.has("selectedItemValue")?this.model.get("selectedItemValue"):moment().format("DD/MM/YYYY");if(KV&&KV.SITE==="FRAM"){G=this.model.has("selectedItemDateLabel")?this.model.get("selectedItemDateLabel"):moment().add("1","days").format("DD/MM/YYYY")}this.$el.find(".datepicker").datepicker({closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Sept.","Oct.","Nov.","Déc."],monthNamesShort:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Sept.","Oct.","Nov.","Déc."],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim.","Lun.","Mar.","Mer.","Jeu.","Ven.","Sam."],dayNamesMin:this.model.get("dayNamesMin"),weekHeader:"Sem.",dateFormat:"dd/mm/yy",minDate:(this.model.has("minDepartureDate"))?moment().add(F.model.get("minDepartureDate"),"days").format("DD/MM/YYYY"):moment().format("DD/MM/YYYY"),defaultDate:G,numberOfMonths:this.model.get("numberOfMonths"),showButtonPanel:this.model.get("showButtonPanel"),changeMonth:this.model.get("changeMonth"),changeYear:this.model.get("changeYear"),yearRange:"maxYear:+1",onSelect:function(H){F.setDate(H);F.model.set("displayCalendar",false);c.mediator.publish("taggageOmniture:sejlist:clickChange",{actions:"date de depart"})}});this.$el.find(".datepicker").on("click",function(H){H.stopPropagation()})}},onAttach:function(){if(this.model.has("departureDateRange")){var F=this.model.get("departureDateRange")}},changeDateMonth:function(F){if(F){F.stopPropagation()}var H=this.model.get("months");var G=F&&e(F.target).data("value")?this.getSelected(H,e(F.target).data("value")):false;this.model.set("setDepartureDate",true);this.model.set("selectedItemDayLabel","--");this.model.set("selectedItemDayValue",null);this.model.unset("selectedDay");if(G){this.model.set("selectedItemMonthValue",G.value,{silent:true});this.model.set("selectedItemMonthLabel",G.text,{silent:true});this.model.set("enableSelectDay",true,{silent:true});this.model.set("displaySelectListMonths");this.model.set("selectedItemValue",G.value);this.model.set("departureDateDefaut",false);this.generateDays(G.value)}else{this.model.set("enableSelectDay",false,{silent:true});this.model.set("selectedItemDayLabel",this.model.get("selectMonthlabel"),{silent:true});this.model.set("selectedItemMonthLabel",this.model.get("selectMonthlabel"),{silent:true});this.model.set("displaySelectListMonths",false);this.model.set("selectedItemValue","");this.model.set("setDepartureDate",false)}this.triggerMethod("event:setDepartureDate");if(KV.storage.isAvailable){KV.storage.getItem("dataSearchObj",function(I){if(I&&G){I.dateDepart=G.value||"";KV.storage.setItem("dataSearchObj",I,null,60*60*24*365)}})}c.mediator.publish("Taggage:clickChange",{actions:"date de depart"})},getDayLabel:function(G){if(!this.model.get("hasDaySelectedLabel")){return""}var F=["Dimanche ","Lundi ","Mardi ","Mercredi ","Jeudi ","Vendredi ","Samedi "];return F[G.day()]},changeDateDay:function(F){if(F){F.stopPropagation()}var H=F&&e(F.target).data("value")?e(F.target).data("value"):"";var G=moment(H,"DD-MM-YYYY");if(H!=""){this.model.set("selectedDay",G.date());this.model.set("selectedItemValue",H);this.model.set("selectedItemDayLabel",this.getDayLabel(G)+G.date(),{silent:true});this.model.set("selectedItemDayValue",H,{silent:true});this.model.set("setDepartureDate",true)}else{this.model.set("selectedItemDayLabel","--",{silent:true});this.model.set("selectedItemDayValue",null,{silent:true});this.model.set("setDepartureDate",false);this.model.unset("selectedDay")}this.triggerMethod("event:setDepartureDate");this.model.set("displaySelectListDays",false);if(KV.storage.isAvailable){KV.storage.getItem("dataSearchObj",function(I){if(I!==null){I.dateDepart=H;KV.storage.setItem("dataSearchObj",I,null,60*60*24*365)}})}c.mediator.publish("taggageOmniture:sejlist:clickChange",{actions:"date de depart"})},setDate:function(J){var I;if(J){I=moment(J,"DD-MM-YYYY")}else{if(this.model.has("months")){var F=this.getSelected(this.model.get("months"));if(F){I=moment(F.value,"DD-MM-YYYY")}if(typeof I!=="undefined"&&this.model.has("jour")){I.date(this.model.get("jour").value)}}}if(typeof I!=="undefined"){var H=I.month()+1;var G=I.date()+"/"+((H<10)?"0"+H:H)+"/"+I.year();moment.locale("fr",{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]});I.locale("fr");this.model.set("selectedDay",I.date(),{silent:true});this.model.set("selectedItemDayLabel",this.getDayLabel(I)+I.date(),{silent:true});this.model.set("selectedItemMonthLabel",I.format("MMMM YYYY"),{silent:true});this.model.set("selectedItemMonthValue",G,{silent:true});this.model.set("selectedItemValue",G);this.model.set("selectedItemDayValue",G);this.model.set("selectedItemDateLabel",G,{silent:true});this.generateDays(G);this.model.set("enableSelectDay",true,{silent:true});this.model.set("setDepartureDate",true);this.model.set("departureDateDefaut",false);this.triggerMethod("event:setDepartureDate")}},showHolidays:function(F){this.$el.find(".kv-Calendar-holidays").css("display","block");this.$el.find(".kv-Calendar-clearDate").css("display","none");this.$el.find(".kv-Calendar-holidaysTrigger").css("display","none");this.$el.find(".datepicker").css("display","none");this.$el.find(".kv-Calendar-holidaysTrigger").addClass("kv-Calendar-holidaysTriggerHide")},hideHolidays:function(F){this.$el.find(".kv-Calendar-holidays").css("display","none");this.$el.find(".kv-Calendar-clearDate").css("display","initial");this.$el.find(".kv-Calendar-holidaysTrigger").css("display","initial");this.$el.find(".datepicker").css("display","initial");this.$el.find(".kv-Calendar-holidaysTrigger").removeClass("kv-Calendar-holidaysTriggerHide")},changeHolidaysClick:function(F){F.stopPropagation();var G=e(F.target).index();e(F.target).siblings().removeClass("selected");e(F.target).addClass("selected");this.$el.find(".periode").removeClass("selected");this.$el.find(".periode:eq("+G+")").addClass("selected")},changeHolidaysSelect:function(F){F.stopPropagation();var G=e(F.target)[0].selectedIndex;this.$el.find(".periode").css("display","none");this.$el.find(".periode:eq("+G+")").css("display","block")},displayVacancesScolaire:function(F){var G=e(F.target).attr("id");e(".infoZone").find("p").css("display","none");e(".infoZone").find('p[id^="'+G+'"]').css("display","block")},generateDays:function(I){var M=moment(I,"DD-MM-YYYY");var H=moment();var N=1;var L=["Dimanche ","Lundi ","Mardi ","Mercredi ","Jeudi ","Vendredi ","Samedi "],F=M.daysInMonth(),G=[{value:"",text:"Peu m'importe"}];if((M.month()===H.month())&&(M.year()===H.year())){if(this.model.has("minDepartureDate")){N=H.add(this.model.get("minDepartureDate"),"days").date()}else{N=H.date()}}for(var J=N;J<=F;++J){var K=new Date(M.year(),M.month(),J);G.push({value:N+"/"+(M.month()+1)+"/"+M.year(),text:L[K.getDay()]+N});N++}this.model.set("days",G)},getSelected:function(F,G){if(G){return l.find(F,function(H){return H.value==G})}else{return l.find(F,function(H){return H.selected==true})}}});var p=h.ItemView.extend({template:Handlebars.templates.selectZTDestination,events:{"click .kv-js-SE-ZTItem":"selectItem"},selectItem:function(F){F.preventDefault();e(F.target).addClass("checked");e(F.target).siblings("[data-parent='"+e(F.target).data("value")+"']").addClass("checked");var G={};G.data={};G.data.destinationZones=e(F.target).data("value");G.data.moteur=true;G.data.deleteData=["destinationCities","destinationCountries"];G.process="redirection";this.triggerMethod("setAttribute:process","redirection");c.mediator.publish("dataManagement:dataManagement",G)}});var s=h.LayoutView.extend({template:Handlebars.templates.selectDestination,regions:{selectRegion:".kv-js-SE-autocompleteList",layerRegion:".kv-js-SE-layerDestination"},className:"kv-SE-destination",events:{"click .kv-js-SE-autocompleteReset":"resetAutocomplete",click:"displaylayer","click .kv-js-SE-layerDestination":"closeLayer","click .kv-js-SE-layerDestination .kv-js-SE-resetDestination":"resetDestination","click .kv-js-reset-desti":"resetDestinationPlaceholder"},modelEvents:{"change : selectedItemValue":"selectItem","change : showLayerDestination":"layerView","change:showLayerDestination":function(){if(this.model.get("showLayerDestination")){this.$el.addClass("kv-SE-selectInput--open")}else{this.$el.removeClass("kv-SE-selectInput--open");this.$el.removeClass("kv-SE-destination--resetAutocomplete")}this.triggerMethod("event:highlight")}},resetAutocomplete:function(F){if(F){F.stopPropagation()}this.$el.find("input").val("");this.triggerMethod("setAttribute:inputValue","");this.$el.removeClass("kv-SE-destination--resetAutocomplete");this.$el.find("input").focus();this.selectRegion.currentView.model.set("selectList",null);this.layerRegion.currentView.$el.closest(".kv-SE-layerDestination").css("marginTop",0)},resetDestination:function(F){this.model.set("selectedItemLabel",F.currentTarget.innerText);this.model.set("type","destinationZones",{silent:true});this.model.set("selectedItemValue","");this.triggerMethod("setAttribute:inputValue","");this.triggerMethod("setAttribute:process","redirection");this.closeLayer();this.$el.removeClass("kv-SE-destination--resetAutocomplete")},resetDestinationPlaceholder:function(F){e(".kv-js-reset-desti").hide();this.model.set("destinationPlaceholder","Destination");this.model.set("inputLabel","Destination");this.model.set("selectedItemLabel",b);this.model.set("selectedItemValue",null);this.displaylayer(F)},childEvents:{"setAttribute:inputValue":function(I,H){var J=this;var G={algo:"match_fuzzy_doublemetaphone_ngram",first:0,pageSize:10,marque:51,search:""};if(H.length>=1){this.$el.addClass("kv-SE-destination--resetAutocomplete")}if(H.length>=this.model.get("autocompleteAjaxMinLength")){var F=function(){G.search=H;var K=new A({model:new C.SelectBoxAutocomplete({autocompleteUrl:J.model.get("autocompleteUrl")})});K.model.fetch({data:G,});J.selectRegion.show(K)};i(F,500)}else{if(J.selectRegion.hasView()){this.selectRegion.currentView.model.set("selectList",null);this.layerRegion.currentView.$el.closest(".kv-SE-layerDestination").css("marginTop",0);this.$el.removeClass("kv-SE-destination--resetAutocomplete")}}},"setAttribute:layerValue":function(F,G){this.model.set("selectedItemLabel",G.selectedItemLabel,{silent:true});this.model.set("type","destinationZones",{silent:true});this.model.set("selectedItemValue",G.selectedItemValue);this.triggerMethod("setAttribute:process","redirection");this.closeLayer();this.$el.removeClass("kv-SE-destination--resetAutocomplete")},"setAttribute:selectBoxValue":function(F,G){this.model.set("type",G.type,{silent:true});this.model.set("selectedItemLabel",G.selectedItemLabel.trim(),{silent:true});this.model.set("selectedItemValue",G.selectedItemValue);this.triggerMethod("setAttribute:process","redirection");this.closeLayer();this.$el.removeClass("kv-SE-destination--resetAutocomplete")},"event:keyEvent":function(H,G){if(!this.selectRegion.hasView()){return}var F=this.selectRegion.currentView.model.get("index")||0;var I=this.selectRegion.currentView.model.get("selectList");if(!I){return}I[F].selected=false;if(G==="up"){F=F>0?--F:I.length-1}else{if(G==="down"){F=F<I.length-1?++F:0}else{if(G==="enter"){this.model.set("selectedItemLabel",I[F].text,{silent:true});this.model.set("type",I[F].type||"destinationZones",{silent:true});this.model.set("selectedItemValue",I[F].value);this.textRegion.currentView.model.set("selectedItemLabel",this.model.get("selectedItemLabel"));this.textRegion.currentView.render();this.closeLayer()}}}I[F].selected=true;this.selectRegion.currentView.model.set("selectList",I,{silent:true});this.selectRegion.currentView.model.set("index",F)},"event:render":function(G,F){if(F==="selectBox"&&this.layerRegion.hasView()){this.layerRegion.currentView.$el.closest(".kv-SE-layerDestination").css("marginTop",this.selectRegion.currentView.$el.find(".kv-SE-selectBoxInput").height())}}},onRender:function(F){var G;if(this.model.get("hasAutocomplete")){var H=this;this.addRegion("textRegion",".kv-js-SE-autocompleteInput");G=new o({model:new C.InputText({placeholder:this.model.get("destinationPlaceholder"),disabled:true})})}else{this.addRegion("textRegion",".kv-js-SE-selectedItemContainer");G=new y({model:new C.SelectedItem({selectInputLabel:"Destination"})})}this.textRegion.show(G)},displaylayer:function(G){var F=e(G.target);var I=F.hasClass("dataContainer")||F.hasClass("kv-SE-selectBoxItem")||F.hasClass("kv-reset-desti")||F.hasClass("child");if(I){return}var H=this;if(G){G.stopPropagation()}a();e(".all-desti").on("click",function(J){H.closeLayer(J)});if(this.model.get("showLayerDestination")){this.closeLayer()}else{this.model.set("showLayerDestination",true);this.triggerMethod("event:showSelectOptions")}},layerView:function(){if(this.model.get("showLayerDestination")){if(this.model.get("hasAutocomplete")){this.textRegion.currentView.model.set("disabled",false,{silent:true});this.textRegion.currentView.model.set("selectedItemLabel",null);this.textRegion.currentView.model.set("placeholder","Saisir une destination")}var F=new B({model:new C.LayerDestination({defaultDestinationZoneId:this.model.get("defaultDestinationZoneId")||null})});F.model.set("topDestinationsWTabs",this.model.get("topDestinationsWTabs"));F.model.set("topDestinations",this.model.get("topDestinations"));F.model.set("zt",this.model.get("children"));F.model.set("calqueDesti",this.model.get("calqueDesti"));this.layerRegion.show(F);F.$el.parent().addClass("open")}else{if(this.model.get("hasAutocomplete")){this.textRegion.currentView.model.set("disabled",true,{silent:true})}if(this.model.get("selectedItemLabel")){if(this.textRegion.hasView()){this.textRegion.currentView.model.set("selectedItemLabel",this.model.get("selectedItemLabel"))}}else{if(this.textRegion.hasView()){this.textRegion.currentView.model.set("selectedItemLabel","")}if(this.layerRegion.hasView()){this.layerRegion.currentView.model.set("placeholder",this.model.get("inputLabel"))}}if(this.layerRegion.hasView()){this.layerRegion.currentView.$el.parent().removeClass("open");this.layerRegion.currentView.$el.closest(".kv-SE-layerDestination").css("marginTop",0);this.layerRegion.currentView.destroy()}if(this.selectRegion.hasView()){this.selectRegion.currentView.destroy()}if(this.textRegion.hasView()&&this.model.get("hasAutocomplete")){this.textRegion.currentView.$el.find("input").blur()}}},closeLayer:function(F){if(F&&F.target&&e(F.target).data("title")){return false}if(F&&F.target&&e(F.target).hasClass("kv-SETopDestinations-tab")){return false}a();this.model.set("showLayerDestination",false)},selectItem:function(){this.textRegion.currentView.model.set("selectedItemLabel",this.model.get("selectedItemLabel"))}});var o=h.ItemView.extend({template:Handlebars.templates.textInput,events:{keyup:"keyboardEvent","click .displaySelectedData":"mouseEvent"},className:"kv-SE-textInput",modelEvents:{change:"render"},onRender:function(F){this.$el.find("input").focus()},keyboardEvent:function(G){var F=e(G.target).val();switch(G.keyCode){case 40:this.triggerMethod("event:keyEvent","down");break;case 38:this.triggerMethod("event:keyEvent","up");break;case 13:this.triggerMethod("event:keyEvent","enter");break;default:this.triggerMethod("setAttribute:inputValue",F);break}},mouseEvent:function(F){this.triggerMethod("event:mouseEvent","click")}});var u=h.ItemView.extend({template:Handlebars.templates.selectBoxInput,events:{keyup:"keyboardEvent","click li":"selectItem"},onDomRefresh:function(F){this.triggerMethod("event:render","selectBox")},selectItem:function(F){var G={};G.selectedItemValue=e(F.target).data("value");G.selectedItemLabel=e(F.target).text();G.type=e(F.target).data("type");this.triggerMethod("setAttribute:selectBoxValue",G)}});var A=h.ItemView.extend({template:Handlebars.templates.selectBoxInput,events:{keyup:"keyboardEvent","click li":"selectItem"},modelEvents:{"change:selectList":"render","change:index":"render"},onDomRefresh:function(F){this.triggerMethod("event:render","selectBox")},selectItem:function(F){var G={};G.selectedItemValue=e(F.target).data("value");G.selectedItemLabel=e(F.target).text();G.type=e(F.target).data("type");this.triggerMethod("setAttribute:selectBoxValue",G)}});var B=h.ItemView.extend({template:Handlebars.templates.layerDestination,events:{"click li.child":"changeDestination","click .kv-js-SETopDestinations-tab":"changetab"},onAttach:function(){if(c.WebApp.Config.brand&&c.WebApp.Config.brand==="fram"){var F=e(".all-desti");F.text("> "+F.text());F.appendTo(".kv-SETopDestinations-list--active")}},changetab:function(F){var I=e(F.target).data("name");if(I){var G=this.$el.find('.kv-SETopDestinations-tab[data-name="'+I+'"]');var H=this.$el.find('.kv-SETopDestinations-list[data-name="'+I+'"]');this.$el.find(".kv-SETopDestinations-tab").removeClass("kv-SETopDestinations-tab--active");this.$el.find(".kv-SETopDestinations-list").removeClass("kv-SETopDestinations-list--active");e(G).addClass("kv-SETopDestinations-tab--active");e(H).addClass("kv-SETopDestinations-list--active");e(".kv-SE-destination .top-country").css("height","auto");var K=e(".kv-SE-destination .dataContainer").height();var J=e(".kv-SE-destination .top-country").height();if(K<J){K=J+50}e(".kv-SE-destination .dataContainer").css("height",K);e(".kv-SE-destination .top-country").css("height",K)}if(c.WebApp.Config.brand&&c.WebApp.Config.brand==="fram"){e(".all-desti").appendTo(".kv-SETopDestinations-list--active")}},changeDestination:function(G){var F=e(G.target);var J=F.data("name")||"",H=F.data("value")||"",I={};if(c.WebApp.Config.brand&&c.WebApp.Config.brand==="fram"){e(".kv-js-reset-desti").css("display","inline-block")}if(J&&H){if(J[0]==="-"){J=J.substring(1).trim()}I.selectedItemValue=H;I.selectedItemLabel=J;this.triggerMethod("setAttribute:layerValue",I)}else{if(H===-1){I.selectedItemValue=this.model.get("defaultDestinationZoneId");I.selectedItemLabel="Destination indifférente";this.triggerMethod("setAttribute:layerValue",I)}}}});var w=h.ItemView.extend({template:Handlebars.templates.searchEngineTitle,tagName:"h2"});var n=h.ItemView.extend({template:Handlebars.templates.searchEngineIframe});var z=h.ItemView.extend({template:Handlebars.templates.searchEngineScript,modelEvents:{"change:display":"render"},onAttach:function(){if(this.model.get("display")){var F=document.createElement("script");if(this.model.has("id")){F.id=this.model.get("id")}if(this.model.has("dataHash")){F.setAttribute("data-hash",this.model.get("dataHash"))}if(this.model.has("dataContainer")){F.setAttribute("data-container",this.model.get("dataContainer"))}if(this.model.has("dataSize")){F.setAttribute("data-size",this.model.get("dataSize"))}if(this.model.has("dataTpncy")){F.setAttribute("data-tpncy",this.model.get("dataTpncy"))}if(this.model.has("src")){F.src=this.model.get("src")}document.body.appendChild(F)}}});var y=h.ItemView.extend({template:Handlebars.templates.selectedItem,className:"kv-SE-selectedItem",modelEvents:{change:"render"}});return x})()})(window,jQuery);(function(window,$,undefined){'use strict';var app=window.app,Backbone=window.Backbone,Marionette=Backbone.Marionette,_=window._;app.WebApp=app.WebApp||{};app.WebApp.Config=app.WebApp.Config||{};app.WebApp.Config.urlSite=app.WebApp.Config.urlSite||{};var hpt={};var HomeView=Backbone.Marionette.LayoutView.extend({el:('body'),regions:{"searchEngineRegion":".kv-SearchEngine-container","videoRegion":".root-video-push-0"},initialize:function(){app.log("[Home:initialize] initialisation de la HOMETHEMATIQUE",app.log.LOG);}});hpt.init=function(){this.mainLayout=new HomeView();var thematiqueMoteur=app.WebApp.Config.searchEngineType||"";if(app.DataManagement){app.DataManagement.init();}
if(window.KV&&window.KV.habillage){var initHabillageOptions={url:window.KV.habillage.url}
if(app.Habillage){app.Habillage.init(initHabillageOptions);}};if(app.BlockVideo&&$('.root-video-push-0').length){if(app.WebApp.Config.video&&app.WebApp.Config.video.videoUrl){var BlockVideoLayout=app.BlockVideo.init(app.WebApp.Config.video);this.mainLayout.videoRegion.show(BlockVideoLayout);}}
var titleTexte={THALASSO_FRANCE:"VOTRE RECHERCHE BIEN-ÊTRE",THALASSO_FOREIGN:"VOTRE RECHERCHE BIEN-ÊTRE",TOUR:"VOTRE RECHERCHE CIRCUIT",WEEK_END:"VOTRE RECHERCHE WEEK-END",ALL_INCLUSIVE:"VOTRE SÉJOUR TOUT COMPRIS",SNORKELING:"VOTRE RECHERCHE PLONGÉE",HONEYMOON:"VOTRE RECHERCHE LUNE DE MIEL",GOOD_DEALS:"VOTRE RECHERCHE BONS PLANS",FRANCE:"SÉJOUR & WEEK-END EN FRANCE",HOTEL_CLUB:"VOTRE RECHERCHE CLUBS"}
var themespace={THALASSO_FRANCE:"thalasso",THALASSO_FOREIGN:"thalasso",TOUR:"circuit-touristique",WEEK_END:"week-end-pas-cher",ALL_INCLUSIVE:"vacances-et-sejours",SNORKELING:"sejour-plongee",HONEYMOON:"voyage-de-noces",GOOD_DEALS:"",FRANCE:"",}
var theme={THALASSO_FRANCE:"31",THALASSO_FOREIGN:"31",TOUR:"2",WEEK_END:"",ALL_INCLUSIVE:"7",SNORKELING:"",HONEYMOON:"",GOOD_DEALS:"",FRANCE:"",}
var nbColumns={THALASSO_FRANCE:1,THALASSO_FOREIGN:2,TOUR:4,WEEK_END:3,ALL_INCLUSIVE:4,SNORKELING:2,HONEYMOON:2,GOOD_DEALS:5,FRANCE:1,}
var initSearchEngineOptions={"loader":true,"hasSelectTypeCircuit":false,"hasSelectZTDestination":false,"hasAutocomplete":false,"hasDepartureCityChangePublish":true,"hasDepartureCityRedirect":false,"hasDaySelectedLabel":true,"selectDateLabel":"D\u00e9part","process":"redirection","showCalendarCompleteDate":true,"hasMoreCriteria":false,"numberOfMonths":2,"changeMonth":false,"changeYear":false,"showButtonPanel":false,"dayNamesMin":['DI','LU','MA','ME','JE','VE','SA'],"hasCalendarDepartureDateRange":true,"showCalendarHelp":true,"showCalendarClearDate":true,"hasHighlight":false,"hasPersonalisation":{departureCities:true,destinationZones:true,departureDate:true,departureDateRange:true,numberOfNightsRanges:true,priceRange:true},"calqueDesti":{"title":"Top Destinations","position":"bottom","noDestinationLabel":"Destination indiff&eacute;rente","noDestinationInTopDestination":true,"suite":true,"nombreColonnes":nbColumns[thematiqueMoteur]||3,"btnClose":true},"moteurType":thematiqueMoteur||"","themespace":themespace[thematiqueMoteur]||"","theme":theme[thematiqueMoteur]||"","onglets":[],"searchEngineTitle":"Rechercher","template":"searchEngine_v3","titleTexte":titleTexte[app.WebApp.Config.searchEngineType]||"VOTRE RECHERCHE BONS PLANS","calendarClearDateLabel":"Date indiff\u00e9rente","themeInputLabel":"Type de voyage","budgetInputLabel":"Budget par personne","selectDepartureCityTemplate":"selectDepartureCity_v2","departureDateRangeTemplate":"selectDepartureDateRange_withLongLabel"};var today=moment();var year=today.year();var dateLimiteMin=moment('15-03','DD-MM');var dateLimiteMax=moment('25-09','DD-MM');if(app.WebApp.Config.thematique=="vacances_pas_chers"){initSearchEngineOptions.onglets.push({"nom":"Voyage","type":"sejour","class":"bt-sejour","position":1,"selected":true,},{"nom":"Vol","type":"url","class":"bt-vol","position":2,"selected":false,"url":"https://vol.promovacances.com/","nofollow":false},{"nom":"Week-end","type":"url","class":"bt-weekend","position":3,"selected":false,"url":app.WebApp.Config.urlSite.weekend,"nofollow":false},{"nom":"France","type":"iframe","class":"bt-france","position":5,"selected":false,"url":app.WebApp.Config.urlSite.france,"nofollow":false,"moteurType":"THALASSO_FRANCE"});if(today.isBetween(dateLimiteMin,dateLimiteMax)){initSearchEngineOptions.onglets.push({"nom":"Location","type":"url","class":"bt-location","position":4,"selected":false,"url":"https://locations.promovacances.com/",})}else{initSearchEngineOptions.onglets.push({"nom":"Ski","type":"url","class":"bt-ski","position":4,"selected":false,"url":"https://locations.promovacances.com/ski/"})}}
if(app.WebApp.Config.thematique=="thalasso"){initSearchEngineOptions.onglets.push({"nom":"France","type":"thalasso","class":"bt-france","position":1,"selected":true,"moteurType":"THALASSO_FRANCE","nombreColonnes":1},{"nom":"Etranger","type":"thalasso","class":"bt-etranger","position":2,"selected":false,"moteurType":"THALASSO_FOREIGN","nombreColonnes":2});}
if(app.WebApp.Config.thematique==="france"){initSearchEngineOptions.onglets.push({"nom":"France","type":"sejour","class":"bt-sejour","position":1,"selected":true,},{"nom":"H\u00f4tel","type":"url","class":"bt-hotel","position":2,"selected":false,"url":"http://hotel.promovacances.com/index.fr.html"},{"nom":"Bien-\u00eatre","type":"url","class":"bt-bienetre","position":4,"selected":false,"url":app.WebApp.Config.urlSite.thalasso,"nofollow":false},{"nom":"Week-end","type":"url","class":"bt-weekend","position":5,"selected":false,"url":app.WebApp.Config.urlSite.weekend,});if(today.isBetween(dateLimiteMin,dateLimiteMax)){initSearchEngineOptions.onglets.push({"nom":"Location","type":"url","class":"bt-location","position":3,"selected":false,"url":"https://locations.promovacances.com/"})}else{initSearchEngineOptions.onglets.push({"nom":"Ski","type":"url","class":"bt-ski","position":3,"selected":false,"url":"https://locations.promovacances.com/ski/"})}}
if(app.WebApp.Config.thematique=="weekend"){initSearchEngineOptions.onglets.push({"nom":"Week-end","type":"sejour","class":"bt-weekend","position":1,"selected":true,},{"nom":"France","type":"url","class":"bt-france","position":2,"selected":false,"url":app.WebApp.Config.urlSite.france,"nofollow":false},{"nom":"H\u00f4tel","type":"url","class":"bt-hotel","position":3,"selected":false,"url":"http://hotel.promovacances.com/index.fr.html"},{"nom":"Bien-\u00eatre","type":"url","class":"bt-bienetre","position":4,"selected":false,"url":app.WebApp.Config.urlSite.thalasso,"nofollow":false});}
if(app.WebApp.Config.thematique=="circuits"){var initBonsPlansOptions={"hasDepartureCityUpdate":true,"layout":this.mainLayout,"el":"#bons-plans-pmvc-home","template":Handlebars.templates.bonsPlansHPT1,"thematique":"circuit-touristique"};if(app.BonsPlans){app.BonsPlans.display(initBonsPlansOptions);}
var initDernieresMinutesOptions={"hasDepartureCityUpdate":true,"layout":this.mainLayout,"el":"#kv-LastMinutes-container","template":Handlebars.templates.dernieresMinutesHPT,};if(app.DernieresMinutes){app.DernieresMinutes.display(initDernieresMinutesOptions);}}
if(app.WebApp.Config.thematique=="club_de_vacances"){var initBonsPlansOptions={"hasDepartureCityUpdate":true,"layout":this.mainLayout,"el":"#bons-plans-pmvc-home","template":Handlebars.templates.bonsPlansHPT1,"thematique":"hotel-club-vacances"};if(app.BonsPlans){app.BonsPlans.display(initBonsPlansOptions);}
var initDernieresMinutesOptions={"hasDepartureCityUpdate":true,"layout":this.mainLayout,"el":"#kv-LastMinutes-container","template":Handlebars.templates.dernieresMinutesHPT};if(app.DernieresMinutes){app.DernieresMinutes.display(initDernieresMinutesOptions);}}
if(app.WebApp&&app.WebApp.Config&&app.WebApp.Config.url){app.WebApp.Config.url.destinationZones=true;}
if(app.Moteur){var searchEngineLayout=app.Moteur.init(initSearchEngineOptions);this.mainLayout.searchEngineRegion.show(searchEngineLayout);}};app.addInitializer(function(){hpt.init();app.mediator.subscribe("changeDepartureCityForGTM",function(libelle){dataLayer.push({'villeSite':libelle,'thematique':"Depart"+libelle,'event':'villeDepartLoad'});});app.mediator.subscribe("handleSearchEngineEvent:clickTab",function(nom){dataLayer.push({"searchEngineTab":nom,'event':'Event:clickTab'});});app.mediator.subscribe("handleSearchEngineEvent:clickSearch",function(obj){dataLayer.push({"searchObj":obj,'event':'Event:clickSearch'});});});})(window,jQuery);