!function(l){l.ZnbFrontendJs=function(){this.scope=l(document),this.zinit()},l.ZnbFrontendJs.prototype={zinit:function(){var t=this;t.addActions(),t.initHelpers(l(document)),t.refresh_events(l(document)),l(document).trigger("ZnbFrontendJsReady",this)},refresh_events:function(t){var e=this;e.contact_forms(t),e.doParallax(t),e.doObjectParallax(t),e.background_video(t),e.entryAnimations(t),e.objectFitCover(t)},RefreshOnWidthChange:function(t){},addActions:function(){var e=this;e.scope.on("ZnWidthChanged",function(t){e.RefreshOnWidthChange(t.content),l(window).trigger("resize")}),e.scope.on("ZnNewContent",function(t){e.refresh_events(t.content)})},unbind_events:function(t){},initHelpers:function(t){var p=this,e=(this.helpers={},this.helpers.IsJsonString=function(t){try{JSON.parse(t)}catch(t){return!1}return!0},this.helpers.is_null=function(t){return null===t},this.helpers.is_undefined=function(t){return null==t||""===t||"undefined"===t},this.helpers.is_number=function(t){return(t instanceof Number||"number"==typeof t)&&!isNaN(t)},this.helpers.is_true=function(t){return!0===t||"true"===t},this.helpers.is_false=function(t){return!1===t||"false"===t},this.helpers.throttle=function(i,o,s){function n(){d=!1===s.leading?0:p.helpers.date_now,a=null,h=i.apply(r,l),a||(r=l=null)}function t(){var t=p.helpers.date_now,e=(d||!1!==s.leading||(d=t),o-(t-d));return r=this,l=arguments,e<=0||o=-i&&t.bottom<=(window.innerHeight||e.clientHeight)+i},this.helpers.date_now=Date.now||function(){return(new Date).getTime()},this.helpers.hasTouch="object"==typeof Modernizr&&Modernizr.touchevents||!1,this.helpers.hasTouchMobile=this.helpers.hasTouch&&window.matchMedia("(max-width: 1024px)").matches,this.helpers.ua=navigator.userAgent||"",this.helpers.is_mobile_ie=-1!==this.helpers.ua.indexOf("IEMobile"),this.helpers.is_firefox=-1!==this.helpers.ua.indexOf("Firefox"),this.helpers.isAtLeastIE11=!(!this.helpers.ua.match(/Trident/)||this.helpers.ua.match(/MSIE/)),this.helpers.isIE11=!(!this.helpers.ua.match(/Trident/)||!this.helpers.ua.match(/rv[ :]11/)),this.helpers.isMac=/^Mac/.test(navigator.platform),this.helpers.is_safari=/^((?!chrome|android).)*safari/i.test(this.helpers.ua),this.helpers.isIE10=navigator.userAgent.match("MSIE 10"),this.helpers.isIE9=navigator.userAgent.match("MSIE 9"),this.helpers.is_EDGE=/Edge\/12./i.test(this.helpers.ua),this.helpers.is_pb=!this.helpers.is_undefined(window.ZnPbData),l("body"));this.helpers.is_EDGE&&e.addClass("is-edge"),this.helpers.isIE11&&e.addClass("is-ie11"),this.helpers.is_safari&&e.addClass("is-safari")},contact_forms:function(t){var r=this;(t?t.find(".zn-contactForm"):l(".zn-contactForm")).each(function(t,e){var e=l(e),i=e.find(".zn-formItem-field--timepicker"),o=e.find(".zn-formItem-field--datepicker"),s=o.is("[data-datepickerlang]")?o.attr("data-datepickerlang"):"",n=o.is("[data-dateformat]")?o.attr("data-dateformat"):"yy-mm-dd",a=i.is("[data-timeformat]")?i.attr("data-timeformat"):"h:i A";0'),""!==s)&&l.datepicker.setDefaults(l.datepicker.regional[s]),e.on("submit",function(t){if(t.preventDefault(),!0!==r.form_submitting){r.form_submitting=!0;var o=l(this),t=o.find(".zn_contact_ajax_response:eq(0)"),i=!1,s={fields:o.find('textarea, select, input[type="text"], input[type="checkbox"], input[type="hidden"]')},n=t.attr("id"),a=o.find(".zn-formSubmit");if((r.helpers.isIE11||r.helpers.isIE10||r.helpers.isIE9)&&o.is('[action="#"]')&&o.attr("action",""),a.addClass("zn-contactForm--loading"),s.fields.each(function(){var t=l(this),e=t.parent();t.is(":checkbox")&&(t.is(":checked")?t.val(!0):t.val("")),e.removeClass("zn-formItem--invalid"),t.hasClass("zn_validate_not_empty")?t.is(":checkbox")?t.is(":checked")||(e.addClass("zn-formItem--invalid"),i=!0):""===t.val()&&(e.addClass("zn-formItem--invalid"),i=!0):t.hasClass("zn_validate_is_email")?t.val().match(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/)||(e.addClass("zn-formItem--invalid"),i=!0):t.hasClass("zn_validate_is_numeric")&&isNaN(t.val())&&(e.addClass("zn-formItem--invalid"),i=!0)}),i)return a.removeClass("zn-contactForm--loading"),r.form_submitting=!1;t=o.serialize();l.post(o.attr("action"),t).success(function(t){r.form_submitting=!1,a.removeClass("zn-contactForm--loading");var t=l(t).find("#"+n+" > .zn_cf_response"),e=l("#"+n),i=o.data("redirect");e.html(t),t.hasClass("alert-success")&&(s.fields.val(""),i)&&window.location.replace(i)}).error(function(){console.log("Error loading page")})}return!1})})},background_video:function(t){var o=this,t=t.find(".zn-videoBg:not(.zn-videoBg--no-init)");t.length&&t.each(function(t,e){var e=l(e),i=e.is("[data-video-setup]")&&o.helpers.IsJsonString(e.attr("data-video-setup"))?JSON.parse(e.attr("data-video-setup")):{};"undefined"!=typeof video_background&&new video_background(e,i)})},doParallax:function(t){t=l(".js-znParallax",l(t));0
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},h.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=l(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&l(l.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),s=o.length;s--;){var n,a=o[s];"click"==a?this.$element.on("click."+this.type,this.options.selector,l.proxy(this.toggle,this)):"manual"!=a&&(n="hover"==a?"mouseleave":"focusout",this.$element.on(("hover"==a?"mouseenter":"focusin")+"."+this.type,this.options.selector,l.proxy(this.enter,this)),this.$element.on(n+"."+this.type,this.options.selector,l.proxy(this.leave,this)))}this.options.selector?this._options=l.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},h.prototype.getDefaults=function(){return h.DEFAULTS},h.prototype.getOptions=function(t){return(t=l.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},h.prototype.getDelegateOptions=function(){var i={},o=this.getDefaults();return this._options&&l.each(this._options,function(t,e){o[t]!=e&&(i[t]=e)}),i},h.prototype.enter=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},h.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},h.prototype.leave=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},h.prototype.show=function(){var e,t,i,o,s,n,a,r=l.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(r),s=l.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!r.isDefaultPrevented())&&s&&(r=(e=this).tip(),s=this.getUID(this.type),this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade"),s="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,(a=(t=/\s?auto?\s?/i).test(s))&&(s=s.replace(t,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),i=r[0].offsetWidth,o=r[0].offsetHeight,a&&(a=s,n=this.getPosition(this.$viewport),s="bottom"==s&&t.bottom+o>n.bottom?"top":"top"==s&&t.top-on.width?"left":"left"==s&&t.left-in.top+n.height&&(a.top=n.top+n.height-o)):(t=e.left-s,o=e.left+s+i,tn.right&&(a.left=n.left+n.width-o))),a},h.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},h.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},h.prototype.tip=function(){if(this.$tip||(this.$tip=l(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},h.prototype.enable=function(){this.enabled=!0},h.prototype.disable=function(){this.enabled=!1},h.prototype.toggleEnabled=function(){this.enabled=!this.enabled},h.prototype.toggle=function(t){var e=this;t&&!(e=l(t.currentTarget).data("bs."+this.type))&&(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},h.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var t=l.fn.tooltip;l.fn.tooltip=function(o){return this.each(function(){var t=l(this),e=t.data("bs.tooltip"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.tooltip",e=new h(this,i)),"string"==typeof o&&e[o]())})},l.fn.tooltip.Constructor=h,l.fn.tooltip.noConflict=function(){return l.fn.tooltip=t,this}}(jQuery),function(a){"use strict";function r(t){this.element=a(t)}function e(i){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new r(this)),"string"==typeof i&&e[i]()})}r.VERSION="3.3.7",r.TRANSITION_DURATION=150,r.prototype.show=function(){var t,e,i,o=this.element,s=o.closest("ul:not(.dropdown-menu)"),n=(n=o.data("target"))||(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"");o.parent("li").hasClass("active")||(t=s.find(".active:last a"),e=a.Event("hide.bs.tab",{relatedTarget:o[0]}),i=a.Event("show.bs.tab",{relatedTarget:t[0]}),t.trigger(e),o.trigger(i),i.isDefaultPrevented())||e.isDefaultPrevented()||(i=a(n),this.activate(o.closest("li"),s),this.activate(i,i.parent(),function(){t.trigger({type:"hidden.bs.tab",relatedTarget:o[0]}),o.trigger({type:"shown.bs.tab",relatedTarget:t[0]})}))},r.prototype.activate=function(t,e,i){var o=e.find("> .active"),s=i&&a.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);function n(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&s?o.one("bsTransitionEnd",n).emulateTransitionEnd(r.TRANSITION_DURATION):n(),o.removeClass("in")};function t(t){t.preventDefault(),e.call(a(this),"show")}var i=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=i,this};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',t).on("click.bs.tab.data-api",'[data-toggle="pill"]',t)}(jQuery),function(s){"use strict";function n(t,e){this.$element=s(t),this.options=s.extend({},n.DEFAULTS,e),this.$trigger=s('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}function i(t){t=t.attr("data-target")||(t=t.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return s(t)}function a(o){return this.each(function(){var t=s(this),e=t.data("bs.collapse"),i=s.extend({},n.DEFAULTS,t.data(),"object"==typeof o&&o);!e&&i.toggle&&/show|hide/.test(o)&&(i.toggle=!1),e||t.data("bs.collapse",e=new n(this,i)),"string"==typeof o&&e[o]()})}n.VERSION="3.3.7",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(o=t.data("bs.collapse"))&&o.transitioning)){var e=s.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(a.call(t,"hide"),o||t.data("bs.collapse",null));var i=this.dimension(),e=(this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")});if(!s.support.transition)return e.call(this);var o=s.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",s.proxy(e,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[i](this.$element[0][o])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=s.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var t=this.dimension(),e=(this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")});if(!s.support.transition)return e.call(this);this.$element[t](0).one("bsTransitionEnd",s.proxy(e,this)).emulateTransitionEnd(n.TRANSITION_DURATION)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return s(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(s.proxy(function(t,e){e=s(e);this.addAriaAndCollapsedClass(i(e),e)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var t=s.fn.collapse;s.fn.collapse=a,s.fn.collapse.Constructor=n,s.fn.collapse.noConflict=function(){return s.fn.collapse=t,this},s(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=s(this),t=(e.attr("data-target")||t.preventDefault(),i(e)),e=t.data("bs.collapse")?"toggle":e.data();a.call(t,e)})}(jQuery),function(o){"use strict";o.fn.emulateTransitionEnd=function(t){var e=!1,i=this;o(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||o(i).trigger(o.support.transition.end)},t),this},o(function(){o.support.transition=function(){var t,e=document.createElement("bootstrap"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return{end:i[t]};return!1}(),o.support.transition&&(o.event.special.bsTransitionEnd={bindType:o.support.transition.end,delegateType:o.support.transition.end,handle:function(t){if(o(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(){var o,e,t,i,s,n;null==jQuery?console.log("Jquery not included!"):(o=jQuery,e=-1!=(t=navigator.userAgent.toLowerCase()).indexOf("msie")&&parseInt(t.split("msie")[1]),n=s=i=0,jQuery.fn.extend({ensureLoad:function(t){return this.each(function(){this.complete||4===this.readyState?t.call(this):"uninitialized"===this.readyState&&0===this.src.indexOf("data:")?(o(this).trigger("error"),t.call(this)):(o(this).one("load",t),e&&null!=this.src&&-1==this.src.indexOf("?")&&(this.src=this.src+"?"+(new Date).getTime()))})}}),(video_background=function(t,e){this.hidden=!1,this.$holder=t,this.isVimeoPlaying=!0,this.isVimeoMute=1,this.id="video_background_video_"+i,i++,this.parameters={position:"absolute","z-index":"-1",video_ratio:!1,loop:!0,autoplay:!0,muted:!1,mp4:!1,webm:!1,ogg:!1,youtube:!1,vimeo:!1,controls:1,controls_position:"bottom-right",priority:"html5",fallback_image:!1,sizing:"fill",start:0,video_overlay:0,mobile_play:"no",tranitionIn:!0},o.each(e,o.proxy(function(t,e){this.parameters[t]=e},this)),this.$video_holder=o('
').appendTo(t).css({"z-index":this.parameters["z-index"],position:this.parameters.position,top:0,left:0,right:0,bottom:0,overflow:"hidden"}),this.ismobile=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i),this.decision="image";e=ZionBuilderFrontend.allow_video_on_mobile;return this.ismobile&&!e||(this.decision=this.parameters.priority,!1!==this.parameters.youtube?this.decision="youtube":!1!==this.parameters.vimeo?this.decision="vimeo":this.decision="html5"),"image"==this.decision?this.make_image():"youtube"==this.decision?this.make_youtube():"vimeo"==this.decision?this.make_vimeo():this.make_video(),this}).prototype={make_video:function(){var t=(this.parameters.autoplay?"autoplay ":"")+(this.parameters.loop?'loop onended="this.play()" ':""),t='").addClass("object-fit__cover"),this.$video_holder.append(this.$video),this.video=this.$video.get(0),"object"!=typeof Modernizr||Modernizr.objectfit?this.$video.css({width:"100%",height:"100%"}):!1!==this.parameters.video_ratio&&(this.resize_timeout=!1,o(window).resize(o.proxy(function(){clearTimeout(this.resize_timeout),this.resize_timeout=setTimeout(o.proxy(this.video_resize,this),10)},this)),this.video_resize()),this.$video_holder.closest(".zn-videoBg").addClass("is-loaded"),this.parameters.muted&&this.mute(),this.parameters.controls&&this.make_controls()},video_resize:function(t){this.$video=void 0!==t&&!0===t?this.$video.children("iframe"):this.$video;var t=this.$video_holder.width(),e=this.$video_holder.height(),i=t,o=t/this.parameters.video_ratio,e=(o').appendTo(this.$video_holder).css({position:"absolute"}),this.youtube_ready=!1,0==s?((i=document.createElement("script")).src="https://www.youtube.com/iframe_api",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(i,t),s=1,window.onYouTubeIframeAPIReady=o.proxy(function(){e.trigger("yt_loaded"),this.build_youtube(),s=2},this)):1==s?e.bind("yt_loaded",o.proxy(this.build_youtube,this)):2==s&&this.build_youtube()},build_youtube:function(){this.player=new YT.Player(this.id+"_yt",{height:"100%",width:"100%",videoId:this.parameters.youtube,events:{onReady:o.proxy(this.youtube_ready_fun,this)}})},youtube_ready_fun:function(t){this.youtube_ready=!0,this.$video=o("#"+this.id+"_yt"),this.$video_holder.closest(".zn-videoBg").addClass("is-loaded"),!1!==this.parameters.video_ratio&&(this.resize_timeout=!1,o(window).resize(o.proxy(function(){clearTimeout(this.resize_timeout),this.resize_timeout=setTimeout(o.proxy(this.video_resize,this),10)},this)),this.video_resize()),this.parameters.muted&&this.mute(),this.parameters.controls&&this.make_controls()},make_vimeo:function(){o("html");this.$video=o('
').appendTo(this.$video_holder).css({position:"absolute",top:0,left:0,right:0,bottom:0}),this.vimeo_ready=!1,0===n?o.getScript("//player.vimeo.com/api/player.js",o.proxy(function(){this.build_vimeo(),n=1},this)):1==n&&this.build_vimeo()},build_vimeo:function(){console.log(this.parameters);var t={id:this.parameters.vimeo,loop:this.parameters.loop?1:0,autoplay:this.parameters.autoplay?1:0,muted:this.parameters.muted?1:0},e=(this.player=new Vimeo.Player(this.id+"_vm",t),this);this.player.on("loaded",function(){e.vimeo_ready_fun()}),this.player.on("play",function(){e.isVimeoPlaying=!0}),this.player.on("pause",function(){e.isVimeoPlaying=!1}),this.player.getPaused().then(function(t){e.isVimeoPlaying=!t}),this.player.on("volumechange",function(t){e.isVimeoMute=0===t.volume})},vimeo_ready_fun:function(t){this.vimeo_ready=!0,this.$video=o("#"+this.id+"_vm"),this.$video_holder.closest(".zn-videoBg").addClass("is-loaded"),!1!==this.parameters.video_ratio&&(this.resize_timeout=!1,o(window).resize(o.proxy(function(){clearTimeout(this.resize_timeout),this.resize_timeout=setTimeout(o.proxy(this.video_resize,this),10)},this)),this.video_resize(!0)),this.parameters.start&&this.player.setCurrentTime(this.parameters.start),this.parameters.muted&&(this.isVimeoMute=!0,this.mute()),this.parameters.controls&&this.make_controls()},make_controls:function(){var e=this,t='").appendTo(this.$video_holder),this.$video_holder.find(".btn-toggleplay").on("click",function(t){t.preventDefault(),e.toggle_play(),o(this).children("i").toggleClass("paused")}),this.$video_holder.find(".btn-audio").on("click",function(t){t.preventDefault(),e.toggle_mute(),o(this).children("i").toggleClass("mute")})},make_image:function(){!1!==this.parameters.fallback_image&&""!=this.parameters.fallback_image&&(this.$img=o('').appendTo(this.$video_holder).css({position:"absolute"}),"object"!=typeof Modernizr||Modernizr.objectfit?this.$img.css({width:"100%",height:"100%"}):this.$img.ensureLoad(o.proxy(this.image_loaded,this)),this.$video_holder.closest(".zn-videoBg").addClass("is-loaded"))},image_loaded:function(){this.original_width=this.$img.width(),this.original_height=this.$img.height(),this.resize_timeout=!1,o(window).resize(o.proxy(function(){clearTimeout(this.resize_timeout),this.resize_timeout=setTimeout(o.proxy(this.image_resize,this),10)},this)),this.image_resize()},image_resize:function(){var t=this.$video_holder.width(),e=this.$video_holder.height(),i=t,o=this.original_height/(this.original_width/t),e=(("adjust"==this.parameters.sizing&&e=0){var p=h.indexOf("transform");var c=h.slice(p);var u=c.indexOf(";");if(u)d=" "+c.slice(11,u).replace(/\s/g,"");else d=" "+c.slice(11).replace(/\s/g,"")}return{base:l,top:s,height:n,speed:r,style:h,transform:d}}(f.elems[d]);o.push(p)}return window.addEventListener("resize",function(){h()}),l(),h(),f}return c}),function(o,s){"use strict";var i="znParallax",n=o(s),a=!1,r=n.height(),l=!1,h={bleed:0};function d(o,s,n){var a;return function(){var t=this,e=arguments,i=n&&!a;clearTimeout(a),a=setTimeout(function(){a=null,n||o.apply(t,e)},s||100),i&&o.apply(t,e)}}function e(t,e){this.element=t,this.options=o.extend({},h,e),this._defaults=h,this._name=i,this.init(t)}e.prototype={init:function(t){var e=this,i=o(t),t=(this.$par=i.parent(),this.$bg=i.children().first(),this.scaleFactor=this.options.bleed?"scale("+this.options.bleed+")":"",this.updateStuff(),this.render(),i.hasClass("is-fixed")||i.addClass("is-fixed"),a=this.mobileCheck(),void 0!==s.isSmoothScroll?"smoothScrollCustomEvent scroll":"scroll");n.on(t,function(){e.mobileCheck(),a||(e.updateStuff(),e.render())}),n.on("orientationchange resize",d(function(){e.mobileCheck(),a?e.disableParallax():(e.updateStuff(),i.hasClass("is-fixed")||i.addClass("is-fixed"))}))},mobileCheck:function(){var t="object"==typeof Modernizr&&Modernizr.touchevents||!1;a=t&&s.matchMedia("(max-width: 1024px)").matches},updateStuff:function(){var t=this;d((r=n.height(),t.parTop=t.$par.offset().top,t.parLeft=Math.ceil(t.isRtl()?"-"+(n.width()-(t.$par.offset().left+t.$par.outerWidth())):t.$par.offset().left),t.parWidth=t.$par.outerWidth(),t.parHeight=t.$par.outerHeight(),void o(t.element).css({height:t.parHeight,width:t.parWidth})),200)},isRtl:function(){var t=o("html");return t.is("[dir]")&&"rtl"===t.attr("dir")},render:function(){var t=o(this.element),e=s.scrollY||s.pageYOffset||0,i=n.scrollTop();!l||i+r>=this.parTop&&i<=this.parTop+this.parHeight?(i=((e-this.parTop)/1.3).toFixed(0),t.addClass("is-visible"),t.css({transform:"translate3d("+this.parLeft+"px,"+(this.parTop-e)+"px,0)"+this.scaleFactor}),this.$bg.css("transform","translate3d(0,"+i+"px,0)"),l=!0):t.removeClass("is-visible")},disableParallax:function(){o(this.element).removeClass("is-fixed").css({transform:"",height:""}),this.$bg.css("transform","")}},o.fn[i]=function(t){return this.each(function(){o.data(this,"plugin_"+i)||o.data(this,"plugin_"+i,new e(this,t))})}}(jQuery,window),function(c,d,u){function f(t,e){return typeof t===e}function m(t){return"function"!=typeof d.createElement?d.createElement(t):z?d.createElementNS.call(d,"http://www.w3.org/2000/svg",t):d.createElement.apply(d,arguments)}function g(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,i){return e+i.toUpperCase()}).replace(/^-/,"")}function v(t,e,i,o){var s,n,a,r,l="modernizr",h=m("div");(r=d.body)||((r=m(z?"svg":"body")).fake=!0);if(parseInt(i,10))for(;i--;)(n=m("div")).id=o?o[i]:l+(i+1),h.appendChild(n);return(s=m("style")).type="text/css",s.id="s"+l,(r.fake?r:h).appendChild(s),r.appendChild(h),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(d.createTextNode(t)),h.id=l,r.fake&&(r.style.background="",r.style.overflow="hidden",a=E.style.overflow,E.style.overflow="hidden",E.appendChild(r)),s=e(h,t),r.fake?(r.parentNode.removeChild(r),E.style.overflow=a,E.offsetHeight):h.parentNode.removeChild(h),!!s}function y(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function b(t,e,i,o){function s(){a&&(delete O.style,delete O.modElem)}if(o=void 0!==o&&o,void 0!==i){var n=function(t,e){var i=t.length;if("CSS"in c&&"supports"in c.CSS){for(;i--;)if(c.CSS.supports(y(t[i]),e))return!0;return!1}if("CSSSupportsRule"in c){for(var o=[];i--;)o.push("("+y(t[i])+":"+e+")");return v("@supports ("+(o=o.join(" or "))+") { #modernizr { position: absolute; } }",function(t){return"absolute"==getComputedStyle(t,null).position})}return u}(t,i);if(void 0!==n)return n}for(var a,r,l,h,d,p=["modernizr","tspan","samp"];!O.style&&p.length;)a=!0,O.modElem=m(p.shift()),O.style=O.modElem.style;for(l=t.length,r=0;r