!function(h){h.ZnbFrontendJs=function(){this.scope=h(document),this.zinit()},h.ZnbFrontendJs.prototype={zinit:function(){var t=this;t.addActions(),t.initHelpers(h(document)),t.refresh_events(h(document)),h(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),h(window).trigger("resize")}),e.scope.on("ZnNewContent",function(t){e.refresh_events(t.content)})},unbind_events:function(t){},initHelpers:function(t){var p=this;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,n){var s,a,r,l,h=0;n=n||{};function d(){h=!1===n.leading?0:p.helpers.date_now,s=null,l=i.apply(a,r),s||(a=r=null)}function t(){var t=p.helpers.date_now;h||!1!==n.leading||(h=t);var e=o-(t-h);return a=this,r=arguments,e<=0||o=-o&&e.bottom<=(window.innerHeight||i.clientHeight)+o},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);var e=h("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 l=this;(t?t.find(".zn-contactForm"):h(".zn-contactForm")).each(function(t,e){var i=h(e),o=i.find(".zn-formItem-field--timepicker"),n=i.find(".zn-formItem-field--datepicker"),s=n.is("[data-datepickerlang]")?n.attr("data-datepickerlang"):"",a=n.is("[data-dateformat]")?n.attr("data-dateformat"):"yy-mm-dd",r=o.is("[data-timeformat]")?o.attr("data-timeformat"):"h:i A";0'),""!==s&&h.datepicker.setDefaults(h.datepicker.regional[s])),i.on("submit",function(t){if(t.preventDefault(),!0===l.form_submitting)return!1;l.form_submitting=!0;var n=h(this),e=n.find(".zn_contact_ajax_response:eq(0)"),i=!1,s={fields:n.find('textarea, select, input[type="text"], input[type="checkbox"], input[type="hidden"]')},a=e.attr("id"),r=n.find(".zn-formSubmit");if((l.helpers.isIE11||l.helpers.isIE10||l.helpers.isIE9)&&n.is('[action="#"]')&&n.attr("action",""),r.addClass("zn-contactForm--loading"),s.fields.each(function(){var t=h(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 r.removeClass("zn-contactForm--loading"),l.form_submitting=!1;var o=n.serialize();return h.post(n.attr("action"),o).success(function(t){l.form_submitting=!1,r.removeClass("zn-contactForm--loading");var e=h(t).find("#"+a+" > .zn_cf_response"),i=h("#"+a),o=n.data("redirect");i.html(e),e.hasClass("alert-success")&&(s.fields.val(""),o&&window.location.replace(o))}).error(function(){console.log("Error loading page")}),!1})})},background_video:function(t){var n=this,e=t.find(".zn-videoBg:not(.zn-videoBg--no-init)");e.length&&e.each(function(t,e){var i=h(e),o=i.is("[data-video-setup]")&&n.helpers.IsJsonString(i.attr("data-video-setup"))?JSON.parse(i.attr("data-video-setup")):{};if("undefined"!=typeof video_background)new video_background(i,o)})},doParallax:function(t){var e=h(".js-znParallax",h(t));0
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},v.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=m(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&m(m.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(" "),n=o.length;n--;){var s=o[n];if("click"==s)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",r="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},v.prototype.getDefaults=function(){return v.DEFAULTS},v.prototype.getOptions=function(t){return(t=m.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},v.prototype.getDelegateOptions=function(){var i={},o=this.getDefaults();return this._options&&m.each(this._options,function(t,e){o[t]!=e&&(i[t]=e)}),i},v.prototype.enter=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.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)}},v.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},v.prototype.leave=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.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)}},v.prototype.show=function(){var t=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var i=this,o=this.tip(),n=this.getUID(this.type);this.setContent(),o.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,r=a.test(s);r&&(s=s.replace(a,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(r){var p=s,c=this.getPosition(this.$viewport);s="bottom"==s&&l.bottom+d>c.bottom?"top":"top"==s&&l.top-dc.width?"left":"left"==s&&l.left-ha.top+a.height&&(n.top=a.top+a.height-l)}else{var h=e.left-s,d=e.left+s+i;ha.right&&(n.left=a.left+a.width-d)}return n},v.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)},v.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},v.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},v.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},v.prototype.enable=function(){this.enabled=!0},v.prototype.disable=function(){this.enabled=!1},v.prototype.toggleEnabled=function(){this.enabled=!this.enabled},v.prototype.toggle=function(t){var e=this;t&&((e=m(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(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)},v.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=m.fn.tooltip;m.fn.tooltip=function(o){return this.each(function(){var t=m(this),e=t.data("bs.tooltip"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.tooltip",e=new v(this,i)),"string"==typeof o&&e[o]())})},m.fn.tooltip.Constructor=v,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=t,this}}(jQuery),function(r){"use strict";function a(t){this.element=r(t)}function e(i){return this.each(function(){var t=r(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new a(this)),"string"==typeof i&&e[i]()})}a.VERSION="3.3.7",a.TRANSITION_DURATION=150,a.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i=i||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""),!t.parent("li").hasClass("active")){var o=e.find(".active:last a"),n=r.Event("hide.bs.tab",{relatedTarget:t[0]}),s=r.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(n),t.trigger(s),!s.isDefaultPrevented()&&!n.isDefaultPrevented()){var a=r(i);this.activate(t.closest("li"),e),this.activate(a,a.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},a.prototype.activate=function(t,e,i){var o=e.find("> .active"),n=i&&r.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);function s(){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),n?(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&&n?o.one("bsTransitionEnd",s).emulateTransitionEnd(a.TRANSITION_DURATION):s(),o.removeClass("in")};var t=r.fn.tab;r.fn.tab=e,r.fn.tab.Constructor=a,r.fn.tab.noConflict=function(){return r.fn.tab=t,this};function i(t){t.preventDefault(),e.call(r(this),"show")}r(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(a){"use strict";var r=function(t,e){this.$element=a(t),this.options=a.extend({},r.DEFAULTS,e),this.$trigger=a('[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 n(t){var e,i=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return a(i)}function l(o){return this.each(function(){var t=a(this),e=t.data("bs.collapse"),i=a.extend({},r.DEFAULTS,t.data(),"object"==typeof o&&o);!e&&i.toggle&&/show|hide/.test(o)&&(i.toggle=!1),e||t.data("bs.collapse",e=new r(this,i)),"string"==typeof o&&e[o]()})}r.VERSION="3.3.7",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var i=a.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){e&&e.length&&(l.call(e,"hide"),t||e.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var n=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return n.call(this);var s=a.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",a.proxy(n,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[o](this.$element[0][s])}}}},r.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=a.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!a.support.transition)return i.call(this);this.$element[e](0).one("bsTransitionEnd",a.proxy(i,this)).emulateTransitionEnd(r.TRANSITION_DURATION)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(t,e){var i=a(e);this.addAriaAndCollapsedClass(n(i),i)},this)).end()},r.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=a.fn.collapse;a.fn.collapse=l,a.fn.collapse.Constructor=r,a.fn.collapse.noConflict=function(){return a.fn.collapse=t,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=a(this);e.attr("data-target")||t.preventDefault();var i=n(e),o=i.data("bs.collapse")?"toggle":e.data();l.call(i,o)})}(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=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};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(){if(null!=jQuery){var t,n=jQuery,e=-1!=(t=navigator.userAgent.toLowerCase()).indexOf("msie")&&parseInt(t.split("msie")[1]),o=0,s=0,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:")?(n(this).trigger("error"),t.call(this)):(n(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_"+o,o++,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},n.each(e,n.proxy(function(t,e){this.parameters[t]=e},this)),this.$video_holder=n('
').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";var i=ZionBuilderFrontend.allow_video_on_mobile;return this.ismobile&&!i||(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},video_background.prototype={make_video:function(){var t=(this.parameters.autoplay?"autoplay ":"")+(this.parameters.loop?'loop onended="this.play()" ':""),e='",this.$video=n(e).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,n(window).resize(n.proxy(function(){clearTimeout(this.resize_timeout),this.resize_timeout=setTimeout(n.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 e=this.$video_holder.width(),i=this.$video_holder.height(),o=e,n=e/this.parameters.video_ratio;n').appendTo(this.$video_holder).css({position:"absolute"}),this.youtube_ready=!1,0==s){var i=document.createElement("script");i.src="https://www.youtube.com/iframe_api";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(i,o),s=1,window.onYouTubeIframeAPIReady=n.proxy(function(){t.trigger("yt_loaded"),this.build_youtube(),s=2},this)}else 1==s?t.bind("yt_loaded",n.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:n.proxy(this.youtube_ready_fun,this)}})},youtube_ready_fun:function(t){this.youtube_ready=!0,this.$video=n("#"+this.id+"_yt"),this.$video_holder.closest(".zn-videoBg").addClass("is-loaded"),!1!==this.parameters.video_ratio&&(this.resize_timeout=!1,n(window).resize(n.proxy(function(){clearTimeout(this.resize_timeout),this.resize_timeout=setTimeout(n.proxy(this.video_resize,this),10)},this)),this.video_resize()),this.parameters.muted&&this.mute(),this.parameters.controls&&this.make_controls()},make_vimeo:function(){n("html");this.$video=n('
').appendTo(this.$video_holder).css({position:"absolute",top:0,left:0,right:0,bottom:0}),this.vimeo_ready=!1,0===i?n.getScript("//player.vimeo.com/api/player.js",n.proxy(function(){this.build_vimeo(),i=1},this)):1==i&&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};this.player=new Vimeo.Player(this.id+"_vm",t);var e=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=n("#"+this.id+"_vm"),this.$video_holder.closest(".zn-videoBg").addClass("is-loaded"),!1!==this.parameters.video_ratio&&(this.resize_timeout=!1,n(window).resize(n.proxy(function(){clearTimeout(this.resize_timeout),this.resize_timeout=setTimeout(n.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 t,e=this;t='").appendTo(this.$video_holder),this.$video_holder.find(".btn-toggleplay").on("click",function(t){t.preventDefault(),e.toggle_play(),n(this).children("i").toggleClass("paused")}),this.$video_holder.find(".btn-audio").on("click",function(t){t.preventDefault(),e.toggle_mute(),n(this).children("i").toggleClass("mute")})},make_image:function(){!1!==this.parameters.fallback_image&&""!=this.parameters.fallback_image&&(this.$img=n('').appendTo(this.$video_holder).css({position:"absolute"}),"object"!=typeof Modernizr||Modernizr.objectfit?this.$img.css({width:"100%",height:"100%"}):this.$img.ensureLoad(n.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,n(window).resize(n.proxy(function(){clearTimeout(this.resize_timeout),this.resize_timeout=setTimeout(n.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);("adjust"==this.parameters.sizing&&e=this.parTop&&i<=this.parTop+this.parHeight){var o=((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,"+o+"px,0)"),h=!0}else t.removeClass("is-visible")},disableParallax:function(){n(this.element).removeClass("is-fixed").css({transform:"",height:""}),this.$bg.css("transform","")}},n.fn[i]=function(t){return this.each(function(){n.data(this,"plugin_"+i)||n.data(this,"plugin_"+i,new e(this,t))})}}(jQuery,window),function(c,p,u){function f(t,e){return typeof t===e}function m(t){return"function"!=typeof p.createElement?p.createElement(t):_?p.createElementNS.call(p,"http://www.w3.org/2000/svg",t):p.createElement.apply(p,arguments)}function v(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,i){return e+i.toUpperCase()}).replace(/^-/,"")}function g(t,e,i,o){var n,s,a,r,l="modernizr",h=m("div"),d=function(){var t=p.body;return t||((t=m(_?"svg":"body")).fake=!0),t}();if(parseInt(i,10))for(;i--;)(a=m("div")).id=o?o[i]:l+(i+1),h.appendChild(a);return(n=m("style")).type="text/css",n.id="s"+l,(d.fake?d:h).appendChild(n),d.appendChild(h),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(p.createTextNode(t)),h.id=l,d.fake&&(d.style.background="",d.style.overflow="hidden",r=w.style.overflow,w.style.overflow="hidden",w.appendChild(d)),s=e(h,t),d.fake?(d.parentNode.removeChild(d),w.style.overflow=r,w.offsetHeight):h.parentNode.removeChild(h),!!s}function r(t,e){return function(){return t.apply(e,arguments)}}function y(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function l(t,e,i,o){function n(){a&&(delete $.style,delete $.modElem)}if(o=!f(o,"undefined")&&o,!f(i,"undefined")){var s=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 g("@supports ("+(o=o.join(" or "))+") { #modernizr { position: absolute; } }",function(t){return"absolute"==getComputedStyle(t,null).position})}return u}(t,i);if(!f(s,"undefined"))return s}for(var a,r,l,h,d,p=["modernizr","tspan","samp"];!$.style&&p.length;)a=!0,$.modElem=m(p.shift()),$.style=$.modElem.style;for(l=t.length,r=0;r