!function(e){"use strict";e.fn.fusion_set_bg_img_dims=function(){e(this).each(function(){var t,n,s,o=e.trim(e(this).html());('
'===o||""===o||''===e.trim(e(this).html().replace(/\s/g,""))||""===o||e("body").hasClass("fusion-builder-live")&&0e(this).find(".fusion-builder-live-element").length)&&e(this).data("bg-url")&&((t=new Image).src=e(this).data("bg-url"),n=parseInt(t.naturalHeight,10),s=parseInt(t.naturalWidth,10),(n&&s||!e(this).attr("data-bg-height")||!e(this).attr("data-bg-width"))&&(e(this).attr("data-bg-height",n),e(this).attr("data-bg-width",s)))})},e.fn.fusion_calculate_empty_column_height=function(){e(this).each(function(){var n,s,o,t=e(this),i=t.closest(".fusion-layout-column"),a=!1;if(t.closest(".fusion-flex-container").length&&(t.parent().hasClass("fusion-flex-align-self-stretch")||t.closest(".fusion-flex-align-items-stretch").length&&!t.parent().is('[class^="fusion-flex-align-self-"'))&&(a=!0),t.parents(".fusion-equal-height-columns").length&&(Modernizr.mq("only screen and (max-width: "+fusionBgImageVars.content_break_point+"px)")||!0===t.data("empty-column"))||!t.parents(".fusion-equal-height-columns").length)if((t.parent().hasClass("fusion-column-wrapper")&&2===t.parent().children().length||!t.parent().hasClass("fusion-column-wrapper"))&&(''===e.trim(t.html())||""===e.trim(t.html())||e("body").hasClass("fusion-builder-live")&&0t.find(".fusion-builder-live-element").length)){if(s=t.data("bg-height"),o=t.data("bg-width"),n=s*(t.outerWidth()/o),a&&10;)s+=o+e+"-"+t.substring(0,n),n=t.indexOf("-",n+1);s+=o+e+"-"+t}return s}var t,n="";for(t in e)t&&e.hasOwnProperty(t)&&(n+=s(t,e[t]));return n},encode:function(e){var n,t="";for(n in e)n&&e.hasOwnProperty(n)&&(t&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}};return s.userAgent=s.ua=s.parse(t,n),i=s.format(s.ua)+" js",e.className?e.className=e.className.replace(/\bno-js\b/g,"")+i:e.className=i.substr(1),s}(document.documentElement,navigator.userAgent,navigator.standalone)
;!function(){"use strict";var n=0,t={};function e(s){if(!s)throw new Error("No options passed to Waypoint constructor");if(!s.element)throw new Error("No element option passed to Waypoint constructor");if(!s.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+n,this.options=e.Adapter.extend({},e.defaults,s),this.element=this.options.element,this.adapter=new e.Adapter(this.element),this.callback=s.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=e.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=e.Context.findOrCreateByElement(this.options.context),e.offsetAliases[this.options.offset]&&(this.options.offset=e.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),t[this.key]=this,n+=1}e.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},e.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},e.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete t[this.key]},e.prototype.disable=function(){return this.enabled=!1,this},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},e.prototype.next=function(){return this.group.next(this)},e.prototype.previous=function(){return this.group.previous(this)},e.invokeAll=function(e){n=[];for(o in t)n.push(t[o]);for(var n,o,s=0,i=n.length;se.oldScroll?e.forward:e.backward;for(c in this.waypoints[o])t=this.waypoints[o][c],null!==t.triggerPoint&&(i=e.oldScroll=t.triggerPoint,(i&&a||!i&&!a)&&(t.queueTrigger(r),s[t.group.id]=t.group))}for(l in s)s[l].flushTriggers();this.oldScroll={x:n.horizontal.newScroll,y:n.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?t.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?t.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){e=[];for(n in this.waypoints)for(s in this.waypoints[n])e.push(this.waypoints[n][s]);for(var e,n,s,t=0,o=e.length;t-1&&(s=Math.ceil(n.contextDimension*s/100))),d=n.contextScroll-n.contextOffset,e.triggerPoint=Math.floor(p+d-s),r=f=n.oldScroll,u=!r&&!c,!l&&r&&c?(e.queueTrigger(n.backward),i[e.group.id]=e.group):!l&&u?(e.queueTrigger(n.forward),i[e.group.id]=e.group):l&&n.oldScroll>=e.triggerPoint&&(e.queueTrigger(n.forward),i[e.group.id]=e.group)}}return t.requestAnimationFrame(function(){for(var e in i)i[e].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var e in n)n[e].refresh()},e.findByElement=function(e){return n[e.waypointContextKey]},window.onload=function(){o&&o(),e.refreshAll()},t.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||i).call(window,e)},t.Context=e}(),function(){"use strict";function n(e,t){return e.triggerPoint-t.triggerPoint}function o(e,t){return t.triggerPoint-e.triggerPoint}var s={vertical:{},horizontal:{}},t=window.Waypoint;function e(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),s[this.axis][this.name]=this}e.prototype.add=function(e){this.waypoints.push(e)},e.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},e.prototype.flushTriggers=function(){for(t in this.triggerQueues){var e,t,i,a,s=this.triggerQueues[t],r="up"===t||"left"===t;s.sort(r?o:n);for(e=0,a=s.length;e-1&&this.waypoints.splice(n,1)},e.prototype.first=function(){return this.waypoints[0]},e.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},e.findOrCreate=function(t){return s[t.axis][t.name]||new e(t)},t.Group=e}(),function(){"use strict";var e=window.jQuery,n=window.Waypoint;function t(t){this.$element=e(t)}e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,n){t.prototype[n]=function(){var e=Array.prototype.slice.call(arguments);return this.$element[n].apply(this.$element,e)}}),e.each(["extend","inArray","isEmptyObject"],function(n,s){t[s]=e[s]}),n.adapters.push({name:"jquery",Adapter:t}),n.Adapter=t}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var n=[],s=arguments[0];return e.isFunction(arguments[0])&&((s=e.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var o=e.extend({},s,{element:this});"string"==typeof o.context&&(o.context=e(this).closest(o.context)[0]),n.push(new t(o))}),n}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}()
;function getAdminbarHeight(){var e=0;return jQuery("#wpadminbar").length&&(e=parseInt(jQuery("#wpadminbar").outerHeight(),10)),e}function getWaypointOffset(e){var t=e.data("animationoffset");return 0[0]===t&&(t="bottom-in-view"),"top-out-of-view"===t&&(t=getAdminbarHeight()+("function"===getWaypointTopOffset?getWaypointTopOffset():0)),t}jQuery(window).on("load",function(){setTimeout(function(){"undefined"!=typeof Waypoint&&"function"==typeof Waypoint.viewportHeight&&Waypoint.refreshAll()},300)})