/** handles (scripts) :bp-livestamp | bp-nouveau | divi-button-hover-start | imagesloaded | extra-scripts | et-core-common */!function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):t(jQuery,moment)}(function(o,m){function a(t,e){var a=t.data("livestampdata");"number"==typeof e&&(e*=1e3),t.removeAttr("data-livestamp").removeData("livestamp"),e=m(e),m.isMoment(e)&&!isNaN(+e)&&((a=o.extend({},{original:t.contents()},a)).moment=m(e),t.data("livestampdata",a).empty(),u.push(t[0]))}function t(){n||(i.update(),setTimeout(t,e))}var e=1e3,n=!1,u=o([]),i={update:function(){o("[data-livestamp]").each(function(){var t=o(this);a(t,t.data("livestamp"))});var i=[];u.each(function(){var t,e,a=o(this),n=a.data("livestampdata");void 0===n?i.push(this):m.isMoment(n.moment)&&(t=a.html())!=(n=n.moment.fromNow())&&(e=o.Event("change.livestamp"),a.trigger(e,[t,n]),e.isDefaultPrevented()||a.html(n))}),delete(u=u.not(i)).prevObject},pause:function(){n=!0},resume:function(){n=!1,t()},interval:function(t){if(void 0===t)return e;e=t}},r={add:function(t,e){return"number"==typeof e&&(e*=1e3),e=m(e),m.isMoment(e)&&!isNaN(+e)&&(t.each(function(){a(o(this),e)}),i.update()),t},destroy:function(a){return u=u.not(a),a.each(function(){var t=o(this),e=t.data("livestampdata");if(void 0===e)return a;t.html(e.original||"").removeData("livestampdata")}),a},isLivestamp:function(t){return void 0!==t.data("livestampdata")}};o.livestamp=i,o(function(){i.resume()}),o.fn.livestamp=function(t,e){return r[t]||(e=t,t="add"),r[t](this,e)}}) ;; window.wp=window.wp||{},window.bp=window.bp||{},function(s,c){"undefined"!=typeof BP_Nouveau&&(s.Nouveau={start:function(){this.setupGlobals(),this.prepareDocument(),this.initObjects(),this.setHeartBeat(),this.addListeners()},setupGlobals:function(){this.ajax_request=null,this.objects=c.map(BP_Nouveau.objects,function(e){return e}),this.objectNavParent=BP_Nouveau.object_nav_parent,this.heartbeat=wp.heartbeat||{},this.querystring=this.getLinkParams()},prepareDocument:function(){var a;c("body").hasClass("no-js")&&c("body").removeClass("no-js").addClass("js"),BP_Nouveau.warnings&&"undefined"!=typeof console&&console.warn&&c.each(BP_Nouveau.warnings,function(e,t){console.warn(t)}),c(".buddypress_object_nav .widget-title").length&&(a=c(".buddypress_object_nav .widget-title").html(),c("body").find('*:contains("'+a+'")').each(function(e,t){c(t).hasClass("widget-title")||a!==c(t).html()||c(t).is("a")||c(t).remove()}))},getStorage:function(e,t){e=(e=sessionStorage.getItem(e))?JSON.parse(e):{};return void 0!==t?e[t]||!1:e},setStorage:function(e,t,a){var s=this.getStorage(e);return void 0===a&&void 0!==s[t]?delete s[t]:s[t]=a,sessionStorage.setItem(e,JSON.stringify(s)),null!==sessionStorage.getItem(e)},getLinkParams:function(e,t){var e=e?-1!==e.indexOf("?")?"?"+e.split("?")[1]:"":document.location.search;return e?(e=e.replace(/(^\?)/,"").split("&").map(function(e){return this[(e=e.split("="))[0]]=e[1],this}.bind({}))[0],t?e[t]:e):null},urlDecode:function(e,t){var a=t||{amp:"&",lt:"<",gt:">",quot:'"',"#039":"'"};return decodeURIComponent(e.replace(/\+/g," ")).replace(/&([^;]+);/g,function(e,t){return a[t]||""})},ajax:function(e,t){this.ajax_request&&this.ajax_request.abort();t=c.extend({},s.Nouveau.getStorage("bp-"+t),{nonce:BP_Nouveau.nonces[t]},e);return void 0!==BP_Nouveau.customizer_settings&&(t.customized=BP_Nouveau.customizer_settings),this.ajax_request=c.post(BP_Nouveau.ajaxurl,t,"json"),this.ajax_request},inject:function(e,t,a){c(e).length&&t&&("append"===(a=a||"reset")?c(e).append(t):"prepend"===a?c(e).prepend(t):c(e).html(t),"undefined"==typeof bp_mentions&&void 0===s.mentions||c(".bp-suggestions").bp_mentions(s.mentions.users))},objectRequest:function(a){var e,s=this;if((a=c.extend({object:"",scope:null,filter:null,target:"#buddypress [data-bp-list]",search_terms:"",page:1,extras:null,caller:null,template:null,method:"reset"},a)).object&&a.target)return a.search_terms&&(a.search_terms=a.search_terms.replace(//g,">")),null!==a.scope&&this.setStorage("bp-"+a.object,"scope",a.scope),null!==a.filter&&this.setStorage("bp-"+a.object,"filter",a.filter),null!==a.extras&&this.setStorage("bp-"+a.object,"extras",a.extras),c(this.objectNavParent+" [data-bp-object]").each(function(){c(this).removeClass("selected loading")}),c(this.objectNavParent+' [data-bp-scope="'+a.scope+'"], #object-nav li.current').addClass("selected loading"),c('#buddypress [data-bp-filter="'+a.object+'"] option[value="'+a.filter+'"]').prop("selected",!0),"friends"===a.object||"friend_requests"===a.object||"group_members"===a.object?(a.template=a.object,a.object="members"):"group_requests"===a.object?(a.object="groups",a.template="group_requests"):"notifications"===a.object&&(a.object="members",a.template="member_notifications"),e=c.extend({action:a.object+"_filter"},a),this.ajax(e,a.object).done(function(e){var t;!1!==e.success&&((t=c(s.objectNavParent+' [data-bp-scope="'+a.scope+'"]')).removeClass("loading"),e.data&&e.data.totalItems&&e.data.navLabel&&t.find("a").first().html(e.data.navLabel+" ").append(c("").addClass("count").html(e.data.totalItems)),"reset"!==a.method?(s.inject(a.target,e.data.contents,a.method),c(a.target).trigger("bp_ajax_"+a.method,c.extend(a,{response:e.data}))):"pag-bottom"===a.caller&&c("#subnav").length?(t=c("#subnav").parent(),c("html,body").animate({scrollTop:t.offset().top},"slow",function(){c(a.target).fadeOut(100,function(){s.inject(this,e.data.contents,a.method),c(this).fadeIn(100,"swing",function(){c(a.target).trigger("bp_ajax_request",c.extend(a,{response:e.data}))})})})):c(a.target).fadeOut(100,function(){s.inject(this,e.data.contents,a.method),c(this).fadeIn(100,"swing",function(){c(a.target).trigger("bp_ajax_request",c.extend(a,{response:e.data}))})}))})},initObjects:function(){var a,s=this,r="all",n="",o=null,i=null;c.each(this.objects,function(e,t){void 0!==(a=s.getStorage("bp-"+t)).scope&&(r=a.scope),void 0!==a.extras&&"notifications"!==t&&(o=a.extras),c('#buddypress [data-bp-filter="'+t+'"]').length&&(void 0!==a.filter?(i=a.filter,c('#buddypress [data-bp-filter="'+t+'"] option[value="'+i+'"]').prop("selected",!0)):"-1"!==c('#buddypress [data-bp-filter="'+t+'"]').val()&&"0"!==c('#buddypress [data-bp-filter="'+t+'"]').val()&&(i=c('#buddypress [data-bp-filter="'+t+'"]').val())),c(this.objectNavParent+' [data-bp-object="'+t+'"]').length&&(c(this.objectNavParent+' [data-bp-object="'+t+'"]').each(function(){c(this).removeClass("selected")}),c(this.objectNavParent+' [data-bp-scope="'+t+'"], #object-nav li.current').addClass("selected")),null!==s.querystring&&(void 0!==s.querystring[t+"_search"]?n=s.querystring[t+"_search"]:void 0!==s.querystring.s&&(n=s.querystring.s),n)&&(n=s.urlDecode(n),c('#buddypress [data-bp-search="'+t+'"] input[type=search]').val(n)),c('#buddypress [data-bp-list="'+t+'"]').length&&(a={object:t,scope:r,filter:i,search_terms:n,extras:o},s.objectRequest(a))})},setHeartBeat:function(){void 0!==BP_Nouveau.pulse&&this.heartbeat&&(this.heartbeat.interval(Number(BP_Nouveau.pulse)),c.fn.extend({"heartbeat-send":function(){return this.bind("heartbeat-send.buddypress")}}),c.fn.extend({"heartbeat-tick":function(){return this.bind("heartbeat-tick.buddypress")}}))},addListeners:function(){c("[data-bp-disable-input]").on("change",this.toggleDisabledInput),c(document).on("heartbeat-send.buddypress",this.heartbeatSend),c(document).on("heartbeat-tick.buddypress",this.heartbeatTick),c(this.objectNavParent+" .bp-navs").on("click","a",this,this.scopeQuery),c("#buddypress [data-bp-filter]").on("change",this,this.filterQuery),c("#buddypress [data-bp-search]").on("submit","form",this,this.searchQuery),c("#buddypress [data-bp-search] form").on("search","input[type=search]",this.resetSearch),c("#buddypress [data-bp-list], #buddypress #item-header").on("click","[data-bp-btn-action]",this,this.buttonAction),c("#buddypress [data-bp-close]").on("click",this,this.closeNotice),c("#buddypress [data-bp-list]").on("click","[data-bp-pagination] a",this,this.paginateAction),BP_Nouveau.bpPasswordVerify&&BP_Nouveau.bpPasswordVerify.requiredPassStrength&&c("#pass1").on("input pwupdate",this.checkPassStrength)},toggleDisabledInput:function(e){var e=c(e.currentTarget),t="#"+e.data("bp-disable-input"),a=e.prop("checked");e.removeClass("enabled disabled"),a?(e.addClass("enabled"),c(t).prop("disabled",!1)):(c(t).prop("disabled",!0),e.addClass("disabled"))},heartbeatSend:function(e,t){c("#buddypress").trigger("bp_heartbeat_send",t)},heartbeatTick:function(e,t){c("#buddypress").trigger("bp_heartbeat_tick",t)},scopeQuery:function(e){var t,a,s,r=e.data,n=c(e.currentTarget).parent(),o="";return!n.hasClass("no-ajax")&&!c(e.currentTarget).hasClass("no-ajax")&&n.attr("data-bp-scope")&&(t=n.data("bp-scope"),a=n.data("bp-object"),t)&&a?(e.preventDefault(),s=c("#buddypress").find('[data-bp-filter="'+a+'"]').first().val(),c('#buddypress [data-bp-search="'+a+'"] input[type=search]').length&&(o=c('#buddypress [data-bp-search="'+a+'"] input[type=search]').val()),n.hasClass("dynamic")&&n.find("a span").html(""),void r.objectRequest({object:a,scope:t,filter:s,search_terms:o,page:1})):e},filterQuery:function(e){var t=e.data,a=c(e.target).data("bp-filter"),s="all",r=c(e.target).val(),n="";if(!a)return e;c(t.objectNavParent+" [data-bp-object].selected").length&&(s=c(t.objectNavParent+" [data-bp-object].selected").data("bp-scope")),c('#buddypress [data-bp-search="'+a+'"] input[type=search]').length&&(n=c('#buddypress [data-bp-search="'+a+'"] input[type=search]').val()),t.objectRequest({object:a,scope:s,filter:r,search_terms:n,page:1,template:null})},searchQuery:function(e){var t,a,s=e.data,r="all";if(c(e.delegateTarget).hasClass("no-ajax")||void 0===c(e.delegateTarget).data("bp-search"))return e;e.preventDefault(),t=c(e.delegateTarget).data("bp-search"),a=c("#buddypress").find('[data-bp-filter="'+t+'"]').first().val(),e=c(e.delegateTarget).find("input[type=search]").first().val(),c(s.objectNavParent+" [data-bp-object]").length&&(r=c(s.objectNavParent+' [data-bp-object="'+t+'"].selected').data("bp-scope")),s.objectRequest({object:t,scope:r,filter:a,search_terms:e,page:1,template:null})},showSearchSubmit:function(e){c(e.delegateTarget).find("[type=submit]").addClass("bp-show"),c("[type=submit]").hasClass("bp-hide")&&c("[type=submit]").removeClass("bp-hide")},resetSearch:function(e){c(e.target).val()?c(e.delegateTarget).find("[type=submit]").show():c(e.delegateTarget).submit()},buttonAction:function(e){var a=e.data,s=c(e.currentTarget),r=s.data("bp-btn-action"),t=s.data("bp-nonce"),n=s.closest("[data-bp-item-id]"),o=n.data("bp-item-id"),i=s.closest(".list-wrap"),d=n.data("bp-item-component"),p="";return r&&o&&d?(e.preventDefault(),!(void 0!==BP_Nouveau[r+"_confirm"]&&!1===window.confirm(BP_Nouveau[r+"_confirm"])||s.hasClass("pending"))&&(t=t||s.prop("href"),p=a.getLinkParams(t,"_wpnonce"),t={is_friend:"remove_friend",not_friends:"add_friend",pending:"withdraw_friendship",accept_friendship:"accept_friendship",reject_friendship:"reject_friendship"},"members"===d&&void 0!==t[r]&&(r=t[r],d="friends"),s.addClass("pending loading"),void a.ajax({action:d+"_"+r,item_id:o,_wpnonce:p},d).done(function(e){if(!1===e.success)i.prepend(e.data.feedback),s.removeClass("pending loading"),n.find(".bp-feedback").fadeOut(6e3);else{if("groups"===d&&void 0!==e.data.is_group&&e.data.is_group)return window.location.reload();var t;void 0!==e.data.is_user&&e.data.is_user?(s.parent().html(e.data.feedback),n.fadeOut(1500)):(c(a.objectNavParent+' [data-bp-scope="personal"]').length&&(t=Number(c(a.objectNavParent+' [data-bp-scope="personal"] span').html())||0,-1!==c.inArray(r,["leave_group","remove_friend"])?--t:-1!==c.inArray(r,["join_group"])&&(t+=1),t<0&&(t=0),c(a.objectNavParent+' [data-bp-scope="personal"] span').html(t)),s.parent().replaceWith(e.data.contents))}}))):e},closeNotice:function(e){var t=c(e.currentTarget);e.preventDefault(),"clear"===t.data("bp-close")&&(void 0!==c.cookie("bp-message")&&c.removeCookie("bp-message"),void 0!==c.cookie("bp-message-type"))&&c.removeCookie("bp-message-type"),t.closest(".bp-feedback").hasClass("bp-sitewide-notice")&&s.Nouveau.ajax({action:"messages_dismiss_sitewide_notice"},"messages"),t.closest(".bp-feedback").remove()},paginateAction:function(e){var t=e.data,a=c(e.currentTarget),s=null,r=null,n=null,o=null,i=a.closest("[data-bp-pagination]").data("bp-pagination")||null;if(null===i)return e;e.preventDefault(),null!==(e=c(e.delegateTarget).data("bp-list")||null)&&(void 0!==(d=t.getStorage("bp-"+e)).scope&&(s=d.scope),void 0!==d.filter&&(r=d.filter),void 0!==d.extras)&&(o=d.extras);var d={object:e,scope:s,filter:r,search_terms:n=c('#buddypress [data-bp-search="'+e+'"] input[type=search]').length?c('#buddypress [data-bp-search="'+e+'"] input[type=search]').val():n,extras:o,page:t.getLinkParams(a.prop("href"),i)||1};t.objectRequest(d)},checkPassStrength:function(e){var t=BP_Nouveau.bpPasswordVerify,a=parseInt(t.requiredPassStrength,10),s=c(e.currentTarget).val(),r=c("#pass2").val(),n=c(e.currentTarget).closest("form"),s="function"==typeof wp.passwordStrength.userInputDisallowedList?wp.passwordStrength.meter(s,wp.passwordStrength.userInputDisallowedList(),r):wp.passwordStrength.meter(s,wp.passwordStrength.userInputBlacklist(),r);a&&a<=4&&(r=c(n).find("#password-warning"),s
").prop("id","password-warning").addClass("description")),c(r).html(t.tooWeakPasswordWarning)):c(r).length&&c(r).remove(),c(n).find("#password-strength-score").length||c(n).prepend(c("").prop({id:"password-strength-score",type:"hidden",name:"_password_strength_score"})),c("#password-strength-score").val(s),s .header"),this.$main_nav=this.$container.find("#main-header"),this.main_nav_height=this.$main_nav.innerHeight(),this.$top_nav=this.$container.find("#top-header"),this.top_nav_height=this.$top_nav.innerHeight(),this.$content_area=this.$container.find("#main-content"),this.$wpadminbar=this.$body.find("#wpadminbar")},init:function(){this.cacheElements(),e.subscribe("et-window.resized",e.proxy(this.hasMainNavHeightChanged,this)),e.subscribe("et-window.resized",e.proxy(this.hasTopNavHeightChanged,this))},hasMainNavHeightChanged:function(){var t=this.$main_nav.innerHeight();t!==this.main_nav_height&&(this.main_nav_height=t,e.publish("et-main_nav.changed_height"))},hasTopNavHeightChanged:function(){var t=this.$top_nav.innerHeight();t!==this.top_nav_height&&(this.top_nav_height=t,e.publish("et-top_nav.changed_height"))}},e((function(){n.init()})),e(window).resize((function(){e.publish("et-window.resized")})),t.Elements=n}(ET_App,jQuery),function(t,e){var n;(n={addRule:function(t,e){this.maybeAddStyleElement(),this.elements[t]=e,this.render()},addStyleElement:function(){e("head").append(''),this.$container=e("style#"+this.styleID),this.styleTagAdded=!0},init:function(){this.elements={},this.styleTagAdded=!1,this.styleID="et_custom_script_css"},maybeAddStyleElement:function(){this.styleTagAdded||this.addStyleElement()},render:function(){var t="";for(var e in this.elements)t+=e+" { "+this.elements[e]+" }\n";this.$container.html(t)}}).init(),t.DynamicStyles=n}(ET_App,jQuery),function(t,e){var n,i=ET_App.Elements;n={activateFixedPosition:function(){var t,n=this;this.maybeDeactivateOnMobile()||(this.$nav_container.addClass(this.fixed_class),this.isHeaderCentered()?t=2*this.fixed_logo_height+e("#et-navigation > ul > li > a").height()+20:(this.logo_initial_width_value>this.logo_fixed_width_value?this.$logo.stop().animate({width:this.logo_fixed_width_value}):this.$logo.css({width:this.logo_fixed_width_value}),t=this.main_nav_fixed_height),this.hide_nav_until_scroll||(this.$main_nav_wrapper.height(t),setTimeout((function(){var t=n.$main_nav.innerHeight();n.$main_nav_wrapper.height()!==t&&n.$main_nav_wrapper.height(t)}),500)))},activateHideNav:function(){this.hide_nav_until_scroll=!0},applyHideNav:function(){var t,e;if(!this.hide_nav_until_scroll)return!1;t=i.$body.height(),e=this.main_nav_height,t>i.$window.height()+e+this.viewpoint_height_modifier?(this.isHideNavDisabled()&&this.hideNavEnable(),this.hideNavMoveOffScreen()):this.hideNavDisable()},applyWaypoints:function(){this.$main_nav_wrapper.waypoint({offset:this.offset,handler:e.proxy(this.scroll_trigger,this)})},bindEvents:function(){e.subscribe("et-main_nav.changed_height",e.proxy(this.onMainNavHeightChanged,this))},cacheElements:function(){this.$nav_container=i.$container,this.$main_nav=i.$main_nav,this.$main_nav_wrapper=this.$main_nav.closest("#main-header-wrapper"),this.main_nav_height=this.$main_nav.height(),this.main_nav_fixed_height=this.$main_nav.data("fixed-height"),this.$content_area=i.$content_area,this.content_area_default_padding=parseInt(this.$content_area.css("padding-top")),this.fixed_class="et-fixed-header",this.mobile_breakpoint_width=1024,this.hide_nav_class="et_hide_nav",this.hide_nav_disabled_class="et_hide_nav_disabled",this.hide_nav_until_scroll=i.$body.hasClass(this.hide_nav_class)||i.$body.hasClass(this.hide_nav_disabled_class),this.viewpoint_height_modifier=200,this.$logo=this.$nav_container.find(".logo"),this.logo_height=this.$logo.height(),this.logo_width=this.$logo.width(),this.fixed_logo_height=parseInt(this.$main_nav.attr("data-fixed-height"))*(parseInt(this.$logo.attr("data-fixed-height"))/100),this.fixed_logo_width=this.logo_width/this.logo_height*this.fixed_logo_height,this.logo_initial_width_value=parseInt(this.logo_width),this.logo_fixed_width_value=parseInt(this.fixed_logo_width)},calculateOffset:function(){this.offset=0,i.$wpadminbar.length&&(this.offset=this.offset+i.$wpadminbar.innerHeight()),i.$top_nav.is(":visible")||(this.offset=-1)},deactivateFixedPosition:function(){this.$nav_container.removeClass(this.fixed_class),this.maybeDeactivateOnMobile()||(this.isHeaderCentered()||(this.logo_fixed_width_value>this.logo_initial_width_value?this.$logo.stop().animate({width:this.logo_initial_width_value}):this.$logo.css({width:this.logo_initial_width_value})),this.hide_nav_until_scroll||this.$main_nav_wrapper.height(this.main_nav_height))},deactivateHideNav:function(){this.hide_nav_until_scroll=!1},detachHideNav:function(){this.deactivateHideNav(),this.hideNavDisable()},init:function(){e.fn.waypoint&&i.$body.hasClass("et_fixed_nav")&&(this.cacheElements(),this.bindEvents(),this.calculateOffset(),this.run(),this.applyHideNav(),this.$logo.attr({"data-fixed-width":this.fixed_logo_width,"data-initial-width":this.logo_width,"data-initial-height":this.logo_height}))},isHeaderCentered:function(){return i.$main_header.hasClass("centered")},isHideNavDisabled:function(){return i.$body.hasClass(this.et_hide_nav_disabled)},maybeDeactivateOnMobile:function(){return i.$body.width()<=this.mobile_breakpoint_width&&(this.$nav_container.removeClass(this.fixed_class),this.$main_nav_wrapper.css("height","auto"),!0)},hideNavDisable:function(){i.$body.removeClass(this.et_hide_nav).addClass(this.et_hide_nav_disabled),this.$main_nav.css({transform:"translateY(0)",opacity:"1"})},hideNavEnable:function(){i.$body.removeClass(this.et_hide_nav_disabled).addClass(this.et_hide_nav)},hideNavMoveOffScreen:function(){var t="translateY( -"+this.main_nav_height+"px )";this.$main_nav.css("transform",t)},onMainNavHeightChanged:function(){ET_App.Elements.$container.hasClass("et-fixed-header")||(this.main_nav_height=this.$main_nav.height(),this.$main_nav_wrapper.height(this.main_nav_height))},reApplyHideNav:function(){this.activateHideNav(),this.hideNavMoveOffScreen(),this.applyHideNav()},run:function(){this.deactivateFixedPosition(),this.applyWaypoints()},scroll_trigger:function(t){"down"===t?this.activateFixedPosition():this.deactivateFixedPosition()}},e(window).load((function(){n.init()})),e(window).resize((function(){n.applyHideNav()})),t.FixedNav=n}(ET_App,jQuery),function(t){function e(){jQuery.fn.reverse=[].reverse;var e=t(window),n=t("#main-content > .container"),i=n.width(),r=690,o=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/),a=navigator.userAgent.match(/Opera Mini|Opera Mobi/),s=navigator.userAgent.match(/iPad/),c=t(".et_builder_section_video_bg"),l=t(".et_builder_parallax_bg");function u(t,e,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||t.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,e),s&&t.apply(r,o)}}function d(e){$element=void 0!==e?e.closest(".et_builder_section_video_bg"):t(".et_builder_section_video_bg"),$element.each((function(){var e,n,i=t(this),r=void 0!==i.attr("data-ratio")?i.attr("data-ratio"):i.find("video").attr("width")/i.find("video").attr("height"),o=i.find(".mejs-video, video, object").css("margin",0),a=i.closest(".et_builder_section").length?i.closest(".et_builder_section"):i.closest(".et_builder_slides"),s=a.width(),c=a.innerHeight();void 0===i.attr("data-ratio")&&i.attr("data-ratio",r),s/c'+n.message+"
");Q.slideDown("fast")}),500);S.validate({rules:{contact_name:{required:!0},contact_email:{required:!0,email:!0}},messages:{contact_name:EXTRA.contact_error_name_required,contact_email:{required:EXTRA.contact_error_email_required,email:EXTRA.contact_error_email_invalid}},showErrors:function(t,e){e.length?X(e):Q.slideUp("fast",(function(){Q.html("")}))},submitHandler:function(){V.slideDown("fast"),Q.slideUp("fast",(function(){Q.html("")})),t.ajax({type:"POST",url:EXTRA.ajaxurl,data:{action:"extra_contact_form_submit",nonce_extra_contact_form:t("#nonce_extra_contact_form").val(),contact_name:t("#contact_name").val(),contact_email:t("#contact_email").val(),contact_subject:t("#contact_subject").val(),contact_message:t("#contact_message").val()},dataType:"json",success:function(e){V.slideUp("fast"),void 0===e.message&&(e={message:EXTRA.error,type:"error"}),"success"===e.message.type&&(t("#contact_name").val(""),t("#contact_email").val(""),t("#contact_subject").val(""),t("#contact_message").val("")),Q.append(''+e.message+"
"),Q.slideDown("fast",(function(){t("body").animate({scrollTop:Q.offset().top-50},{duration:200,complete:function(){setTimeout((function(){Q.effect("highlight",{duration:1e3})}),200)}})}))}})}})}var Y,Z=u((function(){var e=O.find(".timeline-module").eq(tt).attr("id"),n=t('a[href="#'+e+'"]'),i="timeline"+et_hash_module_param_seperator+n.attr("href").substring(1);et_set_hash(i)}),500);function K(){var t=O.find(".timeline-module"),e=tt||0,n=t.eq(e).data("year");pt.find("li.month").not(".year-"+n).slideUp("fast"),pt.find("li.year").not(".year-"+n).slideDown("fast"),pt.find("li.month.year-"+n).slideDown("fast"),pt.find("li.year.year-"+n).slideUp("fast")}function G(e,n){var i=pt.find(".content-loader"),r=t(window).scrollTop()+et>o?-3:3,o=n.offset().top-et+r;i.length&&i.fadeOut("fast",(function(){i.remove()})),t("html, body").animate({scrollTop:o},ht,"swing",(function(){setTimeout((function(){if(e.closest("li").siblings().removeClass("active"),e.closest("li").hasClass("year")){var n=e.data("year");pt.find("li.month.year-"+n).first().addClass("active")}else e.closest("li").addClass("active");Z(),t(window).trigger("scroll")}),500)}))}function J(e,n){if(!dt&&!ft){var o=t("#timeline").find(".timeline-module").last(),a=vt||o.data("month"),s=mt||o.data("year");it.slideDown("fast"),dt=!0,n="function"==typeof n?n:jQuery.noop,default_data={action:"extra_timeline_get_content",timeline_nonce:EXTRA.timeline_nonce,last_month:a,last_year:s},data=t.extend(!0,default_data,e),t.ajax({type:"POST",url:EXTRA.ajaxurl,data:data,success:function(e){if(it.slideUp("fast"),e)$timeline_modules=t(e),i<=r&&$timeline_modules.each((function(){t(this).find(".posts-list").hide(),t(this).addClass("collapsed")})),$timeline_modules.insertAfter(o),vt=!1,mt=!1;else if(""===e&&function(e,n){var i=t("#timeline-menu li.month:last a"),r=i.attr("data-month"),o=i.attr("data-year");return new Date(e+"-"+n).getTime()/1e3x
',i.appendChild(r.childNodes[1])}return e&&t.extend(n,e),this.each((function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];n.customSelector&&e.push(n.customSelector);var i=".fitvidsignore";n.ignore&&(i=i+", "+n.ignore);var r=t(this).find(e.join(","));(r=(r=r.not("object object")).not(i)).each((function(){var e=t(this);if(!(e.parents(i).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var n=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("name")){var r="fitvid"+t.fn.fitVids._count;e.attr("name",r),t.fn.fitVids._count++}e.wrap('').parent(".fluid-width-video-wrapper").css("padding-top",100*n+"%"),e.removeAttr("height").removeAttr("width")}}))}))},t.fn.fitVids._count=0}(window.jQuery||window.Zepto)},function(t,e){!function(){"use strict";function t(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,i),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,e+=1}var e=0,n={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var i in n)e.push(n[i]);for(var r=0,o=e.length;o>r;r++)e[r][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=r.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,n+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,i={},r=window.Waypoint,o=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete i[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",(function(){e.didResize||(e.didResize=!0,r.requestAnimationFrame(t))}))},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",(function(){(!e.didScroll||r.isTouch)&&(e.didScroll=!0,r.requestAnimationFrame(t))}))},e.prototype.handleResize=function(){r.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in e){var i=e[n],r=i.newScroll>i.oldScroll?i.forward:i.backward;for(var o in this.waypoints[n]){var a=this.waypoints[n][o],s=i.oldScroll