PageSourceSearch

https://www.ville-chaville.fr/typo3temp/vhs-assets-601e062ce0b3dd2165883cd75ae83092.js?1790212358

js ville-chaville.fr collected 2026-09-24 19:19:07 UTC 258,775 bytes, 127 lines download raw bytes

1var fdLocale = {
2        fullMonths:[
3                "Janvier",
4                "F\u00E9vrier",
5                "Mars",
6                "Avril",
7                "Mai",
8                "Juin",
9                "Juillet",
10                "Ao\u00FBt",
11                "Septembre",
12                "Octobre",
13                "Novembre",
14                "D\u00E9cembre"
15                ],
16        fullDays:[
17                "Lundi",
18                "Mardi",
19                "Mercredi",
20                "Jeudi",
21                "Vendredi",
22                "Samedi",
23                "Dimanche"
24                ],
25        dayAbbrs:[
26                "Lun",
27                "Mar",
28                "Mer",
29                "Jeu",
30                "Ven",
31                "Sam",
32                "Dim"
33                ],
34        monthAbbrs:[
35                "Jan",
36                "F\u00E9v",
37                "Mar",
38                "Avr",
39                "Mai",
40                "Jui",
41                "Juil",
42                "Ao\u00FB",
43                "Sep",
44                "Oct",
45                "Nov",
46                "D\u00E9c"
47                ],
48        titles:[
49                "Mois pr\u00E9cedent",
50                "Mois suivant",
51                "Ann\u00E9e pr\u00E9cedente",
52                "Ann\u00E9e suivante",
53                "Aujourd\u2019hui",
54                "Ouvrir Calendrier",
55                "sm",
56                "Semaine [[%0%]]/[[%1%]]",
57                "Semaine",
58                "Choissisez une date",
59                "Cliquez et d\u00E9placez",
60                "Montre \u201C[[%0%]]\u201D en premier",
61                "Aujourd\u2019hui",
62                "Date désactivé : "
63                ]
64};
65try { 
66        if("datePickerController" in window) { 
67                datePickerController.loadLanguage(); 
68        }; 
69} catch(err) {}; 
70 
71
72
73function get_name_browser(){var e=navigator.userAgent;return e.search(/Chrome/)>0?"Google Chrome":e.search(/Firefox/)>0?"Firefox":e.search(/Opera/)>0?"Opera":e.search(/Safari/)>0?"Safari":e.search(/MSIE/)>0?"Internet Explorer":"Не определен"}function preload(e){$(e).each(function(){$("<img/>")[0].src=this})}function isDate(e){var t=e,i=/^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/,n=t.match(i);if(null==n)return!1;var s=n[1],a=n[3],o=n[5];if(a<1||a>12)return!1;if(s<1||s>31)return!1;if((4==a||6==a||9==a||11==a)&&31==s)return!1;if(2==a){var r=o%4==0&&(o%100!=0||o%400==0);if(s>29||29==s&&!r)return!1}return!0}function alertErrorForm(e,t){$(e+" button").click(function(){var e=!1;if(""==$(t).val()&&(alert(l10n.formErrorMandatoryField),e=!0),1==e)return!1})}function addErrorMessage(e,t){if(!t)var t="Erreur : ";e.html(t.concat(e.html()))}function convertDateInTimestamp(e){var t=e.split("-");return new Date(t[2],parseInt(t[1],10)-1,t[0]).getTime()/1e3}function convertTimeInSecond(e){var t=e.split(":");return 60*+t[0]*60+60*+t[1]}function convertTimecodeInSecond(e){var t=e;if(t.split(/:/g).length-1==2){var i=t.split(/:/g),n=3600*i[0],s=60*i[1],a=i[2];top.seekTime=parseInt(n)+parseInt(s)+parseInt(a)}if(t.split(/:/g).length-1==1){var i=t.split(/:/g),s=60*i[0],a=i[1];top.seekTime=parseInt(s)+parseInt(a)}}function preloadImages(){preload([pathImgFancybox+"zoom.png"])}function menuMain(e){function t(){$(".menu-main ul").removeClass("show"),$(".menu-main ul li").removeClass("act")}"mediaDesktop"==e?($(".menu-main__sublink-level-1").bind("click",function(){return t(),$(this).parent().addClass("act"),$(this).parent().find(".menu-main__level-2").addClass("show"),!1}),$(document).on("click",function(e){$(e.target).closest(".menu-main__level-2").length||(t(),e.stopPropagation())}),$(".menu-main__closer").on("click",function(e){t()}),$(".menu-main__level-2 > li > a").on("click",function(e){$(e.target).hasClass("menu-main__sublink-icon")&&(e.preventDefault(),1==$(this).hasClass("menu-main__sublink-level-2")?($(".menu-main__level-3").removeClass("show"),$(this).next().addClass("show")):$(".menu-main__level-3").removeClass("show"))})):"mediaSmartphone"==e&&($(".menu-main ul li > ul").parent().find("a > span").on("click",function(e){e.preventDefault(),e.stopPropagation();var t=$(this).closest("li");$(t).hasClass("act")?($(t).removeClass("act"),$(t).children("ul").removeClass("show")):($(t).addClass("act"),$(t).children("ul").addClass("show"))}),$(".menu-main__show-btn").on("click",function(e){e.preventDefault(),$("#page").addClass("menu-show"),$("#menu-main").addClass("show")}),$(".menu-main__close-btn").on("click",function(e){e.preventDefault(),$("#page").removeClass("menu-show"),$("#menu-main").removeClass("show")}))}function menuStratis(e){"mediaDesktop"==e&&$(".menu-stratis > ul > li > ul").parent().bind("mouseover focusin",function(){$(this).find("ul").addClass("show"),$(".menu-stratis > ul > li").removeClass("act"),$(this).addClass("act")}).bind("mouseout focusout",function(){$(this).find("ul").removeClass("show"),$(".menu-stratis > ul > li").removeClass("act")})}function convertToTimestamp(){$(".date_field").length>0&&$(".date_field").next("input").length>0&&$(".date_field input").each(function(){var e=convertDateInTimestamp($(this).val());reallyIsNaN(e)||$(this).parents(".date_field").next("input:hidden").val(e)}),$(".time_field").length>0&&$(".time_field").next("input").length>0&&$(".time_field input").each(function(){var e=convertTimeInSecond($(this).val());reallyIsNaN(e)||$(this).parents(".time_field").next("input:hidden").val(e)})}function tooltipOn(e){if($(e).parents(".galleriffic").length>0&&$(e).find("img").attr("title")&&""!=$(e).find("img").attr("title")){var t="";t=$(e).find('img:not(".imgHover")').attr("title")}else if($(e).attr("title")&&""!=$(e).attr("title"))var t="",t=$(e).attr("title");else var t="",t=$(e).find('img:not(".imgHover")').attr("alt");t&&($(e).find('img:not(".imgHover")').before('<span class="tooltip">'+t+'<span class="cornerTooltip"></span></span>'),$(e).find(".tooltip").hide(),$(e).find(".tooltip").fadeIn(50))}function tooltipOff(e){$(e).text();$(".tooltip").fadeOut(50,function(){$(this).remove()})}function tooltipAccess(){$(".tooltipAccess").hover(function(){tooltipOn(this)},function(){tooltipOff(this)}).focusin(function(){tooltipOn(this)}).focusout(function(){tooltipOff(this)})}function tooltipDfnOn(e){$(e).find("i.ghost").text()&&$(e).find("i.ghost").removeClass("ghost")}function tooltipDfnOff(e){$(".tooltipDfnBulle").addClass("ghost")}function tooltipDfn(){$(".tooltipDfn").attr("tabindex","0").hover(function(){tooltipDfnOn(this)},function(){tooltipDfnOff(this)}).focusin(function(){tooltipDfnOn(this)}).focusout(function(){tooltipDfnOff(this)})}function geocode(){$('.geocode input[type="text"]').each(function(){var e=$
73(this);e.after('<div class="geocode--wrapper"><button type="button" class="button-2 button-2--small button-2--no-text geocode--wrapper__button" title="Déterminer mon adresse actuelle">Déterminer mon adresse actuelle</button></div>'),e.next(".geocode--wrapper").find("button").on("click",function(){getAddressFromGeocode(e)})})}function getAddressFromGeocode(e){return navigator.geolocation?navigator.geolocation.getCurrentPosition(function(t){$.get("http://maps.googleapis.com/maps/api/geocode/json?latlng="+t.coords.latitude+","+t.coords.longitude+"&sensor=true",function(t){t&&e.val(t.results[0].formatted_address)})}):alert("Votre navigateur ne prend pas en charge la géolocalisation."),!1}function linkExternalNewWindow(){$(".content a").each(function(){if(0==$(this).find(".external").length){var e,t=$(this).filter(function(){return this.hostname&&this.hostname!==location.hostname}).length;if("_blank"==$(this).attr("target")&&1==t)if(0!=$(this).find(".title").length)e=$(this).find(".title").text()+" ("+l10n.linkNewWindow+")";else if(0!=$(this).find("img").length){var i=$(this).find("img").attr("alt");e=i+" ("+l10n.linkNewWindow+")",t=0,$(this).parents("dl").length>0&&$(this).prepend('<img src="'+pathImgPictos+'picto-external.png" alt="" class="externalPicto" border="0" />')}else e=$(this).text()+" ("+l10n.linkNewWindow+")";else if("_blank"==$(this).attr("target"))if(0!=$(this).find(".title").length)e=$(this).find(".title").text()+" ("+l10n.linkNewWindow+")";else if(0!=$(this).find("img").length){var i=$(this).find("img").attr("alt");e=i+" ("+l10n.linkNewWindow+")",t=0}else e=$(this).text()+" ("+l10n.linkNewWindow+")";else if(1==t)if(0!=$(this).find(".title").length)e=$(this).find(".title").text()+" ("+l10n.linkExternalLink+")";else if(0!=$(this).find("img").length){var i=$(this).find("img").attr("alt");e=i+" ("+l10n.linkExternalLink+")",$(this).parents("dl").length>0&&$(this).prepend('<img src="'+pathImgPictos+'picto-external.png" alt="" class="externalPicto" border="0" />'),t=0}else e=$(this).text()+" ("+l10n.linkExternalLink+")";$(this).attr("title")||$(this).attr("title",e),1==t&&$(this).wrapInner('<span class="external"></span>')}})}function fancyboxClassic(){$(".fancybox").length>0&&$(".fancybox").click(function(){lienFocus=this}).fancybox({beforeLoad:function(){$("*[tabindex=0]").attr("tabIndex",-1).attr("datatabindex",0),$("a, input, button, select").attr("tabIndex",-1)},afterClose:function(){lienFocus.focus(),$("*[datatabindex=0]").attr("tabIndex",0),$("a, button, input, select").attr("tabIndex",0)},tpl:{closeBtn:'<a title="'+l10n.closeModalWindow+'" class="fancybox-item fancybox-close" href="javascript:;">'+l10n.close+"</a>",next:"",prev:""},afterLoad:function(){this.title='<p class="captionFancybox">'+this.title+"</p>"},beforeShow:function(){$(".fancybox-overlay a, .fancybox-overlay button, .fancybox-overlay input, .fancybox-overlay select").attr("tabIndex",0);var e=this.element.find("img").attr("data-alt");this.inner.find("img").attr("alt",e),this.alt=e},afterShow:function(){$(".fancybox-inner").attr("tabindex",1).focus()},padding:15,openEffect:"none",closeEffect:"none",nextEffect:"none",prevEffect:"none",helpers:{title:{type:"outside"}}})}function fancyboxGalerie(e){function t(){$(".fancybox-wrap-title").addClass("display"),$(".fancybox-more-infos img").attr("src",pathImgFancybox+"infos-close.png"),$(".fancybox-more-infos img").attr("alt",l10n.lessInformation),storage&&(a=localStorage.setItem("stateLS","true"))}function i(){$(".fancybox-wrap-title").removeClass("display"),$(".fancybox-more-infos img").attr("src",pathImgFancybox+"infos-open.png"),$(".fancybox-more-infos img").attr("alt",l10n.moreInformation),storage&&(a=localStorage.setItem("stateLS","false"))}var n,s;if(storage)var a=localStorage.setItem("stateLS","false");"mediaDesktop"===e?(n=15,s="82%"):"mediaSmartphone"===e&&(n=0,s="100%"),$(".fancyboxGalerie").length>0&&$(".fancyboxGalerie").click(function(){$(".classical-gallery .slider-galerie .cycle-sentinel a").removeAttr("data-fancybox-group"),lienFocus=this}).fancybox({tpl:{wrap:'<div class="fancybox-wrap fancybox-galerie" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',closeBtn:'<div class="fancybox-close-wrap"><button type="button" title="'+l10n.closeModalWindow+'" class="fancybox-item fancybox-close" ><span class="hover">'+l10n.close+'</span> <img src="'+pathImgFancybox+'close-mobile.png" alt="" /></button></div>',next:'<button type="button" title="'+l10n.nextImage+'" class="fancybox-nav fancybox-next"><span class="hover">'+l10n.next+'</span> <img src="'+pathImgFancybox+'suivant-mobile.png" alt="" /></button>',prev:'<button type="button" title="'+l10n.prevImage+'" class="fancybox-nav fancybox-prev"><span class="hover">'+l10n.prev+'</span> <img src="'+pathImgFancybox+'precedent-mobile.png" alt="" /></button>'},width:"100",maxHeight:s,padding:n,margin:0,openEffect:"none",closeEffect:"none",nextEffect:"none",prevEffect:"none",autoPlay:!1,helpers:{title:{type:"outside"},buttons:{tpl:'<div id="fancybox-buttons"><button class="btnPlay button-reset"><img src="'+pathImgFancybox+'play.png" alt=""> <span class="hover">'+l10n.startCarrousel+"</span></button></div>"}},keys:{next:{34:"up",39:"left",40:"up"}},beforeLoad:function(){$("*[tabindex=0]").attr("tabIndex",-1).attr("datatabindex",0),$("a, input, button, select").attr("tabIndex",-1)},afterClose:function(){lienFocus.focus(),$("*[datatabindex=0]").attr("tabIndex",0),$("a, button, input, select").attr("tabIndex",0)},afterLoad:function(){this.title?this.title='<p class="numberOfFancybox">'+l10n.Picture+" "+(this.index+1)+" "+l10n.on+" "+this.group.length+(this.title?'</p><p class="captionFancybox">'+this.title:"</p>"):this.title='<p class="numberOfFancybox">'+l10n.Picture+" "+(this.index+1)+" "+l10n.on+" "+this.group.length+(this.title?"</p>"+this.title:"")},beforeShow:function(){$(".fancybox-overlay a, .fancybox-overlay button, .fancybox-overlay input, .fancybox-overlay 
73select").attr("tabIndex",0);var e=this.element.find("img").attr("data-alt");this.inner.find("img").attr("alt",e),this.alt=e},afterShow:function(){$(".fancybox-inner").attr("tabindex",1).focus(),$(".fancybox-overlay").addClass("fancybox-overlay-gallery"),$(".fancybox-title").wrap('<div class="fancybox-wrap-title"></div>'),$(".fancybox-wrap-title").prepend('<button type="button" class="fancybox-more-infos"><img src="'+pathImgFancybox+'infos-open.png" alt="'+l10n.moreInformation+'"></button>');var e=$(".fancybox-more-infos");$(".fancybox-next").on("click",function(){"true"===localStorage.getItem("stateLS")&&t()}),e.on("click",function(){"false"===localStorage.getItem("stateLS")?t():localStorage.getItem("stateLS")&&i()}),$(".fancybox-wrap").swipe({swipe:function(e,t){"left"===t||"up"===t?$.fancybox.next(t):$.fancybox.prev(t)}})},onPlayStart:function(){$("#fancybox-buttons.clone").find(".btnPlay").addClass("btnPlayOn"),$("body #fancybox-buttons").find(".btnPlay").html('<img src="'+pathImgFancybox+'pause.png" alt=""> <span class="hover">'+l10n.stopCarrousel+"</span>")},onPlayEnd:function(){$("#fancybox-buttons.clone").find(".btnPlay").addClass("btnPlayOff"),$("body #fancybox-buttons").find(".btnPlay").html('<img src="'+pathImgFancybox+'play.png" alt=""> <span class="hover">'+l10n.startCarrousel+"</span>")},onUpdate:function(){"true"===localStorage.getItem("stateLS")&&t()}})}function fancyboxAutoHome(){if($(".popin-home").length>
730&&"undefined"!=typeof popinDuration){var e=$(".popin-home a"),t=e.attr("href"),i="undefined"!=typeof popinFullscreen&&""!=popinFullscreen?popinFullscreen:"",n="undefined"!=typeof popinFullscreen&&"100%"===popinFullscreen?$(window).height():"",s="undefined"!=typeof popinFullscreen&&"100%"===popinFullscreen?"popin-home--fullscreen":"popin-home",a="undefined"!=typeof popinFullscreen&&"100%"===popinFullscreen?"button-1 filters__reset fancybox-btn-close":"fancybox-close",o="undefined"!=typeof popinFullscreen&&"100%"===popinFullscreen?l10n.goToSite+" "+window.location.hostname:l10n.close;(null===sessionStorage.getItem("nopopin")||"undefined"!=typeof isConnected&&0!==isConnected)&&$.fancybox.open([{href:t}],{type:"iframe",beforeLoad:function(){$("*[tabindex=0]").attr("tabIndex",-1).attr("datatabindex",0),$("a, input, button, select").attr("tabIndex",-1),$(".fancybox-overlay a, .fancybox-overlay button, .fancybox-overlayinput").attr("tabIndex",0)},afterClose:function(){$("*[datatabindex=0]").attr("tabIndex",0),$("a, button, input, select").attr("tabIndex",0),sessionStorage.setItem("nopopin","1")},wrapCSS:s,tpl:{closeBtn:'<a class="'+a+'" href="javascript:;">'+o+"</a>",next:"",prev:""},afterLoad:function(){this.title='<p class="hidden">'+this.title+"</p>"},afterShow:function(){$(".fancybox-inner").attr("tabindex",1).focus(),popinDuration&&setTimeout(function(){$.fancybox.close()},1e3*popinDuration)},minWidth:i,minHeight:n,padding:0,openEffect:"fade",closeEffect:"fade",nextEffect:"none",prevEffect:"none",helpers:{title:{type:"inside"}}})}}function initGalerieClassique(e){"mediaDesktop"===e?($(".classical-gallery").classicalGallery({numberThumbs:4,reset:!0}),$(".classical-gallery").classicalGallery({numberThumbs:4,reset:!1})):"mediaSmartphone"===e&&$(".classical-gallery").classicalGallery({numberThumbs:4,reset:!0})}function sharePage(){$(".share-page").dropDownMenu({disabled:!1,classBtn:"button-2 button-2--small button-2--no-text",independent:!1})}function eventDdm(){$(".ddm--all-dates").dropDownMenu({disabled:!1,classBtn:"button-1 button-1--calendar",independent:!1})}function contentDdm(){$(".ddm__content").dropDownMenu({disabled:!1,classBtn:"",independent:!0})}function manageVideo(){function e(e){if(!/^https?:\/\/player.vimeo.com/.test(e.origin))return!1;switch("*"===s&&(s=e.origin),JSON.parse(e.data).event){case"ready":i()}}function t(e,t){var i={method:e};t&&(i.value=t);JSON.stringify(i);n[0].contentWindow.postMessage(i,s)}function i(){t("addEventListener","pause"),t("addEventListener","finish"),t("addEventListener","playProgress")}if($(".videoVimeo iframe").length>0){var n=$(".videoVimeo iframe"),s="*";window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent("onmessage",e,!1),$(".videoVimeo .seekMenu li a").click(function(){convertTimecodeInSecond($(this).find("time").text()),t("seekTo",top.seekTime)})}if($(".videoYoutube").length>
730&&($(".videoYoutube iframe").each(function(){var e=$(this).attr("src").replace("?","?wmode=transparent&");$(this).attr("src",e)}),$(".videoYoutube .seekMenu li a").click(function(){return convertTimecodeInSecond($(this).find("time").text()),n.seekTo(top.seekTime),!1})),$(".videoDailymotion").length>0){var a=0;DM.init({apiKey:dmApiKey,status:!0,cookie:!0}),DM.api("/video/"+dmID,function(){var e=DM.player(document.getElementById("dmPlayer"),{video:dmID,width:dmWidth,height:dmHeight,title:dmTitle});e.addEventListener("playing",function(){a=1}),$(".videoDailymotion .seekMenu li a").click(function(){return convertTimecodeInSecond($(this).find("time").text()),0==a?(e.play(),e.addEventListener("playing",function(){e.seek(top.seekTime),a=1})):e.seek(top.seekTime),!1})})}}function searchState(e){"mediaDesktop"==e?$(".search-box__wrapper").dropDownMenu({disabled:!1,classBtn:"",independent:!1}):"mediaSmartphone"==e&&$(".search-box__wrapper").dropDownMenu({disabled:!1,classBtn:"",independent:!1})}function filtersState(e){"mediaDesktop"==e?$(".filters .ddm").dropDownMenu({disabled:!0,classBtn:"",independent:!0}):"mediaSmartphone"==e&&$(".filters .ddm").dropDownMenu({disabled:!1,classBtn:"button-2 button-2--no-text-in-mobile",independent:!0})}function removeNameAttribute(e){"0"!==$('[name="'+e+'"]').val()&&""!==$('[name="'+e+'"]').val()||($('[name="'+e+'"]').removeAttr("name"),"tx_news_pi1[search][subject]"===e&&($('[name="tx_news_pi1[__referrer][@request]"]').removeAttr("name"),$('[name="tx_news_pi1[__referrer][@extension]"]').removeAttr("name"),$('[name="tx_news_pi1[__referrer][@vendor]"]').removeAttr("name"),$('[name="tx_news_pi1[__referrer][@controller]"]').removeAttr("name"),$('[name="tx_news_pi1[__referrer][@action]"]').removeAttr("name"),$('[name="tx_news_pi1[__referrer][arguments]"]').removeAttr("name"),$('[name="tx_news_pi1[__trustedProperties]"]').removeAttr("name")))}function showSubcat(e,t,i,n){if("load"===e)var s=$('[name="'+n+'"]').val();else if("change"===e)var s=$(i).val();if(void 0!==s&&s>0){$(t).addClass("hidden").find("select").attr("disabled","disabled"),$(t+" option[selected],"+i+" option[selected]").removeAttr("selected"),$('option[value="'+s+'"]').attr("selected","selected").parents(t).removeClass("hidden").find("select").removeAttr("disabled");var a=$(t+" option[selected]").parents(t).attr("data-id");a?$('option[value="'+a+'"]').attr("selected","selected"):(a=s,$(t).addClass("hidden").find("select").attr("disabled","disabled"),$(t+'[data-id="'+a+'"]').removeClass("hidden").find("select").removeAttr("disabled"))}else $(t).addClass("hidden").find("select").attr("disabled","disabled"),$(t+" option[selected],"+i+" option[selected]").removeAttr("selected");if($(t+":visible").length>0?$(".nosubcat").addClass("hidden"):$(".nosubcat").removeClass("hidden"),void 0!==s){$('[name="tx_stratismap_location[search][categories][]"]').val(s);var o=$("#tx_news_cat"+s).val();
73$("#tx_news_cat"+s).on("change",function(){var e=$("#tx_news_cat"+s).val();if("undefined"!=e&&0!=e)$('[name="tx_stratismap_location[search][categories][]"]').val(e);else{var t=$("#tx_news_cat").val();$('[name="tx_stratismap_location[search][categories][]"]').val(t)}}),void 0!==o&&s>0&&o>0&&$('[name="tx_stratismap_location[search][categories][]"]').val(o)}}function catmenu(){if($(".filters").length>0){if($(".filters #tx_news_month").length>0&&(1==$("#tx_news_month option:selected").length&&(catmenuYear=$('#tx_news_month option[selected="selected"]').parent("optgroup").attr("label"),$("input#tx_news_year").val(catmenuYear)),$("#tx_news_month").change(function(){catmenuYear=$(this).find("option:selected").parent("optgroup").attr("label"),"undefined"==catmenuYear?$("input#tx_news_year").val(""):$("input#tx_news_year").val(catmenuYear)})),$(".subcat").length>0){var e=$(".subcat").parents(".filters-col").attr("class");$(".subcat,.nosubcat").insertAfter($(".subcat").parents(".filters-col")).wrapAll('<div class="'+e+'"></div>'),showSubcat("load",".subcat","#tx_news_cat","tx_news_pi1[overwriteDemand][categories]"),$("#tx_news_cat").on("change",function(){showSubcat("change",".subcat","#tx_news_cat","tx_news_pi1[overwriteDemand][categories]")})}if($(".subcatlocation").length>0){var e=$(".subcatlocation").parents(".filters-col").attr("class");$(".subcatlocation,.nosubcat").insertAfter($(".subcatlocation").parents(".filters-col")).wrapAll('<div class="'+e+'"></div>'),showSubcat("load",".subcatlocation","#tx_news_cat","tx_stratismap_location[search][categories][]"),$("#tx_news_cat").on("change",function(){showSubcat("change",".subcatlocation","#tx_news_cat","tx_stratismap_location[search][categories][]")})}else{var t=$('[name="tx_news_cat"]').val();"undefined"!=t&&$('[name="tx_stratismap_location[search][categories][]"]').val(t)}$(".filters form").on("submit",function(){if($(".subcat").length>0&&($(".subcat:visible").length>0&&"0"!==$(".subcat select").val()&&""!==$(".subcat select").val()?$('[name="tx_news_pi1[overwriteDemand][categories]"]').val($(".subcat select").val()):"0"!==$("#tx_news_cat").val()&&""!==$("#tx_news_cat").val()?$('[name="tx_news_pi1[overwriteDemand][categories]"]').val($("#tx_news_cat").val()):$('[name="tx_news_pi1[overwriteDemand][categories]"]').val("")),$(".subcatlocation").length>0&&($(".subcatlocation:visible").length>0&&"0"!==$(".subcatlocation select").val()&&""!==$(".subcatlocation select").val()?$('[name="tx_news_pi1[overwriteDemand][categories]"]').val($(".subcatlocation select").val()):"0"!==$("#tx_news_cat").val()&&""!==$("#tx_news_cat").val()?$('[name="tx_news_pi1[overwriteDemand][categories]"]').val($("#tx_news_cat").val()):$('[name="tx_news_pi1[overwriteDemand][categories]"]').val("")),$("#datepicker").length>0&&$("#datepicker").val().length>0){var e=$("#datepicker").val().split("-");$("#dated").val(e[2]),$("#datem").val(e[1]),$("#datey").val(e[0])}removeNameAttribute("tx_news_pi1[overwriteDemand][period]"),removeNameAttribute("tx_news_pi1[overwriteDemand][related]"),removeNameAttribute("tx_news_pi1[overwriteDemand][categories]"),removeNameAttribute("tx_news_pi1[overwriteDemand][day]"),removeNameAttribute("tx_news_pi1[overwriteDemand][month]"),removeNameAttribute("tx_news_pi1[overwriteDemand][year]"),removeNameAttribute("tx_news_pi1[overwriteDemand][datecomplete]"),removeNameAttribute("tx_news_pi1[search][subject]"),removeNameAttribute("tx_news_pi1[overwriteDemand][tags]"),removeNameAttribute("tx_news_pi1[overwriteDemand][relatedLinks]"),removeNameAttribute("tx_news_pi1[overwriteDemand][related]"),removeNameAttribute("tx_simplepoll_polllisting[category]"),removeNameAttribute("tx_simplepoll_polllisting[status]")})}}function formValidation(){$('button[type="reset"]').click(function(){return $(this).parents("form").find(":radio, :checkbox").removeAttr("checked").end().find("textarea:enabled, input:enabled:not([readonly]), select:enabled").val(""),!1}),$("form .email_etalon").length>0&&$("form .email_etalon").each(function(){$(this).parents("fieldset").find(".email_verification input").attr("data-parsley-equalto","#"+$(this).find("input").attr("id"))}),$("form .email_verification").length>0&&$("form .email_verification input").attr("autocomplete","off").live("copy paste",function(e){e.preventDefault()}),$("form.powermail_form").on("submit",function(){$(this).parsley().isValid()&&($(this).find('[type="submit"]').attr("disabled","disabled"),$(this).find('input[type="file"]').length>0&&""!==$(this).find('input[type="file"]').val()?$(this).find('[type="submit"] span').text(l10n.pleaseWaitForFile):$(this).find('[type="submit"] span').text(l10n.pleaseWait),convertToTimestamp())})}function carrousel1Desktop(){function e(){s.cycle("pause"),a.find("img").attr("src",pathImg+"carrousel1/play.png").parent().find(".txt").html(l10n.startCarrousel),o=!1}function t(){s.cycle("resume"),a.find("img").attr("src",pathImg+"carrousel1/pause.png").parent().find(".txt").html(l10n.stopCarrousel),o=!0}function i(i){"pause"===i?e():"resume"===i?t():!0===o?e():t()}var n=$(".carrousel1");if(n.length>0){var s=$(".listItems",n);0==$(".buttonStop").length&&s.parent().append('<button type="button" class="button-reset buttonStop modeplay"><img src="'+pathImg+'carrousel1/pause.png" alt=""> <span class="txt">'+l10n.stopCarrousel+"</span></button>"),0==$(".prevNextCarrousel1").length&&s.parent().append('<ul class="prevNextCarrousel1"><li class="prevCarrousel1"><button type="button" class="button-reset"><img src="'+pathImg+'carrousel1/prev.png" alt="'+l10n.prev+'"></button></li><li class="nextCarrousel1"><button type="button" class="button-reset"><img src="'+pathImg+'carrousel1/next.png" alt="'+l10n.next+'"></button></li></ul>'),0==$(".pagerCarrousel1").length&&s.parent().append('<ul class="pagerCarrousel1"></ul>');var a=$(".buttonStop",n);$(document,s).on("cycle-update-view",function(e,t,i){var n;t.pager&&(n=t.API.getComponent("pager"),n.each(function(){var e=$
73(this).children().eq(t.currSlide).find("button img").attr("alt");$(this).children().find("li").removeClass(t.pagerActiveClass).eq(t.currSlide).addClass(t.pagerActiveClass),$(this).children().find("button").removeAttr("title"),$(this).children().find("button img").attr("src",pathImg+"carrousel1/pager-off.png"),$(this).children().eq(t.currSlide).find("button").attr("title",e+" - "+l10n.activeSlide),$(this).children().eq(t.currSlide).find("button img").attr("src",pathImg+"carrousel1/pager-on.png")}))}),$(document,s).on("cycle-bootstrap",function(e,t,i){i.buildPagerLink=function(e,t,i){var n;e.API.getComponent("pager").each(function(){var t=$(this),s=$("<li></li>").html('<button type="button" class="button-reset"><img src="'+pathImg+'carrousel1/pager-off.png" alt="'+$(".title",i).text()+'" /></button>');n=$(s).appendTo(t),n.on(e.pagerEvent,function(i){i.preventDefault(),e.API.page(t,i.currentTarget)})})}}),s.cycle({log:!1,fx:"fade",speed:"600",timeout:4e3,prev:".prevCarrousel1 button",next:".nextCarrousel1 button",slides:".item",pager:".pagerCarrousel1"});var o=!0;$(".nextCarrousel1 button").click(function(){e()}),$(".prevCarrousel1 button").click(function(){e()}),$(".pagerCarrousel1 button").click(function(){e()}),a.click(function(){i()})}}function carrousel1State(e){"mediaDesktop"!==e&&"mediaSmartphone"!==e||carrousel1Desktop()}function carrousel2(e){if(carouselWrap.length>0){var t,i=$(".item",carousel).length;t=e||"6",i>t&&(0==$(".prevNextCaroussel2").length&&carousel.parent().append('<ul class="prevNextCaroussel2"><li class="prevCaroussel2"><button type="button" class="button-reset"><img src="'+pathImg+'carrousel2/carrousel2-prev.png" alt="'+l10n.prev+'"></button></li><li class="nextCaroussel2"><button type="button" class="button-reset"><img src="'+pathImg+'carrousel2/carrousel2-next.png" alt="'+l10n.next+'"></button></li></ul>'),carousel.cycle({log:!1,fx:"carousel",allowWrap:!1,carouselVisible:t,carouselFluid:!0,swipe:!0,timeout:0,prev:".prevCaroussel2 button",next:".nextCaroussel2 button",slides:".item",autoHeight:"calc"}),$(".item",carousel).css("opacity","1"))}}function reinit_cycle(e){setTimeout(function(){destroyCarrousel(),setTimeout(function(){carrousel2(e)},200)},200)}function carrousel2State(e){"mediaDesktop"===e?(clearTimeout(reinitTimer),reinitTimer=setTimeout(reinit_cycle("6"),200)):"mediaSmartphone"===e&&(clearTimeout(reinitTimer),destroyCarrousel())}function showTotal(){if($(".pre-total-infos").length>0&&$(".post-total-infos").length>0){var e=parseInt($(".pre-total-infos:last").data("totalitems")),t=parseInt($(".pre-total-infos:last").data("itemsperpage")),i=(parseInt($(".post-total-infos:first").data("currentpage")),parseInt($(".post-total-infos:last").data("currentpage"))),n=$(".post-total-infos:last").data("txtshowresults"),s=$(".post-total-infos:last").data("txtto"),a=$(".post-total-infos:last").data("txttotal"),o=$(".post-total-infos:last").data("txtof");$(".post-total-infos").remove();var r=t*i-t+1,l=t*i>e?e:t*i,c='<p class="list__infos"><span>'+n+" "+r+" "+s+" "+l+" "+o+" "+e+" "+a+".</span></p>";$(".list-paginated .list-paginated__wrapper[data-count]").length>0?$(".list-paginated .list-paginated__wrapper[data-count]").before(c):$(".list-paginated .list-paginated__wrapper:first").before(c)}}function infiniteScroll(){if($(".list .pager").length>0&&$(".list .list-paginated").length>0||$(".list + .tx-pagebrowse-pi1 .pagebrowser").length>0){var e=!1,t=$.ias({container:".list-paginated",item:".list__item",pagination:".pager:not(.abc)",next:".pager__next a"}).on("next",function(){e=!0}).on("rendered",function(t){e?$(t).insertAfter($(".list-paginated__wrapper:last")):$(t).insertBefore($(".list-paginated__wrapper:first").prev(".list__infos")),$(".list-paginated__wrapper[data-count]").removeAttr("data-count"),$(t).wrapAll('<div class="list-paginated__wrapper" data-count="1"></div>'),showTotal(),linkExternalNewWindow(),faqDdm(),e=!1});t.extension(new IASTriggerExtension({htmlPrev:'<nav class="pager-infinite"><button type="button" class="button-2 pager-infinite__button">'+l10n.paginationMoreElement+"</button></nav>",html:'<nav class="pager-infinite"><button type="button" class="button-2 pager-infinite__button">'+l10n.paginationMoreElement+"</button></nav>"})),t.extension(new IASSpinnerExtension({htmlPrev:'<div class="pager-infinite"><p class="button-2 pager-infinite__loading">'+l10n.loading+"</p></div>",html:'<div class="pager-infinite"><p class="button-2 pager-infinite__loading">'+l10n.loading+"</p></div>"})),t.extension(new IASNoneLeftExtension({htmlPrev:"",html:""})),t.extension(new IASPagingExtension),t.extension(new IASHistoryExtension({prev:".pager__prev a"}))}}function enableDatePicker(){$('input[type="date"]').each(function(){var e=$
73(this).attr("id"),t={};t[e]="%d-%m-%Y",datePickerController.createDatePicker({formElements:t})})}function enableTimePicker(){$(".time input").timepicker({timeFormat:"H:i"})}function checkSocialCookieEnabled(){var e=!1;return void 0!==localStorage.getItem("cookiesFunctional")&&null!=localStorage.getItem("cookiesFunctional")&&1==localStorage.getItem("cookiesFunctional")&&(e=!0),e}function clearCookie(e,t,n){try{if(function(e){var t=document.cookie.split(";"),n="",s="",a=!1;for(i=0;i<t.length;i++){if(n=t[i].split("="),n[0].replace(/^\s+|\s+$/g,"")==e)return a=!0,n.length>1&&(s=unescape(n[1].replace(/^\s+|\s+$/g,""))),s;n=null,""}if(!a)return null}(e)){var t=t||document.domain,n=n||"/";document.cookie=e+"=; expires="+new Date+"; domain="+t+"; path="+n}}catch(e){}}function removeFunctionalCookies(){var e=location.hostname.replace("www","");clearCookie("__utma",e,"/"),clearCookie("__utmb",e,"/"),clearCookie("__utmc",e,"/"),clearCookie("__utmz",e,"/"),clearCookie("__utmv",e,"/"),clearCookie("comments_title",location.hostname,"/"),clearCookie("comments_firstname",location.hostname,"/"),clearCookie("comments_lastname",location.hostname,"/"),clearCookie("comments_email",location.hostname,"/"),clearCookie("comments_homepage",location.hostname,"/"),clearCookie("tx_comments_pi1_title",location.hostname,"/"),clearCookie("tx_comments_pi1_firstname",location.hostname,"/"),clearCookie("tx_comments_pi1_lastname",location.hostname,"/"),clearCookie("tx_comments_pi1_email",location.hostname,"/"),clearCookie("tx_comments_pi1_homepage",location.hostname,"/")}function cookiesManagement(){checkSocialCookieEnabled()&&$(".element-with-social-cookies").each(function(e,t){var i=$(this).html().replace("\x3c!--","").replace("--\x3e","");$(this).html(i)}),($("#cookie-manager").length>0||$("#cookies-top-bloc").length>0)&&(void 0===localStorage.getItem("cookiesFunctional")||null==localStorage.getItem("cookiesFunctional")?($("input#cookies-functional").attr("checked","checked"),localStorage.setItem("cookiesFunctional",1),cookiesManagement()):1==localStorage.getItem("cookiesFunctional")?$("input#cookies-functional").attr("checked","checked"):($("input#cookies-functional").removeAttr("checked"),removeFunctionalCookies()),$("#cookie-manager .cookies-top-bloc__submit, #cookies-top-bloc .cookies-top-bloc__submit").click(function(){return $("#cookies-top-bloc").hide(),$("#cookies-functional").attr("checked")?localStorage.setItem("cookiesFunctional",1):(localStorage.setItem("cookiesFunctional",0),removeFunctionalCookies()),localStorage.setItem("cookiesConfirmed",1),$("#cookies-top-bloc").slideUp(),$(".page").removeAttr("style"),!1})),void 0!==localStorage.getItem("cookiesConfirmed")&&null!=localStorage.getItem("cookiesConfirmed")&&0!=localStorage.getItem("cookiesConfirmed")||$("#cookies-top-bloc").show(),window.innerWidth<940&&$("#cookies-top-bloc").is(":visible")&&($(".page").css("padding-bottom",$("#cookies-top-bloc").outerHeight()),$(".page").addClass("cookies-top-bloc--on")),$(window).resize(function(){window.innerWidth<940&&$("#cookies-top-bloc").is(":visible")?$(".page").css("padding-bottom",$("#cookies-top-bloc").outerHeight()):($(".page").removeClass("cookies-top-bloc--on"),
74$(".page").removeAttr("style"))}),$(".cookies-top-bloc__more").click(function(){$("#cookies-top-bloc").hide(),$("#cookies-info-popup").show(1),$("body").css("overflow","hidden")}),$("#cookies-info-popup .annuler-btn, #cookies-info-popup .popup-overlay").click(function(){$("#cookies-info-popup").hide(1),$("body").css("overflow","visible")})}function faqDdm(){$(".list-type-4 .ddm").dropDownMenu({disabled:!1,classBtn:"",independent:!0})}function addContentInTitle(){if("undefined"!=typeof addInTitle&&addInTitle.length>0){$("h1.pageTitle").append(" : ");for(var e=0;e<addInTitle.length;e++)$("h1.pageTitle").append(" "+addInTitle[e])}}function generatePie(){$("#pieChartSource").length>0&&$("#pieChartSource").pieChart("#pieChartTarget")}function smoothScrolling(){var e=$(this).attr("href");return $("html, body").animate({scrollTop:$(e).offset().top},800),!1}function owlCarousel(){$(".image-gallery__list2").owlCarousel({loop:!0,margin:10,responsiveClass:!0,responsive:{0:{items:1,nav:!0},600:{items:1,nav:!1},1e3:{items:3,nav:!1}}})}var isIE11=!!window.MSInputMethodContext&&!!document.documentMode,browser=get_name_browser();"Firefox"==browser&&jQuery(".item-event").addClass("firefox"),1==isIE11&&jQuery(".home").addClass("ie-11");var languageUid=0,l10nArray={fr:{paginationMoreElement:"Afficher plus de résultats",goToNextSection:"Aller à la section suivante",loading:"Chargement...",prev:"Précédent",next:"Suivant",stopCarrousel:"Arrêter le diaporama",startCarrousel:"Lancer le diaporama",activeSlide:"Slide active",listReadMore:"En savoir plus",listDownload:"Télécharger",listSeeAlso:"Voir aussi",mandatory:"obligatoire",formErrorInvalidDate:"La date doit être au format jj/mm/aaaa.",formErrorBirthdayInFutur:"La date de naissance est plus récente que la date d'aujourd'hui.",formErrorBirthdayDoNotExist:"La date de naissance n'existe pas.",formErrorEnterMail:"Veuillez entrer votre courriel.",formErrorConfirmMail:"Veuillez confirmer votre courriel.",formErrorInvalidMail:"Votre adresse e-mail est invalide. \nLe format doit être du type [email protected], sans espace ni caractères spéciaux (é, à, ç, !...).",formErrorSelectNewsletter:"Veuillez sélectionner une lettre d'information.",formErrorCheckMail:"La vérification de votre adresse email a échoué.",formErrorDateFormat:"L'un des champs date n'est pas au format jj/mm/aaaa, ou n'est pas valide. \nMerci de corriger.",formErrorMandatoryField:"Ce champ est obligatoire.",formErrorsSummary:"Votre formulaire contient les erreurs suivantes ",pleaseWaitForFile:"Envoi des pièces jointes en cours, veuillez patienter... ",pleaseWait:"Veuillez patienter... ",linkNewWindow:"Nouvelle fenêtre",linkExternalLink:"Lien externe",open:"Ouvrir",close:"Fermer",closeModalWindow:"Fermer la fenêtre modale",moreInformation:"Plus d'information",lessInformation:"Moins d'information",nextImage:"Image suivante",prevImage:"Image précédente",pictures:"images",picture:"image",Picture:"Photo",on:"sur",Gallery:"Galerie",navigationError:"Erreur de navigation",openMenu:"Menu principal",goToSite:"Accéder au site "},en:{paginationMoreElement:"Show more results",goToNextSection:"Go to next section",loading:"Loading...",prev:"Previous",next:"Next",stopCarrousel:"Stop slider",startCarrousel:"Play slider",activeSlide:"Active slide",listReadMore:"Read more",listDownload:"Download",listSeeAlso:"See also",mandatory:"required",formErrorInvalidDate:"The date must use jj/mm/aaaa format.",formErrorBirthdayInFutur:"The birth date is later than today's date.",formErrorBirthdayDoNotExist:"The birth date doesn't exist.",formErrorEnterMail:"Please enter your email address.",formErrorConfirmMail:"Please confirm your email address.",formErrorInvalidMail:"Your email address is not val
74id. \nIt must use [email protected] format, without spaces or special characters (é, à, ç, !...).",formErrorSelectNewsletter:"Please select a newsletter.",formErrorCheckMail:"The email verification has failed.",formErrorDateFormat:"One of date fields doesn't use jj/mm/aaaa format, or is not valid.",formErrorMandatoryField:"This field is required.",formErrorsSummary:"Your form contains the following errors: ",pleaseWaitForFile:"Sending files in progress, please wait... ",pleaseWait:"Please wait... ",linkNewWindow:"New window",linkExternalLink:"External link",open:"Open",close:"Cloe",closeModalWindow:"Close modal window",moreInformation:"More information",lessInformation:"Less information",nextImage:"Next picture",prevImage:"Previous picture",pictures:"pictures",picture:"picture",Picture:"Picture",on:"on",navigationError:"Browsing error",openMenu:"Main menu",goToSite:"Go to site "}},l10n="undefined"!=typeof siteCodeLang?l10nArray[siteCodeLang]:l10nArray.fr,typo3Path="/typo3conf/ext/stratis_site/Resources/Public/",pathJs=typo3Path+"JS/",pathCss=typo3Path+"CSS/",pathImg=typo3Path+"Images/",pathImgPictos=typo3Path+"Images/pictos/",pathImgBg=typo3Path+"Images/bg/",pathImgForm=typo3Path+"Images/form/",pathImgFancybox=typo3Path+"Images/fancybox/",pathImgMap=typo3Path+"Images/map/";!function(e,t,i){"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=i:(e[t]=i,"function"==typeof define&&define.amd&&define(t,[],function(){return i}))}(this,"jRespond",function(e,t,i){"use strict";return function(e){var t=[],n=[],s=e,a="",o="",r=0,l=500,c=function(){return"number"!=typeof window.innerWidth?0!==document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth:window.innerWidth},d=function(e){if(e.length===i)u(e);else for(var t=0;t<e.length;t++)u(e[t])},u=function(e){var s=e.breakpoint,r=e.enter||i;t.push(e),n.push(!1),f(s)&&(r!==i&&r.call(null,{entering:a,exiting:o}),n[t.length-1]=!0)},h=function(){for(var e=[],s=[],r=0;r<t.length;r++){var l=t[r].breakpoint,c=t[r].enter||i,d=t[r].exit||i;"*"===l?(c!==i&&e.push(c),d!==i&&s.push(d)):f(l)?(c===i||n[r]||e.push(c),n[r]=!0):(d!==i&&n[r]&&s.push(d),n[r]=!1)}for(var u={entering:a,exiting:o},h=0;h<s.length;h++)s[h].call(null,u);for(var p=0;p<e.length;p++)e[p].call(null,u)},p=function(e){for(var t=!1,i=0;i<s.length;i++)if(e>=s[i].enter&&e<=s[i].exit){t=!0;break}t&&a!==s[i].label?(o=a,a=s[i].label,h()):t||""===a||(a="",h())},f=function(e){if("object"==typeof e){if(e.join().indexOf(a)>=0)return!0}else{if("*"===e)return!0;if("string"==typeof e&&a===e)return!0}},m=function(){var e=c();e!==r?(l=100,p(e)):l=500,r=e,setTimeout(m,l)};return m(),{addFunc:function(e){d(e)},getBreakpoint:function(){return a}}}}(0,this.document)),function(e){"object"==typeof exports&&exports&&"object"==typeof module&&module&&module.exports===exports?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){function t(e){var t=e[0];return t.offsetWidth>0&&t.offsetHeight>0}function i(t){if(t.minTime&&(t.minTime=b(t.minTime)),t.maxTime&&(t.maxTime=b(t.maxTime)),t.durationTime&&"function"!=typeof t.durationTime&&(t.durationTime=b(t.durationTime)),"now"==t.scrollDefault)t.scrollDefault=function(){return t.roundingFunction(b(new Date),t)};else if(t.scrollDefault&&"function"!=typeof t.scrollDefault){var i=t.scrollDefault;t.scrollDefault=function(){return t.roundingFunction(b(i),t)}}else t.minTime&&(t.scrollDefault=function(){return t.roundingFunction(t.minTime,t)});if("string"===e.type(t.timeFormat)&&t.timeFormat.match(/[gh]/)&&(t._twelveHourTime=!0),!1===t.showOnFocus&&-1!=t.showOn.indexOf("focus")&&t.showOn.splice(t.showOn.indexOf("focus"),1),t.disableTimeRanges.length>0){for(var n in t.disableTimeRanges)t.disableTimeRanges[n]=[b(t.disableTimeRanges[n][0]),b(t.disableTimeRanges[n][1])];t.disableTimeRanges=t.disableTimeRanges.sort(function(e,t){return e[0]-t[0]});for(var n=t.disableTimeRanges.length-1;n>0;n--)t.disableTimeRanges[n][0]<=t.disableTimeRanges[n-1][1]&&(t.disableTimeRanges[n-1]=[Math.min(t.disableTimeRanges[n][0],t.disableTimeRanges[n-1][0]),Math.max(t.disableTimeRanges[n][1],t.disableTimeRanges[n-1][1])],t.disableTimeRanges.splice(n,1))}return t}function n(t){var i=t.data("timepicker-settings"),n=t.data("timepicker-list");if(n&&n.length&&(n.remove(),t.data("timepicker-list",!1)),i.useSelect){n=e("<select />",{class:"ui-timepicker-select"});var o=n}else{n=e("<ul />",{class:"ui-timepicker-list"});var o=e("<div />",{class:"ui-timepicker-wrapper",tabindex:-1});o.css({display:"none",position:"absolute"}).append(n)}if(i.noneOption)if(!0===i.noneOption&&(i.noneOption=i.useSelect?"Time...":"None"),e.isArray(i.noneOption)){for(var l in i.noneOption)if(parseInt(l,10)==l){var d=s(i.noneOption[l],i.use
74Select);n.append(d)}}else{var d=s(i.noneOption,i.useSelect);n.append(d)}if(i.className&&o.addClass(i.className),(null!==i.minTime||null!==i.durationTime)&&i.showDuration){"function"==typeof i.step||i.step;o.addClass("ui-timepicker-with-duration"),o.addClass("ui-timepicker-step-"+i.step)}var u=i.minTime;"function"==typeof i.durationTime?u=b(i.durationTime()):null!==i.durationTime&&(u=i.durationTime);var p=null!==i.minTime?i.minTime:0,f=null!==i.maxTime?i.maxTime:p+w-1;f<p&&(f+=w),f===w-1&&"string"===e.type(i.timeFormat)&&i.show2400&&(f=w);var m=i.disableTimeRanges,x=0,k=m.length,A=i.step;"function"!=typeof A&&(A=function(){return i.step});for(var l=p,C=0;l<=f;C++,l+=60*A(C)){var S=l,I=y(S,i);if(i.useSelect){var T=e("<option />",{value:I});T.text(I)}else{var T=e("<li />");T.addClass(S%86400<43200?"ui-timepicker-am":"ui-timepicker-pm"),T.data("time",S<=86400?S:S%86400),T.text(I)}if((null!==i.minTime||null!==i.durationTime)&&i.showDuration){var $=v(l-u,i.step);if(i.useSelect)T.text(T.text()+" ("+$+")");else{var D=e("<span />",{class:"ui-timepicker-duration"});D.text(" ("+$+")"),T.append(D)}}x<k&&(S>=m[x][1]&&(x+=1),m[x]&&S>=m[x][0]&&S<m[x][1]&&(i.useSelect?T.prop("disabled",!0):T.addClass("ui-timepicker-disabled"))),n.append(T)}if(o.data("timepicker-input",t),t.data("timepicker-list",o),i.useSelect)t.val()&&n.val(a(b(t.val()),i)),n.on("focus",function(){e(this).data("timepicker-input").trigger("showTimepicker")}),n.on("blur",function(){e(this).data("timepicker-input").trigger("hideTimepicker")}),n.on("change",function(){h(t,e(this).val(),"select")}),h(t,n.val(),"initial"),t.hide().after(n);else{var E=i.appendTo;"string"==typeof E?E=e(E):"function"==typeof E&&(E=E(t)),E.append(o),c(t,n),n.on("mousedown click","li",function(i){t.off("focus.timepicker"),t.on("focus.timepicker-ie-hack",function(){t.off("focus.timepicker-ie-hack"),t.on("focus.timepicker",_.show)}),r(t)||t[0].focus(),n.find("li").removeClass("ui-timepicker-selected"),e(this).addClass("ui-timepicker-selected"),g(t)&&(t.trigger("hideTimepicker"),n.on("mouseup.timepicker click.timepicker","li",function(e){n.off("mouseup.timepicker click.timepicker"),o.hide()}))})}}function s(t,i){var n,s,a;return"object"==typeof t?(n=t.label,s=t.className,a=t.value):"string"==typeof t?n=t:e.error("Invalid noneOption value"),i?e("<option />",{value:a,class:s,text:n}):e("<li />",{class:s,text:n}).data("time",String(a))}function a(e,t){if(null!==(e=t.roundingFunction(e,t)))return y(e,t)}function o(t){if(t.target!=window){var i=e(t.target);i.closest(".ui-timepicker-input").length||i.closest(".ui-timepicker-wrapper").length||(_.hide(),e(document).unbind(".ui-timepicker"),e(window).unbind(".ui-timepicker"))}}function r(e){var t=e.data("timepicker-settings");return(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&t.disableTouchKeyboard}function l(t,i,n){if(!n&&0!==n)return!1;var s=t.data("timepicker-settings"),a=!1,n=s.roundingFunction(n,s);return i.find("li").each(function(t,i){var s=e(i);if("number"==typeof s.data("time"))return s.data("time")==n?(a=s,!1):void 0}),a}function c(e,t){t.find("li").removeClass("ui-timepicker-selected");var i=b(u(e),e.data("timepicker-settings"));if(null!==i){var n=l(e,t,i);if(n){var s=n.offset().top-t.offset().top;(s+n.outerHeight()>t.outerHeight()||s<0)&&t.scrollTop(t.scrollTop()+n.position().top-n.outerHeight()),n.addClass("ui-timepicker-selected")}}}function d(t,i){if(""!==this.value&&"timepicker"!=i){var n=e(this);if(!n.is(":focus")||t&&"change"==t.type){var s=n.data("timepicker-settings"),a=b(this.value,s);if(null===a)return void n.trigger("timeFormatError");var o=!1;if(null!==s.minTime&&null!==s.maxTime&&(a<s.minTime||a>s.maxTime)&&(o=!0),e.each(s.disableTimeRanges,function(){if(a>=this[0]&&a<this[1])return o=!0,!1}),s.forceRoundTime){var r=s.roundingFunction(a,s);r!=a&&(a=r,i=null)}var l=y(a,s);o?h(n,l,"error")&&n.trigger("timeRangeError"):h(n,l,i)}}}function u(e){return e.is("input")?e.val():e.data("ui-timepicker-value")}function h(e,t,i){if(e.is("input")){e.val(t);var n=e.data("timepicker-settings");n.useSelect&&"select"!=i&&"initial"!=i&&e.data("timepicker-list").val(a(b(t),n))}return e.data("ui-timepicker-value")!=t?(e.data("ui-timepicker-value",t),"select"==i?e.trigger("selectTime").trigger("changeTime").trigger("change","timepicker"):-1==["error","initial"].indexOf(i)&&e.trigger("changeTime"),!0):(e.trigger("selectTime"),!1)}function p(e){switch(e.keyCode){case 13:case 9:return;default:e.preventDefault()}}function f(i){var n=e(this),s=n.data("timepicker-list");
74if(!s||!t(s)){if(40!=i.keyCode)return!0;_.show.call(n.get(0)),s=n.data("timepicker-list"),r(n)||n.focus()}switch(i.keyCode){case 13:return g(n)&&(d.call(n.get(0),{type:"change"}),_.hide.apply(this)),i.preventDefault(),!1;case 38:var a=s.find(".ui-timepicker-selected");return a.length?a.is(":first-child")||(a.removeClass("ui-timepicker-selected"),a.prev().addClass("ui-timepicker-selected"),a.prev().position().top<a.outerHeight()&&s.scrollTop(s.scrollTop()-a.outerHeight())):(s.find("li").each(function(t,i){if(e(i).position().top>0)return a=e(i),!1}),a.addClass("ui-timepicker-selected")),!1;case 40:return a=s.find(".ui-timepicker-selected"),0===a.length?(s.find("li").each(function(t,i){if(e(i).position().top>0)return a=e(i),!1}),a.addClass("ui-timepicker-selected")):a.is(":last-child")||(a.removeClass("ui-timepicker-selected"),a.next().addClass("ui-timepicker-selected"),a.next().position().top+2*a.outerHeight()>s.outerHeight()&&s.scrollTop(s.scrollTop()+a.outerHeight())),!1;case 27:s.find("li").removeClass("ui-timepicker-selected"),_.hide();break;case 9:_.hide();break;default:return!0}}function m(i){var n=e(this),s=n.data("timepicker-list"),a=n.data("timepicker-settings");if(!s||!t(s)||a.disableTextInput)return!0;switch(i.keyCode){case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 77:case 80:case 186:case 8:case 46:a.typeaheadHighlight?c(n,s):s.hide()}}function g(e){var t=e.data("timepicker-settings"),i=e.data("timepicker-list"),n=null,s=i.find(".ui-timepicker-selected");return!s.hasClass("ui-timepicker-disabled")&&(s.length&&(n=s.data("time")),null!==n&&("string"!=typeof n&&(n=y(n,t)),h(e,n,"select")),!0)}function v(e,t){e=Math.abs(e);var i,n,s=Math.round(e/60),a=[];
74return s<60?a=[s,x.mins]:(i=Math.floor(s/60),n=s%60,30==t&&30==n&&(i+=x.decimal+5),a.push(i),a.push(1==i?x.hr:x.hrs),30!=t&&n&&(a.push(n),a.push(x.mins))),a.join(" ")}function y(t,i){if("number"!=typeof t)return null;var n=parseInt(t%60),s=parseInt(t/60%60),a=parseInt(t/3600%24),o=new Date(1970,0,2,a,s,n,0);if(isNaN(o.getTime()))return null;if("function"===e.type(i.timeFormat))return i.timeFormat(o);for(var r,l,c="",d=0;d<i.timeFormat.length;d++)switch(l=i.timeFormat.charAt(d)){case"a":c+=o.getHours()>11?x.pm:x.am;break;case"A":c+=o.getHours()>11?x.PM:x.AM;break;case"g":r=o.getHours()%12,c+=0===r?"12":r;break;case"G":r=o.getHours(),t===w&&(r=i.show2400?24:0),c+=r;break;case"h":r=o.getHours()%12,0!==r&&r<10&&(r="0"+r),c+=0===r?"12":r;break;case"H":r=o.getHours(),t===w&&(r=i.show2400?24:0),c+=r>9?r:"0"+r;break;case"i":var s=o.getMinutes();c+=s>9?s:"0"+s;break;case"s":n=o.getSeconds(),c+=n>9?n:"0"+n;break;case"\\":d++,c+=i.timeFormat.charAt(d);break;default:c+=l}return c}function b(e,t){if(""===e||null===e)return null;if("object"==typeof e)return 3600*e.getHours()+60*e.getMinutes()+e.getSeconds();if("string"!=typeof e)return e;e=e.toLowerCase().replace(/[\s\.]/g,""),"a"!=e.slice(-1)&&"p"!=e.slice(-1)||(e+="m");var i="("+x.am.replace(".","")+"|"+x.pm.replace(".","")+"|"+x.AM.replace(".","")+"|"+x.PM.replace(".","")+")?",n=new RegExp("^"+i+"([0-9]?[0-9])\\W?([0-5][0-9])?\\W?([0-5][0-9])?"+i+"$"),s=e.match(n);if(!s)return null;var a=parseInt(1*s[2],10);if(a>24){if(t&&!1===t.wrapHours)return null;a%=24}var o=s[1]||s[5],r=a;if(a<=12&&o){var l=o==x.pm||o==x.PM;r=12==a?l?12:0:a+(l?12:0)}var c=1*s[3]||0,d=1*s[4]||0,u=3600*r+60*c+d;if(a<12&&!o&&t&&t._twelveHourTime&&t.scrollDefault){var h=u-t.scrollDefault();h<0&&h>=w/-2&&(u=(u+w/2)%w)}return u}var w=86400,x={am:"am",pm:"pm",AM:"AM",PM:"PM",decimal:".",mins:"mins",hr:"hr",hrs:"hrs"},_={init:function(t){return this.each(function(){var s=e(this),a=[];for(var o in e.fn.timepicker.defaults)s.data(o)&&(a[o]=s.data(o));var r=e.extend({},e.fn.timepicker.defaults,a,t);if(r.lang&&(x=e.extend(x,r.lang)),r=i(r),s.data("timepicker-settings",r),s.addClass("ui-timepicker-input"),r.useSelect)n(s);else{if(s.prop("autocomplete","off"),r.showOn)for(var l in r.showOn)s.on(r.showOn[l]+".timepicker",_.show);s.on("change.timepicker",d),s.on("keydown.timepicker",f),s.on("keyup.timepicker",m),r.disableTextInput&&s.on("keydown.timepicker",p),d.call(s.get(0),null,"initial")}})},show:function(i){var s=e(this),a=s.data("timepicker-settings");if(i&&i.preventDefault(),a.useSelect)return void s.data("timepicker-list").focus();r(s)&&s.blur();var d=s.data("timepicker-list");if(!s.prop("readonly")&&(d&&0!==d.length&&"function"!=typeof a.durationTime||(n(s),d=s.data("timepicker-list")),!t(d))){s.data("ui-timepicker-value",s.val()),c(s,d),_.hide(),d.show();var h={};a.orientation.match(/r/)?h.left=s.offset().left+s.outerWidth()-d.outerWidth()+parseInt(d.css("marginLeft").replace("px",""),10):h.left=s.offset().left+parseInt(d.css("marginLeft").replace("px",""),10);var p;p=a.orientation.match(/t/)?"t":a.orientation.match(/b/)?"b":s.offset().top+s.outerHeight(!0)+d.outerHeight()>e(window).height()+e(window).scrollTop()?"t":"b","t"==p?(d.addClass("ui-timepicker-positioned-top"),h.top=s.offset().top-d.outerHeight()+parseInt(d.css("marginTop").replace("px",""),10)):(d.removeClass("ui-timepicker-positioned-top"),h.top=s.offset().top+s.outerHeight()+parseInt(d.css("marginTop").replace("px",""),10)),d.offset(h);var f=d.find(".ui-timepicker-selected");if(!f.length){var m=b(u(s));null!==m?f=l(s,d,m):a.scrollDefault&&(f=l(s,d,a.scrollDefault()))}if(f&&f.length){var g=d.scrollTop()+f.position().top-f.outerHeight();d.scrollTop(g)}else d.scrollTop(0);return a.stopScrollPropagation&&e(document).on("wheel.ui-timepicker",".ui-timepicker-wrapper",function(t){t.preventDefault();var i=e(this).scrollTop();e(this).scrollTop(i+t.originalEvent.deltaY)}),e(document).on("touchstart.ui-timepicker mousedown.ui-timepicker",o),e(window).on("resize.ui-timepicker",o),a.closeOnWindowScroll&&e(document).on("scroll.ui-timepicker",o),s.trigger("showTimepicker"),this}},hide:function(i){var n=e(this),s=n.data("timepicker-settings");return s&&s.useSelect&&n.blur(),e(".ui-timepicker-wrapper").each(function(){var i=e(this);if(t(i)){var n=i.data("timepicker-input"),s=n.data("timepicker-settings");s&&s.selectOnBlur&&g(n),i.hide(),n.trigger("hideTimepicker")}}),this},option:function(t,s){return"string"==typeof t&&void 0===s?e(this).data("timepicker-settings")[t]:this.each(function(){var a=e(this),o=a.data("timepicker-settings"),r=a.data("timepicker-list");
74"object"==typeof t?o=e.extend(o,t):"string"==typeof t&&(o[t]=s),o=i(o),a.data("timepicker-settings",o),r&&(r.remove(),a.data("timepicker-list",!1)),o.useSelect&&n(a)})},getSecondsFromMidnight:function(){return b(u(this))},getTime:function(e){var t=this,i=u(t);if(!i)return null;var n=b(i);if(null===n)return null;e||(e=new Date);var s=new Date(e);return s.setHours(n/3600),s.setMinutes(n%3600/60),s.setSeconds(n%60),s.setMilliseconds(0),s},isVisible:function(){var e=this,i=e.data("timepicker-list");return!(!i||!t(i))},setTime:function(e){var t=this,i=t.data("timepicker-settings");if(i.forceRoundTime)var n=a(b(e),i);else var n=y(b(e),i);return e&&null===n&&i.noneOption&&(n=e),h(t,n),t.data("timepicker-list")&&c(t,t.data("timepicker-list")),this},remove:function(){var e=this;if(e.hasClass("ui-timepicker-input")){var t=e.data("timepicker-settings");return e.removeAttr("autocomplete","off"),e.removeClass("ui-timepicker-input"),e.removeData("timepicker-settings"),e.off(".timepicker"),e.data("timepicker-list")&&e.data("timepicker-list").remove(),t.useSelect&&e.show(),e.removeData("timepicker-list"),this}}};e.fn.timepicker=function(t){return this.length?_[t]?this.hasClass("ui-timepicker-input")?_[t].apply(this,Array.prototype.slice.call(arguments,1)):this:"object"!=typeof t&&t?void e.error("Method "+t+" does not exist on jQuery.timepicker"):_.init.apply(this,arguments):this},e.fn.timepicker.defaults={appendTo:"body",className:null,closeOnWindowScroll:!1,disableTextInput:!1,disableTimeRanges:[],disableTouchKeyboard:!1,durationTime:null,forceRoundTime:!1,maxTime:null,minTime:null,noneOption:!1,orientation:"l",roundingFunction:function(e,t){if(null===e)return null;if("number"!=typeof t.step)return e;var i=e%(60*t.step);return i>=30*t.step?e+=60*t.step-i:e-=i,e==w&&t.show2400?e:e%w},scrollDefault:null,selectOnBlur:!1,show2400:!1,showDuration:!1,showOn:["click","focus"],showOnFocus:!0,step:30,stopScrollPropagation:!1,timeFormat:"g:ia",typeaheadHighlight:!0,useSelect:!1,wrapHours:!0}});var datePickerController=function e(){"use strict";function t(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function i(e,t){new RegExp("(^|["+V+"])"+t+"(["+V+"]|$)").test(e.className)||(e.className+=(e.className?" ":"")+t)}function n(e,t){e.className=t?e.className.replace(new RegExp("(^|["+V+"])"+t+"(["+V+"]|$)")," ").replace(new RegExp("/^["+V+"]["+V+"]*/"),"").replace(new RegExp("/["+V+"]["+V+"]*$/"),""):""}function s(e){if("object"==typeof e){var t,i={debug:function(e){return g=!!e,!0},lang:function(e){return"string"==typeof e&&-1!=e.search(/^[a-z]{2,3}(-([a-z]{2}))?$/i)&&(b=[e.toLowerCase()],N=!0,$=!0),!0},nodrag:function(e){return E=!!e,!0},buttontabindex:function(e){return I=!!e,!0},derivelocale:function(e){return $=!!e,!0},mousewheel:function(e){return T=!!e,!0},cellformat:function(e){return"string"==typeof e&&o(e),!0},titleformat:function(e){return"string"==typeof e&&(O=e),!0},statusformat:function(e){return"string"==typeof e&&(L=e),!0},describedby:function(e){return"string"==typeof e&&(y=e),!0},finalopacity:function(e){return"number"==typeof e&&+e>20&&+e<=100&&(A=parseInt(e,10)),!0},bespoketitles:function(e){if("object"==typeof e){k={};for(var t in e)e.hasOwnProperty(t)&&-1!=String(t).match(U)&&(k[t]=String(e[t]))}return!0},dateparsefallback:function(e){return M=!!e,!0},languagefilelocation:function(e){return P=e,!0},_default:function(){if(g)throw"Unknown key located within JSON data: "+t;return!0}};for(t in e)e.hasOwnProperty(t)&&(i.hasOwnProperty(String(t).toLowerCase())&&i[String(t).toLowerCase()]||i._default)(e[t])}}function a(e){if("string"!=typeof e||""==e)return{};try{if("object"==typeof JSON&&JSON.parse)return window.JSON.parse(e);if(/debug|lang|nodrag|buttontabindex|derivelocale|mousewheel|cellformat|titleformat|statusformat|describedby|finalopacity|bespoketitles|dateparsefallback/.test(e.toLowerCase())){return Function(["var document,top,self,window,parent,Number,Date,Object,Function,","Array,String,Math,RegExp,Image,ActiveXObject;","return (",e.replace(/<\!--.+-->/gim,"").replace(/\bfunction\b/g,"function-"),");"].join(""))()}}catch(e){}if(g)throw"Could not parse the JSON object";return{err:1}}function o(e){if(v)return j=["%j"],void(F="%j %F %Y");-1!=e.match(/%([d|j])/)&&(j=K(e,/%([d|j])/),F=e)}function r(e,t){return t=Math.min(4,t||2),"0000".substr(0,t-Math.min(String(e).length,t))+e}function l(e,t,i){e.addEventListener?e.addEventListener(t,i,!0):e.attachEvent&&e.attachEvent("on"+t,i)}function c(e,t,i){try{e.removeEventListener?e.removeEventListener(t,i,!0):e.detachEvent&&e.detachEvent("on"+t,i)}catch(e){}}function d(e){return e=e||document.parentWindow.event,e.stopPropagation&&(e.stopPropagation(),e.preventDefault()),q&&(e.cancelBubble=!0,e.returnValue=!1),!1}function u(e,t){e&&e.tagName&&e.setAttribute("role",t)}function h(e,t,i){e&&e.tagName&&e.setAttribute("aria-"+t,i)}function p(e,t){e.setAttribute(q?"tabIndex":"tabindex",t),e.tabIndex=t}function f(e){return e instanceof Date&&!isNaN(e)?e.getFullYear()+r(e.getMonth()+1)+""+r(e.getDate()):e}function m(e){this.dateSet=null,this.timerSet=!1,this.visible=!1,this.fadeTimer=null,this.timer=null,this.yearInc=0,this.monthInc=0,this.dayInc=0,this.mx=0,this.my=0,this.x=0,this.y=0,this.created=!1,this.disabled=!1,this.opacity=0,this.opacityTo=100,this.finalOpacity=100,this.inUpdate=!1,this.kbEventsAdded=!1,this.fullCreate=!1,this.selectedTD=null,this.cursorTD=null,this.cursorDate=e.cursorDate?e.cursorDate:"",this.date=e.cursorDate?new Date(+e.curs
74orDate.substr(0,4),+e.cursorDate.substr(4,2)-1,+e.cursorDate.substr(6,2),5,0,0):new Date,this.defaults={},this.dynDisabledDates={},this.dateList=[],this.bespokeClass=e.bespokeClass,this.firstDayOfWeek=D.firstDayOfWeek,this.interval=new Date,this.clickActivated=!1,this.showCursor=!1,this.noFocus=!0,this.kbEvent=!1,this.delayedUpdate=!1,this.bespokeTitles={},this.bespokeTabIndex=e.bespokeTabIndex;for(var s in e)e.hasOwnProperty(s)&&-1==String(s).search(/^(callbacks|formElements|enabledDates|disabledDates)$/)&&(this[s]=e[s]);q&&(this.iePopUp=null);for(var a,o=0;a=["callbacks","formElements"][o];o++)if(this[a]={},a in e)for(s in e[a])e[a].hasOwnProperty(s)&&(this[a][s]=e[a][s]);this.date.setHours(5),this.changeHandler=function(){f.disabled||(f.setDateFromInput(),f.callback("dateset",f.createCbArgObj()))},this.createCbArgObj=function(){return this.dateSet?{id:this.id,date:this.dateSet,dd:r(this.date.getDate()),mm:r(this.date.getMonth()+1),yyyy:this.date.getFullYear()}:{id:this.id,date:null,dd:null,mm:null,yyyy:null}},this.getScrollOffsets=function(){return"number"==typeof window.pageYOffset?[window.pageXOffset,window.pageYOffset]:document.body&&(document.body.scrollLeft||document.body.scrollTop)?[document.body.scrollLeft,document.body.scrollTop]:document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)?[document.documentElement.scrollLeft,document.documentElement.scrollTop]:[0,0]},this.getDateExceptions=function(e,t){t=r(t);var i,n,s,a,o,l,c,d,u,h,p,m={},g=f.firstDateShown,v=f.lastDateShown,y=f.dateList.length;for(v&&g||(g=f.firstDateShown=e+r(t)+"01",v=f.lastDateShown=e+r(t)+r(oe(t,e))),o=Number(g.substr(0,6)),l=Number(v.substr(0,6)),n=String(o);+n<=l;){for(s=n.substr(0,4),a=n.substr(4,2),i=0;i<y;i++)if(d=String(f.dateList[i].rLow).replace(/^(\*\*\*\*)/,s).replace(/^(\d\d\d\d)(\*\*)/,"$1"+a),1!=(u=String(f.dateList[i].rHigh).replace(/^(\*\*\*\*)/,s).replace(/^(\d\d\d\d)(\*\*)/,"$1"+a))){if(d<=u&&n>=d.substr(0,6)&&n<=u.substr(0,6))for(h=Math.max(d,Math.max(String(n)+"01",this.firstDateShown)),p=Math.min(u,Math.min(String(n)+"31",this.lastDateShown)),c=h;c<=p;c++)m[c]=f.dateList[i].type}else+d>=+f.firstDateShown&&+d<=+f.lastDateShown&&(m[d]=f.dateList[i].type);n=new Date(s,+a,2),n=n.getFullYear()+""+r(n.getMonth()+1)}return m},this.reposition=function(){if(f.created&&!f.staticPos){f.div.style.visibility="hidden",f.div.style.left=f.div.style.top="0px",f.div.style.display="block";var e=f.div.offsetHeight,t=f.div.offsetWidth,i=document.getElementById("fd-but-"+f.id),n=f.truePosition(i),s=document.compatMode&&"BackCompat"!=document.compatMode?document.documentElement:document.body,a=f.getScrollOffsets(),o=a[1],r=a[0],l=parseInt(n[1]-2)-parseInt(o),c=parseInt(s.clientHeight+o)-parseInt(n[1]+i.offsetHeight+2);f.div.style.visibility="visible",f.div.style.left=Number(parseInt(s.clientWidth+r)<parseInt(t+n[0])?Math.abs(parseInt(s.clientWidth+r-t)):n[0])+"px",f.div.style.top=c>l?Math.abs(parseInt(n[1]+i.offsetHeight+2))+"px":Math.abs(parseInt(n[1]-(e+2)))+"px",6===q&&(f.iePopUp.style.top=f.div.style.top,f.iePopUp.style.left=f.div.style.left,f.iePopUp.style.width=t+"px",f.iePopUp.style.height=e-2+"px")}},this.removeCursorHighlight=function(){var e=document.getElementById(f.id+"-date-picker-hover");e&&n(e,"date-picker-hover")},this.addCursorHighlight=function(){var e=document.getElementById(f.id+"-date-picker-hover");e&&i(e,"date-picker-hover")},this.removeOldFocus=function(){var e=document.getElementById(f.id+"-date-picker-hover");if(e)try{p(e,-1),n(e,"date-picker-hover"),e.id="",e.onblur=null,e.onfocus=null}catch(e){}},this.setNewFocus=function(){var e=document.getElementById(f.id+"-date-picker-hover");if(e)try{p(e,0),this.showCursor&&i(e,"date-picker-hover"),this.clickActivated||(e.onblur=f.onblur,e.onfocus=f.onfocus),v||this.clickActivated||f.addAccessibleDate(),this.noFocus||this.clickActivated||setTimeout(function(){try{e.focus()}catch(e){}},0)}catch(e){}},this.addAccessibleDate=function(){var e=document.getElementById(f.id+"-date-picker-hover");if(e&&!e.getElementsByTagName("span").length){var i,n=e.className.match(/cd-([\d]{4})([\d]{2})([\d]{2})/),s=-1!=e.className.search(R),a=document.createElement("span");a.className="fd-screen-reader",t(e),s&&(i=a.cloneNode(!1),i.appendChild(document.createTextNode(ne(13))),e.appendChild(i));for(var o,r=0;o=j[r];r++)"%j"==o||"%d"==o?e.appendChild(document.createTextNode(ce(new Date(n[1],+n[2]-1,n[3],5,0,0),o,!0))):(i=a.cloneNode(!1),i.appendChild(document.createTextNode(ce(new Date(n[1],+n[2]-1,n[3],5,0,0),o,!0))),e.appendChild(i))}},this.setCursorDate=function(e){-1!=String(e).search(/^([0-9]{8})$/)&&(this.date=new Date(+e.substr(0,4),+e.substr(4,2)-1,+e.substr(6,2),5,0,0),this.cursorDate=e,this.staticPos&&this.updateTable())},this.updateTable=function(e){if(f&&!f.inUpdate&&f.created){if(f.inUpdate=!0,f.removeOldFocus(),f.div.dir=D.rtl?"rtl":"ltr",f.timerSet&&!f.delayedUpdate)if(f.monthInc){var i=f.date.getDate(),n=new Date(f.date);n.setDate(2),n.setMonth(n.getMonth()+1*f.monthInc),n.setDate(Math.min(i,oe(n.getMonth(),n.getFullYear()))),f.date=new Date(n)}else f.date.setDate(Math.min(f.date.getDate()+f.dayInc,oe(f.date.getMonth()+f.monthInc,f.date.getFullYear()+f.yearInc))),f.date.setMonth(f.date.getMonth()+f.monthInc),f.date.setFullYear(f.date.getFullYear()+f.yearInc);f.outOfRange(),f.noToday||f.disableTodayButton(),f.showHideButtons(f.date);var s=f.date.getDate(),a=f.date.getMonth(),o=f.date.getFullYear(),l=String(o)+r(a+1)+r(s),c=new Date(o,a,1,5,0,0);
74c.setHours(5);var d,u,p,m,g,v,y,b,x,_,k,A,C=(c.getDay()+6)%7,S=(C-f.firstDayOfWeek+7)%7-1,I=oe(a,o),T=new Date,T=T.getFullYear()+r(T.getMonth()+1)+r(T.getDate()),$=String(c.getFullYear())+r(c.getMonth()+1),y=[4,4,4,4,4,4],E=new Date(o,a-1,1,5,0,0),P=new Date(o,a+1,1,5,0,0),N=oe(E.getMonth(),E.getFullYear()),M=String(P.getFullYear())+r(P.getMonth()+1),F=String(E.getFullYear())+r(E.getMonth()+1),L=(P.getDay()+6)%7,j=(E.getDay()+6)%7,B=document.createElement("span");B.className="fd-screen-reader",f.firstDateShown=!f.constrainSelection&&f.fillGrid&&0-S<1?String(F)+(N+(0-S)):$+"01",f.lastDateShown=!f.constrainSelection&&f.fillGrid?M+r(41-S-I):$+String(I),f.currentYYYYMM=$,x=f.callback("redraw",{id:f.id,dd:r(s),mm:r(a+1),yyyy:o,firstDateDisplayed:f.firstDateShown,lastDateDisplayed:f.lastDateShown})||{},u=f.getDateExceptions(o,a+1),f.checkSelectedDate(),_=null!=f.dateSet&&f.dateSet.getFullYear()+r(f.dateSet.getMonth()+1)+r(f.dateSet.getDate()),null!=this.selectedTD&&(h(this.selectedTD,"selected",!1),this.selectedTD=null);for(var H=0;H<42;H++)m=Math.floor(H/7),g=f.tds[H],B.cloneNode(!1),t(g),H>S&&H<=S+I||f.fillGrid?(b=$,A=C,d=H-S,p=[],k=!0,d<1?(d=N+d,b=F,A=j,k=!f.constrainSelection,p.push("month-out")):d>I&&(d-=I,b=M,A=L,k=!f.constrainSelection,p.push("month-out")),A=(A+d+6)%7,p.push("day-"+A+" cell-"+H),v=b+String(d<10?"0":"")+d,f.rangeLow&&+v<+f.rangeLow||f.rangeHigh&&+v>+f.rangeHigh?(g.className="out-of-range",g.title="",g.appendChild(document.createTextNode(d)),
75f.showWeeks&&(y[m]=Math.min(y[m],2))):(k?(g.title=O?ce(new Date(+String(b).substr(0,4),+String(b).substr(4,2)-1,+d,5,0,0),O,!0):"",p.push("cd-"+v+" yyyymmdd-"+v+" yyyymm-"+b+" mmdd-"+b.substr(4,2)+r(d))):(g.title=O?ne(13)+" "+ce(new Date(+String(b).substr(0,4),+String(b).substr(4,2)-1,+d,5,0,0),O,!0):"",p.push("yyyymmdd-"+v+" yyyymm-"+b+" mmdd-"+b.substr(4,2)+r(d)+" not-selectable")),v==T&&p.push("date-picker-today"),_==v&&(p.push("date-picker-selected-date"),h(g,"selected","true"),this.selectedTD=g),(v in u&&1==u[v]||f.disabledDays[A]&&!(v in u&&0==u[v]))&&(p.push("day-disabled"),O&&k&&(g.title=ne(13)+" "+g.title)),v in x&&p.push(x[v]),f.highlightDays[A]&&p.push("date-picker-highlight"),l==v&&(g.id=f.id+"-date-picker-hover"),g.appendChild(document.createTextNode(d)),g.className=p.join(" "),f.showWeeks&&(y[m]=Math.min("month-out"==p[0]?3:1,y[m])))):(g.className="date-picker-unused",g.appendChild(document.createTextNode(w)),g.title=""),f.showWeeks&&H-7*m==6&&(t(f.wkThs[m]),f.wkThs[m].appendChild(document.createTextNode(4!=y[m]||f.fillGrid?le(o,a,H-S-6):w)),f.wkThs[m].className="date-picker-week-header"+["",""," out-of-range"," month-out",""][y[m]]);var W=f.titleBar.getElementsByTagName("span");t(W[0]),t(W[1]),W[0].appendChild(document.createTextNode(ae(a,!1)+w)),W[1].appendChild(document.createTextNode(o)),f.timerSet&&(f.timerInc=50+Math.round((f.timerInc-50)/1.8),f.timer=window.setTimeout(f.updateTable,f.timerInc)),f.inUpdate=f.delayedUpdate=!1,f.setNewFocus()}},this.destroy=function(){if(document.getElementById("fd-but-"+this.id)&&document.getElementById("fd-but-"+this.id).parentNode.removeChild(document.getElementById("fd-but-"+this.id)),this.created){if(c(this.table,"mousedown",f.onmousedown),c(this.table,"mouseover",f.onmouseover),c(this.table,"mouseout",f.onmouseout),c(document,"mousedown",f.onmousedown),c(document,"mouseup",f.clearTimer),window.addEventListener&&!window.devicePixelRatio)try{window.removeEventListener("DOMMouseScroll",this.onmousewheel,!1)}catch(e){}else c(document,"mousewheel",this.onmousewheel),c(window,"mousewheel",this.onmousewheel);if(f.removeOnFocusEvents(),clearTimeout(f.fadeTimer),clearTimeout(f.timer),6===q&&!f.staticPos)try{f.iePopUp.parentNode.removeChild(f.iePopUp),f.iePopUp=null}catch(e){}this.div&&this.div.parentNode&&this.div.parentNode.removeChild(this.div),f=null}},this.resizeInlineDiv=function(){f.div.style.width=f.table.offsetWidth+"px",f.div.style.height=f.table.offsetHeight+"px"},this.reset=function(){var e,t;for(e in f.formElements)(t=document.getElementById(e))&&("select"==t.tagName.toLowerCase()?t.selectedIndex=f.defaultVals[e]:t.value=f.defaultVals[e]);f.changeHandler()},this.create=function(){function e(e){var t=document.createElement("th");return e.thClassName&&(t.className=e.thClassName),e.colspan&&t.setAttribute(q?"colSpan":"colspan",e.colspan),t.unselectable="on",t}function t(t,i){for(var n,s=0;n=i[s];s++){var a=e(n);t.appendChild(a);var o=document.createElement("span");o.className=n.className,o.id=f.id+n.id,o.appendChild(document.createTextNode(n.text||f.nbsp)),o.title=n.title||"",o.unselectable="on",a.appendChild(o)}}
75if(!document.getElementById("fd-"+this.id)){var i,n,s,a,o,r;this.noFocus=!0,this.div=document.createElement("div"),this.div.id="fd-"+this.id,this.div.className="date-picker"+(C?" fd-dp-fade ":"")+this.bespokeClass,this.div.style.visibility="hidden",this.div.style.display="none",this.describedBy&&document.getElementById(this.describedBy)&&h(this.div,"describedby",this.describedBy),this.labelledBy&&h(this.div,"labelledby",this.labelledBy.id),this.idiv=document.createElement("div"),this.table=document.createElement("table"),this.table.className="date-picker-table",this.table.onmouseover=this.onmouseover,this.table.onmouseout=this.onmouseout,this.table.onclick=this.onclick,this.finalOpacity<100&&(this.idiv.style.opacity=Math.min(Math.max(parseInt(this.finalOpacity,10)/100,.2),1)),this.staticPos&&(this.table.onmousedown=this.onmousedown),this.div.appendChild(this.idiv),this.idiv.appendChild(this.table);var l=this.dragDisabled?"":" drag-enabled";if(this.staticPos){var c=document.getElementById(this.positioned?this.positioned:this.id);if(!c){if(this.div=null,g)throw this.positioned?"Could not locate a datePickers associated parent element with an id:"+this.positioned:"Could not locate a datePickers associated input with an id:"+this.id;return}if(this.div.className+=" static-datepicker",this.positioned?c.appendChild(this.div):c.parentNode.insertBefore(this.div,c.nextSibling),this.hideInput)for(var d in this.formElements)(c=document.getElementById(d))&&(c.className+=" fd-hidden-input");setTimeout(this.resizeInlineDiv,300)}else this.div.style.visibility="hidden",this.div.className+=l,document.getElementsByTagName("body")[0].appendChild(this.div),6===q&&(this.iePopUp=document.createElement("iframe"),this.iePopUp.src="javascript:'<html></html>';",this.iePopUp.setAttribute("className","iehack"),this.iePopUp.setAttribute("tabIndex",-1),u(this.iePopUp,"presentation"),h(this.iePopUp,"hidden","true"),this.iePopUp.scrolling="no",this.iePopUp.frameBorder="0",this.iePopUp.name=this.iePopUp.id=this.id+"-iePopUpHack",document.body.appendChild(this.iePopUp)),h(this.div,"hidden","true");u(this.div,"application"),this.statusFormat&&(r=document.createElement("tfoot"),this.table.appendChild(r),i=document.createElement("tr"),i.className="date-picker-tfoot",r.appendChild(i),this.statusBar=e({thClassName:"date-picker-statusbar"+l,colspan:this.showWeeks?8:7}),i.appendChild(this.statusBar),this.updateStatus()),a=document.createElement("thead"),a.className="date-picker-thead",this.table.appendChild(a),i=document.createElement("tr"),u(i,"presentation"),a.appendChild(i),this.titleBar=e({thClassName:"date-picker-title"+l,colspan:this.showWeeks?8:7}),i.appendChild(this.titleBar),i=null;var p=document.createElement("span");p.appendChild(document.createTextNode(w)),p.className="month-display"+l,this.titleBar.appendChild(p),p=document.createElement("span"),p.appendChild(document.createTextNode(w)),p.className="year-display"+l,this.titleBar.appendChild(p),p=null,i=document.createElement("tr"),u(i,"presentation"),a.appendChild(i),t(i,[{className:"prev-but prev-year",id:"-prev-year-but",text:"«",title:ne(2)},{className:"prev-but prev-month",id:"-prev-month-but",text:"‹",title:ne(0)},{colspan:this.showWeeks?4:3,className:"today-but",id:"-today-but",text:ne(4)},{className:"next-but next-month",id:"-next-month-but",text:"›",title:ne(1)},{className:"next-but next-year",id:"-next-year-but",text:"»",title:ne(3)}]),o=document.createElement("tbody"),this.table.appendChild(o);for(var m,v=this.showWeeks?8:7,y=this.showWeeks?0:-1,b=0;b<7;b++){n=document.createElement("tr"),0!=b?(u(n,"row"),o.appendChild(n)):a.appendChild(n);for(var x=0;x<v;x++)0===b||this.showWeeks&&0===x?s=document.createElement("th"):(s=document.createElement("td"),h(s,"describedby",this.id+"-col-"+x+(this.showWeeks?" "+this.id+"-row-"+b:"")),h(s,"selected","false")),q&&(s.unselectable="on"),n.appendChild(s),this.showWeeks&&x>0&&b>0||!this.showWeeks&&b>0||(0===b&&x>y?(s.className="date-picker-day-header",s.scope="col",s.id=this.id+"-col-"+x):(s.className="date-picker-week-header",s.scope="row",s.id=this.id+"-row-"+b))}s=n=null,this.ths=this.table.getElementsByTagName("thead")[0].getElementsByTagName("tr")[2].getElementsByTagName("th");for(var _=0;_<v;_++)0==_&&this.showWeeks?(this.ths[_].appendChild(document.createTextNode(ne(6))),this.ths[_].title=ne(8)):_>(this.showWeeks?0:-1)&&(m=document.createElement("span"),m.className="fd-day-header",q&&(m.unselectable="on"),this.ths[_].appendChild(m));m=null,this.trs=this.table.getElementsByTagName("tbody")[0].getElementsByTagName("tr"),this.tds=this.table.getElementsByTagName("tbody")[0].getElementsByTagName("td"),this.butPrevYear=document.getElementById(this.id+"-prev-year-but"),this.butPrevMonth=document.getElementById(this.id+"-prev-month-but"),this.butToday=document.getElementById(this.id+"-today-but"),this.butNextYear=document.getElementById(this.id+"-next-year-but"),this.butNextMonth=document.getElementById(this.id+"-next-month-but"),this.noToday&&(this.butToday.style.display="none"),this.showWeeks&&(this.wkThs=this.table.getElementsByTagName("tbody")[0].getElementsByTagName("th"),this.div.className+=" weeks-displayed"),o=a=i=t=e=null,this.updateTableHeaders(),this.created=!0,this.updateTable(),this.staticPos?(this.visible=!0,this.opacity=100,this.div.style.visibility="visible",this.div.style.display="block",this.noFocus=!0,this.fade()):(this.reposition(),this.div.style.visibility="visible",this.fade(),this.noFocus=!0),this.callback("domcreate",{id:this.id})}},this.transEnd=function(){f.div.style.display="none",f.div.style.visibility="hidden",h(f.div,"hidden","true")},this.fade=function(){if(window.clearTimeout(f.fadeTimer),f.fadeTimer=null,C)return f.opacity=f.opacityTo,void(0==f.opacityTo?(f.visible=!1,l(f.div,S,f.transEnd),i(f.div,"fd-dp-fade")):(c(f.div,S,f.transEnd),f.visible=!0,f.div.style.display="block",f.div.style.visibility="visible",h(f.div,"hidden","false"),n(f.div,"fd-dp-fade")));var e=Math.round(f.opacity+(f.opacityTo-f.opacity)/4);f.setOpacity(e),Math.abs(f.opacityTo-e)>3&&!f.noFadeEffect?f.fadeTimer=window.setTimeout(f.fade,50):(f.setOpacity(f.opacityTo),0==f.opacityTo?(f.div.style.display="none",f.div.style.visibility="hidden",h(f.div,"hidden","true"),f.visible=!1):(h(f.div,"hidden","false"),f.visible=!0))},this.trackDrag=function(e){e=e||window.event;var t=(e.pageX?e.pageX:e.clientX?e.clientX:e.x)-f.mx,i=(e.pageY?e.pageY:e.clientY?e.clientY:e.Y)-f.my;f.div.style.left=Math.round(f.x+t)>0?Math.round(f.x+t)+"px":"0px",f.div.style.top=Math.round(f.y+i)>0?Math.round(f.y+i)+"px":"0px",6!==q||f.staticPos||(f.iePopUp.style.top=f.div.style.top,f.iePopUp.style.left=f.div.style.left)},this.stopDrag=function(e){n(document.getElementsByTagName("body")[0],"fd-drag-active"),c(document,"mousemove",f.trackDrag,!1),c(document,"mouseup",f.stopDrag,!1),f.div.style.zIndex=9999},this.onmousedown=function(e){e=e||document.parentWindow.event;var t=null!=e.target?e.target:e.srcElement,n=t,s=!0,a=new RegExp("^fd-(but-)?"+f.id+"$");for(f.mouseDownElem=null;t;){if(t.id&&t.id.length&&-1!=t.id.search(a)){s=!1;break}try{t=t.parentNode}catch(e){break}}if(s)return J(),!0;if(-1!=(f.div.className+n.className).search("fd-disabled"))return!0;
75if(-1!=n.id.search(new RegExp("^"+f.id+"(-prev-year-but|-prev-month-but|-next-month-but|-next-year-but)$"))){f.mouseDownElem=n,l(document,"mouseup",f.clearTimer),l(n,"mouseout",f.clearTimer);var o={"-prev-year-but":[0,-1,0],"-prev-month-but":[0,0,-1],"-next-year-but":[0,1,0],"-next-month-but":[0,0,1]},c=n.id.replace(f.id,""),u=Number(f.date.getFullYear()+r(f.date.getMonth()+1));return f.timerInc=800,f.timerSet=!0,f.dayInc=o[c][0],f.yearInc=o[c][1],f.monthInc=o[c][2],f.accellerator=1,f.currentYYYYMM!=u&&(f.currentYYYYMM<u&&(-1==f.yearInc||-1==f.monthInc)||f.currentYYYYMM>u&&(1==f.yearInc||1==f.monthInc)?(f.delayedUpdate=!1,f.timerInc=1200):f.delayedUpdate=!0),f.updateTable(),d(e)}return-1==t.className.search("drag-enabled")||(f.mx=e.pageX?e.pageX:e.clientX?e.clientX:e.x,f.my=e.pageY?e.pageY:e.clientY?e.clientY:e.Y,f.x=parseInt(f.div.style.left,10),f.y=parseInt(f.div.style.top,10),l(document,"mousemove",f.trackDrag,!1),l(document,"mouseup",f.stopDrag,!1),i(document.getElementsByTagName("body")[0],"fd-drag-active"),f.div.style.zIndex=1e4,d(e))},this.onclick=function(e){if(!C&&f.opacity!=f.opacityTo||f.disabled)return d(e);e=e||document.parentWindow.event;for(var t=null!=e.target?e.target:e.srcElement;t.parentNode;){if(t.tagName&&"td"==t.tagName.toLowerCase()){if(-1==t.className.search(/cd-([0-9]{8})/)||-1!=t.className.search(R))return d(e);var i=t.className.match(/cd-([0-9]{8})/)[1];f.date=new Date(i.substr(0,4),i.substr(4,2)-1,i.substr(6,2),5,0,0),f.dateSet=new Date(f.date),f.noFocus=!0,f.callback("dateset",{id:f.id,date:f.dateSet,dd:f.dateSet.getDate(),mm:f.dateSet.getMonth()+1,yyyy:f.dateSet.getFullYear()}),f.returnFormattedDate(),f.hide(),f.stopTimer();break}if(t.id&&t.id==f.id+"-today-but"){f.date=new Date,f.updateTable(),f.stopTimer();break}if(-1!=t.className.search(/date-picker-day-header/)){for(var n=f.showWeeks?-1:0,s=t;s.previousSibling;)s=s.previousSibling,s.tagName&&"th"==s.tagName.toLowerCase()&&n++;f.firstDayOfWeek=(f.firstDayOfWeek+n)%7,f.updateTableHeaders();break}try{t=t.parentNode}catch(e){break}}return d(e)},this.show=function(e){if(!this.staticPos){var t,n;for(n in this.formElements)if(!(t=document.getElementById(this.id))||t&&t.disabled)return;this.noFocus=!0,this.created&&document.getElementById("fd-"+this.id)?(this.setDateFromInput(),this.reposition()):(this.created=!1,this.fullCreate=!1,this.create(),this.fullCreate=!0),this.noFocus=!e,this.noFocus?(this.clickActivated=!0,this.showCursor=!1,l(document,"mousedown",this.onmousedown),T&&(window.addEventListener&&!window.devicePixelRatio?window.addEventListener("DOMMouseScroll",this.onmousewheel,!1):(l(document,"mousewheel",this.onmousewheel),l(window,"mousewheel",this.onmousewheel)))):(this.clickActivated=!1,this.showCursor=!0),this.opacityTo=100,this.div.style.display="block",6===q&&(this.iePopUp.style.width=this.div.offsetWidth+"px",this.iePopUp.style.height=this.div.offsetHeight+"px",this.iePopUp.style.display="block"),this.setNewFocus(),this.fade();var s=document.getElementById("fd-but-"+this.id);s&&i(s,"date-picker-button-active")}},this.hide=function(){if(this.visible&&this.created&&document.getElementById("fd-"+this.id)&&(this.kbEvent=!1,n(f.div,"date-picker-focus"),this.stopTimer(),this.removeOnFocusEvents(),this.clickActivated=!1,this.noFocus=!0,this.showCursor=!1,this.setNewFocus(),!this.staticPos)){this.statusBar&&this.updateStatus(ne(9));var e=document.getElementById("fd-but-"+this.id);if(e&&n(e,"date-picker-button-active"),c(document,"mousedown",this.onmousedown),T)if(window.addEventListener&&!window.devicePixelRatio)try{window.removeEventListener("DOMMouseScroll",this.onmousewheel,!1)}catch(e){}else c(document,"mousewheel",this.onmousewheel),c(window,"mousewheel",this.onmousewheel);6===q&&(this.iePopUp.style.display="none"),this.opacityTo=0,this.fade()}},this.onblur=function(e){f.removeCursorHighlight(),f.hide()},this.onfocus=function(e){f.noFocus=!1,i(f.div,"date-picker-focus"),f.statusBar&&f.updateStatus(ce(f.date,f.statusFormat,!0)),f.showCursor=!0,f.addCursorHighlight(),f.addOnFocusEvents()},this.onmousewheel=function(e){e=e||document.parentWindow.event;var t=0;e.wheelDelta?(t=e.wheelDelta/120,v&&window.opera.version()<9.2&&(t=-t)):e.detail&&(t=-e.detail/3);var i=f.date.getDate(),n=new Date(f.date),s=t>0?1:-1;return n.setDate(2),n.setMonth(n.getMonth()+1*s),n.setDate(Math.min(i,oe(n.getMonth(),n.getFullYear()))),f.outOfRange(n)?d(e):(f.date=new Date(n),f.updateTable(),f.statusBar&&f.updateStatus(ce(f.date,f.statusFormat,!0)),d(e))},this.onkeydown=function(e){if(f.stopTimer(),!f.visible)return!1;e=e||document.parentWindow.event;var t=e.keyCode?e.keyCode:e.charCode;if(13==t){var i=document.getElementById(f.id+"-date-picker-hover");return i&&-1!=i.className.search(/cd-([0-9]{8})/)&&-1==i.className.search(/out-of-range|day-disabled/)?(f.dateSet=new Date(f.date),f.callback("dateset",f.createCbArgObj()),f.returnFormattedDate(),f.hide(),d(e)):d(e)}if(27==t){if(!f.staticPos){f.hide();var n=document.getElementById("fd-but-"+f.id);return n&&setTimeout(function(){try{n.focus()}catch(e){}},0),d(e)}return!0}if(32==t||0==t)return f.date=new Date,f.updateTable(),d(e);if(9==t)return!!f.staticPos||d(e);if(q){if((new Date).getTime()-f.interval.getTime()<50)return d(e);f.interval=new Date}if(t>49&&t<56||t>97&&t<104)return t>96&&(t-=48),t-=49,f.firstDayOfWeek=(f.firstDayOfWeek+t)%7,f.updateTableHeaders(),d(e);if(t<33||t>40)return!0;var s=new Date(f.date);f.date.getFullYear(),r(f.date.getMonth()+1);if(36==t)s.setDate(1);else if(35==t)s.setDate(oe(s.getMonth(),s.getFullYear()));else if(33==t||34==t){var a=34==t?1:-1;if(e.ctrlKey)s.setFullYear(s.getFullYear()+1*a);else{var o=f.date.getDate();s.setDate(2),s.setMonth(s.getMonth()+1*a),s.setDate(Math.min(o,oe(s.getMonth(),s.getFullYear())))}}else 37==t?s=new Date(f.date.getFullYear(),f.date.getMonth(),f.date.getDate()-1,5,0,0):39==t||34==t?s=new Date(f.date.getFullYear(),f.date.getMonth(),f.date.getDate()+1,5,0,0):38==t?s=new Date(f.date.getFullYear(),f.date.getMonth(),f.date.getDate()-7,5,0,0):40==t&&(s=new Date(f.date.getFullYear(),f.date.getMonth(),f.date.getDate()+7,5,0,0));if(f.outOfRange(s))return d(e);f.date=s,f.statusBar&&f.updateStatus(f.getBespokeTitle(f.date.getFullYear(),f.date.getMonth()+1,f.date.getDate())||ce(f.date,f.statusFormat,!0));var l=String(f.date.getFullYear())+r(f.date.getMonth()+1)+r(f.date.getDate());if(e.ctrlKey||33==t||34==t||l<f.firstDateShown||l>f.lastDateShown)f.updateTable(),q&&(f.interval=new Date);else{f.noToday||f.disableTodayButton(),f.removeOldFocus(),f.showHideButtons(f.date);for(var i,c=0;i=f.tds[c];c++)if(-1!=i.className.search("cd-"+l)){i.id=f.id+"-date-picker-hover",f.setNewFocus();break}}return d(e)},this.onmouseout=function(e){e=e||document.parentWindow.event;for(var t=e.toElement||e.relatedTarget;t&&t!=this;)try{t=t.parentNode}catch(e){t=this}if(t==this)return!1;(f.clickActivated||f.staticPos&&!f.kbEventsAdded)&&(f.showCursor=!1,f.removeCursorHighlight()),f.currentTR&&(f.currentTR.className="",f.currentTR=null),f.statusBar&&f.updateStatus(f.dateSet?f.getBespokeTitle(f.dateSet.getFullYear(),f.dateSet.getMonth()+1,f.dateSet.getDate())||ce(f.dateSet,f.statusFormat,!0):ne(9))},this.onmouseover=function(e){e=e||document.parentWindow.event;for(var t=null!=e.target?e.target:e.srcElement;1!=t.nodeType;)t=t.parentNode;if(t&&t.tagName){f.noFocus=!0;var i=ne(9);switch((f.clickActivated||f.staticPos&&!f.kbEventsAdded)&&(f.showCursor=!1),t.tagName.toLowerCase()){case"td":if(-1!=t.className.search(/date-picker-unused|out-of-range/)&&(i=ne(9)),-1!=t.className.search(/cd-([0-9]{8})/)){f.showCursor=!0,f.stopTimer();var n=t.className.match(/cd-([0-9]{8})/)[1];f.removeOldFocus(),t.id=f.id+"-date-picker-hover",f.setNewFocus(),f.date=new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2),5,0,0),f.noToday||f.disableTodayButton(),i=f.getBespokeTitle(+n.substr(0,4),+n.substr(4,2),+n.substr(6,2))||ce(f.date,f.statusFormat,!0)}break;case"th":if(!f.statusBar)break;
75if(-1!=t.className.search(/drag-enabled/))i=ne(10);else if(-1!=t.className.search(/date-picker-week-header/)){var s=t.firstChild?t.firstChild.nodeValue:"";i=-1!=s.search(/^(\d+)$/)?ne(7,[s,s<3&&11==f.date.getMonth()?re(f.date.getFullYear())+1:re(f.date.getFullYear())]):ne(9)}break;case"span":if(!f.statusBar)break;if(-1!=t.className.search(/day-([0-6])/)){var a=t.className.match(/day-([0-6])/)[1];i=ne(11,[se(a,!1)])}else-1!=t.className.search(/(drag-enabled|today-but|prev-(year|month)|next-(year|month))/)&&-1==t.className.search(/disabled/)&&(i=ne({"drag-enabled":10,"prev-year":2,"prev-month":0,"next-year":3,"next-month":1,"today-but":12}[t.className.match(/(drag-enabled|today-but|prev-(year|month)|next-(year|month))/)[0]]));break;default:i=""}for(;t.parentNode;)if(t=t.parentNode,1==t.nodeType&&"tr"==t.tagName.toLowerCase()){if(f.currentTR){if(t==f.currentTR)break;f.currentTR.className=""}t.className="dp-row-highlight",f.currentTR=t;break}f.statusBar&&i&&f.updateStatus(i),f.showCursor||f.removeCursorHighlight()}},this.clearTimer=function(){f.stopTimer(),f.timerInc=800,f.yearInc=0,f.monthInc=0,f.dayInc=0,c(document,"mouseup",f.clearTimer),null!=f.mouseDownElem&&c(f.mouseDownElem,"mouseout",f.clearTimer),f.mouseDownElem=null};var f=this;this.setDateFromInput(),this.staticPos?this.create():this.createButton(),function(){var e,t,i=0;for(e in f.formElements)t=document.getElementById(e),t&&t.tagName&&-1!=t.tagName.search(/select|input/i)&&(l(t,"change",f.changeHandler),0==i&&t.form&&l(t.form,"reset",f.reset),i++),t&&1!=t.disabled||f.disableDatePicker()}(),this.fullCreate=!0}var g=!1,v="[object Opera]"===Object.prototype.toString.call(window.opera),y="",b=function(){var e=document.getElementsByTagName("html")[0].getAttribute("lang")||document.getElementsByTagName("html")[0].getAttribute("xml:lang");return e=e?e.toLowerCase():"en",-1!=e.search(/^([a-z]{2,3})-([a-z]{2})$/)?[e.match(/^([a-z]{2,3})-([a-z]{2})$/)[1],e]:[e]}(),w=String.fromCharCode(160),x={},_={},k={},A=100,C=null,S="",I=!0,T=!0,$=!0,D=!1,E=!1,P=!1,N=!1,M=!0,F="%d %F %Y",O="%F %d, %Y",L="",j=v?["%j"]:["%j"," %F %Y"],B=/%([d|j])/,H=/%([M|F|m|n])/,W=/%[y|Y]/,R=/date-picker-unused|out-of-range|day-disabled|not-selectable/,z=/%([d|j|M|F|m|n|Y|y])/,Y=/%([d|D|l|j|N|w|S|W|M|F|m|n|t|Y|y])/,Q=/^((\d\d\d\d)(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01]))$/,U=/^(((\d\d\d\d)|(\*\*\*\*))((0[1-9]|1[012])|(\*\*))(0[1-9]|[12][0-9]|3[01]))$/,V="\t\n\v\f\r   ᠎              \u2028\u2029",q=function(){for(var e=3,t=document.createElement("div"),i=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",i[0];);return e>4?e:void 0}();!function(){var e=document.getElementsByTagName("script"),t=a(String(e[e.length-1].innerHTML).replace(/[\n\r\s\t]+/g," ").replace(/^\s+/,"").replace(/\s+$/,""));if("object"!=typeof t||"err"in t||s(t),$&&"object"!=typeof fdLocale){var i,n,o=document.getElementsByTagName("head")[0]||document.documentElement,r=P||e[e.length-1].src.substr(0,e[e.length-1].src.lastIndexOf("/"))+"/lang/";for(n=0;n<b.length;n++)if(i=document.createElement("script"),i.type="text/javascript",i.src=r+b[n]+".js",i.charSet="utf-8",q&&q<8){var l=document.getElementsByTagName("base");l.length&&l[0].childNodes.length?l[0].appendChild(i):o.appendChild(i),l=null}else o.appendChild(i);i=null}else N=!0}();var K=function(e,t,i){if("[object RegExp]"!==Object.prototype.toString.call(t))return K._nativeSplit.call(e,t,i);var n,s,a,o,r=[],l=0,t=RegExp(t.source,"g");if(e+="",K._compliantExecNpcg||(n=RegExp("^"+t.source+"$(?!\\s)","")),void 0===i||+i<0)i=1/0;else if(!(i=Math.floor(+i)))return[];for(;(s=t.exec(e))&&!((a=s.index+s[0].length)>l&&(r.push(e.slice(l,s.index)),!K._compliantExecNpcg&&s.length>1&&s[0].replace(n,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(s[e]=void 0)}),s.length>1&&s.index<e.length&&Array.prototype.push.apply(r,s.slice(1)),o=s[0].length,l=a,r.length>=i));)t.lastIndex===s.index&&t.lastIndex++;return l===e.length?!o&&t.test("")||r.push(""):r.push(e.slice(l)),r.length>i?r.slice(0,i):r};K._compliantExecNpcg=void 0===/()??/.exec("")[1],K._nativeSplit=String.prototype.split,m.prototype.addButtonEvents=function(e){function t(e){e=e||window.event;
75var t=this.id.replace("fd-but-",""),s=ge(t),a=!1;if(x[t].kbEvent)return void(x[t].kbEvent=!1);if("keydown"==e.type){if(13!=(null!=e.keyCode?e.keyCode:e.charCode))return!0;if(x[t].kbEvent=!0,s)return n(this,"date-picker-button-active"),J(),d(e);a=!0}else x[t].kbEvent=!1;return s?(n(this,"date-picker-button-active"),J()):(i(this,"date-picker-button-active"),J(t),ee(t,a)),d(e)}e.onclick=t,e.onkeydown=t,I?p(e,this.bespokeTabIndex):p(e,-1)},m.prototype.createButton=function(){if(!this.staticPos&&!document.getElementById("fd-but-"+this.id)){var e=document.getElementById(this.id),t=document.createElement("span"),i=document.createElement("a");i.href="#"+this.id,i.className="date-picker-control",i.title=ne(5),i.id="fd-but-"+this.id,t.appendChild(document.createTextNode(w)),i.appendChild(t),t=document.createElement("span"),t.className="fd-screen-reader",t.appendChild(document.createTextNode(i.title)),i.appendChild(t),u(i,"button"),h(i,"haspopup",!0),this.positioned&&document.getElementById(this.positioned)?document.getElementById(this.positioned).appendChild(i):e.parentNode.insertBefore(i,e.nextSibling),this.addButtonEvents(i),i=null,this.callback("dombuttoncreate",{id:this.id})}},m.prototype.setBespokeTitles=function(e){this.bespokeTitles={},this.addBespokeTitles(e)},m.prototype.addBespokeTitles=function(e){for(var t in e)e.hasOwnProperty(t)&&(this.bespokeTitles[t]=e[t])},m.prototype.getBespokeTitle=function(e,t,i){var n,s=e+String(r(t))+r(i);for(n in this.bespokeTitles)if(this.bespokeTitles.hasOwnProperty(n)&&String(n).replace(/^(\*\*\*\*)/,e).replace(/^(\d\d\d\d)(\*\*)/,"$1"+r(t))==s)return this.bespokeTitles[n];for(n in k)if(k.hasOwnProperty(n)&&String(n).replace(/^(\*\*\*\*)/,e).replace(/^(\d\d\d\d)(\*\*)/,"$1"+r(t))==s)return k[n];return!1},m.prototype.returnSelectedDate=function(){return this.dateSet},m.prototype.setRangeLow=function(e){if(-1==String(e).search(Q)){if(g)throw"Invalid value passed to setRangeLow method: "+e;return!1}this.rangeLow=e,this.inUpdate||this.setDateFromInput()},m.prototype.setRangeHigh=function(e){if(-1==String(e).search(Q)){if(g)throw"Invalid value passed to setRangeHigh method: "+e;return!1}this.rangeHigh=e,this.inUpdate||this.setDateFromInput()},m.prototype.setDisabledDays=function(e){if(!e.length||-1==e.join("").search(/^([0|1]{7})$/)){if(g)throw"Invalid values located when attempting to call setDisabledDays";return!1}this.disabledDays=e,this.inUpdate||this.setDateFromInput()},m.prototype.setDisabledDates=function(e){this.filterDateList(e,!0)},m.prototype.setEnabledDates=function(e){this.filterDateList(e,!1)},m.prototype.addDisabledDates=function(e){this.addDatesToList(e,!0)},m.prototype.addEnabledDates=function(e){this.addDatesToList(e,!1)},m.prototype.filterDateList=function(e,t){for(var i=[],n=0;n<this.dateList.length;n++)this.dateList[n].type!=t&&i.push(this.dateList[n]);this.dateList=i.concat(),this.addDatesToList(e,t)},m.prototype.addDatesToList=function(e,t){var i;for(i in e)if(-1!=String(i).search(U)&&(1==e[i]||-1!=String(e[i]).search(U))){if(1!=e[i]&&Number(String(i).replace(/^\*\*\*\*/,2010).replace(/^(\d\d\d\d)(\*\*)/,"$122"))>Number(String(e[i]).replace(/^\*\*\*\*/,2010).replace(/^(\d\d\d\d)(\*\*)/,"$122")))continue;this.dateList.push({type:!!t,rLow:i,rHigh:e[i]})}this.inUpdate||this.setDateFromInput()},m.prototype.setSelectedDate=function(e){if(-1==String(e).search(U))return!1;var t=e.match(Q),i=new Date(+t[2],+t[3]-1,+t[4],5,0,0);if(!i||isNaN(i)||!this.canDateBeSelected(i))return!1;this.dateSet=new Date(i),this.inUpdate||this.updateTable(),this.callback("dateset",this.createCbArgObj()),this.returnFormattedDate()},m.prototype.checkSelectedDate=function(){this.dateSet&&!this.canDateBeSelected(this.dateSet)&&(this.dateSet=null),this.inUpdate||this.updateTable()},m.prototype.addOnFocusEvents=function(){this.kbEventsAdded||this.noFocus||(l(document,"keypress",this.onkeydown),l(document,"mousedown",this.onmousedown),q&&(c(document,"keypress",this.onkeydown),l(document,"keydown",this.onkeydown)),window.devicePixelRatio&&(c(document,"keypress",this.onkeydown),l(document,"keydown",this.onkeydown)),this.noFocus=!1,this.kbEventsAdded=!0)},m.prototype.removeOnFocusEvents=function(){this.kbEventsAdded&&(c(document,"keypress",this.onkeydown),c(document,"keydown",this.onkeydown),c(document,"mousedown",this.onmousedown),this.kbEventsAdded=!1)},m.prototype.stopTimer=function(){this.timerSet=!1,window.clearTimeout(this.timer)},m.prototype.setOpacity=function(e){this.div.style.opacity=e/100,this.div.style.filter="alpha(opacity="+e+")",this.opacity=e},m.prototype.truePosition=function(e){var t=this.cumulativeOffset(e);if(v)return t;var i=document.compatMode&&"BackCompat"!=document.compatMode?document.documentElement:document.body,n=document.all?i.scrollLeft:window.pageXOffset,s=document.all?i.scrollTop:window.pageYOffset,a=this.realOffset(e);return[t[0]-a[0]+n,t[1]-a[1]+s]},m.prototype.realOffset=function(e){var t=0,i=0;do{t+=e.scrollTop||0,i+=e.scrollLeft||0,e=e.parentNode}while(e);return[i,t]},m.prototype.cumulativeOffset=function(e){var t=0,i=0;do{t+=e.offsetTop||0,i+=e.offsetLeft||0,e=e.offsetParent}while(e);return[i,t]},m.prototype.outOfRange=function(e){if(!this.rangeLow&&!this.rangeHigh)return!1;var t=!1;e||(t=!0,e=this.date);var i=r(e.getDate()),n=r(e.getMonth()+1),s=e.getFullYear(),a=String(s)+String(n)+String(i);if(this.rangeLow&&+a<+this.rangeLow)return!t||(this.date=new Date(this.rangeLow.substr(0,4),this.rangeLow.substr(4,2)-1,this.rangeLow.substr(6,2),5,0,0),!1);if(this.rangeHigh&&+a>
75+this.rangeHigh){if(!t)return!0;this.date=new Date(this.rangeHigh.substr(0,4),this.rangeHigh.substr(4,2)-1,this.rangeHigh.substr(6,2),5,0,0)}return!1},m.prototype.canDateBeSelected=function(e){if(!e||isNaN(e))return!1;var t=r(e.getDate()),i=r(e.getMonth()+1),n=e.getFullYear(),s=n+""+i+t,a=this.getDateExceptions(n,i),o=0==e.getDay()?7:e.getDay();return!(this.rangeLow&&+s<+this.rangeLow||this.rangeHigh&&+s>+this.rangeHigh||s in a&&1==a[s]||this.disabledDays[o-1]&&(!(s in a)||s in a&&1==a[s]))},m.prototype.updateStatus=function(e){if(t(this.statusBar),e&&-1!=this.statusFormat.search(/%S/)&&-1!=e.search(/([0-9]{1,2})(st|nd|rd|th)/)){e=K(e.replace(/([0-9]{1,2})(st|nd|rd|th)/,"$1<sup>$2</sup>"),/<sup>|<\/sup>/);for(var i,n=document.createDocumentFragment(),s=0;i=e[s];s++)if(/^(st|nd|rd|th)$/.test(i)){var a=document.createElement("sup");a.appendChild(document.createTextNode(i)),n.appendChild(a)}else n.appendChild(document.createTextNode(i));this.statusBar.appendChild(n)}else this.statusBar.appendChild(document.createTextNode(e||ne(9)))},m.prototype.setDateFromInput=function(){var e,t,s,a,o,r,l,c,d,u,h,p=(this.dateSet,!1),f=!this.staticPos&&document.getElementById("fd-but-"+this.id),m=D.imported?[].concat(G.fullMonths).concat(G.monthAbbrs):[],g=D.imported?[].concat(D.fullMonths).concat(D.monthAbbrs):[],v=/(3[01]|[12][0-9]|0?[1-9])(st|nd|rd|th)/i,y=0,b=!1;this.dateSet=null;for(s in this.formElements){if(!(a=document.getElementById(s)))return!1;if(y++,c=String(a.value))for(o=this.formElements[s],e=[o],b=!1,d=-1!=o.search(B),u=-1!=o.search(H),h=-1!=o.search(W),d&&u&&h||(!h||u||d?!u||h||d?!d||h||u||(e=e.concat(["%d%","%j"])):e=e.concat(["%M","%F","%m","%n"]):e=e.concat(["%Y","%y"])),t=0;t<e.length&&(b=de(c,e[t]),b&&(!r&&d&&b.d&&(r=b.d),!1===p&&u&&b.m&&(p=b.m),!l&&h&&b.y&&(l=b.y)),!(d&&r||!d)||(!u||!1!=!p)&&u||!(h&&l||!h));t++);}if(M&&(!r||!1===p||!l)&&d&&u&&h&&1==y&&c){if(D.imported)for(t=0;t<g.length;t++)c=c.replace(new RegExp(g[t],"i"),m[t]);-1!=c.search(v)&&(c=c.replace(v,c.match(v)[1])),b=new Date(c.replace(new RegExp("-","g"),"/")),b&&!isNaN(b)&&(r=b.getDate(),p=b.getMonth()+1,l=b.getFullYear())}if(b=!1,r&&!1!==p&&l&&(+r>oe(+p-1,+l)?(r=oe(+p-1,+l),b=!1):b=new Date(+l,+p-1,+r,5,0,0)),f&&n(f,"date-picker-dateval"),!b||isNaN(b)){var w=new Date(l||(new Date).getFullYear(),!1!==p?p-1:(new Date).getMonth(),1,5,0,0);return this.date=this.cursorDate?new Date(+this.cursorDate.substr(0,4),+this.cursorDate.substr(4,2)-1,+this.cursorDate.substr(6,2),5,0,0):new Date(w.getFullYear(),w.getMonth(),Math.min(+r||(new Date).getDate(),oe(w.getMonth(),w.getFullYear())),5,0,0),this.outOfRange(),void(this.fullCreate&&this.updateTable())}b.setHours(5),this.date=new Date(b),this.outOfRange(),b.getTime()==this.date.getTime()&&this.canDateBeSelected(this.date)&&(this.dateSet=new Date(this.date),f&&i(f,"date-picker-dateval"),this.returnFormattedDate(!0)),this.fullCreate&&this.updateTable()},m.prototype.setSelectIndex=function(e,t){for(var i=e.options.length-1;i>=0;i--)if(e.options[i].value==t)return void(e.selectedIndex=i)},m.prototype.returnFormattedDate=function(e){var t=!this.staticPos&&document.getElementById("fd-but-"+this.id);if(!this.dateSet)return void(t&&n(t,"date-picker-dateval"));var s,a,o,l,c=(r(this.dateSet.getDate()),r(this.dateSet.getMonth()+1),this.dateSet.getFullYear(),!1);e=!!e;for(s in this.formElements){if(!(a=document.getElementById(s)))return;c||(c=a),o=this.formElements[s],l=ce(this.dateSet,o,N),"input"==a.tagName.toLowerCase()?a.value=l:this.setSelectIndex(a,l)}if(this.staticPos?(this.noFocus=!0,this.updateTable(),this.noFocus=!1):t&&i(t,"date-picker-dateval"),this.fullCreate&&c.type&&"hidden"!=c.type&&!e)try{c.focus()}catch(e){}e||this.callback("datereturned",this.createCbArgObj())},m.prototype.disableDatePicker=function(){if(!this.disabled){if(this.staticPos)this.removeOnFocusEvents(),this.removeOldFocus(),this.noFocus=!0,i(this.div,"date-picker-disabled"),
76this.table.onmouseover=this.table.onclick=this.table.onmouseout=this.table.onmousedown=null,c(document,"mousedown",this.onmousedown),c(document,"mouseup",this.clearTimer);else{this.visible&&this.hide();
76var e=document.getElementById("fd-but-"+this.id);e&&(i(e,"date-picker-control-disabled"),h(e,"disabled",!0),e.onkeydown=e.onclick=function(){return!1},p(e,-1),e.title="")}clearTimeout(this.timer),this.disabled=!0}},m.prototype.enableDatePicker=function(){if(this.disabled){if(this.staticPos)this.removeOldFocus(),null!=this.dateSet&&(this.date=this.dateSet),this.noFocus=!0,this.updateTable(),n(this.div,"date-picker-disabled"),this.disabled=!1,this.table.onmouseover=this.onmouseover,this.table.onmouseout=this.onmouseout,this.table.onclick=this.onclick,this.table.onmousedown=this.onmousedown;else{var e=document.getElementById("fd-but-"+this.id);e&&(n(e,"date-picker-control-disabled"),h(e,"disabled",!1),this.addButtonEvents(e),e.title=ne(5))}this.disabled=!1}},m.prototype.disableTodayButton=function(){var e=new Date;n(this.butToday,"fd-disabled"),(this.outOfRange(e)||this.date.getDate()==e.getDate()&&this.date.getMonth()==e.getMonth()&&this.date.getFullYear()==e.getFullYear())&&i(this.butToday,"fd-disabled")},m.prototype.updateTableHeaders=function(){for(var e,s,a=this.showWeeks?8:7,o=this.showWeeks?1:0,r=o;r<a;r++)e=(this.firstDayOfWeek+(r-o))%7,this.ths[r].title=se(e,!1),r>o?(s=this.ths[r].getElementsByTagName("span")[0],t(s),s.appendChild(document.createTextNode(se(e,!0))),s.title=this.ths[r].title,s=null):(t(this.ths[r]),this.ths[r].appendChild(document.createTextNode(se(e,!0)))),n(this.ths[r],"date-picker-highlight"),this.highlightDays[e]&&i(this.ths[r],"date-picker-highlight");this.created&&this.updateTable()},m.prototype.callback=function(e,t){if(!(e&&e in this.callbacks))return!1;var i,n=!1;for(i=0;i<this.callbacks[e].length;i++)n=this.callbacks[e][i](t||this.id);return n},m.prototype.showHideButtons=function(e){if(this.butPrevYear){var t=e.getMonth(),s=e.getFullYear();this.outOfRange(new Date(s-1,t,oe(+t,s-1),5,0,0))?(i(this.butPrevYear,"fd-disabled"),-1==this.yearInc&&this.stopTimer()):n(this.butPrevYear,"fd-disabled"),this.outOfRange(new Date(s,+t-1,oe(+t-1,s),5,0,0))?(i(this.butPrevMonth,"fd-disabled"),-1==this.monthInc&&this.stopTimer()):n(this.butPrevMonth,"fd-disabled"),this.outOfRange(new Date(s+1,+t,1,5,0,0))?(i(this.butNextYear,"fd-disabled"),1==this.yearInc&&this.stopTimer()):n(this.butNextYear,"fd-disabled"),this.outOfRange(new Date(s,+t+1,1,5,0,0))?(i(this.butNextMonth,"fd-disabled"),1==this.monthInc&&this.stopTimer()):n(this.butNextMonth,"fd-disabled")}};var G={fullMonths:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbrs:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fullDays:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],dayAbbrs:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],titles:["Previous month","Next month","Previous year","Next year","Today","Show Calendar","wk","Week [[%0%]] of [[%1%]]","Week","Select a date","Click & Drag to move","Display “[[%0%]]” first","Go to Today’s date","Disabled date :"],rtl:!1,firstDayOfWeek:0,imported:!1},Z=function(){var e,t;for(e in x)for(t in x[e].formElements)if(!document.getElementById(t)){x[e].destroy(),x[e]=null,delete x[e];break}},J=function(e){var t;for(t in x)!x[t].created||e&&e==x[t].id||x[t].hide()},X=function(e){if(e in x){if(!x[e].created||x[e].staticPos)return;x[e].hide()}},ee=function(e,t){return e in x&&(x[e].clickActivated=!t,x[e].show(t),!0)},te=function(t){if(t=t||window.event,!t.persisted){var i;for(i in x)x[i].destroy(),x[i]=null,delete x[i];x=null,c(window,"unload",e.destroy)}},ie=function(e){e&&e in x&&(x[e].destroy(),x[e]=null,delete x[e])},ne=function(e,t){if(t=t||[],D.titles.length>e){var i=D.titles[e];if(t&&t.length)for(var n=0;n<t.length;n++)i=i.replace("[[%"+n+"%]]",t[n]);return i.replace(/[[%(\d)%]]/g,"")}return""},se=function(e,t){var i=D[t?"dayAbbrs":"fullDays"];return i.length&&i.length>e?i[e]:""},ae=function(e,t){var i=D[t?"monthAbbrs":"fullMonths"];return i.length&&i.length>e?i[e]:""},oe=function(e,t){return e=(e+12)%12,0!=t%4||0==t%100&&0!=t%400||1!=e?[31,28,31,30,31,30,31,31,30,31,30,31][e]:29},re=function(e){if(e in _)return _[e];var t=new Date(e,0,4),i=new Date(e,11,28);return t.setDate(t.getDate()-(6+t.getDay())%7),i.setDate(i.getDate()+(7-i.getDay())%7),_[e]=Math.round((i-t)/6048e5),_[e]},le=function(e,t,i){var n,i=new Date(e,t,i,0,0,0),s=i.getDay();return i.setDate(i.getDate()-(s+6)%7+3),n=i.valueOf(),i.setMonth(0),i.setDate(4),Math.round((n-i.valueOf())/6048e5)+1},ce=function(e,t,i){if(!e||isNaN(e))return t;var n,s,a=e.getDate(),o=e.getDay(),l=e.getMonth(),c=e.getFullYear(),d=i?D:G,u=String(t).split(Y),u=K(t,Y),h=[],p={d:r(a),D:d.dayAbbrs[0==o?6:o-1],l:d.fullDays[0==o?6:o-1],j:a,N:0==o?7:o,w:o,W:le(c,l,a),M:d.monthAbbrs[l],F:d.fullMonths[l],m:r(l+1),n:l+1,t:oe(l,c),y:String(c).substr(2,2),Y:c,S:["th","st","nd","rd"][a%10>3?0:(a%100-a%10!=10)*a%10]},f=u.length;for(s=0;s<f;s++)n=u[s],h.push(n in p?p[n]:n);return h.join("")},de=function(e,t){var i,n,s,a=!1,o=!1,r=!1,l=-1!=t.search(B)?1:0,c=-1!=t.search(H)?1:0,d=-1!=t.search(W)?1:0,u=(new Date,K(t,Y)),e=""+e,h=u.length;e:for(i=0;i<h;i++)if(""!==(n=u[i])){if(0==e.length)break;switch(n){case"/":case".":case" ":case"-":case",":case":":e=e.substr(1);break;case"d":if(-1!=e.search(/^(3[01]|[12][0-9]|0[1-9])/)){a=e.substr(0,2),e=e.substr(2);break}return!1;case"j":if(-1!=e.search(/^(3[01]|[12][0-9]|[1-9])/)){a=+e.match(/^(3[01]|[12][0-9]|[1-9])/)[0],e=e.substr(e.match(/^(3[01]|[12][0-9]|[1-9])/)[0].length);break}return!1;
76case"D":case"l":s=G.fullDays.concat(G.dayAbbrs),D.imported&&(s=s.concat(D.fullDays).concat(D.dayAbbrs));for(var p=0;p<s.length;p++)if(new RegExp("^"+s[p],"i").test(e)){e=e.substr(s[p].length);continue e}break;case"N":case"w":-1!=e.search("N"==n?/^([1-7])/:/^([0-6])/)&&(e=e.substr(1));break;case"S":-1!=e.search(/^(st|nd|rd|th)/i)&&(e=e.substr(2));break;case"W":-1!=e.search(/^([1-9]|[1234[0-9]|5[0-3])/)&&(e=e.substr(e.match(/^([1-9]|[1234[0-9]|5[0-3])/)[0].length));break;case"M":case"F":s=G.fullMonths.concat(G.monthAbbrs),D.imported&&(s=s.concat(D.fullMonths).concat(D.monthAbbrs));for(var p=0;p<s.length;p++)if(-1!=e.search(new RegExp("^"+s[p],"i"))){e=e.substr(s[p].length),o=(p+12)%12+1;continue e}return!1;case"m":if(s=/^(1[012]|0[1-9])/,-1!=e.search(s)){o=+e.substr(0,2),e=e.substr(2);break}return!1;case"n":if(s=/^(1[012]|[1-9])/,-1!=e.search(s)){o=+e.match(s)[0],e=e.substr(e.match(s)[0].length);break}return!1;case"t":if(-1!=e.search(/2[89]|3[01]/)){e=e.substr(2);break}return!1;case"Y":if(-1!=e.search(/^(\d{4})/)){r=e.substr(0,4),e=e.substr(4);break}return!1;case"y":if(-1!=e.search(/^(0[0-9]|[1-9][0-9])/)){r=e.substr(0,2),r=+r<50?"20"+String(r):"19"+String(r),e=e.substr(2);break}return!1;default:e=e.substr(n.length)}}return!(l&&!1===a||c&&!1===o||d&&!1===r)&&(!(l&&c&&d&&+a>oe(+o-1,+r))&&{d:!!l&&+a,m:!!c&&+o,y:!!d&&+r})},ue=function(e){var t;if(e.parentNode&&"label"==e.parentNode.tagName.toLowerCase())t=e.parentNode;else for(var i=document.getElementsByTagName("label"),n=0;n<i.length;n++)if(i[n].htmlFor&&i[n].htmlFor==e.id||i[n].getAttribute("for")==e.id){t=i[n];break}return t&&!t.id&&e.id&&(t.id=e.id+"_label"),t},he=function(){"object"==typeof window.fdLocale?D={titles:fdLocale.titles,fullMonths:fdLocale.fullMonths,monthAbbrs:fdLocale.monthAbbrs,fullDays:fdLocale.fullDays,dayAbbrs:fdLocale.dayAbbrs,firstDayOfWeek:"firstDayOfWeek"in fdLocale?fdLocale.firstDayOfWeek:0,rtl:"rtl"in fdLocale&&!!fdLocale.rtl,imported:!0}:D||(D=G)},pe=function(){he();var e;for(e in x)x[e].created&&x[e].updateTable()},fe=function(e){return!(!e||!e.tagName||("input"!=e.tagName.toLowerCase()||"text"!=e.type&&"hidden"!=e.type)&&"select"!=e.tagName.toLowerCase())},me=function(e){if(he(),null===C&&(C=ye()),e.formElements){e.id=e.id&&e.id in e.formElements?e.id:"",e.enabledDates=!1,e.disabledDates=!1;var t,i,n,s,a,o,l,c={d:0,m:0,y:0},d={},u=!1,h=0,p=0;for(s in e.formElements){if(a=document.getElementById(s),!fe(a)){if(g)throw"Element '"+s+"' is of the wrong type or does not exist within the DOM";return!1}if(!e.formElements[s].match(z)){if(g)throw"Element '"+s+"' has a date format that does not contain either a day (d|j), month (m|F|n) or year (y|Y) part: "+e.formElements[s];return!1}if(e.id||(e.id=s),d[s]="select"==a.tagName?a.selectedIndex||0:a.defaultValue,t={value:e.formElements[s]},t.d=-1!=t.value.search(B),t.m=-1!=t.value.search(H),t.y=-1!=t.value.search(W),t.d&&c.d++,t.m&&c.m++,t.y&&c.y++,"select"==a.tagName.toLowerCase()){var v=a.options;if(t.d&&t.m&&t.y){for(u=!1,e.enabledDates={},e.disabledDates={},l=0;l<v.length;l++)(o=de(v[l].value,t.value))&&o.y&&!1!==o.m&&o.d&&(n=o.y+""+r(o.m)+r(o.d),u||(u=n),e.enabledDates[n]=1,(!h||+n<+h)&&(h=n),(!p||+n>+p)&&(p=n));!e.cursorDate&&u&&(e.cursorDate=u),e.disabledDates[h]=p}else if(t.m&&t.y){for(l=0;l<v.length;l++)o=de(v[l].value,t.value),o.y&&!1!==o.m&&(n=o.y+""+r(o.m),(!h||+n<+h)&&(h=n),(!p||+n>+p)&&(p=n));h+="01",p+=""+oe(+p.substr(4,2)-1,+p.substr(0,4))}else if(t.y){for(l=0;l<v.length;l++)o=de(v[l].value,t.value),o.y&&((!h||+o.y<+h)&&(h=o.y),(!p||+o.y>
76+p)&&(p=o.y));h+="0101",p+="1231"}}}if(1!=c.d||1!=c.m||1!=c.y){if(g)throw"Could not find all of the required date parts within the date format for element: "+a.id;return!1}e.rangeLow=f(e.rangeLow||!1),e.rangeHigh=f(e.rangeHigh||!1),e.cursorDate=f(e.cursorDate||!1),h&&(!e.rangeLow||+e.rangeLow<+h)&&(e.rangeLow=h),p&&(!e.rangeHigh||+e.rangeHigh>+p)&&(e.rangeHigh=p),i={formElements:e.formElements,defaultVals:d,id:e.id,staticPos:!(!e.staticPos&&!e.nopopup),positioned:e.positioned&&document.getElementById(e.positioned)?e.positioned:"",rangeLow:e.rangeLow&&-1!=String(e.rangeLow).search(Q)?e.rangeLow:"",rangeHigh:e.rangeHigh&&-1!=String(e.rangeHigh).search(Q)?e.rangeHigh:"",statusFormat:e.statusFormat||L,noFadeEffect:!!e.staticPos||!!e.noFadeEffect,dragDisabled:!(!E&&!e.staticPos)||!!e.dragDisabled,bespokeTabIndex:e.bespokeTabindex&&"number"==typeof e.bespokeTabindex?parseInt(e.bespokeTabindex,10):0,bespokeTitles:e.bespokeTitles||k||{},finalOpacity:e.finalOpacity&&"number"==typeof e.finalOpacity&&e.finalOpacity>20&&e.finalOpacity<=100?parseInt(+e.finalOpacity,10):e.staticPos?100:A,hideInput:!!e.hideInput,noToday:!!e.noTodayButton,showWeeks:!!e.showWeeks,fillGrid:!!e.fillGrid,constrainSelection:!("constrainSelection"in e)||!!e.constrainSelection,cursorDate:e.cursorDate&&-1!=String(e.cursorDate).search(Q)?e.cursorDate:"",labelledBy:ue(a),describedBy:e.describedBy&&document.getElementById(e.describedBy)?e.describedBy:y&&document.getElementById(y)?y:"",callbacks:e.callbackFunctions?e.callbackFunctions:{},highlightDays:e.highlightDays&&e.highlightDays.length&&7==e.highlightDays.length?e.highlightDays:[0,0,0,0,0,1,1],disabledDays:e.disabledDays&&e.disabledDays.length&&7==e.disabledDays.length?e.disabledDays:[0,0,0,0,0,0,0],bespokeClass:e.bespokeClass?" "+e.bespokeClass:""},x[e.id]=new m(i),"disabledDates"in e&&!1!==e.disabledDates&&x[e.id].setDisabledDates(e.disabledDates),"enabledDates"in e&&!1!==e.enabledDates&&x[e.id].setEnabledDates(e.enabledDates),x[e.id].callback("create",x[e.id].createCbArgObj())}else if(g)throw"No form elements stipulated within initialisation parameters"},ge=function(e){return!!(e&&e in x)&&x[e].visible},ve=function(){var e;for(e in x)x.hasOwnProperty(e)&&x[e].changeHandler()},ye=function(){var e,t=["Webkit","Moz","ms","O"],i=document.createElement("div"),n=["WebkitTransition","transition","OTransition","MozTransition","msTransition"];for(e=0;e<n.length;e++)if(n[e]in i.style){S="webkitTransition"==n[e]||"OTransition"==n[e]?n[e]+"End":"transitionend";break}if(!S)return!1;if(i.style.animationName)return!0;for(var s=0;s<t.length;s++)if(void 0!==i.style[t[s]+"AnimationName"])return!0;return!1};return l(window,"unload",te),l(window,"load",function(){setTimeout(ve,0)}),q&&i(document.documentElement,"oldie"),{addEvent:function(e,t,i){return l(e,t,i)},removeEvent:function(e,t,i){return c(e,t,i)},stopEvent:function(e){return d(e)},show:function(e){return ee(e,!1)},hide:function(e){return X(e)},createDatePicker:function(e){me(e)},destroyDatePicker:function(e){ie(e)},cleanUp:function(){Z()},printFormattedDate:function(e,t,i){return ce(e,t,i)},setDateFromInput:function(e){if(!(e&&e in x))return!1;x[e].setDateFromInput()},setRangeLow:function(e,t){if(!(e&&e in x))return!1;x[e].setRangeLow(f(t))},setRangeHigh:function(e,t){if(!(e&&e in x))return!1;x[e].setRangeHigh(f(t))},setBespokeTitles:function(e,t){if(!(e&&e in x))return!1;x[e].setBespokeTitles(t)},addBespokeTitles:function(e,t){if(!(e&&e in x))return!1;x[e].addBespokeTitles(t)},parseDateString:function(e,t){return de(e,t)},setGlobalOptions:function(e){s(e)},setSelectedDate:function(e,t){if(!(e&&e in x))return!1;x[e].setSelectedDate(f(t))},dateValidForSelection:function(e,t){return!!(e&&e in x)&&x[e].canDateBeSelected(t)},addDisabledDates:function(e,t){if(!(e&&e in x))return!1;x[e].addDisabledDates(t)},setDisabledDates:function(e,t){if(!(e&&e in x))return!1;x[e].setDisabledDates(t)},addEnabledDates:function(e,t){if(!(e&&e in x))return!1;x[e].addEnabledDates(t)},setEnabledDates:function(e,t){if(!(e&&e in x))return!1;x[e].setEnabledDates(t)},disable:function(e){if(!(e&&e in x))return!1;x[e].disableDatePicker()},enable:function(e){if(!(e&&e in x))return!1;x[e].enableDatePicker()},setCursorDate:function(e,t){if(!(e&&e in x))return!1;x[e].setCursorDate(f(t))},getSelectedDate:function(e){return!!(e&&e in x)&&x[e].returnSelectedDate(
76)},loadLanguage:function(){pe()},setDebug:function(e){g=!!e},dateToYYYYMMDDStr:function(e){return f(e)}}}();!function(e){var t=function(e){return parseInt(e,10)||0};e.each(["min","max"],function(i,n){e.fn[n+"Size"]=function(e){var i,s;return e?(void 0!==e.width&&this.css(n+"-width",e.width),void 0!==e.height&&this.css(n+"-height",e.height),this):(i=this.css(n+"-width"),s=this.css(n+"-height"),{width:"max"===n&&(void 0===i||"none"===i||-1===t(i))&&Number.MAX_VALUE||t(i),height:"max"===n&&(void 0===s||"none"===s||-1===t(s))&&Number.MAX_VALUE||t(s)})}}),e.fn.isVisible=function(){return this.is(":visible")},e.each(["border","margin","padding"],function(i,n){e.fn[n]=function(e){return e?(void 0!==e.top&&this.css(n+"-top"+("border"===n?"-width":""),e.top),void 0!==e.bottom&&this.css(n+"-bottom"+("border"===n?"-width":""),e.bottom),void 0!==e.left&&this.css(n+"-left"+("border"===n?"-width":""),e.left),void 0!==e.right&&this.css(n+"-right"+("border"===n?"-width":""),e.right),this):{top:t(this.css(n+"-top"+("border"===n?"-width":""))),bottom:t(this.css(n+"-bottom"+("border"===n?"-width":""))),left:t(this.css(n+"-left"+("border"===n?"-width":""))),right:t(this.css(n+"-right"+("border"===n?"-width":"")))}}})}(jQuery),function(e,t,i,n){var s=i("html"),a=i(e),o=i(t),r=i.fancybox=function(){r.open.apply(this,arguments)},l=navigator.userAgent.match(/msie/i),c=null,d=t.createTouch!==n,u=function(e){return e&&e.hasOwnProperty&&e instanceof i},h=function(e){return e&&"string"===i.type(e)},p=function(e){return h(e)&&0<e.indexOf("%")},f=function(e,t){var i=parseInt(e,10)||0;return t&&p(e)&&(i*=r.getViewport()[t]/100),Math.ceil(i)},m=function(e,t){return f(e,t)+"px"};i.extend(r,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!d,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(l?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(e,t){if(e&&(i.isPlainObject(t)||(t={}),!1!==r.close(!0)))return i.isArray(e)||(e=u(e)?i(e).get():[e]),i.each(e,function(s,a){var o,l,c,d,p,f={};"object"===i.type(a)&&(a.nodeType&&(a=i(a)),u(a)?(f={href:a.data("fancybox-href")||a.attr("href"),title:a.data("fancybox-title")||a.attr("title"),isDom:!0,element:a},i.metadata&&i.extend(!0,f,a.metadata())):f=a),o=t.href||f.href||(h(a)?a:null),l=t.title!==n?t.title:f.title||"",d=(c=t.content||f.content)?"html":t.type||f.type,!d&&f.isDom&&((d=a.data("fancybox-type"))||(d=(d=a.prop("class").match(/fancybox\.(\w+)/))?d[1]:null)),h(o)&&(d||(r.isImage(
76o)?d="image":r.isSWF(o)?d="swf":"#"===o.charAt(0)?d="inline":h(a)&&(d="html",c=a)),"ajax"===d&&(p=o.split(/\s+/,2),o=p.shift(),p=p.shift())),c||("inline"===d?o?c=i(h(o)?o.replace(/.*(?=#[^\s]+$)/,""):o):f.isDom&&(c=a):"html"===d?c=o:!d&&!o&&f.isDom&&(d="inline",c=a)),i.extend(f,{href:o,type:d,content:c,title:l,selector:p}),e[s]=f}),r.opts=i.extend(!0,{},r.defaults,t),t.keys!==n&&(r.opts.keys=!!t.keys&&i.extend({},r.defaults.keys,t.keys)),r.group=e,r._start(r.opts.index)},cancel:function(){var e=r.coming;e&&!1!==r.trigger("onCancel")&&(r.hideLoading(),r.ajaxLoad&&r.ajaxLoad.abort(),r.ajaxLoad=null,r.imgPreload&&(r.imgPreload.onload=r.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),r.coming=null,r.current||r._afterZoomOut(e))},close:function(e){r.cancel(),!1!==r.trigger("beforeClose")&&(r.unbindEvents(),r.isActive&&(r.isOpen&&!0!==e?(r.isOpen=r.isOpened=!1,r.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),r.wrap.stop(!0,!0).removeClass("fancybox-opened"),r.transitions[r.current.closeMethod]()):(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),r._afterZoomOut())))},play:function(e){var t=function(){clearTimeout(r.player.timer)},i=function(){t(),r.current&&r.player.isActive&&(r.player.timer=setTimeout(r.next,r.current.playSpeed))},n=function(){t(),o.unbind(".player"),r.player.isActive=!1,r.trigger("onPlayEnd")};!0===e||!r.player.isActive&&!1!==e?r.current&&(r.current.loop||r.current.index<r.group.length-1)&&(r.player.isActive=!0,o.bind({"onCancel.player beforeClose.player":n,"onUpdate.player":i,"beforeLoad.player":t}),i(),r.trigger("onPlayStart")):n()},next:function(e){var t=r.current;t&&(h(e)||(e=t.direction.next),r.jumpto(t.index+1,e,"next"))},prev:function(e){var t=r.current;t&&(h(e)||(e=t.direction.prev),r.jumpto(t.index-1,e,"prev"))},jumpto:function(e,t,i){var s=r.current;s&&(e=f(e),r.direction=t||s.direction[e>=s.index?"next":"prev"],r.router=i||"jumpto",s.loop&&(0>e&&(e=s.group.length+e%s.group.length),e%=s.group.length),s.group[e]!==n&&(r.cancel(),r._start(e)))},reposition:function(e,t){var n,s=r.current,a=s?s.wrap:null;a&&(n=r._getPosition(t),e&&"scroll"===e.type?(delete n.position,a.stop(!0,!0).animate(n,200)):(a.css(n),s.pos=i.extend({},s.dim,n)))},update:function(e){var t=e&&e.type,i=!t||"orientationchange"===t;i&&(clearTimeout(c),c=null),r.isOpen&&!c&&(c=setTimeout(function(){var n=r.current;n&&!r.isClosing&&(r.wrap.removeClass("fancybox-tmp"),(i||"load"===t||"resize"===t&&n.autoResize)&&r._setDimension(),"scroll"===t&&n.canShrink||r.reposition(e),r.trigger("onUpdate"),c=null)},i&&!d?0:300))},toggle:function(e){r.isOpen&&(r.current.fitToView="boolean"===i.type(e)?e:!r.current.fitToView,d&&(r.wrap.removeAttr("style").addClass("fancybox-tmp"),r.trigger("onUpdate")),r.update())},hideLoading:function(){o.unbind(".loading"),i("#fancybox-loading").remove()},showLoading:function(){var e,t;r.hideLoading(),e=i('<div id="fancybox-loading"><div></div></div>').click(r.cancel).appendTo("body"),o.bind("keydown.loading",function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),r.cancel())}),r.defaults.fixed||(t=r.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x}))},getViewport:function(){var t=r.current&&r.current.locked||!1,i={x:a.scrollLeft(),y:a.scrollTop()};return t?(i.w=t[0].clientWidth,i.h=t[0].clientHeight):(i.w=d&&e.innerWidth?e.innerWidth:a.width(),i.h=d&&e.innerHeight?e.innerHeight:a.height()),i},unbindEvents:function(){r.wrap&&u(r.wrap)&&r.wrap.unbind(".fb"),o.unbind(".fb"),a.unbind(".fb")},bindEvents:function(){var e,t=r.current;t&&(a.bind("orientationchange.fb"+(d?"":" resize.fb")+(t.autoCenter&&!t.locked?" scroll.fb":""),r.update),(e=t.keys)&&o.bind("keydown.fb",function(s){var a=s.which||s.keyCode,o=s.target||s.srcElement;if(27===a&&r.coming)return!1;!s.ctrlKey&&!s.altKey&&!s.shiftKey&&!s.metaKey&&(!o||!o.type&&!i(o).is("[contenteditable]"))&&i.each(e,function(e,o){return 1<t.group.length&&o[a]!==n?(r[e](o[a]),s.preventDefault(),!1):-1<i.inArray(a,o)?(r[e](),s.preventDefault(),!1):void 0})}),i.fn.mousewheel&&t.mouseWheel&&r.wrap.bind("mousewheel.fb",function(e,n,s,a){for(var o=i(e.target||null),l=!1;o.length&&!l&&!o.is(".fancybox-skin")&&!o.is(".fancybox-wrap");)l=o[0]&&!(o[0].style.overflow&&"hidden"===o[0].style.overflow)&&(o[0].clientWidth&&o[0].scrollWidth>o[0].clientWidth||o[0].clientHeight&&o[0].scrollHeight>o[0].clientHeight),o=i(o).parent();0!==n&&!l&&1<r.group.length&&!t.canShrink&&(0<a||0<s?r.prev(0<a?"down":"left"):(0>a||0>s)&&r.next(0>a?"up":"right"),e.preventDefault())}))},trigger:function(e,t){var n,s=t||r.coming||r.current;if(s){if(i.isFunction(s[e])&&(n=s[e].apply(s,Array.prototype.slice.call(arguments,1
76))),!1===n)return!1;s.helpers&&i.each(s.helpers,function(t,n){n&&r.helpers[t]&&i.isFunction(r.helpers[t][e])&&r.helpers[t][e](i.extend(!0,{},r.helpers[t].defaults,n),s)}),o.trigger(e)}},isImage:function(e){return h(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(e){return h(e)&&e.match(/\.(swf)((\?|#).*)?$/i)},_start:function(e){var t,n,s={};if(e=f(e),!(t=r.group[e]||null))return!1;if(s=i.extend(!0,{},r.opts,t),t=s.margin,n=s.padding,"number"===i.type(t)&&(s.margin=[t,t,t,t]),"number"===i.type(n)&&(s.padding=[n,n,n,n]),s.modal&&i.extend(!0,s,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),s.autoSize&&(s.autoWidth=s.autoHeight=!0),"auto"===s.width&&(s.autoWidth=!0),"auto"===s.height&&(s.autoHeight=!0),s.group=r.group,s.index=e,r.coming=s,!1===r.trigger("beforeLoad"))r.coming=null;else{if(n=s.type,t=s.href,!n)return r.coming=null,!(!r.current||!r.router||"jumpto"===r.router)&&(r.current.index=e,r[r.router](r.direction));if(r.isActive=!0,"image"!==n&&"swf"!==n||(s.autoHeight=s.autoWidth=!1,s.scrolling="visible"),"image"===n&&(s.aspectRatio=!0),"iframe"===n&&d&&(s.scrolling="scroll"),s.wrap=i(s.tpl.wrap).addClass("fancybox-"+(d?"mobile":"desktop")+" fancybox-type-"+n+" fancybox-tmp "+s.wrapCSS).appendTo(s.parent||"body"),i.extend(s,{skin:i(".fancybox-skin",s.wrap),outer:i(".fancybox-outer",s.wrap),inner:i(".fancybox-inner",s.wrap)}),i.each(["Top","Right","Bottom","Left"],function(e,t){s.skin.css("padding"+t,m(s.padding[e]))}),r.trigger("onReady"),"inline"===n||"html"===n){if(!s.content||!s.content.length)return r._error("content")}else if(!t)return r._error("href");"image"===n?r._loadImage():"ajax"===n?r._loadAjax():"iframe"===n?r._loadIframe():r._afterLoad()}},_error:function(e){i.extend(r.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:r.coming.tpl.error}),r._afterLoad()},_loadImage:function(){var e=r.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,r.coming.width=this.width/r.opts.pixelRatio,r.coming.height=this.height/r.opts.pixelRatio,r._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,r._error("image")},e.src=r.coming.href,!0!==e.complete&&r.showLoading()},_loadAjax:function(){var e=r.coming;r.showLoading(),r.ajaxLoad=i.ajax(i.extend({},e.ajax,{url:e.href,error:function(e,t){r.coming&&"abort"!==t?r._error("ajax",e):r.hideLoading()},success:function(t,i){"success"===i&&(e.content=t,r._afterLoad())}}))},_loadIframe:function(){var e=r.coming,t=i(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",d?"auto":e.iframe.scrolling).attr("src",e.href);i(e.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}}),e.iframe.preload&&(r.showLoading(),t.one("load",function(){i(this).data("ready",1),d||i(this).bind("load.fb",r.update),i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),r._afterLoad()})),e.content=t.appendTo(e.inner),e.iframe.preload||r._afterLoad()},_preloadImages:function(){var e,t,i=r.group,n=r.current,s=i.length,a=n.preload?Math.min(n.preload,s-1):0;for(t=1;t<=a;t+=1)e=i[(n.index+t)%s],"image"===e.type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var e,t,n,s,a,o=r.coming,l=r.current;if(r.hideLoading(),o&&!1!==r.isActive)if(!1===r.trigger("afterLoad",o,l))o.wrap.stop(!0).trigger("onReset").remove(),r.coming=null;else{switch(l&&(r.trigger("beforeChange",l),l.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),r.unbindEvents(),e=o.content,t=o.type,n=o.scrolling,i.extend(r,{wrap:o.wrap,skin:o.skin,outer:o.outer,inner:o.inner,current:o,previous:l}),s=o.href,t){case"inline":case"ajax":case"html":o.selector?e=i("<div>").html(e).find(o.selector):u(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",i('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),o.wrap.bind("onReset",function(){i(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":e=o.tpl.image.replace("{href}",s);break;case"swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+s+'"></param>',a="",i.each(o.swf,function(t,i){e+='<param name="'+t+'" value="'+i+'"></param>',a+=" "+t+'="'+i+'"'}),e+='<embed src="'+s+'" type="application/x-shockwave-flash" width="100%" height="100%"'+a+"></embed></object>"}(!u(e)||!e.parent().is(o.inner))&&o.inner.append(e),r.trigger("beforeShow"),o.inner.css("overflow","yes"===n?"scroll":"no"===n?"hidden":n),r._setDimension(),r.reposition(),r.isOpen=!1,r.coming=null,r.bindEvents(),r.isOpened?l.prevMethod&&r.transitions[l.prevMethod]():i(".fancybox-wrap").not(o.wrap).stop(!0).trigger("onReset").remove(),r.transitions[r.isOpened?o.nextMethod:o.openMethod](),r._preloadImages()}},_setDimension:function(){var e,t,n,s,a,o,l,c,d,u=r.getViewport(),h=0,g=!1,v=!1,g=r.wrap,y=r.skin,b=r.inner,w=r.current,v=w.width,x=w.height,_=w.minWidth,k=w.minHeight,A=w.maxWidth,C=w.maxHeight,S=w.scrolling,I=w.scrollOutside?w.scrollbarWidth:0,T=w.margin,$=f(T[1]+T[3]),D=f(T[0]+T[2]);if(g.add(y).add(b).width("auto").height("auto").removeClass("fancybox-tmp"),T=f(y.outerWidth(!0)-y.width()),e=f(y.outerHeight(!0)-y.height()),t=$+T,n=D+e,s=p(v)?(u.w-t)*f(v)/100:v,a=p(x)?(u.h-n)*f(x)/100:x,"iframe"===w.type){if(d=w.content,w.autoHeight&&1===d.data("ready"))try{d[0].contentWindow.document.location&&(b.width(s).height(9999),o=d.contents().find("body"),I&&o.css("overflow-x","hidden"),a=o.outerHeight(!0))}catch(e){}}else(w.autoWidth||w.autoHeight)&&(b.addClass("fancybox-tmp"),w.autoWidth||b.width(s),w.autoHeight||b.height(a),w.autoWidth&&(s=b.width()),w.autoHeight&&(a=b.height()),b.removeClass("fancybox-tmp"));if(v=f(s),x=f(a),c=s/a,_=f(p(_)?f(_,"w")-t:_),A=f(p(A)?f(A,"w")-t:A),k=f(p(k)?f(k,"h")-n:k),C=f(p(C)?f(C,"h")-n:C),o=A,l=C,w.fitToView&&
76(A=Math.min(u.w-t,A),C=Math.min(u.h-n,C)),t=u.w-$,D=u.h-D,w.aspectRatio?(v>A&&(v=A,x=f(v/c)),x>C&&(x=C,v=f(x*c)),v<_&&(v=_,x=f(v/c)),x<k&&(x=k,v=f(x*c))):(v=Math.max(_,Math.min(v,A)),w.autoHeight&&"iframe"!==w.type&&(b.width(v),x=b.height()),x=Math.max(k,Math.min(x,C))),w.fitToView)if(b.width(v).height(x),g.width(v+T),u=g.width(),$=g.height(),w.aspectRatio)for(;(u>t||$>D)&&v>_&&x>k&&!(19<h++);)x=Math.max(k,Math.min(C,x-10)),v=f(x*c),v<_&&(v=_,x=f(v/c)),v>A&&(v=A,x=f(v/c)),b.width(v).height(x),g.width(v+T),u=g.width(),$=g.height();else v=Math.max(_,Math.min(v,v-(u-t))),x=Math.max(k,Math.min(x,x-($-D)));I&&"auto"===S&&x<a&&v+T+I<t&&(v+=I),b.width(v).height(x),g.width(v+T),u=g.width(),$=g.height(),g=(u>t||$>D)&&v>_&&x>k,v=w.aspectRatio?v<o&&x<l&&v<s&&x<a:(v<o||x<l)&&(v<s||x<a),i.extend(w,{dim:{width:m(u),height:m($)},origWidth:s,origHeight:a,canShrink:g,canExpand:v,wPadding:T,hPadding:e,wrapSpace:$-y.outerHeight(!0),skinSpace:y.height()-x}),!d&&w.autoHeight&&x>k&&x<C&&!v&&b.height("auto")},_getPosition:function(e){var t=r.current,i=r.getViewport(),n=t.margin,s=r.wrap.width()+n[1]+n[3],a=r.wrap.height()+n[0]+n[2],n={position:"absolute",top:n[0],left:n[3]};return t.autoCenter&&t.fixed&&!e&&a<=i.h&&s<=i.w?n.position="fixed":t.locked||(n.top+=i.y,n.left+=i.x),n.top=m(Math.max(n.top,n.top+(i.h-a)*t.topRatio)),n.left=m(Math.max(n.left,n.left+(i.w-s)*t.leftRatio)),n},_afterZoomIn:function(){var e=r.current;e&&(r.isOpen=r.isOpened=!0,r.wrap.css("overflow","visible").addClass("fancybox-opened"),r.update(
76),(e.closeClick||e.nextClick&&1<r.group.length)&&r.inner.css("cursor","pointer").bind("click.fb",function(t){!i(t.target).is("a")&&!i(t.target).parent().is("a")&&(t.preventDefault(),r[e.closeClick?"close":"next"]())}),e.closeBtn&&i(e.tpl.closeBtn).appendTo(r.skin).bind("click.fb",function(e){e.preventDefault(),r.close()}),e.arrows&&1<r.group.length&&((e.loop||0<e.index)&&i(e.tpl.prev).appendTo(r.outer).bind("click.fb",r.prev),(e.loop||e.index<r.group.length-1)&&i(e.tpl.next).appendTo(r.outer).bind("click.fb",r.next)),r.trigger("afterShow"),e.loop||e.index!==e.group.length-1?r.opts.autoPlay&&!r.player.isActive&&(r.opts.autoPlay=!1,r.play()):r.play(!1))},_afterZoomOut:function(e){e=e||r.current,i(".fancybox-wrap").trigger("onReset").remove(),i.extend(r,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),r.trigger("afterClose",e)}}),r.transitions={getOrigPosition:function(){var e=r.current,t=e.element,i=e.orig,n={},s=50,a=50,o=e.hPadding,l=e.wPadding,c=r.getViewport();return!i&&e.isDom&&t.is(":visible")&&(i=t.find("img:first"),i.length||(i=t)),u(i)?(n=i.offset(),i.is("img")&&(s=i.outerWidth(),a=i.outerHeight())):(n.top=c.y+(c.h-a)*e.topRatio,n.left=c.x+(c.w-s)*e.leftRatio),("fixed"===r.wrap.css("position")||e.locked)&&(n.top-=c.y,n.left-=c.x),n={top:m(n.top-o*e.topRatio),left:m(n.left-l*e.leftRatio),width:m(s+l),height:m(a+o)}},step:function(e,t){var i,n,s=t.prop
77;n=r.current;var a=n.wrapSpace,o=n.skinSpace;"width"!==s&&"height"!==s||(i=t.end===t.start?1:(e-t.start)/(t.end-t.start),r.isClosing&&(i=1-i),n="width"===s?n.wPadding:n.hPadding,n=e-n,r.skin[s](f("width"===s?n:n-a*i)),r.inner[s](f("width"===s?n:n-a*i-o*i)))},zoomIn:function(){var e=r.current,t=e.pos,n=e.openEffect,s="elastic"===n,a=i.extend({opacity:1},t);delete a.position,s?(t=this.getOrigPosition(),e.openOpacity&&(t.opacity=.1)):"fade"===n&&(t.opacity=.1),r.wrap.css(t).animate(a,{duration:"none"===n?0:e.openSpeed,easing:e.openEasing,step:s?this.step:null,complete:r._afterZoomIn})},zoomOut:function(){var e=r.current,t=e.closeEffect,i="elastic"===t,n={opacity:.1};i&&(n=this.getOrigPosition(),e.closeOpacity&&(n.opacity=.1)),r.wrap.animate(n,{duration:"none"===t?0:e.closeSpeed,easing:e.closeEasing,step:i?this.step:null,complete:r._afterZoomOut})},changeIn:function(){var e,t=r.current,i=t.nextEffect,n=t.pos,s={opacity:1},a=r.direction;n.opacity=.1,"elastic"===i&&(e="down"===a||"up"===a?"top":"left","down"===a||"right"===a?(n[e]=m(f(n[e])-200),s[e]="+=200px"):(n[e]=m(f(n[e])+200),s[e]="-=200px")),"none"===i?r._afterZoomIn():r.wrap.css(n).animate(s,{duration:t.nextSpeed,easing:t.nextEasing,complete:r._afterZoomIn})},changeOut:function(){var e=r.previous,t=e.prevEffect,n={opacity:.1},s=r.direction;"elastic"===t&&(n["down"===s||"up"===s?"top":"left"]=("up"===s||"left"===s?"-":"+")+"=200px"),e.wrap.animate(n,{duration:"none"===t?0:e.prevSpeed,easing:e.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}},r.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!d,fixed:!0},overlay:null,fixed:!1,el:i("html"),create:function(e){e=i.extend({},this.defaults,e),this.overlay&&this.close(),this.overlay=i('<div class="fancybox-overlay"></div>').appendTo(r.coming?r.coming.parent:e.parent),this.fixed=!1,e.fixed&&r.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=i.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(a.bind("resize.overlay",i.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",function(e){if(i(e.target).hasClass("fancybox-overlay"))return r.isActive?r.close():t.close(),!1}),this.overlay.css(e.css).show()},close:function(){var e,t;a.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(i(".fancybox-margin").removeClass("fancybox-margin"),e=a.scrollTop(),t=a.scrollLeft(),this.el.removeClass("fancybox-lock"),a.scrollTop(e).scrollLeft(t)),i(".fancybox-overlay").remove().hide(),i.extend(this,{overlay:null,fixed:!1})},update:function(){var e,i="100%";this.overlay.width(i).height("100%"),l?(e=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),o.width()>e&&(i=o.width())):o.width()>a.width()&&(i=o.width()),this.overlay.width(i).height(o.height())},onReady:function(e,t){var n=this.overlay;i(".fancybox-overlay").stop(!0,!0),n||this.create(e),e.locked&&this.fixed&&t.fixed&&(n||(this.margin=o.height()>a.height()&&i("html").css("margin-right").replace("px","")),t.locked=this.overlay.append(t.wrap),t.fixed=!1),!0===e.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){var n,s;t.locked&&(!1!==this.margin&&(i("*").filter(function(){return"fixed"===i(this).css("position")&&!i(this).hasClass("fancybox-overlay")&&!i(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),n=a.scrollTop(),s=a.scrollLeft(),this.el.addClass("fancybox-lock"),a.scrollTop(n).scrollLeft(s)),this.open(e)}
77,onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!r.coming&&this.overlay.fadeOut(e.speedOut,i.proxy(this.close,this))}},r.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t=r.current,n=t.title,s=e.type;if(i.isFunction(n)&&(n=n.call(t.element,t)),h(n)&&""!==i.trim(n)){switch(t=i('<div class="fancybox-title fancybox-title-'+s+'-wrap">'+n+"</div>"),s){case"inside":s=r.skin;break;case"outside":s=r.wrap;break;case"over":s=r.inner;break;default:s=r.skin,t.appendTo("body"),l&&t.width(t.width()),t.wrapInner('<span class="child"></span>'),r.current.margin[2]+=Math.abs(f(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](s)}}},i.fn.fancybox=function(e){var t,n=i(this),s=this.selector||"",a=function(a){var o,l,c=i(this).blur(),d=t;!a.ctrlKey&&!a.altKey&&!a.shiftKey&&!a.metaKey&&!c.is(".fancybox-wrap")&&(o=e.groupAttr||"data-fancybox-group",l=c.attr(o),l||(o="rel",l=c.get(0)[o]),l&&""!==l&&"nofollow"!==l&&(c=s.length?i(s):n,c=c.filter("["+o+'="'+l+'"]'),d=c.index(this)),e.index=d,!1!==r.open(c,e)&&a.preventDefault())};return e=e||{},t=e.index||0,s&&!1!==e.live?o.undelegate(s,"click.fb-start").delegate(s+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a):n.unbind("click.fb-start").bind("click.fb-start",a),this.filter("[data-fancybox-start=1]").trigger("click"),this},o.ready(function(){var t,a;if(i.scrollbarWidth===n&&(i.scrollbarWidth=function(){var e=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),t=e.children(),t=t.innerWidth()-t.height(99).innerWidth();return e.remove(),t}),i.support.fixedPosition===n){t=i.support,a=i('<div style="position:fixed;top:20px;"></div>').appendTo("body");var o=20===a[0].offsetTop||15===a[0].offsetTop;a.remove(),t.fixedPosition=o}i.extend(r.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")}),t=i(e).width(),s.addClass("fancybox-lock-test"),a=i(e).width(),s.removeClass("fancybox-lock-test"),i("<style type='text/css'>.fancybox-margin{margin-right:"+(a-t)+"px;}</style>").appendTo("head")})}(window,document,jQuery),function(e){"use strict";var t=function(t,i,n){return n=n||"","object"===e.type(n)&&(n=e.param(n,!0)),e.each(i,function(e,i){t=t.replace("$"+e,i||"")}),n.length&&(t+=(t.indexOf("?")>0?"&":"?")+n),t};e.fancybox.helpers.media={defaults:{youtube:{matcher:/(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"opaque",enablejsapi:1},type:"iframe",url:"//www.youtube.com/embed/$3"},vimeo:{matcher:/(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},type:"iframe",url:"//player.vimeo.com/video/$1"},metacafe:{matcher:/metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,params:{autoPlay:"yes"},type:"swf",url:function(t,i,n){return n.swf.flashVars="playerVars="+e.param(i,!0),"//www.metacafe.com/fplayer/"+t[1]+"/.swf"}},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"swf",url:"//www.dailymotion.com/swf/video/$1"},twitvid:{matcher:/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,params:{autoplay:0},type:"iframe",url:"//www.twitvid.com/embed.php?guid=$1"},twitpic:{matcher:/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,type:"image",url:"//twitpic.com/show/full/$1/"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,type:"iframe",url:function(e){return"//maps.google."+e[1]+"/"+e[3]+e[4]+"&output="+(e[4].indexOf("layer=c")>0?"svembed":"embed")}}},beforeLoad:function(i,n){var s,a,o,r,l=n.href||"",c=!1;for(s in i)if(i.hasOwnProperty(s)&&(a=i[s],o=l.match(a.matcher))){c=a.type,r=e.extend(!0,{},a.params,n[s]||(e.isPlainObject(i[s])?i[s].params:null)),l="function"===e.type(a.url)?a.url.call(this,o,r,n):t(a.url,o,r);break}c&&(n.href=l,n.type=c,n.autoHeight=!1)}}}(jQuery),function(e){var t=e.fancybox;t.helpers.buttons={defaults:{skipSingle:!1,position:"top",tpl:'<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:;"></a></li></ul></div>'},list:null,buttons:null,beforeLoad:function(e,t){if(e.skipSingle&&t.group.length<2)return t.helpers.buttons=!1,void(t.closeBtn=!0)},onPlayStart:function(){this.buttons&&this.buttons.play.addClass("btnPlayOn")},onPlayEnd:function(){this.buttons&&this.buttons.play.removeClass("btnPlayOn")},afterShow:function(i,n){var s=this.buttons;s||(this.list=e(i.tpl).addClass(i.position).appendTo("body"),s={prev:this.list.find(".btnPrev").click(t.prev),next:this.list.find(".btnNext").
77click(t.next),play:this.list.find(".btnPlay").click(t.play),toggle:this.list.find(".btnToggle").click(t.toggle),close:this.list.find(".btnClose").click(t.close)}),n.index>0||n.loop?s.prev.removeClass("btnDisabled"):s.prev.addClass("btnDisabled"),n.loop||n.index<n.group.length-1?(s.next.removeClass("btnDisabled"),s.play.removeClass("btnDisabled")):(s.next.addClass("btnDisabled"),s.play.addClass("btnDisabled")),this.buttons=s,this.onUpdate(i,n)},onUpdate:function(e,t){var i;this.buttons&&(i=this.buttons.toggle.removeClass("btnDisabled btnToggleOn"),t.canShrink?i.addClass("btnToggleOn"):t.canExpand||i.addClass("btnDisabled"))},beforeClose:function(){this.list&&this.list.remove(),this.list=null,this.buttons=null}}}(jQuery);var objectFitImages=function(){"use strict";function e(e,t){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='"+e+"' height='"+t+"'%3E%3C/svg%3E"}function t(e){if(e.srcset&&!f&&window.picturefill){var t=window.picturefill._;e[t.ns]&&e[t.ns].evaled||t.fillImg(e,{reselect:!0}),e[t.ns].curSrc||(e[t.ns].supported=!1,t.fillImg(e,{reselect:!0})),e.currentSrc=e[t.ns].curSrc||e.src}}function i(e){for(var t,i=getComputedStyle(e).fontFamily,n={};null!==(t=c.exec(i));)n[t[1]]=t[2];return n}function n(t,i,n){var s=e(i||1,n||0);m.call(t,"src")!==s&&g.call(t,"src",s)}function s(e,t){e.naturalWidth?t(e):setTimeout(s,100,e,t)}function a(e){var a=i(e),r=e[l];if(a["object-fit"]=a["object-fit"]||"fill",!r.img){if("fill"===a["object-fit"])return;if(!r.skipTest&&u&&!a["object-position"])return}if(!r.img){r.img=new Image(e.width,e.height),r.img.srcset=m.call(e,"data-ofi-srcset")||e.srcset,r.img.src=m.call(e,"data-ofi-src")||e.src,g.call(e,"data-ofi-src",e.src),e.srcset&&g.call(e,"data-ofi-srcset",e.srcset),n(e,e.naturalWidth||e.width,e.naturalHeight||e.height),e.srcset&&(e.srcset="");try{o(e)}catch(e){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}t(r.img),e.style.backgroundImage='url("'+(r.img.currentSrc||r.img.src).replace(/"/g,'\\"')+'")',e.style.backgroundPosition=a["object-position"]||"center",e.style.backgroundRepeat="no-repeat",e.style.backgroundOrigin="content-box",/scale-down/.test(a["object-fit"])?s(r.img,function(){r.img.naturalWidth>e.width||r.img.naturalHeight>e.height?e.style.backgroundSize="contain":e.style.backgroundSize="auto"}):e.style.backgroundSize=a["object-fit"].replace("none","auto").replace("fill","100% 100%"),s(r.img,function(t){n(e,t.naturalWidth,t.naturalHeight)})}function o(e){var t={get:function(t){return e[l].img[t||"src"]},set:function(t,i){return e[l].img[i||"src"]=t,g.call(e,"data-ofi-"+i,t),a(e),t}};Object.defineProperty(e,"src",t),Object.defineProperty(e,"currentSrc",{get:function(){return t.get("currentSrc")}}),Object.defineProperty(e,"srcset",{get:function(){return t.get("srcset")},set:function(e){return t.set(e,"srcset")}})}function r(e,t){var i=!v&&!e;if(t=t||{},e=e||"img",h&&!t.skipTest||!p)return!1;"img"===e?e=document.getElementsByTagName("img"):"string"==typeof e?e=document.querySelectorAll(e):"length"in e||(e=[e]);for(var n=0;n<e.length;n++)e[n][l]=e[n][l]||{skipTest:t.skipTest},a(e[n]);i&&(document.body.addEventListener("load",function(e){"IMG"===e.target.tagName&&r(e.target,{skipTest:t.skipTest})},!0),v=!0,e="img"),t.watchMQ&&window.addEventListener("resize",r.bind(null,e,{skipTest:t.skipTest}))}var l="bfred-it:object-fit-images",c=/(object-fit|object-position)\s*:\s*([-\w\s%]+)/g,d="undefined"==typeof Image?{style:{"object-position":1}}:new Image,u="object-fit"in d.style,h="object-position"in d.style,p="background-size"in d.style,f="string"==typeof d.currentSrc,m=d.getAttribute,g=d.setAttribute,v=!1;return r.supportsObjectFit=u,r.supportsObjectPosition=h,function(){function e(e,t){return e[l]&&e[l].img&&("src"===t||"srcset"===t)?e[l].img:e}h||(HTMLImageElement.prototype.getAttribute=function(t){return m.call(e(this,t),t)},HTMLImageElement.prototype.setAttribute=function(t,i){return g.call(e(this,t),t,String(i))})}(),r}();!function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(function(e){function t(t){return!t||void 0!==t.allowPageScroll||void 0===t.swipe&&void 0===t.swipeStatus||(t.allowPageScroll=c),void 0!==t.click&&void 0===t.tap&&(t.tap=t.click),t||(t={}),t=e.extend({},e.fn.swipe.defaults,t),this.each(function(){var n=e(this),s=n.data(I);s||(s=new i(this,t),n.data(I,s))})}function i(t,i){function T(t){if(!(ce()||e(t.target).closest(i.excludedElements,Ye).length>0)){var n,s=t.originalEvent?t.originalEvent:t,a=A?s.touches[0]:s;return Qe=w,(A?Ue=s.touches.length:t.preventDefault(),Fe=0,Oe=null,Re=null,Le=0,je=0,Be=0,He=1,We=0,Ve=fe(),ze=ve(),re(),!A||Ue===i.fingers||i.fingers===y||z()?(ue(0,a),qe=Se(),2==Ue&&(ue(1,s.touches[1]),je=Be=we(Ve[0].start,Ve[1].start)),(i.swipeStatus||i.pinchStatus)&&(n=F(s,Qe))):n=!1,!1===n)?(Qe=k,F(s,Qe),n):(i.hold&&(et=setTimeout(e.proxy(function(){Ye.trigger("hold",[s.target]),i.hold&&(n=i.hold.call(Ye,s,s.target))},this),i.longTapThreshold)),de(!0),null)}}function $(e){var t=e.originalEvent?e.originalEvent:e;if(Qe!==_&&Qe!==k&&!le()){var n,s=A?t.touches[0]:t,a=he(s);if(Ke=Se(),A&&(Ue=t.touches.length),i.hold&&clearTimeout(et),Qe=x,2==Ue&&(0==je?
77(ue(1,t.touches[1]),je=Be=we(Ve[0].start,Ve[1].start)):(he(t.touches[1]),Be=we(Ve[0].end,Ve[1].end),Re=_e(Ve[0].end,Ve[1].end)),He=xe(je,Be),We=Math.abs(je-Be)),Ue===i.fingers||i.fingers===y||!A||z()){if(Oe=Ce(a.start,a.end),W(e,Oe),Fe=ke(a.start,a.end),Le=be(),me(Oe,Fe),(i.swipeStatus||i.pinchStatus)&&(n=F(t,Qe)),!i.triggerOnTouchEnd||i.triggerOnTouchLeave){var o=!0;if(i.triggerOnTouchLeave){var r=Ie(this);o=Te(a.end,r)}!i.triggerOnTouchEnd&&o?Qe=M(x):i.triggerOnTouchLeave&&!o&&(Qe=M(_)),Qe!=k&&Qe!=_||F(t,Qe)}}else Qe=k,F(t,Qe);!1===n&&(Qe=k,F(t,Qe))}}function D(e){var t=e.originalEvent;return A&&t.touches.length>0?(oe(),!0):(le()&&(Ue=Ze),Ke=Se(),Le=be(),j()||!L()?(Qe=k,F(t,Qe)):i.triggerOnTouchEnd||0==i.triggerOnTouchEnd&&Qe===x?(e.preventDefault(),Qe=_,F(t,Qe)):!i.triggerOnTouchEnd&&G()?(Qe=_,O(t,Qe,p)):Qe===x&&(Qe=k,F(t,Qe)),de(!1),null)}function E(){Ue=0,Ke=0,qe=0,je=0,Be=0,He=1,re(),de(!1)}function P(e){var t=e.originalEvent;i.triggerOnTouchLeave&&(Qe=M(_),F(t,Qe))}function N(){Ye.unbind(De,T),Ye.unbind(Me,E),Ye.unbind(Ee,$),Ye.unbind(Pe,D),Ne&&Ye.unbind(Ne,P),de(!1)}function M(e){var t=e,n=H(),s=L(),a=j();return!n||a?t=k:!s||e!=x||i.triggerOnTouchEnd&&!i.triggerOnTouchLeave?!s&&e==_&&i.triggerOnTouchLeave&&(t=k):t=_,t}function F(e,t){var i=void 0;return V()||U()?i=O(e,t,u):(Y()||z())&&!1!==i&&(i=O(e,t,h)),se()&&!1!==i?i=O(e,t,f):ae()&&!1!==i?i=O(e,t,m):ne()&&!1!==i&&(i=O(e,t,p)),t===k&&E(e),t===_&&(A?0==e.touches.length&&E(e):E(e)),i}function O(t,c,d){var g=void 0;if(d==u){if(Ye.trigger("swipeStatus",[c,Oe||null,Fe||0,Le||0,Ue,Ve]),i.swipeStatus&&!1===(g=i.swipeStatus.call(Ye,t,c,Oe||null,Fe||0,Le||0,Ue,Ve)))return!1;if(c==_&&Q()){if(Ye.trigger("swipe",[Oe,Fe,Le,Ue,Ve]),i.swipe&&!1===(g=i.swipe.call(Ye,t,Oe,Fe,Le,Ue,Ve)))return!1;switch(Oe){case n:Ye.trigger("swipeLeft",[Oe,Fe,Le,Ue,Ve]),i.swipeLeft&&(g=i.swipeLeft.call(Ye,t,Oe,Fe,Le,Ue,Ve));break;case s:Ye.trigger("swipeRight",[Oe,Fe,Le,Ue,Ve]),i.swipeRight&&(g=i.swipeRight.call(Ye,t,Oe,Fe,Le,Ue,Ve));break;case a:Ye.trigger("swipeUp",[Oe,Fe,Le,Ue,Ve]),i.swipeUp&&(g=i.swipeUp.call(Ye,t,Oe,Fe,Le,Ue,Ve));break;case o:Ye.trigger("swipeDown",[Oe,Fe,Le,Ue,Ve]),i.swipeDown&&(g=i.swipeDown.call(Ye,t,Oe,Fe,Le,Ue,Ve))}}}if(d==h){if(Ye.trigger("pinchStatus",[c,Re||null,We||0,Le||0,Ue,He,Ve]),i.pinchStatus&&!1===(g=i.pinchStatus.call(Ye,t,c,Re||null,We||0,Le||0,Ue,He,Ve)))return!1;if(c==_&&R())switch(Re){case r:Ye.trigger("pinchIn",[Re||null,We||0,Le||0,Ue,He,Ve]),i.pinchIn&&(g=i.pinchIn.call(Ye,t,Re||null,We||0,Le||0,Ue,He,Ve));break;case l:Ye.trigger("pinchOut",[Re||null,We||0,Le||0,Ue,He,Ve]),i.pinchOut&&(g=i.pinchOut.call(Ye,t,Re||null,We||0,Le||0,Ue,He,Ve))}}return d==p?c!==k&&c!==_||(clearTimeout(Xe),clearTimeout(et),Z()&&!ee()?(Je=Se(),Xe=setTimeout(e.proxy(function(){Je=null,Ye.trigger("tap",[t.target]),i.tap&&(g=i.tap.call(Ye,t,t.target))},this),i.doubleTapThreshold)):(Je=null,Ye.trigger("tap",[t.target]),i.tap&&(g=i.tap.call(Ye,t,t.target)))):d==f?c!==k&&c!==_||(clearTimeout(Xe),Je=null,Ye.trigger("doubletap",[t.target]),i.doubleTap&&(g=i.doubleTap.call(Ye,t,t.target))):d==m&&(c!==k&&c!==_||(clearTimeout(Xe),Je=null,Ye.trigger("longtap",[t.target]),i.longTap&&(g=i.longTap.call(Ye,t,t.target)))),g}function L(){var e=!0;return null!==i.threshold&&(e=Fe>=i.threshold),e}function j(){var e=!1;return null!==i.cancelThreshold&&null!==Oe&&(e=ge(Oe)-Fe>=i.cancelThreshold),e}function B(){return null===i.pinchThreshold||We>=i.pinchThreshold}function H(){return!i.maxTimeThreshold||!(Le>=i.maxTimeThreshold)}function W(e,t){if(i.allowPageScroll===c||z())e.preventDefault();else{var r=i.allowPageScroll===d;switch(t){case n:(i.swipeLeft&&r||!r&&i.allowPageScroll!=g)&&e.preventDefault();break;case s:(i.swipeRight&&r||!r&&i.allowPageScroll!=g)&&e.preventDefault();break;case a:(i.swipeUp&&r||!r&&i.allowPageScroll!=v)&&e.preventDefault();break;case o:(i.swipeDown&&r||!r&&i.allowPageScroll!=v)&&e.preventDefault()}}}function R(){var e=q(),t=K(),i=B();return e&&t&&i}function z(){return!!(i.pinchStatus||i.pinchIn||i.pinchOut)}function Y(){return!(!R()||!z())}function Q(){var e=H(),t=L(),i=q(),n=K();return!j()&&n&&i&&t&&e}function U(){return!!(i.swipe||i.swipeStatus||i.swipeLeft||i.swipeRight||i.swipeUp||i.swipeDown)}
77function V(){return!(!Q()||!U())}function q(){return Ue===i.fingers||i.fingers===y||!A}function K(){return 0!==Ve[0].end.x}function G(){return!!i.tap}function Z(){return!!i.doubleTap}function J(){return!!i.longTap}function X(){if(null==Je)return!1;var e=Se();return Z()&&e-Je<=i.doubleTapThreshold}function ee(){return X()}function te(){return(1===Ue||!A)&&(isNaN(Fe)||Fe<i.threshold)}function ie(){return Le>i.longTapThreshold&&Fe<b}function ne(){return!(!te()||!G())}function se(){return!(!X()||!Z())}function ae(){return!(!ie()||!J())}function oe(){Ge=Se(),Ze=event.touches.length+1}function re(){Ge=0,Ze=0}function le(){var e=!1;if(Ge){Se()-Ge<=i.fingerReleaseThreshold&&(e=!0)}return e}function ce(){return!(!0!==Ye.data(I+"_intouch"))}function de(e){!0===e?(Ye.bind(Ee,$),Ye.bind(Pe,D),Ne&&Ye.bind(Ne,P)):(Ye.unbind(Ee,$,!1),Ye.unbind(Pe,D,!1),Ne&&Ye.unbind(Ne,P,!1)),Ye.data(I+"_intouch",!0===e)}function ue(e,t){var i=void 0!==t.identifier?t.identifier:0;return Ve[e].identifier=i,Ve[e].start.x=Ve[e].end.x=t.pageX||t.clientX,Ve[e].start.y=Ve[e].end.y=t.pageY||t.clientY,Ve[e]}function he(e){var t=void 0!==e.identifier?e.identifier:0,i=pe(t);return i.end.x=e.pageX||e.clientX,i.end.y=e.pageY||e.clientY,i}function pe(e){for(var t=0;t<Ve.length;t++)if(Ve[t].identifier==e)return Ve[t]}function fe(){for(var e=[],t=0;t<=5;t++)e.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return e}function me(e,t){t=Math.max(t,ge(e)),ze[e].distance=t}function ge(e){if(ze[e])return ze[e].distance}function ve(){var e={};return e[n]=ye(n),e[s]=ye(s),e[a]=ye(a),e[o]=ye(o),e}function ye(e){return{direction:e,distance:0}}function be(){return Ke-qe}function we(e,t){var i=Math.abs(e.x-t.x),n=Math.abs(e.y-t.y);return Math.round(Math.sqrt(i*i+n*n))}function xe(e,t){return(t/e*1).toFixed(2)}function _e(){return He<1?l:r}function ke(e,t){return Math.round(Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)))}function Ae(e,t){var i=e.x-t.x,n=t.y-e.y,s=Math.atan2(n,i),a=Math.round(180*s/Math.PI);return a<0&&(a=360-Math.abs(a)),a}function Ce(e,t){var i=Ae(e,t);return i<=45&&i>=0?n:i<=360&&i>=315?n:i>=135&&i<=225?s:i>45&&i<135?o:a}function Se(){return(new Date).getTime()}function Ie(t){t=e(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function Te(e,t){return e.x>t.left&&e.x<t.right&&e.y>t.top&&e.y<t.bottom}var $e=A||S||!i.fallbackToMouseEvents,De=$e?S?C?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Ee=$e?S?C?"MSPointerMove":"pointermove":"touchmove":"mousemove",Pe=$e?S?C?"MSPointerUp":"pointerup":"touchend":"mouseup",Ne=$e?null:"mouseleave",Me=S?C?"MSPointerCancel":"pointercancel":"touchcancel",Fe=0,Oe=null,Le=0,je=0,Be=0,He=1,We=0,Re=0,ze=null,Ye=e(t),Qe="start",Ue=0,Ve=null,qe=0,Ke=0,Ge=0,Ze=0,Je=0,Xe=null,et=null;try{Ye.bind(De,T),Ye.bind(Me,E)}catch(t){e.error("events not supported "+De+","+Me+" on jQuery.swipe")}this.enable=function(){return Ye.bind(De,T),Ye.bind(Me,E),Ye},this.disable=function(){return N(),Ye},this.destroy=function(){return N(),Ye.data(I,null),Ye},this.option=function(t,n){if(void 0!==i[t]){if(void 0===n)return i[t];i[t]=n}else e.error("Option "+t+" does not exist on jQuery.swipe.options");return null}}var n="left",s="right",a="up",o="down",r="in",l="out",c="none",d="auto",u="swipe",h="pinch",p="tap",f="doubletap",m="longtap",g="horizontal",v="vertical",y="all",b=10,w="start",x="move",_="end",k="cancel",A="ontouchstart"in window,C=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,S=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,I="TouchSwipe",T={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};
77e.fn.swipe=function(i){var n=e(this),s=n.data(I);if(s&&"string"==typeof i){if(s[i])return s[i].apply(this,Array.prototype.slice.call(arguments,1));e.error("Method "+i+" does not exist on jQuery.swipe")}else if(!(s||"object"!=typeof i&&i))return t.apply(this,arguments);return n},e.fn.swipe.defaults=T,e.fn.swipe.phases={PHASE_START:w,PHASE_MOVE:x,PHASE_END:_,PHASE_CANCEL:k},e.fn.swipe.directions={LEFT:n,RIGHT:s,UP:a,DOWN:o,IN:r,OUT:l},e.fn.swipe.pageScroll={NONE:c,HORIZONTAL:g,VERTICAL:v,AUTO:d},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:y}}),function(e){"use strict";function t(e){return(e||"").toLowerCase()}e.fn.cycle=function(i){var n;return 0!==this.length||e.isReady?this.each(function(){var n,s,a,o,r=e(this),l=e.fn.cycle.log;if(!r.data("cycle.opts")){(!1===r.data("cycle-log")||i&&!1===i.log||s&&!1===s.log)&&(l=e.noop),l("--c2 init--"),n=r.data();for(var c in n)n.hasOwnProperty(c)&&/^cycle[A-Z]+/.test(c)&&(o=n[c],a=c.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),l(a+":",o,"("+typeof o+")"),n[a]=o);s=e.extend({},e.fn.cycle.defaults,n,i||{}),s.timeoutId=0,s.paused=s.paused||!1,s.container=r,s._maxZ=s.maxZ,s.API=e.extend({_container:r},e.fn.cycle.API),s.API.log=l,s.API.trigger=function(e,t){return s.container.trigger(e,t),s.API},r.data("cycle.opts",s),r.data("cycle.API",s.API),s.API.trigger("cycle-bootstrap",[s,s.API]),s.API.addInitialSlides(),s.API.preInitSlideshow(),s.slides.length&&s.API.initSlideshow()}}):(n={s:this.selector,c:this.context},e.fn.cycle.log("requeuing slideshow (dom not ready)"),e(function(){e(n.s,n.c).cycle(i)}),this)},e.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var t=this.opts(),i=t.slides;t.slideCount=0,t.slides=e(),i=i.jquery?i:t.container.find(i),t.random&&i.sort(function(){return Math.random()-.5}),t.API.add(i)},preInitSlideshow:function(){var t=this.opts();t.API.trigger("cycle-pre-initialize",[t]);var i=e.fn.cycle.transitions[t.fx];i&&e.isFunction(i.preInit)&&i.preInit(t),t._preInitialized=!0},postInitSlideshow:function(){var t=this.opts();t.API.trigger("cycle-post-initialize",[t]);var i=e.fn.cycle.transitions[t.fx];i&&e.isFunction(i.postInit)&&i.postInit(t)},initSlideshow:function(){var t,i=this.opts(),n=i.container;i.API.calcFirstSlide(),"static"==i.container.css("position")&&i.container.css("position","relative"),e(i.slides[i.currSlide]).css({opacity:1,display:"block",visibility:"visible"}),i.API.stackSlides(i.slides[i.currSlide],i.slides[i.nextSlide],!i.reverse),i.pauseOnHover&&(!0!==i.pauseOnHover&&(n=e(i.pauseOnHover)),n.hover(function(){i.API.pause(!0)},function(){i.API.resume(!0)})),i.timeout&&(t=i.API.getSlideOpts(i.currSlide),i.API.queueTransition(t,t.timeout+i.delay)),i._initialized=!0,i.API.updateView(!0),i.API.trigger("cycle-initialized",[i]),i.API.postInitSlideshow()}
vendor: 5,145 bytes, line 77
77,pause:function(t){var i=this.opts(),n=i.API.getSlideOpts(),s=i.hoverPaused||i.paused;t?i.hoverPaused=!0:i.paused=!0,s||(i.container.addClass("cycle-paused"),i.API.trigger("cycle-paused",[i]).log("cycle-paused"),n.timeout&&(clearTimeout(i.timeoutId),i.timeoutId=0,i._remainingTimeout-=e.now()-i._lastQueue,(i._remainingTimeout<0||isNaN(i._remainingTimeout))&&(i._remainingTimeout=void 0)))},resume:function(e){var t=this.opts(),i=!t.hoverPaused&&!t.paused;e?t.hoverPaused=!1:t.paused=!1,i||(t.container.removeClass("cycle-paused"),0===t.slides.filter(":animated").length&&t.API.queueTransition(t.API.getSlideOpts(),t._remainingTimeout),t.API.trigger("cycle-resumed",[t,t._remainingTimeout]).log("cycle-resumed"))},add:function(t,i){var n,s=this.opts(),a=s.slideCount;"string"==e.type(t)&&(t=e.trim(t)),e(t).each(function(){var t,n=e(this);i?s.container.prepend(n):s.container.append(n),s.slideCount++,t=s.API.buildSlideOpts(n),s.slides=i?e(n).add(s.slides):s.slides.add(n),s.API.initSlide(t,n,--s._maxZ),n.data("cycle.opts",t),s.API.trigger("cycle-slide-added",[s,t,n])}),s.API.updateView(!0),s._preInitialized&&2>a&&s.slideCount>=1&&(s._initialized?s.timeout&&(n=s.slides.length,s.nextSlide=s.reverse?n-1:1,s.timeoutId||s.API.queueTransition(s)):s.API.initSlideshow())},calcFirstSlide:function(){var e,t=this.opts();e=parseInt(t.startingSlide||0,10),(e>=t.slides.length||0>e)&&(e=0),t.currSlide=e,t.reverse?(t.nextSlide=e-1,t.nextSlide<0&&(t.nextSlide=t.slides.length-1)):(t.nextSlide=e+1,t.nextSlide==t.slides.length&&(t.nextSlide=0))},calcNextSlide:function(){var e,t=this.opts();t.reverse?(e=t.nextSlide-1<0,t.nextSlide=e?t.slideCount-1:t.nextSlide-1,t.currSlide=e?0:t.nextSlide+1):(e=t.nextSlide+1==t.slides.length,t.nextSlide=e?0:t.nextSlide+1,t.currSlide=e?t.slides.length-1:t.nextSlide-1)},calcTx:function(t,i){var n,s=t;return s._tempFx?n=e.fn.cycle.transitions[s._tempFx]:i&&s.manualFx&&(n=e.fn.cycle.transitions[s.manualFx]),n||(n=e.fn.cycle.transitions[s.fx]),s._tempFx=null,this.opts()._tempFx=null,n||(n=e.fn.cycle.transitions.fade,s.API.log('Transition "'+s.fx+'" not found.  Using fade.')),n},prepareTx:function(e,t){var i,n,s,a,o,r=this.opts();return r.slideCount<2?void(r.timeoutId=0):(!e||r.busy&&!r.manualTrump||(r.API.stopTransition(),r.busy=!1,clearTimeout(r.timeoutId),r.timeoutId=0),void(r.busy||(0!==r.timeoutId||e)&&(n=r.slides[r.currSlide],s=r.slides[r.nextSlide],a=r.API.getSlideOpts(r.nextSlide),o=r.API.calcTx(a,e),r._tx=o,e&&void 0!==a.manualSpeed&&(a.speed=a.manualSpeed),r.nextSlide!=r.currSlide&&(e||!r.paused&&!r.hoverPaused&&r.timeout)?(r.API.trigger("cycle-before",[a,n,s,t]),o.before&&o.before(a,n,s,t),i=function(){r.busy=!1,r.container.data("cycle.opts")&&(o.after&&o.after(a,n,s,t),r.API.trigger("cycle-after",[a,n,s,t]),r.API.queueTransition(a),r.API.updateView(!0))},r.busy=!0,o.transition?o.transition(a,n,s,t,i):r.API.doTransition(a,n,s,t,i),r.API.calcNextSlide(),r.API.updateView()):r.API.queueTransition(a))))},doTransition:function(t,i,n,s,a){var o=t,r=e(i),l=e(n),c=function(){l.animate(o.animIn||{opacity:1},o.speed,o.easeIn||o.easing,a)};l.css(o.cssBefore||{}),r.animate(o.animOut||{},o.speed,o.easeOut||o.easing,function(){r.css(o.cssAfter||{}),o.sync||c()}),o.sync&&c()},queueTransition:function(t,i){var n=this.opts(),s=void 0!==i?i:t.timeout;return 0===n.nextSlide&&0==--n.loop?(n.API.log("terminating; loop=0"),n.timeout=0,s?setTimeout(function(){n.API.trigger("cycle-finished",[n])},s):n.API.trigger("cycle-finished",[n]),void(n.nextSlide=n.currSlide)):void 0!==n.continueAuto&&(!1===n.continueAuto||e.isFunction(n.continueAuto)&&!1===n.continueAuto())?(n.API.log("terminating automatic transitions"),n.timeout=0,void(n.timeoutId&&clearTimeout(n.timeoutId))):void(s&&(n._lastQueue=e.now(),void 0===i&&(n._remainingTimeout=t.timeout),n.paused||n.hoverPaused||(n.timeoutId=setTimeout(function(){n.API.prepareTx(!1,!n.reverse)},s))))},stopTransition:function(){var e=this.opts();e.slides.filter(":animated").length&&(e.slides.stop(!1,!0),e.API.trigger("cycle-transition-stopped",[e])),e._tx&&e._tx.stopTransition&&e._tx.stopTransition(e)},advanceSlide:function(e){var t=this.opts();return clearTimeout(t.timeoutId),t.timeoutId=0,t.nextSlide=t.currSlide+e,t.nextSlide<0?t.nextSlide=t.slides.length-1:t.nextSlide>=t.slides.length&&(t.nextSlide=0),t.API.prepareTx(!0,e>=0),!1},buildSlideOpts:function(i){var n,s,a=this.opts(),o=i.data()||{};for(var r in o)o.hasOwnProperty(r)&&/^cycle[A-Z]+/.test(r)&&(n=o[r],s=r.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),a.API.log("["+(a.slideCount-1)+"]",s+":",n,"("+typeof n+")"),o[s]=n);o=e.extend({},e.fn.cycle.defaults,a,o),o.slideNum=a.slideCount;try{delete o.API,delete o.slideCount,delete o.currSlide,delete o.nextSlide,delete o.slides}catch(e){}return o},getSlideOpts:function(t){var i=this.opts();void 0===t&&(t=i.currSlide);var n=i.slides[t],s=e(n).data("cycle.opts");return e.extend({},i,s)},initSlide:function(t,i,n){var s=this.opts();i.css(t.slideCss||{}),n>0&&i.css("zIndex",n),isNaN(t.speed)&&(t.speed=e.fx.speeds[t.speed]||e.fx.speeds._default),t.sync||(t.speed=t.speed/2),i.addClass(s.slideClass)},updateView:function(e,t){var i=this.opts();
vendor: 1,786 bytes, line 77
77if(i._initialized){var n=i.API.getSlideOpts(),s=i.slides[i.currSlide];!e&&!0!==t&&(i.API.trigger("cycle-update-view-before",[i,n,s]),i.updateView<0)||(i.slideActiveClass&&i.slides.removeClass(i.slideActiveClass).eq(i.currSlide).addClass(i.slideActiveClass),e&&i.hideNonActive&&i.slides.filter(":not(."+i.slideActiveClass+")").css("visibility","hidden"),0===i.updateView&&setTimeout(function(){i.API.trigger("cycle-update-view",[i,n,s,e])},n.speed/(i.sync?2:1)),0!==i.updateView&&i.API.trigger("cycle-update-view",[i,n,s,e]),e&&i.API.trigger("cycle-update-view-after",[i,n,s]))}},getComponent:function(t){var i=this.opts(),n=i[t];return"string"==typeof n?/^\s*[\>|\+|~]/.test(n)?i.container.find(n):e(n):n.jquery?n:e(n)},stackSlides:function(t,i,n){var s=this.opts();t||(t=s.slides[s.currSlide],i=s.slides[s.nextSlide],n=!s.reverse),e(t).css("zIndex",s.maxZ);var a,o=s.maxZ-2,r=s.slideCount;if(n){for(a=s.currSlide+1;r>a;a++)e(s.slides[a]).css("zIndex",o--);for(a=0;a<s.currSlide;a++)e(s.slides[a]).css("zIndex",o--)}else{for(a=s.currSlide-1;a>=0;a--)e(s.slides[a]).css("zIndex",o--);for(a=r-1;a>s.currSlide;a--)e(s.slides[a]).css("zIndex",o--)}e(i).css("zIndex",s.maxZ-1)},getSlideIndex:function(e){return this.opts().slides.index(e)}},e.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},e.fn.cycle.version=function(){return"Cycle2: 2.1.5"},e.fn.cycle.transitions={custom:{},none:{before:function(e,t,i,n){e.API.stackSlides(i,t,n),e.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(t,i,n,s){var a=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,n,s),t.cssBefore=e.extend(a,{opacity:0,visibility:"visible",display:"block"}),t.animIn={opacity:1},t.animOut={opacity:0}
vendor: 8,005 bytes, lines 77-78
77}
78},fadeout:{before:function(t,i,n,s){var a=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,n,s),t.cssBefore=e.extend(a,{opacity:1,visibility:"visible",display:"block"}),t.animOut={opacity:0}}},scrollHorz:{before:function(e,t,i,n){e.API.stackSlides(t,i,n);var s=e.container.css("overflow","hidden").width();e.cssBefore={left:n?s:-s,top:0,opacity:1,visibility:"visible",display:"block"},e.cssAfter={zIndex:e._maxZ-2,left:0},e.animIn={left:0},e.animOut={left:n?-s:s}}}},e.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0},e(document).ready(function(){e(e.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),function(e){"use strict";function t(t,n){var s,a,o,r=n.autoHeight;if("container"==r)a=e(n.slides[n.currSlide]).outerHeight(),n.container.height(a);else if(n._autoHeightRatio)n.container.height(n.container.width()/n._autoHeightRatio);else if("calc"===r||"number"==e.type(r)&&r>=0){if((o="calc"===r?i(t,n):r>=n.slides.length?0:r)==n._sentinelIndex)return;n._sentinelIndex=o,n._sentinel&&n._sentinel.remove(),s=e(n.slides[o].cloneNode(!0)),s.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),s.css({position:"static",visibility:"hidden",display:"block"}).prependTo(n.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active"),s.find("*").css("visibility","hidden"),n._sentinel=s}}function i(t,i){var n=0,s=-1;return i.slides.each(function(t){var i=e(this).height();i>s&&(s=i,n=t)}),n}function n(t,i,n,s){var a=e(s).outerHeight();i.container.animate({height:a},i.autoHeightSpeed,i.autoHeightEasing)}function s(i,a){a._autoHeightOnResize&&(e(window).off("resize orientationchange",a._autoHeightOnResize),a._autoHeightOnResize=null),a.container.off("cycle-slide-added cycle-slide-removed",t),a.container.off("cycle-destroyed",s),a.container.off("cycle-before",n),a._sentinel&&(a._sentinel.remove(),a._sentinel=null)}e.extend(e.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null}),e(document).on("cycle-initialized",function(i,a){function o(){t(i,a)}var r,l=a.autoHeight,c=e.type(l),d=null;("string"===c||"number"===c)&&(a.container.on("cycle-slide-added cycle-slide-removed",t),a.container.on("cycle-destroyed",s),"container"==l?a.container.on("cycle-before",n):"string"===c&&/\d+\:\d+/.test(l)&&(r=l.match(/(\d+)\:(\d+)/),r=r[1]/r[2],a._autoHeightRatio=r),"number"!==c&&(a._autoHeightOnResize=function(){clearTimeout(d),d=setTimeout(o,50)},e(window).on("resize orientationchange",a._autoHeightOnResize)),setTimeout(o,30))})}(jQuery),function(e){"use strict";e.extend(e.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}</div><div>{{desc}}</div>",captionModule:"caption"}),e(document).on("cycle-update-view",function(t,i,n,s){"caption"===i.captionModule&&e.each(["caption","overlay"],function(){var e=this,t=n[e+"Template"],a=i.API.getComponent(e);a.length&&t?(a.html(i.API.tmpl(t,n,i,s)),a.show()):a.hide()})}),e(document).on("cycle-destroyed",function(t,i){var n;e.each(["caption","overlay"],function(){var e=this,t=i[e+"Template"];i[e]&&t&&(n=i.API.getComponent("caption"),n.empty())})})}(jQuery),function(e){"use strict";var t=e.fn.cycle;e.fn.cycle=function(i){var n,s,a,o=e.makeArray(arguments);return"number"==e.type(i)?this.cycle("goto",i):"string"==e.type(i)?this.each(function(){var r;return n=i,a=e(this).data("cycle.opts"),void 0===a?void t.log('slideshow must be initialized before sending commands; "'+n+'" ignored'):(n="goto"==n?"jump":n,s=a.API[n],e.isFunction(s)?(r=e.makeArray(o),r.shift(),s.apply(a.API,r)):void t.log("unknown command: ",n))}):t.apply(this,arguments)},e.extend(e.fn.cycle,t),e.extend(t.API,{next:function(){var e=this.opts();if(!e.busy||e.manualTrump){var t=e.reverse?-1:1;!1===e.allowWrap&&e.currSlide+t>=e.slideCount||(e.API.advanceSlide(t),e.API.trigger("cycle-next",[e]).log("cycle-next"))}},prev:function(){var e=this.opts();if(!e.busy||e.manualTrump){var t=e.reverse?1:-1;!1===e.allowWrap&&e.currSlide+t<0||(e.API.advanceSlide(t),e.API.trigger("cycle-prev",[e]).log("cycle-prev"))}},destroy:function(){this.stop();var t=this.opts(),i=e.isFunction(e._data)?e._data:e.noop;clearTimeout(t.timeoutId),t.timeoutId=0,t.API.stop(),t.API.trigger("cycle-destroyed",[t]).log("cycle-destroyed"),t.container.removeData(),i(t.container[0],"parsedAttrs",!1),t.retainStylesOnDestroy||(t.container.removeAttr("style"),t.slides.removeAttr("style"),t.slides.removeClass(t.slideActiveClass)),t.slides.each(function(){e(this).removeData(),i(this,"parsedAttrs",!1)})},jump:function(e,t){var i,n=this.opts();if(!n.busy||n.manualTrump){var s=parseInt(e,10);if(isNaN(s)||0>s||s>=n.slides.length)return void n.API.log("goto: invalid slide index: "+s);if(s==n.currSlide)return void n.API.log("goto: skipping, already on slide",s);n.nextSlide=s,clearTimeout(n.timeoutId),n.timeoutId=0,n.API.log("goto: ",s," (zero-index)"),i=n.currSlide<n.nextSlide,n._tempFx=t,n.API.prepareTx(!0,i)}},stop:function(){var t=this.opts(),i=t.container;clearTimeout(t.timeoutId),t.timeoutId=0,t.API.stopTransition(),t.pauseOnHover&&(!0!==t.pauseOnHover&&(i=e(t.pauseOnHover)),i.off("mouseenter mouseleave")),t.API.trigger("cycle-stopped",[t]).log("cycle-stopped")},reinit:function(){var e=this.opts();e.API.destroy(),e.container.cycle()},remove:function(t){for(var i,n,s=this.opts(),a=[],o=1,r=0;r<s.slides.length;r++)i=s.slides[r],r==t?n=i:(a.push(i),e(i).data("cycle.opts").slideNum=o,o++);n&&(s.slides=e(a),s.slideCount--,e(n).remove(),t==s.currSlide?s.API.advanceSlide(1):t<s.currSlide?s.currSlide--:s.currSlide++,s.API.trigger("cycle-slide-removed",[s,t,n]).log("cycle-slide-removed"),s.API.updateView())}}),e(document).on("click.cycle","[data-cycle-cmd]",function(t){t.preventDefault();var i=e(this),n=i.data("cycle-cmd"),s=i.data("cycle-context")||".cycle-slideshow";e(s).cycle(n,i.data("cycle-arg"))})}(jQuery),function(e){"use strict";function t(t,i){var n;return t._hashFence?void(t._hashFence=!1):(n=window.location.hash.substring(1),void t.slides.each(function(s){if(e(this).data("cycle-hash")==n){if(!0===i)t.startingSlide=s;else{var a=t.currSlide<s;t.nextSlide=s,t.API.prepareTx(!0,a)}return!1}}))}e(document).on("cycle-pre-initialize",function(i,n){t(n,!0),n._onHashChange=function(){t(n,!1)},e(window).on("hashchange",n._onHashChange)}),e(document).on("cycle-update-view",function(e,t,i){i.hash&&"#"+i.hash!=window.location.hash&&(t._hashFence=!0,window.location.hash=i.hash)}),e(document).on("cycle-destroyed",function(t,i){i._onHashChange&&e(window).off("hashchange",i._onHashChange)})}(jQuery),function(e){"use strict";e.extend(e.fn.cycle.defaults,{loader:!1}),e(document).on("cycle-bootstrap",function(t,i){function n(t,n){function a(t){var a;"wait"==i.loader?(r.push(t),0===c&&(r.sort(o),s.apply(i.API,[r,n]),i.container.removeClass("cycle-loading"))):(a=e(i.slides[i.currSlide]),s.apply(i.API,[t,n]),a.show(),i.container.removeClass("cycle-loading"))}function o(e,t){return e.data("index")-t.data("index")}var r=[];if("string"==e.type(t))t=e.trim(t);else if("array"===e.type(t))for(var l=0;l<t.length;l++)t[l]=e(t[l])[0];t=e(t);var c=t.length;c&&(t.css("visibility","hidden").appendTo("body").each(function(t){function o(){0==--l&&(--c,a(d))}var l=0,d=e(this),u=d.is("img")?d:d.find("img");return d.data("index",t),u=u.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),u.length?(l=u.length,void u.each(function(){this.complete?o():e(this).load(function(){o()}).on("error",function(){0==--l&&(i.API.log("slide skipped; img not loaded:",this.src),0==--c&&"wait"==i.loader&&s.apply(i.API,[r,n]))})})):(--c,void r.push(d))}
78),c&&i.container.addClass("cycle-loading"))}var s;i.loader&&(s=i.API.add,i.API.add=n)})}(jQuery),function(e){"use strict";function t(t,i,n){var s;t.API.getComponent("pager").each(function(){var a=e(this);if(i.pagerTemplate){var o=t.API.tmpl(i.pagerTemplate,i,t,n[0]);s=e(o).appendTo(a)}else s=a.children().eq(t.slideCount-1);s.on(t.pagerEvent,function(e){t.pagerEventBubble||e.preventDefault(),t.API.page(a,e.currentTarget)})})}function i(e,t){var i=this.opts();if(!i.busy||i.manualTrump){var n=e.children().index(t),s=n,a=i.currSlide<s;i.currSlide!=s&&(i.nextSlide=s,i._tempFx=i.pagerFx,i.API.prepareTx(!0,a),i.API.trigger("cycle-pager-activated",[i,e,t]))}}e.extend(e.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:"<span>&bull;</span>"}),e(document).on("cycle-bootstrap",function(e,i,n){n.buildPagerLink=t}),e(document).on("cycle-slide-added",function(e,t,n,s){t.pager&&(t.API.buildPagerLink(t,n,s),t.API.page=i)}),e(document).on("cycle-slide-removed",function(t,i,n){if(i.pager){i.API.getComponent("pager").each(function(){var t=e(this);e(t.children()[n]).remove()})}}),e(document).on("cycle-update-view",function(t,i){var n;i.pager&&(n=i.API.getComponent("pager"),n.each(function(){e(this).children().removeClass(i.pagerActiveClass).eq(i.currSlide).addClass(i.pagerActiveClass)}))}),e(document).on("cycle-destroyed",function(e,t){var i=t.API.getComponent("pager");i&&(i.children().off(t.pagerEvent),t.pagerTemplate&&i.empty())})}(jQuery),function(e){"use strict";e.extend(e.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),e(document).on("cycle-initialized",function(e,t){if(t.API.getComponent("next").on(t.nextEvent,function(e){e.preventDefault(),t.API.next()}),t.API.getComponent("prev").on(t.prevEvent,function(e){e.preventDefault(),t.API.prev()}),t.swipe){var i=t.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",n=t.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";t.container.on(i,function(){t._tempFx=t.swipeFx,t.API.next()}),t.container.on(n,function(){t._tempFx=t.swipeFx,t.API.prev()})}}),e(document).on("cycle-update-view",function(e,t){if(!t.allowWrap){var i=t.disabledClass,n=t.API.getComponent("next"),s=t.API.getComponent("prev"),a=t._prevBoundry||0,o=void 0!==t._nextBoundry?t._nextBoundry:t.slideCount-1;t.currSlide==o?n.addClass(i).prop("disabled",!0):n.removeClass(i).prop("disabled",!1),t.currSlide===a?s.addClass(i).prop("disabled",!0):s.removeClass(i).prop("disabled",!1)}}),e(document).on("cycle-destroyed",function(e,t){t.API.getComponent("prev").off(t.nextEvent),t.API.getComponent("next").off(t.prevEvent),t.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(e){"use strict";e.extend(e.fn.cycle.defaults,{progressive:!1}),e(document).on("cycle-pre-initialize",function(t,i){if(i.progressive){var n,s,a=i.API,o=a.next,r=a.prev,l=a.prepareTx,c=e.type(i.progressive);if("array"==c)n=i.progressive;else if(e.isFunction(i.progressive))n=i.progressive(i);else if("string"==c){if(s=e(i.progressive),!(n=e.trim(s.html())))return;if(/^(\[)/.test(n))try{n=e.parseJSON(n)}catch(e){return void a.log("error parsing progressive slides",e)}else n=n.split(new RegExp(s.data("cycle-split")||"\n")),n[n.length-1]||n.pop()}l&&(a.prepareTx=function(e,t){var s,a;return e||0===n.length?void l.apply(i.API,[e,t]):void(t&&i.currSlide==i.slideCount-1?(a=n[0],n=n.slice(1),i.container.one("cycle-slide-added",function(e,t){setTimeout(function(){t.API.advanceSlide(1)},50)}),i.API.add(a)):t||0!==i.currSlide?l.apply(i.API,[e,t]):(s=n.length-1,a=n[s],n=n.slice(0,s),i.container.one("cycle-slide-added",function(e,t){setTimeout(function(){t.currSlide=1,t.API.advanceSlide(-1)},50)}),i.API.add(a,!0)))}),o&&(a.next=function(){var e=this.opts();if(n.length&&e.currSlide==e.slideCount-1){var t=n[0];n=n.slice(1),e.container.one("cycle-slide-added",function(e,t){o.apply(t.API),t.container.removeClass("cycle-loading")}),e.container.addClass("cycle-loading"),e.API.add(t)}else o.apply(e.API)}),r&&(a.prev=function(){var e=this.opts();if(n.length&&0===e.currSlide){var t=n.length-1,i=n[t];n=n.slice(0,t),e.container.one("cycle-slide-added",function(e,t){t.currSlide=1,t.API.advanceSlide(-1),t.container.removeClass("cycle-loading")}),e.container.addClass("cycle-loading"),e.API.add(i,!0)}else r.apply(e.API)})}})}(jQuery),function(e){"use strict";e.extend(e.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),e.extend(e.fn.cycle.API,{tmpl:function(t,i){var n=new RegExp(i.tmplRegex||e.fn.cycle.defaults.tmplRegex,"g"),s=e.makeArray(arguments);return s.shift(),t.replace(n,function(t,i){var n,a,o,r,l=i.split(".");for(n=0;n<s.length;n++)if(o=s[n]){if(l.length>1)for(r=o,a=0;a<l.length;a++)o=r,r=r[l[a]]||i;else r=o[i];if(e.isFunction(r))return r.apply(o,s);if(void 0!==r&&null!==r&&r!=i)return r}return i})}})}(jQuery),function(e){"use strict";e(document).on("cycle-bootstrap",function(e,t,i){"carousel"===t.fx&&(i.getSlideIndex=function(e){var t=this.opts()._carouselWrap.children();return t.index(e)%t.length},i.next=function(){var e=t.reverse?-1:1;!1===t.allowWrap&&t.currSlide+e>t.slideCount-t.carouselVisible||(t.API.advanceSlide(e),t.API.trigger("cycle-next",[t]).log("cycle-next"))})}),e.fn.cycle.transitions.carousel={preInit:function(t){t.hideNonActive=!1,t.container.on("cycle-destroyed",e.proxy(this.onDestroy,t.API)),t.API.stopTransition=this.stopTransition;for(var i=0;t.startingSlide>i;i++)t.container.append(t.slides[0])},postInit:function(t){var i,n,s,a,o=t.carouselVertical;t.carouselVisible&&t.carouselVisible>t.slideCount&&(t.carouselVisible=t.slideCount-1);var r=t.carouselVisible||t.slides.length,l={display:o?"block":"inl
78ine-block",position:"static"};if(t.container.css({position:"relative",overflow:"hidden"}),t.slides.css(l),t._currSlide=t.currSlide,a=e('<div class="cycle-carousel-wrap"></div>').prependTo(t.container).css({margin:0,padding:0,top:0,left:0,position:"absolute"}).append(t.slides),t._carouselWrap=a,o||a.css("white-space","nowrap"),!1!==t.allowWrap){for(n=0;(void 0===t.carouselVisible?2:1)>n;n++){for(i=0;t.slideCount>i;i++)a.append(t.slides[i].cloneNode(!0));for(i=t.slideCount;i--;)a.prepend(t.slides[i].cloneNode(!0))}a.find(".cycle-slide-active").removeClass("cycle-slide-active"),t.slides.eq(t.startingSlide).addClass("cycle-slide-active")}t.pager&&!1===t.allowWrap&&(s=t.slideCount-r,e(t.pager).children().filter(":gt("+s+")").hide()),t._nextBoundry=t.slideCount-t.carouselVisible,this.prepareDimensions(t)},prepareDimensions:function(t){var i,n,s,a,o=t.carouselVertical,r=t.carouselVisible||t.slides.length;if(t.carouselFluid&&t.carouselVisible?t._carouselResizeThrottle||this.fluidSlides(t):t.carouselVisible&&t.carouselSlideDimension?(i=r*t.carouselSlideDimension,t.container[o?"height":"width"](i)):t.carouselVisible&&(i=r*e(t.slides[0])[o?"outerHeight":"outerWidth"](!0),t.container[o?"height":"width"](i)),n=t.carouselOffset||0,!1!==t.allowWrap)if(t.carouselSlideDimension)n-=(t.slideCount+t.currSlide)*t.carouselSlideDimension;else for(s=t._carouselWrap.children(),a=0;t.slideCount+t.currSlide>a;a++)n-=e(s[a])[o?"outerHeight":"outerWidth"](!0);t._carouselWrap.css(o?"top":"left",n)},fluidSlides:function(t){function i(){clearTimeout(s),s=setTimeout(n,20)}function n(){t._carouselWrap.stop(!1,!0);var e=t.container.width()/t.carouselVisible;e=Math.ceil(e-o),t._carouselWrap.children().width(e),t._sentinel&&t._sentinel.width(e),r(t)}var s,a=t.slides.eq(0),o=a.outerWidth()-a.width(),r=this.prepareDimensions;e(window).on("resize",i),t._carouselResizeThrottle=i,n()},transition:function(t,i,n,s,a){var o,r={},l=t.nextSlide-t.currSlide,c=t.carouselVertical,d=t.speed;if(!1===t.allowWrap){s=l>0;var u=t._currSlide,h=t.slideCount-t.carouselVisible;l>0&&t.nextSlide>h&&u==h?l=0:l>0&&t.nextSlide>h?l=t.nextSlide-u-(t.nextSlide-h):0>l&&t.currSlide>h&&t.nextSlide>h?l=0:0>l&&t.currSlide>h?l+=t.currSlide-h:u=t.currSlide,o=this.getScroll(t,c,u,l),t.API.opts()._currSlide=t.nextSlide>h?h:t.nextSlide}else s&&0===t.nextSlide?(o=this.getDim(t,t.currSlide,c),a=this.genCallback(t,s,c,a)):s||t.nextSlide!=t.slideCount-1?o=this.getScroll(t,c,t.currSlide,l):(o=this.getDim(t,t.currSlide,c),a=this.genCallback(t,s,c,a));r[c?"top":"left"]=s?"-="+o:"+="+o,t.throttleSpeed&&(d=o/e(t.slides[0])[c?"height":"width"]()*t.speed),t._carouselWrap.animate(r,d,t.easing,a)},getDim:function(t,i,n){return e(t.slides[i])[n?"outerHeight":"outerWidth"](!0)},getScroll:function(e,t,i,n){var s,a=0;if(n>0)for(s=i;i+n>s;s++)a+=this.getDim(e,s,t);else for(s=i;s>i+n;s--)a+=this.getDim(e,s,t);return a},genCallback:function(t,i,n,s){return function(){var i=e(t.slides[t.nextSlide]).position(),a=0-i[n?"top":"left"]+(t.carouselOffset||0);t._carouselWrap.css(t.carouselVertical?"top":"left",a),s()}},stopTransition:function(){var e=this.opts();e.slides.stop(!1,!0),e._carouselWrap.stop(!1,!0)},onDestroy:function(){var t=this.opts();t._carouselResizeThrottle&&e(window).off("resize",t._carouselResizeThrottle),t.slides.prependTo(t.container),t._carouselWrap.remove()}}}(jQuery),function(e){"use strict";e.event.special.swipe=e.event.special.swipe||{scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var t=e(this);t.bind("touchstart",function(i){function n(t){if(o){var i=t.originalEvent.touches?t.originalEvent.touches[0]:t;s={time:(new Date).getTime(),coords:[i.pageX,i.pageY]},Math.abs(o.coords[0]-s.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()}}var s,a=i.originalEvent.touches?i.originalEvent.touches[0]:i,o={time:(new Date).getTime(),coords:[a.pageX,a.pageY],origin:e(i.target)};t.bind("touchmove",n).one("touchend",function(){t.unbind("touchmove",n),o&&s&&s.time-o.time<e.event.special.swipe.durationThreshold&&Math.abs(o.coords[0]-s.coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(o.coords[1]-s.coords[1])<e.event.special.swipe.verticalDistanceThreshold&&o.origin.trigger("swipe").trigger(o.coords[0]>
78s.coords[0]?"swipeleft":"swiperight"),o=s=void 0})})}},e.event.special.swipeleft=e.event.special.swipeleft||{setup:function(){e(this).bind("swipe",e.noop)}},e.event.special.swiperight=e.event.special.swiperight||e.event.special.swipeleft}(jQuery),jQuery.cookie=function(e,t,i){if(void 0===t){if(t=null,document.cookie&&""!=document.cookie)for(i=document.cookie.split(";"),n=0;n<i.length;n++)if(s=jQuery.trim(i[n]),s.substring(0,e.length+1)==e+"="){t=decodeURIComponent(s.substring(e.length+1));break}return t}i=i||{},null===t&&(t="",i=$.extend({},i),i.expires=-1);var n="";i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(n=new Date,n.setTime(n.getTime()+24*i.expires*60*60*1e3)):n=i.expires,n="; expires="+n.toUTCString());var s=i.path?"; path="+i.path:"",a=i.domain?"; domain="+i.domain:"";i=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),n,s,a,i].join("")};var IASCallbacks=function(){return this.list=[],this.fireStack=[],this.isFiring=!1,this.isDisabled=!1,this.fire=function(e){var t=e[0],i=e[1],n=e[2];this.isFiring=!0;for(var s=0,a=this.list.length;a>s;s++)if(!1===this.list[s].fn.apply(t,n)){i.reject();break}this.isFiring=!1,i.resolve(),this.fireStack.length&&this.fire(this.fireStack.shift())},this.inList=function(e,t){t=t||0;for(var i=t,n=this.list.length;n>i;i++)if(this.list[i].fn===e||e.guid&&this.list[i].fn.guid&&e.guid===this.list[i].fn.guid)return i;return-1},this};IASCallbacks.prototype={add:function(e,t){var i={fn:e,priority:t};t=t||0;for(var n=0,s=this.list.length;s>n;n++)if(t>this.list[n].priority)return this.list.splice(n,0,i),this;return this.list.push(i),this},remove:function(e){for(var t=0;(t=this.inList(e,t))>-1;)this.list.splice(t,1);return this},has:function(e){return this.inList(e)>-1},fireWith:function(e,t){var i=$.Deferred();return this.isDisabled?i.reject():(t=t||[],t=[e,i,t.slice?t.slice():t],this.isFiring?this.fireStack.push(t):this.fire(t),i)},disable:function(){this.isDisabled=!0},enable:function(){this.isDisabled=!1}},function(e){"use strict";var t=function(t,i){return this.itemsContainerSelector=i.container,this.itemSelector=i.item,this.nextSelector=i.next,this.paginationSelector=i.pagination,this.$scrollContainer=t,this.$itemsContainer=e(this.itemsContainerSelector),this.$container=window===t.get(0)?e(document):t,this.defaultDelay=i.delay,this.negativeMargin=i.negativeMargin,this.nextUrl=null,this.isBound=!1,this.listeners={next:new IASCallbacks,load:new IASCallbacks,loaded:new IASCallbacks,render:new IASCallbacks,rendered:new IASCallbacks,scroll:ne
78w IASCallbacks,noneLeft:new IASCallbacks,ready:new IASCallbacks},this.extensions=[],this.scrollHandler=function(){var e=this.getCurrentScrollOffset(this.$scrollContainer),t=this.getScrollThreshold();this.isBound&&-1!=t&&(this.fire("scroll",[e,t]),e>=t&&this.next())},this.getLastItem=function(){return e(this.itemSelector,this.$itemsContainer.get(0)).last()},this.getFirstItem=function(){return e(this.itemSelector,this.$itemsContainer.get(0)).first()},this.getScrollThreshold=function(e){var t;return e=e||this.negativeMargin,e=e>=0?-1*e:e,t=this.getLastItem(),0===t.size()?-1:t.offset().top+t.height()+e},this.getCurrentScrollOffset=function(e){var t=0,i=e.height();return t=window===e.get(0)?e.scrollTop():e.offset().top,(-1!=navigator.platform.indexOf("iPhone")||-1!=navigator.platform.indexOf("iPod"))&&(i+=80),t+i},this.getNextUrl=function(t){return t||(t=this.$container),e(this.nextSelector,t).last().attr("href")},this.load=function(t,i,n){var s,a,o=this,r=[],l=+new Date;return n=n||this.defaultDelay,o.fire("load",[t]),e.get(t,null,e.proxy(function(t){s=e(this.itemsContainerSelector,t).eq(0),0===s.length&&(s=e(t).filter(this.itemsContainerSelector).eq(0)),s&&s.find(this.itemSelector).each(function(){r.push(this)}),o.fire("loaded",[t,r]),i&&(a=+new Date-l,n>a?setTimeout(function(){i.call(o,t,r)},n-a):i.call(o,t,r))},o),"html")},this.render=function(t,i){var n=this,s=this.getLastItem(),a=0;this.fire("render",[t]),e(t).hide(),s.after(t),e(t).fadeIn(400,function(){++a<t.length||(n.fire("rendered",[t]),i&&i())})},this.hidePagination=function(){this.paginationSelector&&e(this.paginationSelector,this.$container).hide()},this.restorePagination=function(){this.paginationSelector&&e(this.paginationSelector,this.$container).show()},this.throttle=function(t,i){var n,s,a=0;return n=function(){function e(){a=+new Date,t.apply(n,o)}var n=this,o=arguments,r=+new Date-a;s?clearTimeout(s):e(),r>i?e():s=setTimeout(e,i)},e.guid&&(n.guid=t.guid=t.guid||e.guid++),n},this.fire=function(e,t){return this.listeners[e].fireWith(this,t)},this};t.prototype.initialize=function(){var e=this.getCurrentScrollOffset(this.$scrollContainer),t=this.getScrollThreshold();this.hidePagination(),this.bind();for(var i=0,n=this.extensions.length;n>i;i++)this.extensions[i].bind(this);return this.fire("ready"),this.nextUrl=this.getNextUrl(),e>=t&&this.next(),this},t.prototype.bind=function(){this.isBound||(this.$scrollContainer.on("scroll",e.proxy(this.throttle(this.scrollHandler,150),this)),this.isBound=!0)},t.prototype.unbind=function(){this.isBound&&(this.$scrollContainer.off("scroll",this.scrollHandler),this.isBound=!1)},t.prototype.destroy=function(){this.unbind()},t.prototype.on=function(t,i,n){if(void 0===this.listeners[t])throw new Error('There is no event called "'+t+'"');return n=n||0,this.listeners[t].add(e.proxy(i,this),n),this},t.prototype.one=function(e,t){var i=this,n=function(){i.off(e,t),i.off(e,n)};return this.on(e,t),this.on(e,n),this},t.prototype.off=function(e,t){if(void 0===this.listeners[e])throw new Error('There is no event called "'+e+'"');return this.listeners[e].remove(t),this},t.prototype.next=function(){var e=this.nextUrl,t=this;if(this.unbind(),!e)return this.fire("noneLeft",[this.getLastItem()]),this.listeners.noneLeft.disable(),t.bind(),!1;var i=this.fire("next",[e]);return i.done(function(){t.load(e,function(e,i){t.render(i,function(){t.nextUrl=t.getNextUrl(e),t.bind()})})}),i.fail(function(){t.bind()}),!0},t.prototype.extension=function(e){if(void 0===e.bind)throw new Error('Extension doesn\'t have required method "bind"');return void 0!==e.initialize&&e.initialize(this),this.extensions.push(e),this},e.ias=function(){var t=e(window);return t.ias.apply(t,arguments)},e.fn.ias=function(i){var n=Array.prototype.slice.call(arguments),s=this;return this.each(function(){var a=e(this),o=a.data("ias"),r=e.extend({},e.fn.ias.defaults,a.data(),"object"==typeof i&&i);if(o||(a.data("ias",o=new t(a,r)),e(document).ready(e.proxy(o.initialize,o))),"string"==typeof i){if("function"!=typeof o[i])throw new Error('There is no method called "'+i+'"');n.shift(),o[i].apply(o,n),"destroy"===i&&a.data("ias",null)}s=a.data("ias")}),s},e.fn.ias.defaults={item:".item",container:".listing",next:".next",pagination:!1,delay:600,negativeMargin:10}}(jQuery);var IASHistoryExtension=function(e){return e=$.extend({},this.defaults,e),this.ias=null,this.prevSelector=e.prev,this.prevUrl=null,this.listeners={prev:new IASCallbacks},this.onPageChange=function(e,t,i){var n={};window.history&&window.history.replaceState&&history.replaceState(n,document.title,i)},this.onScroll=function(e){var t=this.getScrollThresholdFirstItem();
78this.prevUrl&&(e-=this.ias.$scrollContainer.height(),t>=e&&this.prev())},this.getPrevUrl=function(e){return e||(e=this.ias.$container),$(this.prevSelector,e).last().attr("href")},this.getScrollThresholdFirstItem=function(){var e;return e=this.ias.getFirstItem(),0===e.size()?-1:e.offset().top},this.renderBefore=function(e,t){var i=this.ias,n=i.getFirstItem(),s=0;i.fire("render",[e]),$(e).hide(),n.before(e),$(e).fadeIn(400,function(){++s<e.length||(i.fire("rendered",[e]),t&&t())})},this};IASHistoryExtension.prototype.initialize=function(e){var t=this;this.ias=e,jQuery.extend(e.listeners,this.listeners),e.prev=function(){t.prev()},this.prevUrl=this.getPrevUrl()},IASHistoryExtension.prototype.bind=function(e){var t=this;e.on("pageChange",$.proxy(this.onPageChange,this)),e.on("scroll",$.proxy(this.onScroll,this)),e.on("ready",function(){var i=e.getCurrentScrollOffset(e.$scrollContainer),n=t.getScrollThresholdFirstItem();i-=e.$scrollContainer.height(),n>=i&&t.prev()})},IASHistoryExtension.prototype.prev=function(){var e=this.prevUrl,t=this,i=this.ias;if(!e)return!1;i.unbind();var n=i.fire("prev",[e]);return n.done(function(){i.load(e,function(e,n){t.renderBefore(n,function(){t.prevUrl=t.getPrevUrl(e),i.bind(),t.prevUrl&&t.prev()})})}),n.fail(function(){i.bind()}),!0},IASHistoryExtension.prototype.defaults={prev:".prev"};var IASNoneLeftExtension=function(e){return e=$.extend({},this.defaults,e),this.ias=null,this.uid=(new Date).getTime(),this.html=e.html.replace("{text}
78",e.text),this.showNoneLeft=function(){var e=$(this.html).attr("id","ias_noneleft_"+this.uid);this.ias.getLastItem().after(e),e.fadeIn()},this};IASNoneLeftExtension.prototype.bind=function(e){this.ias=e,e.on("noneLeft",$.proxy(this.showNoneLeft,this))},IASNoneLeftExtension.prototype.defaults={text:"You reached the end.",html:'<div class="ias-noneleft" style="text-align: center;">{text}</div>'};var IASPagingExtension=function(){return this.ias=null,this.pagebreaks=[[0,document.location.toString()]],this.lastPageNum=1,this.enabled=!0,this.listeners={pageChange:new IASCallbacks},this.onScroll=function(e){if(this.enabled){var t,i=this.ias,n=this.getCurrentPageNum(e),s=this.getCurrentPagebreak(e);this.lastPageNum!==n&&(t=s[1],i.fire("pageChange",[n,e,t])),this.lastPageNum=n}},this.onNext=function(e){var t=this.ias.getCurrentScrollOffset(this.ias.$scrollContainer);this.pagebreaks.push([t,e]);var i=this.getCurrentPageNum(t)+1;this.ias.fire("pageChange",[i,t,e]),this.lastPageNum=i},this.onPrev=function(e){var t=this,i=t.ias,n=i.getCurrentScrollOffset(i.$scrollContainer),s=n-i.$scrollContainer.height(),a=i.getFirstItem();this.enabled=!1,this.pagebreaks.unshift([0,e]),i.one("rendered",function(){for(var n=1,o=t.pagebreaks.length;o>n;n++)t.pagebreaks[n][0]=t.pagebreaks[n][0]+a.offset().top;var r=t.getCurrentPageNum(s)+1;i.fire("pageChange",[r,s,e]),t.lastPageNum=r,t.enabled=!0})},this};IASPagingExtension.prototype.initialize=function(e){this.ias=e,jQuery.extend(e.listeners,this.listeners)},IASPagingExtension.prototype.bind=function(e){try{e.on("prev",$.proxy(this.onPrev,this),this.priority)}catch(e){}e.on("next",$.proxy(this.onNext,this),this.priority),e.on("scroll",$.proxy(this.onScroll,this),this.priority)},IASPagingExtension.prototype.getCurrentPageNum=function(e){for(var t=this.pagebreaks.length-1;t>0;t--)if(e>this.pagebreaks[t][0])return t+1;return 1},IASPagingExtension.prototype.getCurrentPagebreak=function(e){for(var t=this.pagebreaks.length-1;t>=0;t--)if(e>this.pagebreaks[t][0])return this.pagebreaks[t];return null},IASPagingExtension.prototype.priority=500;var IASSpinnerExtension=function(e){return e=$.extend({},this.defaults,e),this.ias=null,this.uid=(new Date).getTime(),this.src=e.src,this.html=e.html.replace("{src}",this.src),this.showSpinner=function(){var e=this.getSpinner()||this.createSpinner();this.ias.getLastItem().parent().after(e),e.fadeIn()},this.showSpinnerBefore=function(){var e=this.getSpinner()||this.createSpinner();this.ias.getFirstItem().parent().before(e),e.fadeIn()},this.removeSpinner=function(){this.hasSpinner()&&this.getSpinner().remove()}
78,this.getSpinner=function(){var e=$("#ias_spinner_"+this.uid);return e.size()>0&&e},this.hasSpinner=function(){return $("#ias_spinner_"+this.uid).size()>0},this.createSpinner=function(){var e=$(this.html).attr("id","ias_spinner_"+this.uid);return e.hide(),e},this};IASSpinnerExtension.prototype.bind=function(e){this.ias=e,e.on("next",$.proxy(this.showSpinner,this));try{e.on("prev",$.proxy(this.showSpinnerBefore,this))}catch(e){}e.on("render",$.proxy(this.removeSpinner,this))},IASSpinnerExtension.prototype.defaults={
79src:"data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAkKAAAALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQEwi6/3YSGWRRmjhEETAJfIgMFCnAKM0KDV4EEEAQLiF18TAYNXDaSe3x6mjidN1s3IQAh+QQJCgAAACwAAAAAEAAQAAAFeCAgAgLZDGU5jgRECEUiCI+yioSDwDJyLKsXoHFQxBSHAoAAFBhqtMJg8DgQBgfrEsJAEAg4YhZIEiwgKtHiMBgtpg3wbUZXGO7kOb1MUKRFMysCChAoggJCIg0GC2aNe4gqQldfL4l/Ag1AXySJgn5LcoE3QXI3IQAh+QQJCgAAACwAAAAAEAAQAAAFdiAgAgLZNGU5joQhCEjxIssqEo8bC9BRjy9Ag7GILQ4QEoE0gBAEBcOpcBA0DoxSK/e8LRIHn+i1cK0IyKdg0VAoljYIg+GgnRrwVS/8IAkICyosBIQpBAMoKy9dImxPhS+GKkFrkX+TigtLlIyKXUF+NjagNiEAIfkECQoAAAAsAAAAABAAEAAABWwgIAICaRhlOY4EIgjH8R7LKhKHGwsMvb4AAy3WODBIBBKCsYA9TjuhDNDKEVSERezQEL0WrhXucRUQGuik7bFlngzqVW9LMl9XWvLdjFaJtDFqZ1cEZUB0dUgvL3dgP4WJZn4jkomWNpSTIyEAIfkECQoAAAAsAAAAABAAEAAABX4gIAICuSxlOY6CIgiD8RrEKgqGOwxwUrMlAoSwIzAGpJpgoSDAGifDY5kopBYDlEpAQBwevxfBtRIUGi8xwWkDNBCIwmC9Vq0aiQQDQuK+VgQPDXV9hCJjBwcFYU5pLwwHXQcMKSmNLQcIAExlbH8JBwttaX0ABAcNbWVbKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICSRBlOY7CIghN8zbEKsKoIjdFzZaEgUBHKChMJtRwcWpAWoWnifm6ESAMhO8lQK0EEAV3rFopIBCEcGwDKAqPh4HUrY4ICHH1dSoTFgcHUiZjBhAJB2AHDykpKAwHAwdzf19KkASIPl9cDgcnDkdtNwiMJCshACH5BAkKAAAALAAAAAAQABAAAAV3ICACAkkQZTmOAiosiyAoxCq+KPxCNVsSMRgBsiClWrLTSWFoIQZHl6pleBh6suxKMIhlvzbAwkBWfFWrBQTxNLq2RG2yhSUkDs2b63AYDAoJXAcFRwADeAkJDX0AQCsEfAQMDAIPBz0rCgcxky0JRWE1AmwpKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICKZzkqJ4nQZxLqZKv4NqNLKK2/Q4Ek4lFXChsg5ypJjs1II3gEDUSRInEGYAw6B6zM4JhrDAtEosVkLUtHA7RHaHAGJQEjsODcEg0FBAFVgkQJQ1pAwcDDw8KcFtSInwJAowCCA6RIwqZAgkPNgVpWndjdyohACH5BAkKAAAALAAAAAAQABAAAAV5ICACAimc5KieLEuUKvm2xAKLqDCfC2GaO9eL0LABWTiBYmA06W6kHgvCqEJiAIJiu3gcvgUsscHUERm+kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQJCgAAACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQJCgAAACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==",html:'<div class="ias-spinner" style="text-align: center;"><img src="{src}"/></div>'};var IASTriggerExtension=function(e){return e=$.extend({},this.defaults,e),this.ias=null,this.html=e.html.replace("{text}",e.text),this.enabled=!0,this.count=0,this.offset=e.offset,this.$triggerNext=null,this.$triggerPrev=null,this.showTriggerNext=function(){if(!this.enabled)return!0;if(this.offset&&++this.count<this.offset)return!0;var e=this.$triggerNext||(this.$triggerNext=this.createTrigger(this.next));return this.ias.getLastItem().parent().after(e),e.fadeIn(),!1},this.showTriggerPrev=function(){if(!this.enabled)return!0;var e=this.$triggerPrev||(this.$triggerPrev=this.createTrigger(this.prev));return this.ias.getFirstItem().parent().before(e),e.fadeIn(),!1},this.createTrigger=function(e){var t=(new Date).getTime(),i=$(this.html).attr("id","ias_trigger_"+t);return i.hide(),i.on("click",$.proxy(e,this)),i},this};IASTriggerExtension.prototype.bind=function(e){var t=this;this.ias=e;try{e.on("prev",$.proxy(this.showTriggerPrev,this),this.priority)}catch(e){}e.on("next",$.proxy(this.showTriggerNext,this),this.priority),e.on("rendered",function(){t.enabled=!0},this.priority)},IASTriggerExtension.prototype.next=function(){this.enabled=!1,this.ias.unbind(),this.$triggerNext&&(this.$triggerNext.remove(),this.$triggerNext=null),this.ias.next()},IASTriggerExtension.prototype.prev=function(){this.enabled=!1,this.ias.unbind(),this.$triggerPrev&&(this.$triggerPrev.remove(),this.$triggerPrev=null),this.ias.prev()},IASTriggerExtension.prototype.defaults={text:"Load more items",html:'<div class="ias-trigger" style="text-align: center; cursor: pointer;"><a>{text}</a></div>',offset:0},IASTriggerExtension.prototype.priority=1e3,$.fn.dropDownMenu=function(e){$(this).each(function(){function t(){n.addClass("ddm--active"),a.attr("aria-hidden","false"),c.attr("aria-expanded","true"),d.focus()}function i(){n.removeClass("ddm--active"),a.attr("aria-hidden","true"),c.attr("aria-expanded","fal
79se")}var n=$(this),s=$(".ddm__title:first",n),a=$(".ddm__sub-level:first",n),o=$(".ddm__item:last, .ddm__close",a),r=!1,l="ddm__"+function(){return Math.round((new Date).getTime()+100*Math.random())}();s.children().hasClass("ddm__button")||(e.classBtn?s.wrapInner('<button type="button" class="ddm__button '+e.classBtn+'" aria-controls="'+l+'"></button>'):s.wrapInner('<button type="button" class="ddm__button" aria-controls="'+l+'"></button>'));var c=s.find(".ddm__button"),d=document.getElementById("search-box__input");a.attr("id",l),!0===e.disabled?(n.removeClass("ddm--active"),n.addClass("ddm--off"),n.removeClass("ddm--on"),a.removeAttr("aria-hidden"),1==s.children(".ddm__button").length&&s.children(".ddm__button").contents().unwrap()):(n.removeClass("ddm--off"),n.addClass("ddm--on"),c.attr("aria-haspopup","true"),c.attr("aria-expanded","false"),a.attr("aria-hidden","true"),o.on("click focusout",function(){i(),r=!1}),c.on("click",function(){!1===r?(t(),r=!0):(i(),r=!1)})),!1===e.independent&&$(document).on("click",function(e){n.hasClass("search-box__wrapper")?$(e.target).closest(n).length||$(e.target).hasClass("ui-corner-all")||(i(),r=!1):$(e.target).closest(n).length||(i(),r=!1)}),$(document).on("click",".search-box .btn-close",function(){i(),r=!1}),$(".svg-icon").click(function(){i(),r=!1})})},String.prototype.format||(String.prototype.format=function(){var e=arguments;if(e[0]instanceof Array){var t=e[0];return this.replace(/{(\d+)}/g,function(e,i){return void 0!==t[i]?t[i]:e})}return this.replace(/{(\d+)}/g,function(t,i){return void 0!==e[i]?e[i]:t})}),jQuery.fn.pieChart=function(e){function t(e,t,i){void 0!==e&&void 0!==t&&void 0!==i&&e.setAttributeNS(null,t,i)}function i(e,i){var n=document.createElementNS(o,"path");return t(n,"d",e),t(n,"class",i),n}function n(e,i){var n=document.createElementNS(o,"animateMotion");t(n,"path",r.format(0,0)+l.format(s(0,0,f,i))),t(n,"begin","0s"),t(n,"dur","200ms"),t(n,"fill","freeze"),e.appendChild(n)}function s(e,t,i,n){var s=(n-90)*Math.PI/180,a=new Array;return a.push(e+i*Math.cos(s)),a.push(t+i*Math.sin(s)),a}function a(e,t){var i=r.format(s(m,g,v,e)),n=s(m,g,v,t),a=t-e>180?1:0;return i+=c.format(v,v,0,a,1,n[0],n[1]),i+=l.format(m,g),i+="Z"}var o="http://www.w3.org/2000/svg",r="M {0} {1} ",l="L {0} {1} ",c="A {0} {1} {2} {3} {4} {5} {6} ",d=$(this),u=$(e),h=u.width(),p=u.height(),f=10,m=h/2,g=p/2,v=h/2-f,y=[],b=0;
79!function(){d.find(".pieChart").each(function(){var e=$(this),t={cssClass:e.attr("class"),value:e.attr("value")};y.push(t),b+=parseFloat(e.attr("value"))}),$(y).each(function(){this.percentage=this.value/b*100})}(),function(){var e=document.createElementNS(o,"svg");t(e,"width",h),t(e,"height",p),u.append(e);var s=0,r=0;$(y).each(function(){var t=r+3.6*this.percentage,o=i(a(r,t),this.cssClass+" pie"+s),l=r+1.8*this.percentage;$(o).mouseenter(function(){n(o,l)}),$(o).mouseleave(function(){$(this).empty()}),e.appendChild(o),s++,r=t})}()};var storage=function(){var e,t,i=new Date;try{return(e=window.localStorage).setItem(i,i),t=e.getItem(i)==i,e.removeItem(i),t&&e}catch(e){}}();jQuery.extend({getUrlVars:function(){for(var e,t=[],i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)e=i[n].split("="),t.push(e[0]),t[e[0]]=e[1];return t},getUrlVar:function(e){return jQuery.getUrlVars()[e]}}),$.urlParam=function(e,t){return new RegExp("[\\?&amp;]"+e+"=([^&amp;#]*)").exec(t)[1]||0},$(".tx-powermail-pi1_mandatory").length>0&&(addErrorMessage($("title")),addErrorMessage($(".content h1"))),$("#navigationError").length>0&&(addErrorMessage($("title"),l10n.navigationError+" : "),addErrorMessage($(".content h1"),l10n.navigationError+" : "));var reallyIsNaN=function(e){return e!==e};$(document).ready(function(){$(".content table").length>0&&$(".content table").each(function(){$(this).wrap('<div class="table-wrapper"><div class="table-wrapper-inner"></div></div>'),$(this).parent().parent().prepend('<div class="table-wrapper-fade"></div>')}),$(".toRemove").prev(".blocHeader").remove(),$(".toRemove").parents(".setPos").remove(),$(".list__rss").length>0&&($(".filters .wrapper-940").length>0?$(".list__rss").prependTo(".filters .wrapper-940"):$(".list__rss").prependTo(".heading .heading__wrap")),"undefined"!=typeof page_id&&-1!==document.referrer.indexOf(page_id)&&-1!==document.referrer.indexOf(window.location.hostname)&&$(".pager-single__back-to-list a").attr("onclick","history.back();"),$(".section-main__content .setPos .filters").length>0&&$(".heading").length>0&&$(".section-main__content .setPos .filters").insertAfter($(".heading"))}),$(window).scroll(function(){$(this).scrollTop()?$(".go-to-top").fadeIn():$(".go-to-top").fadeOut(),$(window).scrollTop()+$(window).height()<$(document).height()-$(".footer").height()-$(".stratis").height()&&$(".go-to-top").css("position","fixed"),$(window).scrollTop()+$(window).height()>$(document).height()-$(".footer").outerHeight()-$(".stratis").height()&&$(".go-to-top").css("position","relative")}),$(document).ready(function(){$(".go-to-top a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var e=$(this.hash);if(e=e.length?e:$("[name="+this.hash.slice(1)+"]"),e.length)return $("html,body").animate({scrollTop:e.offset().top+1},1e3),!1}})}),function(e){e.fn.classicalGallery=function(t){var i={numberThumbs:4,reset:!1},t=e.extend(i,t);this.each(function(){var i=e(this),n=e(".slider-galerie",i),s=e(".carousel-galerie__thumb",i),a=s.find(".carousel-galerie__item").length;if(0==t.reset){s.wrap('<div class="carousel-galerie"></div>'),e(".carousel-galerie",i).append('<ul class="carousel-galerie__pager"><li class="carousel-galerie__prev"><button type="button">'+l10n.prev+'</button></li><li class="carousel-galerie__next"><button type="button">'+l10n.next+"</button></li></ul>");var o=e(".carousel-galerie__pager .carousel-galerie__next",i),r=e(".carousel-galerie__pager .carousel-galerie__prev",i);if(a>t.numberThumbs){s.on("cycle-update-view",function(t,i,n,s){var a=e(this).find(".carousel-galerie__item").eq(i.currSlide+1).find("button img").attr("alt");i.slides.find("button").removeAttr("title"),i.slides.eq(i.currSlide).find("button").attr("title",a+" (Image active)")}),n.cycle({prev:r,next:o,timeout:0,manualFx:"fade",slides:".slider-galerie__item",log:!1}),s.cycle({timeout:0,slides:".carousel-galerie__item",fx:"carousel",allowWrap:!1,carouselVisible:t.numberThumbs,carouselFluid:!0,log:!1});var l=e(".cycle-slideshow",i).on("cycle-next cycle-prev",function(e,t){l.not(this).cycle("goto",t.currSlide)});e(".cycle-slide",s).click(function(){var e=s.data("cycle.API").getSlideIndex(this);l.cycle("goto",e)})}else s.addClass("no-carousel"),i.on("cycle-update-view",function(e,t,i){var n=i.pager.children().eq(t.currSlide).find("img").attr("alt");i.pager.children().find("button").removeAttr("title"),i.pager.children().eq(t.currSlide).find("button").attr("title",n+" (Image active)")}),n.cycle({prev:r,next:o,timeout:0,manualFx:"fade",slides:".slider-galerie__item",pager:s,log:!1,pagerTemplate:""})}else{var c=e(".carousel-galerie",i).contents(),d=n.find(".slider-galerie__item").length;0==e(".classical-gallery__nb-items",i).length&&i.append('<p class="classical-gallery__nb-items">+ '+d+"</p>"),e(".carousel-galerie",i).replaceWith(c),i.find(".carousel-galerie__pager").remove(),n.cycle("destroy"),s.cycle("destroy")}})}}
vendor: 10,158 bytes, line 79
79(jQuery),$(document).ready(function(){var e=$(".search-box .search-field");e.each(function(t){$(e[t]).on("input",function(){""!==$(this).val()?$(".search-box_fields").addClass("no-empty"):$(".search-box_fields").removeClass("no-empty")})})});var carouselWrap=$(".carrousel2"),carousel=$(".listItems",carouselWrap),reinitTimer,destroyCarrousel=function(){$(".carrousel2 .listItems").cycle("destroy")};$("#addressLnk").on("click",smoothScrolling),function(e,t,i,n){function s(t,i){this.settings=null,this.options=e.extend({},s.Defaults,i),this.$element=e(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},e.each(["onResize","onThrottledResize"],e.proxy(function(t,i){this._handlers[i]=e.proxy(this[i],this)},this)),e.each(s.Plugins,e.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),e.each(s.Workers,e.proxy(function(t,i){this._pipe.push({filter:i.filter,run:e.proxy(i.run,this)})},this)),this.setup(),this.initialize()}s.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},s.Width={Default:"default",Inner:"inner",Outer:"outer"},s.Type={Event:"event",State:"state"},s.Plugins={},s.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,s={width:"auto","margin-left":n?t:"","margin-right":n?"":t};!i&&this.$stage.children().css(s),e.css=s}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,s=!this.settings.autoWidth,a=[];for(e.items={merge:!1,width:t};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,e.items.merge=i>1||e.items.merge,a[n]=s?t*i:this._items[n].width();this._widths=a}},{filter:["items","settings"],run:function(){var t=[],i=this._items,n=this.settings,s=Math.max(2*n.items,4),a=2*Math.ceil(i.length/2),o=n.loop&&i.length?n.rewind?s:Math.max(s,a):0,r="",l="";for(o/=2;o--;)t.push(this.normalize(t.length/2,!0)),r+=i[t[t.length-1]][0].outerHTML,t.push(this.normalize(i.length-1-(t.length-1)/2,!0)),l=i[t[t.length-1]][0].outerHTML+l;this._clones=t,e(r).addClass("cloned").appendTo(this.$stage),e(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,i=-1,n=0,s=0,a=[];++i<t;)n=a[i-1]||0,s=this._widths[this.relative(i)]+this.settings.margin,a.push(n+s*e);this._coordinates=a}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,i={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],n.eq(t).css(e.css);else i&&(e.css.width=e.items.width,n.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,i,n,s=this.settings.rtl?1:-1,a=2*this.settings.stagePadding,o=this.coordinates(this.current())+a,r=o+this.width()*s,l=[];for(i=0,n=this._coordinates.length;n>i;i++)e=this._coordinates[i-1]||0,t=Math.abs(this._coordinates[i])+a*s,(this.op(e,"<=",o)&&this.op(e,">",r)||this.op(t,"<",o)&&this.op(t,">",r))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],s.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var t,i,s;t=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:n,s=this.$element.children(i).width(),t.length&&0>=s&&this.preloadAutoWidthImages(t)}this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},s.prototype.setup=function(){var t=this.viewport(),i=this.options.responsive,n=-1,s=null;i?(e.each(i,function(e){t>=e&&e>n&&(n=Number(e))}),s=e.extend({},this.options,i[n]),"function"==typeof s.stagePadding&&(s.stagePadding=s.stagePadding()),delete s.responsive,s.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):s=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:s}}),this._breakpoint=n,this.settings=s,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},s.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},s.prototype.prepare=function(t){var i=this.trigger("prepare",{content:t});return i.data||(i.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:i.data}),i.data},s.prototype.update=function(){for(var t=0,i=this._pipe.length,n=e.proxy(function(e){return this[e]},this._invalidated),s={};i>t;)(this._invalidated.all||e.grep(this._pipe[t].filter,n).length>0)&&this._pipe[t].run(s),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},s.prototype.width=function(e){switch(e=e||s.Width.Default){case s.Width.Inner:case s.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},s.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},s.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},s.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},s.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(t,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},s.prototype.onDragStart=function(t){var n=null;3!==t.which&&(e.support.transform?(n=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),n={x:n[16===n.length?12:4],y:n[16===n.length?13:5]}):(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is("animating")&&(e.support.transform?this.animate(n.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(t),e(i).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(i).one("mousemove.owl.core touchmove.owl.core",e.proxy(function(t){var n=this.difference(this._drag.pointer,this.pointer(t));e(i).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(n.x)<Math.abs(n.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))}
vendor: 29,230 bytes, lines 79-80
79,s.prototype.onDragMove=function(e){var t=null,i=null,n=null,s=this.difference(this._drag.pointer,this.pointer(e)),a=this.difference(this._drag.stage.start,s);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-t,a.x=((a.x-t)%i+i)%i+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*s.x/5:0,a.x=Math.max(Math.min(a.x,t+n),i+n)),this._drag.stage.current=a,this.animate(a.x))},s.prototype.onDragEnd=function(t){var n=this.difference(this._drag.pointer,this.pointer(t)),s=this._drag.stage.current,a=n.x>0^this.settings.rtl?"left":"right";e(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(s.x,0!==n.x?a:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=a,(Math.abs(n.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},s.prototype.closest=function(t,i){var n=-1,s=this.width(),a=this.coordinates();return this.settings.freeDrag||e.each(a,e.proxy(function(e,o){return"left"===i&&t>o-30&&o+30>t?n=e:"right"===i&&t>o-s-30&&o-s+30>t?n=e+1:this.op(t,"<",o)&&this.op(t,">",a[e+1]||o-s)&&(n="left"===i?e+1:e),-1===n},this)),this.settings.loop||(this.op(t,">",a[this.minimum()])?n=t=this.minimum():this.op(t,"<",a[this.maximum()])&&(n=t=this.maximum())),n},s.prototype.animate=function(t){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"}):i?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},s.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},s.prototype.current=function(e){if(e===n)return this._current;if(0===this._items.length)return n;if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});t.data!==n&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},s.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,function(e,t){return t})},s.prototype.reset=function(e){(e=this.normalize(e))!==n&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},s.prototype.normalize=function(e,t){var i=this._items.length,s=t?0:this._clones.length;return!this.isNumeric(e)||1>i?e=n:(0>e||e>=i+s)&&(e=((e-s/2)%i+i)%i+s/2),e},s.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},s.prototype.maximum=function(e){var t,i,n,s=this.settings,a=this._coordinates.length;if(s.loop)a=this._clones.length/2+this._items.length-1;else if(s.autoWidth||s.merge){for(t=this._items.length,i=this._items[--t].width(),n=this.$element.width();t--&&!((i+=this._items[t].width()+this.settings.margin)>n););a=t+1}else a=s.center?this._items.length-1:this._items.length-s.items;return e&&(a-=this._clones.length/2),Math.max(a,0)},s.prototype.minimum=function(e){return e?0:this._clones.length/2},s.prototype.items=function(e){return e===n?this._items.slice():(e=this.normalize(e,!0),this._items[e])},s.prototype.mergers=function(e){return e===n?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},s.prototype.clones=function(t){var i=this._clones.length/2,s=i+this._items.length,a=function(e){return e%2==0?s+e/2:i-(e+1)/2};return t===n?e.map(this._clones,function(e,t){return a(t)}):e.map(this._clones,function(e,i){return e===t?a(i):null})},s.prototype.speed=function(e){return e!==n&&(this._speed=e),this._speed},s.prototype.coordinates=function(t){var i,s=1,a=t-1;return t===n?e.map(this._coordinates,e.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(s=-1,a=t+1),i=this._coordinates[t],i+=(this.width()-i+(this._coordinates[a]||0))/2*s):i=this._coordinates[a]||0,i=Math.ceil(i))},s.prototype.duration=function(e,t,i){return 0===i?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(i||this.settings.smartSpeed)},s.prototype.to=function(e,t){var i=this.current(),n=null,s=e-this.relative(i),a=(s>0)-(0>s),o=this._items.length,r=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(s)>o/2&&(s+=-1*a*o),e=i+s,(n=((e-r)%o+o)%o+r)!==e&&l>=n-s&&n-s>0&&(i=n-s,e=n,this.reset(i))):this.settings.rewind?(l+=1,e=(e%l+l)%l):e=Math.max(r,Math.min(l,e)),this.speed(this.duration(i,e,t)),this.current(e),this.$element.is(":visible")&&this.update()},s.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},s.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},s.prototype.onTransitionEnd=function(e){return(e===n||(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)===this.$stage.get(0)))&&(this.leave("animating"),void this.trigger("translated"))},s.prototype.viewport=function(){var n;if(this.options.responsiveBaseElement!==t)n=e(this.options.responsiveBaseElement).width();else if(t.innerWidth)n=t.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw"Can not detect viewport width.";n=i.documentElement.clientWidth}return n},s.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(e.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},s.prototype.add=function(t,i){var s=this.relative(this._current);i=i===n?this._items.length:this.normalize(i,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:i}),t=this.prepare(t),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[i-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(t),this._items.splice(i,0,t),this._mergers.splice(i,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[s]&&this.reset(this._items[s].index()),this.invalidate("items"),this.trigger("added",{content:t,position:i})},s.prototype.remove=function(e){(e=this.normalize(e,!0))!==n&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},s.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy(function(t,i){this.enter("pre-loading"),i=e(i),e(new Image).one("load",e.proxy(function(e){i.attr("src",e.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},s.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(i).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize));for(var n in this._plugins)this._plugins[n].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},s.prototype.op=function(e,t,i){var n=this.settings.rtl;switch(t){case"<":return n?e>i:i>e;case">":return n?i>e:e>i;case">=":return n?i>=e:e>=i;case"<=":return n?e>=i:i>=e}},s.prototype.on=function(e,t,i,n){e.addEventListener?e.addEventListener(t,i,n):e.attachEvent&&e.attachEvent("on"+t,i)},s.prototype.off=function(e,t,i,n){e.removeEventListener?e.removeEventListener(t,i,n):e.detachEvent&&e.detachEvent("on"+t,i)},s.prototype.trigger=function(t,i,n,a,o){var r={item:{count:this._items.length,index:this.current()}},l=e.camelCase(e.grep(["on",t,n],function(e){return e}).join("-").toLowerCase()),c=e.Event([t,"owl",n||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},r,i));return this._supress[t]||(e.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(c)}),this.register({type:s.Type.Event,name:t}),this.$element.trigger(c),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,c)),c},s.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]===n&&(this._states.current[t]=0),this._states.current[t]++},this))},s.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]--},this))},s.prototype.register=function(t){if(t.type===s.Type.Event){
80if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var i=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!i||!i.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:i.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===s.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy(function(i,n){return e.inArray(i,this._states.tags[t.name])===n},this)))},s.prototype.suppress=function(t){e.each(t,e.proxy(function(e,t){this._supress[t]=!0},this))},s.prototype.release=function(t){e.each(t,e.proxy(function(e,t){delete this._supress[t]},this))},s.prototype.pointer=function(e){var i={x:null,y:null};return e=e.originalEvent||e||t.event,e=e.touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,e.pageX?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i},s.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},s.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this),a=n.data("owl.carousel");a||(a=new s(this,"object"==typeof t&&t),n.data("owl.carousel",a),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,i){a.register({type:s.Type.Event,name:i}),a.$element.on(i+".owl.carousel.core",e.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([i]),a[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},a))})),"string"==typeof t&&"_"!==t.charAt(0)&&a[t].apply(a,i)})},e.fn.owlCarousel.Constructor=s}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var s=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers)};s.Defaults={autoRefresh:!0,autoRefreshInterval:500},s.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},s.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},s.prototype.destroy=function(){var e,i;t.clearInterval(this._interval);for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=s}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var s=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,s=i.center&&-1*n||0,a=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+s,o=this._core.clones().length,r=e.proxy(function(e,t){this.load(t)},this);s++<n;)this.load(o/2+this._core.relative(a)),o&&e.each(this._core.clones(this._core.relative(a)),r),a++},this)},this._core.options=e.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers)};s.Defaults={lazyLoad:!1},s.prototype.load=function(i){var n=this._core.$stage.children().eq(i),s=n&&n.find(".owl-lazy");!s||e.inArray(n.get(0),this._loaded)>-1||(s.each(e.proxy(function(i,n){var s,a=e(n),o=t.devicePixelRatio>1&&a.attr("data-src-retina")||a.attr("data-src");this._core.trigger("load",{element:a,url:o},"lazy"),a.is("img")?a.one("load.owl.lazy",e.proxy(function(){a.css("opacity",1),this._core.trigger("loaded",{element:a,url:o},"lazy")},this)).attr("src",o):(s=new Image,s.onload=e.proxy(function(){a.css({"background-image":"url("+o+")",opacity:"1"}),this._core.trigger("loaded",{element:a,url:o},"lazy")},this),s.src=o)},this)),this._loaded.push(n.get(0)))},s.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=s}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var s=function(t){this._core=t,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"==e.property.name&&this.update()},this),"loaded.owl.lazy":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=e.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers)};s.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},s.prototype.update=function(){var t=this._core._current,i=t+this._core.settings.items,n=this._core.$stage.children().toArray().slice(t,i),s=[],a=0;e.each(n,function(t,i){s.push(e(i).height())}),a=Math.max.apply(null,s),this._core.$stage.parent().height(a).addClass(this._core.settings.autoHeightClass)},s.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=s}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var s=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var i=e(t.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,e(t.content)))}},this)},this._core.options=e.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy(function(e){this.play(e)},this))};s.Defaults={video:!1,videoHeight:!1,videoWidth:!1},s.prototype.fetch=function(e,t){var i=function(){return e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube"}(),n=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),s=e.attr("data-width")||this._core.settings.videoWidth,a=e.attr("data-height")||this._core.settings.videoHeight,o=e.attr("href");if(!o)throw new Error("Missing video URL.");if(n=o.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),n[3].indexOf("youtu")>-1)i="youtube";else if(n[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[o]={type:i,id:n,width:s,height:a},t.attr("data-video",o),this.thumbnail(e,this._videos[o])},s.prototype.thumbnail=function(t,i){var n,s,a,o=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",r=t.find("img"),l="src",c="",d=this._core.settings,u=function(e){s='<div class="owl-video-play-icon"></div>',n=d.lazyLoad?'<div class="owl-video-tn '+c+'" '+l+'="'+e+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+e+')"></div>',t.after(n),t.after(s)};return t.wrap('<div class="owl-video-wrapper"'+o+"></div>"),this._core.settings.lazyLoad&&(l="data-src",c="owl-lazy"),r.length?(u(r.attr(l)),r.remove(),!1):void("youtube"===i.type?(a="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",u(a)):"vimeo"===i.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){a=e[0].thumbnail_large,u(a)}}):"vzaar"===i.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){a=e.framegrab_url,u(a)}}))},s.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},s.prototype.play=function(t){var i,n=e(t.target),s=n.closest("."+this._core.settings.itemClass),a=this._videos[s.attr("data-video")],o=a.width||"100%",r=a.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),"youtube"===a.type?i='<iframe width="'+o+'" height="'+r+'" src="//www.youtube.com/embed/'+a.id+"?autoplay=1&v="+a.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===a.type?i='<iframe src="//player.vimeo.com/video/'+a.id+'?autoplay=1" width="'+o+'" height="'+r+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===a.type&&(i='<iframe frameborder="0"height="'+r+'"width="'+o+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+a.id+'/player?autoplay=true"></iframe>'),e('<div class="owl-video-frame">'+i+"</div>").insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},s.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},s.prototype.destroy=function(){var e,t;this._core.$element.off("click.owl.video");for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=s}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var s=function(t){this.core=t,this.core.options=e.extend({},s.Defaults,this.core.options),this.swapping=!0,this.previous=n,this.next=n,this.handlers={"change.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":e.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};s.Defaults={animateOut:!1,animateIn:!1},s.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,i=e.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),a=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(e.support.animation.end,i).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),a&&s.one(e.support.animation.end,i).addClass("animated owl-animated-in").addClass(a))}},s.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},s.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=s}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var s=function(t){this._core=t,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":e.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":e.proxy(function(e,t,i){e.namespace&&this.play(t,i)},this),"stop.owl.autoplay":e.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},s.Defaults,this._core.options)};s.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},s.prototype.play=function(e,t){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},s.prototype._getNextTimeout=function(n,s){return this._timeout&&t.clearTimeout(this._timeout),t.setTimeout(e.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||i.hidden||this._core.next(s||this._core.settings.autoplaySpeed)},this),n||this._core.settings.autoplayTimeout)},s.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},s.prototype.stop=function(){this._core.is("rotating")&&(t.clearTimeout(this._timeout),this._core.leave("rotating"))},s.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},s.prototype.destroy=function(){var e,t;this.stop();for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=s}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){"use strict";var s=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=e.extend({},s.Defaults,this._core.options),this.$element.on(this._handlers)};s.Defaults={nav:!1,navText:["",""],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},s.prototype.initialize=function(){var t,i=this._core.settings;this._controls.$relative=(i.navContainer?e(i.navContainer):e("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy(function(e){this.prev(i.navSpeed)},this)),this._controls.$next=e("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy(function(e){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[e("<div>").addClass(i.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?e(i.dotsContainer):e("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",e.proxy(function(t){var n=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(n,i.dotsSpeed)},this));for(t in this._overrides)this._core[t]=e.proxy(this[t],this)},s.prototype.destroy=function(){var e,t,i,n;for(e in this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)this._controls[t].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},s.prototype.update=function(){var e,t,i,n=this._core.clones().length/2,s=n+this._core.items().length,a=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],e=n,t=0,i=0;s>e;e++){if(t>=r||0===t){if(this._pages.push({start:Math.min(a,e-n),end:e-n+r-1}),Math.min(a,e-n)===a)break;t=0,++i}t+=this._core.mergers(this._core.relative(e))}},s.prototype.draw=function(){var t,i=this._core.settings,n=this._core.items().length<=i.items,s=this._core.relative(this._core.current()),a=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||n),i.nav&&(this._controls.$previous.toggleClass("disabled",!a&&s<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!a&&s>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||n),i.dots&&(t=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):0>t&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},s.prototype.onTrigger=function(t){var i=this._core.settings;
80t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},s.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy(function(e,i){return e.start<=t&&e.end>=t},this)).pop()},s.prototype.getPosition=function(t){var i,n,s=this._core.settings;return"page"==s.slideBy?(i=e.inArray(this.current(),this._pages),n=this._pages.length,t?++i:--i,i=this._pages[(i%n+n)%n].start):(i=this._core.relative(this._core.current()),n=this._core.items().length,t?i+=s.slideBy:i-=s.slideBy),i},s.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},s.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},s.prototype.to=function(t,i,n){var s;!n&&this._pages.length?(s=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%s+s)%s].start,i)):e.proxy(this._overrides.to,this._core)(t,i)},e.fn.owlCarousel.Constructor.Plugins.Navigation=s}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){"use strict";var s=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var i=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=t.content}},this),"changed.owl.carousel":e.proxy(function(i){if(i.namespace&&"position"===i.property.name){var n=this._core.items(this._core.relative(this._core.current())),s=e.map(this._hashes,function(e,t){return e===n?t:null}).join();if(!s||t.location.hash.slice(1)===s)return;t.location.hash=s}},this)},this._core.options=e.extend({},s.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy(function(e){var i=t.location.hash.substring(1),n=this._core.$stage.children(),s=this._hashes[i]&&n.index(this._hashes[i]);void 0!==s&&s!==this._core.current()&&this._core.to(this._core.relative(s),!1,!0)},this))};s.Defaults={URLhashListener:!1},s.prototype.destroy=function(){var i,n;e(t).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=s}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){function s(t,i){var s=!1,a=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+r.join(a+" ")+a).split(" "),function(e,t){return o[t]!==n?(s=!i||t,!1):void 0}),s}function a(e){return s(e,!0)}var o=e("<support>").get(0).style,r="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},c={csstransforms:function(){return!!s("transform")},csstransforms3d:function(){return!!s("perspective")},csstransitions:function(){return!!s("transition")},cssanimations:function(){return!!s("animation")}};c.csstransitions()&&(e.support.transition=new String(a("transition")),e.support.transition.end=l.transition.end[e.support.transition]),c.cssanimations()&&(e.support.animation=new String(a("animation")),e.support.animation.end=l.animation.end[e.support.animation]),c.csstransforms()&&(e.support.transform=new String(a("transform")),e.support.transform3d=c.csstransforms3d())}(window.Zepto||window.jQuery,window,document),$(document).ready(function(){function e(){menuMain(i),menuStratis(i),fancyboxGalerie(i),initGalerieClassique(i),searchState(i),filtersState(i),carrousel1State(i),carrousel2State(i)}function t(){menuMain(n),menuStratis(n),fancyboxGalerie(n),initGalerieClassique(n),searchState(n),filtersState(n),carrousel1State(n),carrousel2State(n)}var i="mediaSmartphone",n="mediaDesktop";jRespond([{label:"mobile",enter:0,exit:1024},{label:"desktop",enter:1024,exit:1e4}]).addFunc([{breakpoint:"mobile",enter:function(){e()},exit:function(){}},{breakpoint:"desktop",enter:function(){t()},exit:function(){}}]),get_name_browser(n),objectFitImages(),preloadImages(),tooltipAccess(),tooltipDfn(),geocode(),linkExternalNewWindow(),fancyboxClassic(),fancyboxAuto
80Home(),sharePage(),eventDdm(),contentDdm(),manageVideo(),catmenu(),formValidation(),infiniteScroll(),showTotal(),enableDatePicker(),enableTimePicker(),cookiesManagement(),faqDdm(),addContentInTitle(),generatePie(),owlCarousel()}),jQuery(document).ready(function(e){var t=window.location.hash.replace("#",""),i=e(".js-tabs"),n=e("body");if(i.length){if(i.find(".js-tablist").each(function(){var t=e(this),i=t.data(),n=void 0!==i.tabsPrefixClass?i.tabsPrefixClass+"-":"",s=void 0!==i.hx?i.hx:"",a=void 0!==i.existingHx?i.existingHx:"",o=t.children(".js-tablist__item"),r=t.find(".js-tablist__link");t.attr("role","tablist"),o.attr("role","presentation"),r.attr("role","tab"),t.addClass(n+"tabs__list"),o.addClass(n+"tabs__item"),r.addClass(n+"tabs__link"),r.each(function(){var t=e(this),n=void 0!==i.tabsGeneratedHxClass?i.tabsGeneratedHxClass:"invisible",o=t.attr("href"),r=e(o),l=t.text();""!==s&&r.prepend("<"+s+' class="'+n+'" tabindex="0">'+l+"</"+s+">"),""!==a&&r.find(a+":first-child").attr("tabindex",0),void 0!==o&&""!==o&&"#"!==o&&t.attr({"aria-controls":o.replace("#",""),tabindex:-1,"aria-selected":"false"}),t.removeAttr("href")})}),e(".js-tabcontent").attr({role:"tabpanel","aria-hidden":"true"}).each(function(){var t=e(this),i=t.attr("id"),n=e("#label_"+i).closest(".js-tablist").attr("data-tabs-prefix-class"),s=void 0!==n?n+"-":"";t.attr("aria-labelledby","label_"+i),t.addClass(s+"tabs__content")}),""!==t&&0!==e("#"+t+".js-tabcontent").length&&e("#label_"+t+".js-tablist__link:not([aria-disabled='true'])").length&&(e("#"+t+".js-tabcontent").removeAttr("aria-hidden"),e("#label_"+t+".js-tablist__link").attr({"aria-selected":"true",tabindex:0})),""!==t&&e("#"+t).parents(".js-tabcontent").length){var s=e("#"+t),a=s.parents(".js-tabcontent"),o=a.attr("id");e("#label_"+o+".js-tablist__link:not([aria-disabled='true'])").length&&(a.removeAttr("aria-hidden"),e("#label_"+o+".js-tablist__link").attr({"aria-selected":"true",tabindex:0}))}i.each(function(){var t=e(this),i=t.find('.js-tablist__link[aria-selected="true"]'),n=t.find('.js-tablist__link[data-selected="1"]:not([aria-disabled="true"]):first'),s=e("#"+n.attr("aria-controls"));0===i.length&&0!==n.length&&(n.attr({"aria-selected":"true",tabindex:0}),s.removeAttr("aria-hidden"))}),i.each(function(){var t=e(this),i=t.find('.js-tablist__link[aria-selected="true"]'),n=t.find('.js-tablist__link:not([aria-disabled="true"]):first'),s=e("#"+n.attr("aria-controls"));0===i.length&&(n.attr({"aria-selected":"true",tabindex:0}),s.removeAttr("aria-hidden"))}),n.on("click",".js-tablist__link[aria-disabled='true']",function(){return!1}),n.on("click",".js-tablist__link:not([aria-disabled='true'])",function(t){var i=e(this),n=i.attr("aria-controls"),s=e("#"+i.attr("aria-controls")),a=i.closest(".js-tabs"),o=a.find(".js-tablist__link"),r=a.find(".js-tabcontent");o.attr({tabindex:-1,"aria-selected":"false"}),i.attr({"aria-selected":"true",tabindex:0}),r.attr("aria-hidden","true"),s.removeAttr("aria-hidden"),setTimeout(function(){history.pushState(null,null,location.pathname+location.search+"#"+n)},1e3),t.preventDefault()}).on("keydown",".js-tablist",function(t){var i=e(this).closest(".js-tabs"),n=i.find('.js-tablist__link[aria-selected="true"]').parent(),s=i.find(".js-tablist__item:last-child .js-tablist__link"),a=i.find(".js-tablist__item:first-child .js-tablist__link"),o=!1,r=n,l=n;do{r=r.is(".js-tablist__item:first-child")?s.parent():r.prev()}while("true"===r.children(".js-tablist__link").attr("aria-disabled")&&r!==n);do{l=l.is(".js-tablist__item:last-child")?a.parent():l.next()}while("true"===l.children(".js-tablist__link").attr("aria-disabled")&&l!==n);e(document.activeElement).is(i.find(".js-tablist__link"))&&(o=!0),o&&!t.ctrlKey&&(37==t.keyCode||38==t.keyCode?(r.children(".js-tablist__link").click().focus(),t.preventDefault()):40==t.keyCode||39==t.keyCode?(l.children(".js-tablist__link").click().focus(),t.preventDefault()):36==t.keyCode?(a.click().focus(),t.preventDefault()):35==t.keyCode&&(s.click().focus(),t.preventDefault()))}).on("keydown",".js-tabcontent",function(t){var i=e(this),n=i.attr("aria-labelledby"),s=e("#"+n),a=s.parent(),o=a.parent(),r=o.find(".js-tablist__item:first-child"),l=o.find(".js-tablist__item:last-child"),c=a,d=a;if(37!=t.keyCode&&38!=t.keyCode||!t.ctrlKey||(s.focus(),t.preventDefault()),33==t.keyCode&&t.ctrlKey){do{c=c.is(".js-tablist__item:first-child")?l:c.prev()}while("true"===c.children(".js-tablist__link").attr("aria-disabled")&&c!==a);c.children(".js-tablist__link").click().focus(),t.preventDefault()}if(34==t.keyCode&&t.ctrlKey){s.focus();do{d=d.is(".js-tablist__item:last-child")?r:d.next()}while("true"===d.children(".js-tablist__link").attr("aria-disabled")&&d!==a);d.children(".js-tablist__link").click().focus(),t.preventDefault()}}).on("click",".js-link-to-tab",function(){var t=e(this),i=e(t.attr("href")),n=e("#"+i.attr("aria-labelledby"));"true"!==n.attr("aria-disabled")&&(n.click(),setTimeout(function(){n.focus()},10))})}});
81//# sourceMappingURL=maps/scripts.js.map
82
83
84/**
85 * @name jsonSuggest
86 * @type jQuery plugin
87 * @author Tom Coote (tomcoote.co.uk)
88 * @version 2.0.1
89 * @copyright Copyright 2011 Tom Coote
90 * @license released under the BSD (3-clause) licences
91 */
92(function($){$.fn.jsonSuggest=function(settings){var defaults={url:'',data:[],minCharacters:1,maxResults:undefined,wildCard:'',caseSensitive:false,notCharacter:'!',maxHeight:350,highlightMatches:true,onSelect:undefined,width:undefined,property:'text'},getJSONTimeout;settings=$.extend(defaults,settings);return this.each(function(){function regexEscape(txt,omit){var specials=['/','.','*','+','?','|','(',')','[',']','{','}','\\'];if(omit){for(var i=0;i<specials.length;i++){if(specials[i]===omit){specials.splice(i,1);}}}
93    var escapePatt=new RegExp('(\\'+specials.join('|\\')+')','g');return txt.replace(escapePatt,'\\$1');}
94    var obj=$(this),wildCardPatt=new RegExp(regexEscape(settings.wildCard||''),'g'),results=$('<ul />'),currentSelection,pageX,pageY;function selectResultItem(item){obj.val(item[settings.property]);$(results).html('').hide();if(typeof settings.onSelect==='function'){settings.onSelect(item);}}
95    function setHoverClass(el){$('li a',results).removeClass('ui-state-hover');if(el){$('a',el).addClass('ui-state-hover');}
96        currentSelection=el;}
97    function buildResults(resultObjects,filterTxt){filterTxt='('+filterTxt+')';var bOddRow=true,i,iFound=0,filterPatt=settings.caseSensitive?new RegExp(filterTxt,'g'):new RegExp(filterTxt,'ig');$(results).html('').hide();for(i=0;i<resultObjects.length;i+=1){var item=$('<li />'),text=resultObjects[i][settings.property];if(settings.highlightMatches===true){text=text.replace(filterPatt,'<strong>$1</strong>');}
98        $(item).append('<a class="ui-corner-all">'+text+'</a>');if(typeof resultObjects[i].image==='string'){$('>a',item).prepend('<img src="'+resultObjects[i].image+'" />');}
99        if(typeof resultObjects[i].extra==='string'){$('>a',item).append('<small>'+resultObjects[i].extra+'</small>');}
100        $(item).addClass('ui-menu-item').addClass((bOddRow)?'odd':'even').attr('role','menuitem').click((function(n){return function(){selectResultItem(resultObjects[n]);};})(i)).mouseover((function(el){return function(){setHoverClass(el);};})(item));$(results).append(item);
100bOddRow=!bOddRow;iFound+=1;if(typeof settings.maxResults==='number'&&iFound>=settings.maxResults){break;}}
101        if($('li',results).length>0){currentSelection=undefined;$(results).show().css('height','auto');if($(results).height()>settings.maxHeight){$(results).css({'overflow':'auto','height':settings.maxHeight+'px'});}}}
102    function runSuggest(e){var search=function(searchData){if(this.value.length<settings.minCharacters){$(results).html('').hide();return false;}
103        var resultObjects=[],filterTxt=(!settings.wildCard)?regexEscape(this.value):regexEscape(this.value,settings.wildCard).replace(wildCardPatt,'.*'),bMatch=true,filterPatt,i;if(settings.notCharacter&&filterTxt.indexOf(settings.notCharacter)===0){filterTxt=filterTxt.substr(settings.notCharacter.length,filterTxt.length);if(filterTxt.length>0){bMatch=false;}}
104        filterTxt=filterTxt||'.*';filterTxt=settings.wildCard?'^'+filterTxt:filterTxt;filterPatt=settings.caseSensitive?new RegExp(filterTxt):new RegExp(filterTxt,'i');for(i=0;i<searchData.length;i+=1){if(filterPatt.test(searchData[i][settings.property])===bMatch){resultObjects.push(searchData[i]);}}
105        buildResults(resultObjects,filterTxt);};if(settings.data&&settings.data.length){search.apply(this,[settings.data]);}
106    else if(settings.url&&typeof settings.url==='string'){var text=this.value;$(results).html('<li class="ui-menu-item ajaxSearching"><a class="ui-corner-all">Searching...</a></li>').show().css('height','auto');getJSONTimeout=window.clearTimeout(getJSONTimeout);getJSONTimeout=window.setTimeout(function(){$.getJSON(settings.url,{search:text},function(data){if(data){buildResults(data,text);}
107    else{$(results).html('').hide();}});},500);}}
108    function keyListener(e){switch(e.keyCode){case 13:$(currentSelection).trigger('click');return false;case 40:if(typeof currentSelection==='undefined'){currentSelection=$('li:first',results).get(0);}
109    else{currentSelection=$(currentSelection).next().get(0);}
110        setHoverClass(currentSelection);if(currentSelection){$(results).scrollTop(currentSelection.offsetTop);}
111        return false;case 38:if(typeof currentSelection==='undefined'){currentSelection=$('li:last',results).get(0);}
112    else{currentSelection=$(currentSelection).prev().get(0);}
113        setHoverClass(currentSelection);if(currentSelection){$(results).scrollTop(currentSelection.offsetTop);}
114        return false;default:runSuggest.apply(this,[e]);}}
115    $(results).addClass('jsonSuggest ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all').attr('role','listbox').css({'top':(obj.position().top+obj.outerHeight())+'px','left':obj.position().left+'px','width':settings.width||(obj.outerWidth()+'px'),'z-index':999}).hide();obj.after(results).keyup(keyListener).keydown(function(e){if(e.keyCode===9&&currentSelection){$(currentSelection).trigger('click');return true;}}).blur(function(e){var resPos=$(results).offset();resPos.bottom=resPos.top+$(results).height();resPos.right=resPos.left+$(results).width();if(pageY<resPos.top||pageY>resPos.bottom||pageX<resPos.left||pageX>resPos.right){$(results).hide();}}).focus(function(e){$(results).css({'top':(obj.position().top+obj.outerHeight())+'px','left':obj.position().left+'px'});if($('li',results).length>0){$(results).show();}}).attr('autocomplete','off');$(window).mousemove(function(e){pageX=e.pageX;pageY=e.pageY;});settings.notCharacter=regexEscape(settings.notCharacter||'');if(settings.data&&typeof settings.data==='string'){settings.data=$.parseJSON(settings.data);}});};})(jQuery);
116
117
118// Search engine adjustments
119if ($('[name="tx_mnogosearch_pi1[search][query]"]').length > 0) {
120
121    // Long form mnogoSearch autocomplete
122    $.getJSON('index.php?eID=mnogosearch_suggest', function (data) {
123        $('[name="tx_mnogosearch_pi1[search][query]"]').jsonSuggest({data: data, maxResults: 10});
124    });
125}
126
127

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.