File Editor
Directories:
.. (Back)
Files:
admin.js
divi-builder.min.js
menu_fix.js
Create New File
Create
Edit File: divi-builder.min.js
/*! * FitVids 1.1 * * Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ * */ !function($){"use strict";$.fn.fitVids=function(options){var settings={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var head=document.head||document.getElementsByTagName("head")[0],div=document.createElement("div");div.innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',head.appendChild(div.childNodes[1])}return options&&$.extend(settings,options),this.each(function(){var selectors=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];settings.customSelector&&selectors.push(settings.customSelector);var ignoreList=".fitvidsignore";settings.ignore&&(ignoreList=ignoreList+", "+settings.ignore);var $allVideos=$(this).find(selectors.join(","));($allVideos=($allVideos=$allVideos.not("object object")).not(ignoreList)).each(function(count){var $this=$(this);if(!($this.parents(ignoreList).length>0||"embed"===this.tagName.toLowerCase()&&$this.parent("object").length||$this.parent(".fluid-width-video-wrapper").length)){$this.css("height")||$this.css("width")||!isNaN($this.attr("height"))&&!isNaN($this.attr("width"))||($this.attr("height",9),$this.attr("width",16));var aspectRatio=("object"===this.tagName.toLowerCase()||$this.attr("height")&&!isNaN(parseInt($this.attr("height"),10))?parseInt($this.attr("height"),10):$this.height())/(isNaN(parseInt($this.attr("width"),10))?$this.width():parseInt($this.attr("width"),10));if(!$this.attr("id")){var videoID="fitvid"+count;$this.attr("id",videoID)}$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*aspectRatio+"%"),$this.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto); /*! * Waypoints - 4.0.0 * Copyright © 2011-2015 Caleb Troughton * Licensed under the MIT license. * https://github.com/imakewebthings/waypoints/blog/master/licenses.txt */ !function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.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),i[this.key]=this,e+=1}var e=0,i={};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 i[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 o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][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=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=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 o[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,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.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 i in e){var o=e[i],r=o.newScroll>o.oldScroll?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,u,c,d=this.waypoints[r][a],f=d.options.offset,w=d.triggerPoint,y=0,g=null==w;d.element!==d.element.window&&(y=d.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parseFloat(f),d.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=y+l-f,h=w<s.oldScroll,p=d.triggerPoint>=s.oldScroll,u=h&&p,c=!h&&!p,!g&&u?(d.queueTrigger(s.backward),o[d.group.id]=d.group):!g&&c?(d.queueTrigger(s.forward),o[d.group.id]=d.group):g&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return n.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(); /*! * Magnific Popup v1.0.0 by Dmitry Semenov * The MIT License (MIT) * Copyright (c) 2014-2015 Dmitry Semenov, http://dimsemenov.com * http://bit.ly/magnific-popup#build=inline+image+ajax+iframe+gallery+retina+imagezoom+fastclick */ /* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var n,q,s,t,u,v,b="Close",c="BeforeClose",f="MarkupParse",g="Open",h="Change",i="mfp",j="."+i,k="mfp-ready",l="mfp-removing",m="mfp-prevent-close",o=function(){},p=!!window.jQuery,r=a(window),w=function(a,b){n.ev.on(i+a+j,b)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(b,c){n.ev.triggerHandler(i+b,c),n.st.callbacks&&(b=b.charAt(0).toLowerCase()+b.slice(1),n.st.callbacks[b]&&n.st.callbacks[b].apply(n,a.isArray(c)?c:[c]))},z=function(b){return b===v&&n.currTemplate.closeBtn||(n.currTemplate.closeBtn=a(n.st.closeMarkup.replace("%title%",n.st.tClose)),v=b),n.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||((n=new o).init(),a.magnificPopup.instance=n)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};o.prototype={constructor:o,init:function(){var b=navigator.appVersion;n.isIE7=-1!==b.indexOf("MSIE 7."),n.isIE8=-1!==b.indexOf("MSIE 8."),n.isLowIE=n.isIE7||n.isIE8,n.isAndroid=/android/gi.test(b),n.isIOS=/iphone|ipad|ipod/gi.test(b),n.supportsTransition=B(),n.probablyMobile=n.isAndroid||n.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),s=a(document),n.popupsCache={}},open:function(b){var c;if(!1===b.isObj){n.items=b.items.toArray(),n.index=0;var e,d=b.items;for(c=0;c<d.length;c++)if((e=d[c]).parsed&&(e=e.el[0]),e===b.el[0]){n.index=c;break}}else n.items=a.isArray(b.items)?b.items:[b.items],n.index=b.index||0;{if(!n.isOpen){n.types=[],u="",b.mainEl&&b.mainEl.length?n.ev=b.mainEl.eq(0):n.ev=s,b.key?(n.popupsCache[b.key]||(n.popupsCache[b.key]={}),n.currTemplate=n.popupsCache[b.key]):n.currTemplate={},n.st=a.extend(!0,{},a.magnificPopup.defaults,b),n.fixedContentPos="auto"===n.st.fixedContentPos?!n.probablyMobile:n.st.fixedContentPos,n.st.modal&&(n.st.closeOnContentClick=!1,n.st.closeOnBgClick=!1,n.st.showCloseBtn=!1,n.st.enableEscapeKey=!1),n.bgOverlay||(n.bgOverlay=x("bg").on("click"+j,function(){n.close()}),n.wrap=x("wrap").attr("tabindex",-1).on("click"+j,function(a){n._checkIfClose(a.target)&&n.close()}),n.container=x("container",n.wrap)),n.contentContainer=x("content"),n.st.preloader&&(n.preloader=x("preloader",n.container,n.st.tLoading));var h=a.magnificPopup.modules;for(c=0;c<h.length;c++){var i=h[c];i=i.charAt(0).toUpperCase()+i.slice(1),n["init"+i].call(n)}y("BeforeOpen"),n.st.showCloseBtn&&(n.st.closeBtnInside?(w(f,function(a,b,c,d){c.close_replaceWith=z(d.type)}),u+=" mfp-close-btn-in"):n.wrap.append(z())),n.st.alignTop&&(u+=" mfp-align-top"),n.fixedContentPos?n.wrap.css({overflow:n.st.overflowY,overflowX:"hidden",overflowY:n.st.overflowY}):n.wrap.css({top:r.scrollTop(),position:"absolute"}),(!1===n.st.fixedBgPos||"auto"===n.st.fixedBgPos&&!n.fixedContentPos)&&n.bgOverlay.css({height:s.height(),position:"absolute"}),n.st.enableEscapeKey&&s.on("keyup"+j,function(a){27===a.keyCode&&n.close()}),r.on("resize"+j,function(){n.updateSize()}),n.st.closeOnContentClick||(u+=" mfp-auto-cursor"),u&&n.wrap.addClass(u);var l=n.wH=r.height(),m={};if(n.fixedContentPos&&n._hasScrollBar(l)){var o=n._getScrollbarSize();o&&(m.marginRight=o)}n.fixedContentPos&&(n.isIE7?a("body, html").css("overflow","hidden"):m.overflow="hidden");var p=n.st.mainClass;return n.isIE7&&(p+=" mfp-ie7"),p&&n._addClassToMFP(p),n.updateItemHTML(),y("BuildControls"),a("html").css(m),n.bgOverlay.add(n.wrap).prependTo(n.st.prependTo||a(document.body)),n._lastFocusedEl=document.activeElement,setTimeout(function(){n.content?(n._addClassToMFP(k),n._setFocus()):n.bgOverlay.addClass(k),s.on("focusin"+j,n._onFocusIn)},16),n.isOpen=!0,n.updateSize(l),y(g),b}n.updateItemHTML()}},close:function(){n.isOpen&&(y(c),n.isOpen=!1,n.st.removalDelay&&!n.isLowIE&&n.supportsTransition?(n._addClassToMFP(l),setTimeout(function(){n._close()},n.st.removalDelay)):n._close())},_close:function(){y(b);var c=l+" "+k+" ";if(n.bgOverlay.detach(),n.wrap.detach(),n.container.empty(),n.st.mainClass&&(c+=n.st.mainClass+" "),n._removeClassFromMFP(c),n.fixedContentPos){var e={marginRight:""};n.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}s.off("keyup.mfp focusin"+j),n.ev.off(j),n.wrap.attr("class","mfp-wrap").removeAttr("style"),n.bgOverlay.attr("class","mfp-bg"),n.container.attr("class","mfp-container"),n.st.showCloseBtn&&(!n.st.closeBtnInside||!0===n.currTemplate[n.currItem.type])&&n.currTemplate.closeBtn&&n.currTemplate.closeBtn.detach(),n._lastFocusedEl&&a(n._lastFocusedEl).focus(),n.currItem=null,n.content=null,n.currTemplate=null,n.prevHeight=0,y("AfterClose")},updateSize:function(a){if(n.isIOS){var b=document.documentElement.clientWidth/window.innerWidth,c=window.innerHeight*b;n.wrap.css("height",c),n.wH=c}else n.wH=a||r.height();n.fixedContentPos||n.wrap.css("height",n.wH),y("Resize")},updateItemHTML:function(){var b=n.items[n.index];n.contentContainer.detach(),n.content&&n.content.detach(),b.parsed||(b=n.parseEl(n.index));var c=b.type;if(y("BeforeChange",[n.currItem?n.currItem.type:"",c]),n.currItem=b,!n.currTemplate[c]){var d=!!n.st[c]&&n.st[c].markup;y("FirstMarkupParse",d),n.currTemplate[c]=!d||a(d)}t&&t!==b.type&&n.container.removeClass("mfp-"+t+"-holder");var e=n["get"+c.charAt(0).toUpperCase()+c.slice(1)](b,n.currTemplate[c]);n.appendContent(e,c),b.preloaded=!0,y(h,b),t=b.type,n.container.prepend(n.contentContainer),y("AfterChange")},appendContent:function(a,b){n.content=a,a?n.st.showCloseBtn&&n.st.closeBtnInside&&!0===n.currTemplate[b]?n.content.find(".mfp-close").length||n.content.append(z()):n.content=a:n.content="",y("BeforeAppend"),n.container.addClass("mfp-"+b+"-holder"),n.contentContainer.append(n.content)},parseEl:function(b){var d,c=n.items[b];if(c.tagName?c={el:a(c)}:(d=c.type,c={data:c,src:c.src}),c.el){for(var e=n.types,f=0;f<e.length;f++)if(c.el.hasClass("mfp-"+e[f])){d=e[f];break}c.src=c.el.attr("data-mfp-src"),c.src||(c.src=c.el.attr("href"))}return c.type=d||n.st.type||"inline",c.index=b,c.parsed=!0,n.items[b]=c,y("ElementParse",c),n.items[b]},addGroup:function(a,b){var c=function(c){c.mfpEl=this,n._openClick(c,a,b)};b||(b={});var d="click.magnificPopup";b.mainEl=a,b.items?(b.isObj=!0,a.off(d).on(d,c)):(b.isObj=!1,b.delegate?a.off(d).on(d,b.delegate,c):(b.items=a,a.off(d).on(d,c)))},_openClick:function(b,c,d){if((void 0!==d.midClick?d.midClick:a.magnificPopup.defaults.midClick)||!(2===b.which||b.ctrlKey||b.metaKey||b.altKey||b.shiftKey)){var f=void 0!==d.disableOn?d.disableOn:a.magnificPopup.defaults.disableOn;if(f)if(a.isFunction(f)){if(!f.call(n))return!0}else if(r.width()<f)return!0;b.type&&(b.preventDefault(),n.isOpen&&b.stopPropagation()),d.el=a(b.mfpEl),d.delegate&&(d.items=c.find(d.delegate)),n.open(d)}},updateStatus:function(a,b){if(n.preloader){q!==a&&n.container.removeClass("mfp-s-"+q),!b&&"loading"===a&&(b=n.st.tLoading);var c={status:a,text:b};y("UpdateStatus",c),a=c.status,b=c.text,n.preloader.html(b),n.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),n.container.addClass("mfp-s-"+a),q=a}},_checkIfClose:function(b){if(!a(b).hasClass(m)){var c=n.st.closeOnContentClick,d=n.st.closeOnBgClick;if(c&&d)return!0;if(!n.content||a(b).hasClass("mfp-close")||n.preloader&&b===n.preloader[0])return!0;if(b===n.content[0]||a.contains(n.content[0],b)){if(c)return!0}else if(d&&a.contains(document,b))return!0;return!1}},_addClassToMFP:function(a){n.bgOverlay.addClass(a),n.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),n.wrap.removeClass(a)},_hasScrollBar:function(a){return(n.isIE7?s.height():document.body.scrollHeight)>(a||r.height())},_setFocus:function(){(n.st.focus?n.content.find(n.st.focus).eq(0):n.wrap).focus()},_onFocusIn:function(b){if(b.target!==n.wrap[0]&&!a.contains(n.wrap[0],b.target))return n._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(f,[b,c,d]),a.each(c,function(a,c){if(void 0===c||!1===c)return!0;if((e=a.split("_")).length>1){var d=b.find(j+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(j+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===n.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),n.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return n.scrollbarSize}},a.magnificPopup={instance:null,proto:o.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(b){A();var c=a(this);if("string"==typeof b)if("open"===b){var d,e=p?c.data("magnificPopup"):c[0].magnificPopup,f=parseInt(arguments[1],10)||0;e.items?d=e.items[f]:(d=c,e.delegate&&(d=d.find(e.delegate)),d=d.eq(f)),n._openClick({mfpEl:d},c,e)}else n.isOpen&&n[b].apply(n,Array.prototype.slice.call(arguments,1));else b=a.extend(!0,{},b),p?c.data("magnificPopup",b):c[0].magnificPopup=b,n.addGroup(c,b);return c};var D,E,F,C="inline",G=function(){F&&(E.after(F.addClass(D)).detach(),F=null)};a.magnificPopup.registerModule(C,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){n.types.push(C),w(b+"."+C,function(){G()})},getInline:function(b,c){if(G(),b.src){var d=n.st.inline,e=a(b.src);if(e.length){var f=e[0].parentNode;f&&f.tagName&&(E||(D=d.hiddenClass,E=x(D),D="mfp-"+D),F=e.after(E).detach().removeClass(D)),n.updateStatus("ready")}else n.updateStatus("error",d.tNotFound),e=a("<div>");return b.inlineElement=e,e}return n.updateStatus("ready"),n._parseMarkup(c,{},b),c}}});var I,H="ajax",J=function(){I&&a(document.body).removeClass(I)},K=function(){J(),n.req&&n.req.abort()};a.magnificPopup.registerModule(H,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){n.types.push(H),I=n.st.ajax.cursor,w(b+"."+H,K),w("BeforeChange."+H,K)},getAjax:function(b){I&&a(document.body).addClass(I),n.updateStatus("loading");var c=a.extend({url:b.src,success:function(c,d,e){var f={data:c,xhr:e};y("ParseAjax",f),n.appendContent(a(f.data),H),b.finished=!0,J(),n._setFocus(),setTimeout(function(){n.wrap.addClass(k)},16),n.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),b.finished=b.loadError=!0,n.updateStatus("error",n.st.ajax.tError.replace("%url%",b.src))}},n.st.ajax.settings);return n.req=a.ajax(c),""}}});var L,M=function(b){if(b.data&&void 0!==b.data.title)return b.data.title;var c=n.st.image.titleSrc;if(c){if(a.isFunction(c))return c.call(n,b);if(b.el)return b.el.attr(c)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=n.st.image,d=".image";n.types.push("image"),w(g+d,function(){"image"===n.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(b+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),r.off("resize"+j)}),w("Resize"+d,n.resizeImage),n.isLowIE&&w("AfterChange",n.resizeImage)},resizeImage:function(){var a=n.currItem;if(a&&a.img&&n.st.image.verticalFit){var b=0;n.isLowIE&&(b=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",n.wH-b)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(n.content&&n.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var b=0,c=a.img[0],d=function(e){L&&clearInterval(L),L=setInterval(function(){c.naturalWidth>0?n._onImageHasSize(a):(b>200&&clearInterval(L),3===++b?d(10):40===b?d(50):100===b&&d(500))},e)};d(1)},getImage:function(b,c){var d=0,e=function(){b&&(b.img[0].complete?(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("ready")),b.hasSize=!0,b.loaded=!0,y("ImageLoadComplete")):++d<200?setTimeout(e,100):f())},f=function(){b&&(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("error",g.tError.replace("%url%",b.src))),b.hasSize=!0,b.loaded=!0,b.loadError=!0)},g=n.st.image,h=c.find(".mfp-img");if(h.length){var i=document.createElement("img");i.className="mfp-img",b.el&&b.el.find("img").length&&(i.alt=b.el.find("img").attr("alt")),b.img=a(i).on("load.mfploader",e).on("error.mfploader",f),i.src=b.src,h.is("img")&&(b.img=b.img.clone()),(i=b.img[0]).naturalWidth>0?b.hasSize=!0:i.width||(b.hasSize=!1)}return n._parseMarkup(c,{title:M(b),img_replaceWith:b.img},b),n.resizeImage(),b.hasSize?(L&&clearInterval(L),b.loadError?(c.addClass("mfp-loading"),n.updateStatus("error",g.tError.replace("%url%",b.src))):(c.removeClass("mfp-loading"),n.updateStatus("ready")),c):(n.updateStatus("loading"),b.loading=!0,b.hasSize||(b.imgHidden=!0,c.addClass("mfp-loading"),n.findImageSize(b)),c)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var e,a=n.st.zoom,d=".zoom";if(a.enabled&&n.supportsTransition){var i,j,f=a.duration,g=function(b){var c=b.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+a.duration/1e3+"s "+a.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,c.css(e),c},h=function(){n.content.css("visibility","visible")};w("BuildControls"+d,function(){if(n._allowZoom()){if(clearTimeout(i),n.content.css("visibility","hidden"),!(e=n._getItemToZoom()))return void h();(j=g(e)).css(n._getOffset()),n.wrap.append(j),i=setTimeout(function(){j.css(n._getOffset(!0)),i=setTimeout(function(){h(),setTimeout(function(){j.remove(),e=j=null,y("ZoomAnimationEnded")},16)},f)},16)}}),w(c+d,function(){if(n._allowZoom()){if(clearTimeout(i),n.st.removalDelay=f,!e){if(!(e=n._getItemToZoom()))return;j=g(e)}j.css(n._getOffset(!0)),n.wrap.append(j),n.content.css("visibility","hidden"),setTimeout(function(){j.css(n._getOffset())},16)}}),w(b+d,function(){n._allowZoom()&&(h(),j&&j.remove(),e=null)})}},_allowZoom:function(){return"image"===n.currItem.type},_getItemToZoom:function(){return!!n.currItem.hasSize&&n.currItem.img},_getOffset:function(b){var c,d=(c=b?n.currItem.img:n.st.zoom.opener(n.currItem.el||n.currItem)).offset(),e=parseInt(c.css("padding-top"),10),f=parseInt(c.css("padding-bottom"),10);d.top-=a(window).scrollTop()-e;var g={width:c.width(),height:(p?c.innerHeight():c[0].offsetHeight)-f-e};return O()?g["-moz-transform"]=g.transform="translate("+d.left+"px,"+d.top+"px)":(g.left=d.left,g.top=d.top),g}}});var P="iframe",R=function(a){if(n.currTemplate[P]){var b=n.currTemplate[P].find("iframe");b.length&&(a||(b[0].src="//about:blank"),n.isIE8&&b.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){n.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(b+"."+P,function(){R()})},getIframe:function(b,c){var d=b.src,e=n.st.iframe;a.each(e.patterns,function(){if(d.indexOf(this.index)>-1)return this.id&&(d="string"==typeof this.id?d.substr(d.lastIndexOf(this.id)+this.id.length,d.length):this.id.call(this,d)),d=this.src.replace("%id%",d),!1});var f={};return e.srcAction&&(f[e.srcAction]=d),n._parseMarkup(c,f,b),n.updateStatus("ready"),c}}});var S=function(a){var b=n.items.length;return a>b-1?a-b:a<0?b+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=n.st.gallery,d=".mfp-gallery",e=Boolean(a.fn.mfpFastClick);if(n.direction=!0,!c||!c.enabled)return!1;u+=" mfp-gallery",w(g+d,function(){c.navigateByImgClick&&n.wrap.on("click"+d,".mfp-img",function(){if(n.items.length>1)return n.next(),!1}),s.on("keydown"+d,function(a){37===a.keyCode?n.prev():39===a.keyCode&&n.next()})}),w("UpdateStatus"+d,function(a,b){b.text&&(b.text=T(b.text,n.currItem.index,n.items.length))}),w(f+d,function(a,b,d,e){var f=n.items.length;d.counter=f>1?T(c.tCounter,e.index,f):""}),w("BuildControls"+d,function(){if(n.items.length>1&&c.arrows&&!n.arrowLeft){var b=c.arrowMarkup,d=n.arrowLeft=a(b.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(m),f=n.arrowRight=a(b.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(m),g=e?"mfpFastClick":"click";d[g](function(){n.prev()}),f[g](function(){n.next()}),n.isIE7&&(x("b",d[0],!1,!0),x("a",d[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),n.container.append(d.add(f))}}),w(h+d,function(){n._preloadTimeout&&clearTimeout(n._preloadTimeout),n._preloadTimeout=setTimeout(function(){n.preloadNearbyImages(),n._preloadTimeout=null},16)}),w(b+d,function(){s.off(d),n.wrap.off("click"+d),n.arrowLeft&&e&&n.arrowLeft.add(n.arrowRight).destroyMfpFastClick(),n.arrowRight=n.arrowLeft=null})},next:function(){n.direction=!0,n.index=S(n.index+1),n.updateItemHTML()},prev:function(){n.direction=!1,n.index=S(n.index-1),n.updateItemHTML()},goTo:function(a){n.direction=a>=n.index,n.index=a,n.updateItemHTML()},preloadNearbyImages:function(){var d,a=n.st.gallery.preload,b=Math.min(a[0],n.items.length),c=Math.min(a[1],n.items.length);for(d=1;d<=(n.direction?c:b);d++)n._preloadItem(n.index+d);for(d=1;d<=(n.direction?b:c);d++)n._preloadItem(n.index-d)},_preloadItem:function(b){if(b=S(b),!n.items[b].preloaded){var c=n.items[b];c.parsed||(c=n.parseEl(b)),y("LazyLoad",c),"image"===c.type&&(c.img=a('<img class="mfp-img" />').on("load.mfploader",function(){c.hasSize=!0}).on("error.mfploader",function(){c.hasSize=!0,c.loadError=!0,y("LazyLoadError",c)}).attr("src",c.src)),c.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=n.st.retina,b=a.ratio;(b=isNaN(b)?b():b)>1&&(w("ImageHasSize."+U,function(a,c){c.img.css({"max-width":c.img[0].naturalWidth/b,width:"100%"})}),w("ElementParse."+U,function(c,d){d.src=a.replaceSrc(d,b)}))}}}}),function(){var c="ontouchstart"in window,d=function(){r.off("touchmove"+f+" touchend"+f)},f=".mfpFastClick";a.fn.mfpFastClick=function(e){return a(this).each(function(){var h,g=a(this);if(c){var i,j,k,l,m,n;g.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,r.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(h=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){h=!1},1e3),e())})})}g.on("click"+f,function(){h||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&r.off("touchmove"+f+" touchend"+f)}}(),A()}); /*! * jQuery hashchange event - v1.3 - 7/21/2010 * http://benalman.com/projects/jquery-hashchange-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ // Dual licensed under the MIT and GPL licenses. // http://benalman.com/about/license/ !function($,window,undefined){"$:nomunge";function get_fragment(url){return"#"+(url=url||location.href).replace(/^[^#]*#?(.*)$/,"$1")}var fake_onhashchange,str_hashchange="hashchange",doc=document,special=$.event.special,doc_mode=doc.documentMode,supports_onhashchange="on"+str_hashchange in window&&(void 0===doc_mode||doc_mode>7);$.fn[str_hashchange]=function(fn){return fn?this.bind(str_hashchange,fn):this.trigger(str_hashchange)},$.fn[str_hashchange].delay=50,special[str_hashchange]=$.extend(special[str_hashchange],{setup:function(){if(supports_onhashchange)return!1;$(fake_onhashchange.start)},teardown:function(){if(supports_onhashchange)return!1;$(fake_onhashchange.stop)}}),fake_onhashchange=function(){function poll(){var hash=get_fragment(),history_hash=history_get(last_hash);hash!==last_hash?(history_set(last_hash=hash,history_hash),$(window).trigger(str_hashchange)):history_hash!==last_hash&&(location.href=location.href.replace(/#.*/,"")+history_hash),timeout_id=setTimeout(poll,$.fn[str_hashchange].delay)}var timeout_id,self={},last_hash=get_fragment(),fn_retval=function(val){return val},history_set=fn_retval,history_get=fn_retval;return self.start=function(){timeout_id||poll()},self.stop=function(){timeout_id&&clearTimeout(timeout_id),timeout_id=void 0},void 0!==$.browser&&$.browser.msie&&!supports_onhashchange&&function(){var iframe,iframe_src;self.start=function(){iframe||(iframe_src=$.fn[str_hashchange].src,iframe_src=iframe_src&&iframe_src+get_fragment(),iframe=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){iframe_src||history_set(get_fragment()),poll()}).attr("src",iframe_src||"javascript:0").insertAfter("body")[0].contentWindow,doc.onpropertychange=function(){try{"title"===event.propertyName&&(iframe.document.title=doc.title)}catch(e){}})},self.stop=fn_retval,history_get=function(){return get_fragment(iframe.location.href)},history_set=function(hash,history_hash){var iframe_doc=iframe.document,domain=$.fn[str_hashchange].domain;hash!==history_hash&&(iframe_doc.title=doc.title,iframe_doc.open(),domain&&iframe_doc.write('<script>document.domain="'+domain+'"<\/script>'),iframe_doc.close(),iframe.location.hash=hash)}}(),self}()}(jQuery,this); /*! * Salvattore 1.0.5 by @rnmp and @ppold * https://github.com/rnmp/salvattore * Licensed under the MIT license. * Copyright (c) 2013-2014 Rolando Murillo and Giorgio Leveroni */ /* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ !function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.salvattore=t()}(this,function(){/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */ /*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */return window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t=document.createElement("style"),n=document.getElementsByTagName("script")[0],r=null;t.type="text/css",t.id="matchmediajs-test",n.parentNode.insertBefore(t,n),r="getComputedStyle"in window&&window.getComputedStyle(t,null)||t.currentStyle,e={matchMedium:function(e){var n="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return t.styleSheet?t.styleSheet.cssText=n:t.textContent=n,"1px"===r.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(){"use strict";if(window.matchMedia&&window.matchMedia("all").addListener)return!1;var e=window.matchMedia,t=e("only all").matches,n=!1,r=0,a=[],i=function(){clearTimeout(r),r=setTimeout(function(){for(var t=0,n=a.length;n>t;t++){var r=a[t].mql,i=a[t].listeners||[],o=e(r.media).matches;if(o!==r.matches){r.matches=o;for(var c=0,l=i.length;l>c;c++)i[c].call(window,r)}}},30)};window.matchMedia=function(r){var o=e(r),c=[],l=0;return o.addListener=function(e){t&&(n||(n=!0,window.addEventListener("resize",i,!0)),0===l&&(l=a.push({mql:o,listeners:c})),c.push(e))},o.removeListener=function(e){for(var t=0,n=c.length;n>t;t++)c[t]===e&&c.splice(t,1)},o}}(),function(){"use strict";for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t){var n=(new Date).getTime(),r=Math.max(0,16-(n-e)),a=window.setTimeout(function(){t(n+r)},r);return e=n+r,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),"function"!=typeof window.CustomEvent&&function(){"use strict";function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(e,t){"use strict";var n={},r=[],a=[],i=[],o=function(e,t,n){e.dataset?e.dataset[t]=n:e.setAttribute("data-"+t,n)};return n.obtainGridSettings=function(t){var r=e.getComputedStyle(t,":before").getPropertyValue("content").slice(1,-1),a=r.match(/^\s*(\d+)(?:\s?\.(.+))?\s*$/),i=1,o=[];return a?(i=a[1],o=a[2],o=o?o.split("."):["column"]):(a=r.match(/^\s*\.(.+)\s+(\d+)\s*$/))&&(o=a[1],(i=a[2])&&(i=i.split("."))),{numberOfColumns:i,columnClasses:o}},n.addColumns=function(e,r){for(var a,i=n.obtainGridSettings(e),c=i.numberOfColumns,l=i.columnClasses,s=new Array(+c),u=t.createDocumentFragment(),d=c;0!=d--;)a="[data-columns] > *:nth-child("+c+"n-"+d+")",s.push(r.querySelectorAll(a));s.forEach(function(e){var n=t.createElement("div"),r=t.createDocumentFragment();n.className=l.join(" "),Array.prototype.forEach.call(e,function(e){r.appendChild(e)}),n.appendChild(r),u.appendChild(n)}),e.appendChild(u),o(e,"columns",c)},n.removeColumns=function(n){var r=t.createRange();r.selectNodeContents(n);var a=Array.prototype.filter.call(r.extractContents().childNodes,function(t){return t instanceof e.HTMLElement}),i=a.length,c=a[0].childNodes.length,l=new Array(c*i);Array.prototype.forEach.call(a,function(e,t){Array.prototype.forEach.call(e.children,function(e,n){l[n*i+t]=e})});var s=t.createElement("div");return o(s,"columns",0),l.filter(function(e){return!!e}).forEach(function(e){s.appendChild(e)}),s},n.recreateColumns=function(t){e.requestAnimationFrame(function(){n.addColumns(t,n.removeColumns(t));var e=new CustomEvent("columnsChange");t.dispatchEvent(e)})},n.mediaQueryChange=function(e){e.matches&&Array.prototype.forEach.call(r,n.recreateColumns)},n.getCSSRules=function(e){var t;try{t=e.sheet.cssRules||e.sheet.rules}catch(n){return[]}return t||[]},n.getStylesheets=function(){return Array.prototype.concat.call(Array.prototype.slice.call(t.querySelectorAll("style[type='text/css']")),Array.prototype.slice.call(t.querySelectorAll("link[rel='stylesheet']")))},n.mediaRuleHasColumnsSelector=function(e){var t,n;try{t=e.length}catch(r){t=0}for(;t--;)if((n=e[t]).selectorText&&n.selectorText.match(/\[data-columns\](.*)::?before$/))return!0;return!1},n.scanMediaQueries=function(){var t=[];if(e.matchMedia){n.getStylesheets().forEach(function(e){Array.prototype.forEach.call(n.getCSSRules(e),function(e){e.media&&e.cssRules&&n.mediaRuleHasColumnsSelector(e.cssRules)&&t.push(e)})});var r=a.filter(function(e){return-1===t.indexOf(e)});i.filter(function(e){return-1!==r.indexOf(e.rule)}).forEach(function(e){e.mql.removeListener(n.mediaQueryChange)}),i=i.filter(function(e){return-1===r.indexOf(e.rule)}),t.filter(function(e){return-1==a.indexOf(e)}).forEach(function(t){var r=e.matchMedia(t.media.mediaText);r.addListener(n.mediaQueryChange),i.push({rule:t,mql:r})}),a.length=0,a=t}},n.rescanMediaQueries=function(){n.scanMediaQueries(),Array.prototype.forEach.call(r,n.recreateColumns)},n.nextElementColumnIndex=function(e,t){var n,r,a,i=e.children,o=i.length,c=0,l=0;for(a=0;o>a;a++)n=i[a],r=n.children.length+(t[a].children||t[a].childNodes).length,0===c&&(c=r),c>r&&(l=a,c=r);return l},n.createFragmentsList=function(e){for(var n=new Array(e),r=0;r!==e;)n[r]=t.createDocumentFragment(),r++;return n},n.appendElements=function(e,t){var r=e.children,a=r.length,i=n.createFragmentsList(a);Array.prototype.forEach.call(t,function(t){var r=n.nextElementColumnIndex(e,i);i[r].appendChild(t)}),Array.prototype.forEach.call(r,function(e,t){e.appendChild(i[t])})},n.prependElements=function(e,r){var a=e.children,i=a.length,o=n.createFragmentsList(i),c=i-1;r.forEach(function(e){var t=o[c];t.insertBefore(e,t.firstChild),0===c?c=i-1:c--}),Array.prototype.forEach.call(a,function(e,t){e.insertBefore(o[t],e.firstChild)});for(var l=t.createDocumentFragment(),s=r.length%i;0!=s--;)l.appendChild(e.lastChild);e.insertBefore(l,e.firstChild)},n.registerGrid=function(a){if("none"!==e.getComputedStyle(a).display){var i=t.createRange();i.selectNodeContents(a);var c=t.createElement("div");c.appendChild(i.extractContents()),o(c,"columns",0),n.addColumns(a,c),r.push(a)}},n.init=function(){var e=t.createElement("style");e.innerHTML="[data-columns]::before{visibility:hidden;position:absolute;font-size:1px;}",t.head.appendChild(e);var r=t.querySelectorAll("[data-columns]");Array.prototype.forEach.call(r,n.registerGrid),n.scanMediaQueries()},n.init(),{appendElements:n.appendElements,prependElements:n.prependElements,registerGrid:n.registerGrid,recreateColumns:n.recreateColumns,rescanMediaQueries:n.rescanMediaQueries,append_elements:n.appendElements,prepend_elements:n.prependElements,register_grid:n.registerGrid,recreate_columns:n.recreateColumns,rescan_media_queries:n.rescanMediaQueries}}(window,window.document)}); /*! * easyPieChart * Lightweight plugin to render simple, animated and retina optimized pie charts * * @author Robert Fleischmann <rendro87@gmail.com> (http://robert-fleischmann.de) * @version 2.1.5 */ !function(root,factory){"object"==typeof exports?module.exports=factory(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],factory):factory(root.jQuery)}(this,function($){var CanvasRenderer=function(el,options){var cachedBackground,canvas=document.createElement("canvas");el.appendChild(canvas),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(canvas);var ctx=canvas.getContext("2d");canvas.width=canvas.height=options.size;var scaleBy=1;window.devicePixelRatio>1&&(scaleBy=window.devicePixelRatio,canvas.style.width=canvas.style.height=[options.size,"px"].join(""),canvas.width=canvas.height=options.size*scaleBy,ctx.scale(scaleBy,scaleBy)),ctx.translate(options.size/2,options.size/2),ctx.rotate((options.rotate/180-.5)*Math.PI);var radius=(options.size-options.lineWidth)/2;options.scaleColor&&options.scaleLength&&(radius-=options.scaleLength+2),Date.now=Date.now||function(){return+new Date};var drawCircle=function(color,lineWidth,percent,alpha){var isNegative=(percent=Math.min(Math.max(-1,percent||0),1))<=0;ctx.beginPath(),ctx.arc(0,0,radius,0,2*Math.PI*percent,isNegative),ctx.strokeStyle=color,ctx.globalAlpha=alpha,ctx.lineWidth=lineWidth,ctx.stroke()},drawScale=function(){var offset,length;ctx.lineWidth=1,ctx.fillStyle=options.scaleColor,ctx.save();for(var i=24;i>0;--i)i%6==0?(length=options.scaleLength,offset=0):(length=.6*options.scaleLength,offset=options.scaleLength-length),ctx.fillRect(-options.size/2+offset,0,length,1),ctx.rotate(Math.PI/12);ctx.restore()},reqAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback){window.setTimeout(callback,1e3/60)},drawBackground=function(){options.scaleColor&&drawScale(),options.trackColor&&drawCircle(options.trackColor,options.lineWidth,1,options.trackAlpha)};this.getCanvas=function(){return canvas},this.getCtx=function(){return ctx},this.clear=function(){ctx.clearRect(options.size/-2,options.size/-2,options.size,options.size)},this.draw=function(percent){options.scaleColor||options.trackColor?ctx.getImageData&&ctx.putImageData?cachedBackground?ctx.putImageData(cachedBackground,0,0):(drawBackground(),cachedBackground=ctx.getImageData(0,0,options.size*scaleBy,options.size*scaleBy)):(this.clear(),drawBackground()):this.clear(),ctx.lineCap=options.lineCap;var color;color="function"==typeof options.barColor?options.barColor(percent):options.barColor,drawCircle(color,options.lineWidth,percent/100,options.barAlpha)}.bind(this),this.animate=function(from,to){var startTime=Date.now();options.onStart(from,to);var animation=function(){var process=Math.min(Date.now()-startTime,options.animate.duration),currentValue=options.easing(this,process,from,to-from,options.animate.duration);this.draw(currentValue),options.onStep(from,to,currentValue),process>=options.animate.duration?options.onStop(from,to):reqAnimationFrame(animation)}.bind(this);reqAnimationFrame(animation)}.bind(this)},EasyPieChart=function(el,opts){var defaultOptions={barColor:"#ef1e25",barAlpha:1,trackColor:"#f9f9f9",trackAlpha:1,scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,render:!0,animate:{duration:1e3,enabled:!0},easing:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t+b:-c/2*(--t*(t-2)-1)+b},onStart:function(from,to){},onStep:function(from,to,currentValue){},onStop:function(from,to){}};if(void 0!==CanvasRenderer)defaultOptions.renderer=CanvasRenderer;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");defaultOptions.renderer=SVGRenderer}var options={},currentValue=0,init=function(){this.el=el,this.options=options;for(var i in defaultOptions)defaultOptions.hasOwnProperty(i)&&(options[i]=opts&&void 0!==opts[i]?opts[i]:defaultOptions[i],"function"==typeof options[i]&&(options[i]=options[i].bind(this)));"string"==typeof options.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[options.easing])?options.easing=jQuery.easing[options.easing]:options.easing=defaultOptions.easing,"number"==typeof options.animate&&(options.animate={duration:options.animate,enabled:!0}),"boolean"!=typeof options.animate||options.animate||(options.animate={duration:1e3,enabled:options.animate}),this.renderer=new options.renderer(el,options),this.renderer.draw(currentValue),el.dataset&&el.dataset.percent?this.update(parseFloat(el.dataset.percent)):el.getAttribute&&el.getAttribute("data-percent")&&this.update(parseFloat(el.getAttribute("data-percent")))}.bind(this);this.update=function(newValue){return newValue=parseFloat(newValue),options.animate.enabled?this.renderer.animate(currentValue,newValue):this.renderer.draw(newValue),currentValue=newValue,this}.bind(this),this.disableAnimation=function(){return options.animate.enabled=!1,this},this.enableAnimation=function(){return options.animate.enabled=!0,this},init()};$.fn.easyPieChart=function(options){return this.each(function(){var instanceOptions;$.data(this,"easyPieChart")||(instanceOptions=$.extend({},options,$(this).data()),$.data(this,"easyPieChart",new EasyPieChart(this,instanceOptions)))})}}); /*! ET frontend-builder-global-functions.js */ !function($){window.et_pb_smooth_scroll=function($target,$top_section,speed,easing){var $window_width=$(window).width();$("body").hasClass("et_fixed_nav")&&$window_width>980?$menu_offset=$("#top-header").outerHeight()+$("#main-header").outerHeight()-1:$menu_offset=-1,$("#wpadminbar").length&&$window_width>600&&($menu_offset+=$("#wpadminbar").outerHeight()),$scroll_position=$top_section?0:$target.offset().top-$menu_offset,void 0===easing&&(easing="swing"),$("html, body").animate({scrollTop:$scroll_position},speed,easing)},window.et_fix_video_wmode=function(video_wrapper){$(video_wrapper).each(function(){if($(this).find("iframe").length){var $this_el=$(this).find("iframe"),src_attr=$this_el.attr("src"),this_src=src_attr+(-1==src_attr.indexOf("?")?"?":"&")+"wmode=opaque";$this_el.attr("src",this_src)}})},window.et_pb_form_placeholders_init=function($form){$form.find('input:text, input[type="email"], input[type="url"], textarea').each(function(index,domEle){var $et_current_input=jQuery(domEle),$et_comment_label=$et_current_input.siblings("label"),et_comment_label_value=$et_current_input.siblings("label").text();$et_comment_label.length&&($et_comment_label.hide(),$et_current_input.siblings("span.required")&&(et_comment_label_value+=$et_current_input.siblings("span.required").text(),$et_current_input.siblings("span.required").hide()),$et_current_input.val(et_comment_label_value))}).bind("focus",function(){var et_label_text=jQuery(this).siblings("label").text();jQuery(this).siblings("span.required").length&&(et_label_text+=jQuery(this).siblings("span.required").text()),jQuery(this).val()===et_label_text&&jQuery(this).val("")}).bind("blur",function(){var et_label_text=jQuery(this).siblings("label").text();jQuery(this).siblings("span.required").length&&(et_label_text+=jQuery(this).siblings("span.required").text()),""===jQuery(this).val()&&jQuery(this).val(et_label_text)})},window.et_duplicate_menu=function(menu,append_to,menu_id,menu_class,menu_click_event){append_to.each(function(){var $cloned_nav,$this_menu=$(this);""!==menu&&menu.clone().attr("id",menu_id).removeClass().attr("class",menu_class).appendTo($this_menu),($cloned_nav=$this_menu.find("> ul")).find(".menu_slide").remove(),$cloned_nav.find("li:first").addClass("et_first_mobile_item"),$cloned_nav.find("a").on("click",function(){$(this).parents(".et_mobile_menu").siblings(".mobile_menu_bar").trigger("click")}),"no_click_event"!==menu_click_event&&$this_menu.on("click",".mobile_menu_bar",function(){return $this_menu.hasClass("closed")?($this_menu.removeClass("closed").addClass("opened"),$cloned_nav.stop().slideDown(500)):($this_menu.removeClass("opened").addClass("closed"),$cloned_nav.stop().slideUp(500)),!1})}),$("#mobile_menu .centered-inline-logo-wrap").remove()},window.et_pb_remove_placeholder_text=function($form){$form.find("input:text, textarea").each(function(index,domEle){var $et_current_input=jQuery(domEle),$et_label=$et_current_input.siblings("label");$et_current_input.siblings("label").text();$et_label.length&&$et_label.is(":hidden")&&$et_label.text()==$et_current_input.val()&&$et_current_input.val("")})},window.et_fix_fullscreen_section=function(){var $et_window=$(window);$("section.et_pb_fullscreen").each(function(){var $this_section=$(this);$.proxy(et_calc_fullscreen_section,$this_section)(),$et_window.on("resize",$.proxy(et_calc_fullscreen_section,$this_section))})},window.et_bar_counters_init=function($bar_item){if($bar_item.length){var $bar_container=$bar_item.closest(".et_pb_counter_container"),bar_item_width=$bar_item.attr("data-width"),$bar_item_text=(Math.ceil(parseFloat($bar_item.css("paddingLeft"))),Math.ceil(parseFloat($bar_item.css("paddingRight"))),$bar_item.children(".et_pb_counter_amount_number")),bar_item_text_width=($bar_container.width()-$bar_item_text.innerWidth())/100*parseFloat(bar_item_width)+$bar_item_text.innerWidth();$bar_item.css({width:bar_item_text_width})}},window.et_fix_pricing_currency_position=function($pricing_table){var $all_pricing_tables=void 0!==$pricing_table?$pricing_table:$(".et_pb_pricing_table");$all_pricing_tables.length&&$all_pricing_tables.each(function(){var $price_container=$(this).find(".et_pb_et_price"),$currency=!!$price_container.length&&$price_container.find(".et_pb_dollar_sign"),$price=!!$price_container.length&&$price_container.find(".et_pb_sum");$currency&&$price&&$currency.css({marginLeft:-$currency.width()+"px"})})},window.et_pb_set_responsive_grid=function($grid_items_container,single_item_selector){setTimeout(function(){var container_width=$grid_items_container.innerWidth(),$grid_items=$grid_items_container.find(single_item_selector),item_width=$grid_items.outerWidth(!0),last_item_margin=item_width-$grid_items.outerWidth(),columns_count=Math.round((container_width+last_item_margin)/item_width),counter=1,first_in_row=1;$grid_items.removeClass("last_in_row first_in_row"),$grid_items.filter(":visible").each(function(){var $this_el=$(this);$this_el.hasClass("inactive")||(first_in_row===counter&&$this_el.addClass("first_in_row"),0==counter%columns_count&&($this_el.addClass("last_in_row"),first_in_row=counter+1),counter++)})},1)},window.et_pb_set_tabs_height=function($tabs_module){void 0===$tabs_module&&($tabs_module=$(".et_pb_tabs")),$tabs_module.length&&$tabs_module.each(function(){var $tab_controls=$(this).find(".et_pb_tabs_controls"),$all_tabs=$tab_controls.find("li"),max_height=0,in_small_column=$(this).parents(".et_pb_column_1_3, .et_pb_column_1_4, .et_pb_column_3_8").length>0,on_small_screen=parseFloat($(window).width())<768,vertically_stacked=in_small_column||on_small_screen;vertically_stacked&&$(this).addClass("et_pb_tabs_vertically_stacked"),$all_tabs.length&&($tab_controls.removeAttr("style"),$all_tabs.each(function(){var tab_height=$(this).outerHeight();vertically_stacked||tab_height>max_height&&(max_height=tab_height)})),0!==max_height&&$tab_controls.css("min-height",max_height)})},window.et_pb_box_shadow_apply_overlay=function(el){void 0!==document.body.style.pointerEvents&&(void 0===document.documentMode||document.documentMode>=11)?$(el).each(function(){$(this).children(".box-shadow-overlay").length||$(this).addClass("has-box-shadow-overlay").prepend('<div class="box-shadow-overlay"></div>')}):$(el).addClass(".et-box-shadow-no-overlay")}}(jQuery); /*! * jQuery Mobile v1.4.5 * Copyright 2010, 2014 jQuery Foundation, Inc. * jquery.org/license */ !function(e,t,n){"function"==typeof define&&define.amd?define(["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)}(this,document,function(e,t,n,r){(function(e,t,n,r){function T(e){for(;e&&void 0!==e.originalEvent;)e=e.originalEvent;return e}function N(t,n){var s,o,a,l,c,h,p,d,v,i=t.type;if(t=e.Event(t),t.type=n,s=t.originalEvent,o=e.event.props,i.search(/^(mouse|click)/)>-1&&(o=f),s)for(p=o.length,l;p;)l=o[--p],t[l]=s[l];if(i.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),-1!==i.search(/^touch/)&&(a=T(s),i=a.touches,c=a.changedTouches,h=i&&i.length?i[0]:c&&c.length?c[0]:r))for(d=0,v=u.length;d<v;d++)l=u[d],t[l]=h[l];return t}function C(t){for(var r,s,n={};t;){r=e.data(t,i);for(s in r)r[s]&&(n[s]=n.hasVirtualBinding=!0);t=t.parentNode}return n}function k(t,n){for(var r;t;){if((r=e.data(t,i))&&(!n||r[n]))return t;t=t.parentNode}return null}function L(){g=!1}function A(){g=!0}function O(){E=0,v.length=0,m=!1,A()}function M(){L()}function _(){D(),c=setTimeout(function(){c=0,O()},e.vmouse.resetTimerDuration)}function D(){c&&(clearTimeout(c),c=0)}function P(t,n,r){var i;return(r&&r[t]||!r&&k(n.target,t))&&(i=N(n,t),e(n.target).trigger(i)),i}function H(t){var r,n=e.data(t.target,s);!m&&(!E||E!==n)&&(r=P("v"+t.type,t))&&(r.isDefaultPrevented()&&t.preventDefault(),r.isPropagationStopped()&&t.stopPropagation(),r.isImmediatePropagationStopped()&&t.stopImmediatePropagation())}function B(t){var r,i,o,n=T(t).touches;n&&1===n.length&&(r=t.target,(i=C(r)).hasVirtualBinding&&(E=w++,e.data(r,s,E),D(),M(),d=!1,o=T(t).touches[0],h=o.pageX,p=o.pageY,P("vmouseover",t,i),P("vmousedown",t,i)))}function j(e){g||(d||P("vmousecancel",e,C(e.target)),d=!0,_())}function F(t){if(!g){var n=T(t).touches[0],r=d,i=e.vmouse.moveDistanceThreshold,s=C(t.target);(d=d||Math.abs(n.pageX-h)>i||Math.abs(n.pageY-p)>i)&&!r&&P("vmousecancel",t,s),P("vmousemove",t,s),_()}}function I(e){if(!g){A();var n,r,t=C(e.target);P("vmouseup",e,t),d||(n=P("vclick",e,t))&&n.isDefaultPrevented()&&(r=T(e).changedTouches[0],v.push({touchID:E,x:r.clientX,y:r.clientY}),m=!0),P("vmouseout",e,t),d=!1,_()}}function q(t){var r,n=e.data(t,i);if(n)for(r in n)if(n[r])return!0;return!1}function R(){}var S,x,i="virtualMouseBindings",s="virtualTouchID",o="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),a=e.event.mouseHooks?e.event.mouseHooks.props:[],f=e.event.props.concat(a),l={},c=0,h=0,p=0,d=!1,v=[],m=!1,g=!1,y="addEventListener"in n,b=e(n),w=1,E=0;for(e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},x=0;x<o.length;x++)e.event.special[o[x]]=function(t){var n=t.substr(1);return{setup:function(){q(this)||e.data(this,i,{}),e.data(this,i)[t]=!0,l[t]=(l[t]||0)+1,1===l[t]&&b.bind(n,H),e(this).bind(n,R),y&&(l.touchstart=(l.touchstart||0)+1,1===l.touchstart&&b.bind("touchstart",B).bind("touchend",I).bind("touchmove",F).bind("scroll",j))},teardown:function(){--l[t],l[t]||b.unbind(n,H),y&&(--l.touchstart,l.touchstart||b.unbind("touchstart",B).unbind("touchmove",F).unbind("touchend",I).unbind("scroll",j));var r=e(this),s=e.data(this,i);s&&(s[t]=!1),r.unbind(n,R),q(this)||r.removeData(i)}}}(o[x]);y&&n.addEventListener("click",function(t){var i,o,u,a,f,n=v.length,r=t.target;if(n)for(i=t.clientX,o=t.clientY,S=e.vmouse.clickDistanceThreshold,u=r;u;){for(a=0;a<n;a++)if(f=v[a],0,u===r&&Math.abs(f.x-i)<S&&Math.abs(f.y-o)<S||e.data(u,s)===f.touchID)return t.preventDefault(),void t.stopPropagation();u=u.parentNode}},!0)})(e,0,n),function(e){e.mobile={}}(e),function(e,t){var r={touch:"ontouchend"in n};e.mobile.support=e.mobile.support||{},e.extend(e.support,r),e.extend(e.mobile.support,r)}(e),function(e,t,r){function l(t,n,i,s){var o=i.type;i.type=n,s?e.event.trigger(i,r,t):e.event.dispatch.call(t,i),i.type=o}var i=e(n),s=e.mobile.support.touch,o="touchmove scroll",u=s?"touchstart":"mousedown",a=s?"touchend":"mouseup",f=s?"touchmove":"mousemove";e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)},e.attrFn&&(e.attrFn[n]=!0)}),e.event.special.scrollstart={enabled:!0,setup:function(){function s(e,n){l(t,(r=n)?"scrollstart":"scrollstop",e)}var r,i,t=this;e(t).bind(o,function(t){e.event.special.scrollstart.enabled&&(r||s(t,!0),clearTimeout(i),i=setTimeout(function(){s(t,!1)},50))})},teardown:function(){e(this).unbind(o)}},e.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var t=this,n=e(t),r=!1;n.bind("vmousedown",function(s){function a(){clearTimeout(u)}function f(){a(),n.unbind("vclick",c).unbind("vmouseup",a),i.unbind("vmousecancel",f)}function c(e){f(),r||o!==e.target?r&&e.preventDefault():l(t,"tap",e)}if(r=!1,s.which&&1!==s.which)return!1;var u,o=s.target;n.bind("vmouseup",a).bind("vclick",c),i.bind("vmousecancel",f),u=setTimeout(function(){e.event.special.tap.emitTapOnTaphold||(r=!0),l(t,"taphold",e.Event("taphold",{target:o}))},e.event.special.tap.tapholdThreshold)})},teardown:function(){e(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),i.unbind("vmousecancel")}},e.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(e){var n=t.pageXOffset,r=t.pageYOffset,i=e.clientX,s=e.clientY;return 0===e.pageY&&Math.floor(s)>Math.floor(e.pageY)||0===e.pageX&&Math.floor(i)>Math.floor(e.pageX)?(i-=n,s-=r):(s<e.pageY-r||i<e.pageX-n)&&(i=e.pageX-n,s=e.pageY-r),{x:i,y:s}},start:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y],origin:e(t.target)}},stop:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y]}},handleSwipe:function(t,n,r,i){if(n.time-t.time<e.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-n.coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])<e.event.special.swipe.verticalDistanceThreshold){var s=t.coords[0]>n.coords[0]?"swipeleft":"swiperight";return l(r,"swipe",e.Event("swipe",{target:i,swipestart:t,swipestop:n}),!0),l(r,s,e.Event(s,{target:i,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,r=e(n),s={};(t=e.data(this,"mobile-events"))||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=s,s.start=function(t){if(!e.event.special.swipe.eventInProgress){e.event.special.swipe.eventInProgress=!0;var r,o=e.event.special.swipe.start(t),u=t.target,l=!1;s.move=function(t){o&&!t.isDefaultPrevented()&&(r=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(o,r,n,u))&&(e.event.special.swipe.eventInProgress=!1),Math.abs(o.coords[0]-r.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault())},s.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,i.off(f,s.move),s.move=null},i.on(f,s.move).one(a,s.stop)}},r.on(u,s.start)},teardown:function(){var t,n;(t=e.data(this,"mobile-events"))&&(n=t.swipe,delete t.swipe,t.length--,0===t.length&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(u,n.start),n.move&&i.off(f,n.move),n.stop&&i.off(a,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)},teardown:function(){e(this).unbind(n)}}})}(e,this)}); /*! ET frontend-builder-scripts.js */ !function($){var $et_window=$(window);window.et_load_event_fired=!1,window.et_is_transparent_nav=$("body").hasClass("et_transparent_nav"),window.et_is_vertical_nav=$("body").hasClass("et_vertical_nav"),window.et_is_fixed_nav=$("body").hasClass("et_fixed_nav"),window.et_is_minified_js=$("body").hasClass("et_minified_js"),window.et_is_minified_css=$("body").hasClass("et_minified_css"),jQuery.fn.reverse=[].reverse,jQuery.fn.closest_descendent=function(selector){for(var $found,$current_children=this.children();$current_children.length&&!($found=$current_children.filter(selector)).length;)$current_children=$current_children.children();return $found},window.et_pb_init_modules=function(){function process_et_hashchange(hash){if(-1!==hash.indexOf(et_hash_module_seperator,0)){modules=hash.split(et_hash_module_seperator);for(var i=0;i<modules.length;i++){var module_params=modules[i].split(et_hash_module_param_seperator),element=module_params[0];module_params.shift(),$("#"+element).length&&$("#"+element).trigger({type:"et_hashchange",params:module_params})}}else{element=(module_params=hash.split(et_hash_module_param_seperator))[0];module_params.shift(),$("#"+element).length&&$("#"+element).trigger({type:"et_hashchange",params:module_params})}}function et_set_hash(module_state_hash){if(module_id=module_state_hash.split(et_hash_module_param_seperator)[0],$("#"+module_id).length){if(window.location.hash){var hash=window.location.hash.substring(1),new_hash=[];if(-1!==hash.indexOf(et_hash_module_seperator,0)){modules=hash.split(et_hash_module_seperator);for(var in_hash=!1,i=0;i<modules.length;i++)(element=modules[i].split(et_hash_module_param_seperator)[0])===module_id?(new_hash.push(module_state_hash),in_hash=!0):new_hash.push(modules[i]);in_hash||new_hash.push(module_state_hash)}else{module_params=hash.split(et_hash_module_param_seperator);var element=module_params[0];element!==module_id&&new_hash.push(hash),new_hash.push(module_state_hash)}hash=new_hash.join(et_hash_module_seperator)}else hash=module_state_hash;var yScroll=document.body.scrollTop;window.location.hash=hash,document.body.scrollTop=yScroll}}$.et_pb_simple_slider=function(el,options){function et_slider_auto_rotate(){settings.slideshow&&et_slides_number>1&&!$et_slider.hasClass("et_slider_hovered")&&(et_slider_timer=setTimeout(function(){$et_slider.et_slider_move_to("next")},settings.slideshow_speed))}function et_stop_video(active_slide){var $et_video,et_video_src;active_slide.has("iframe").length?(et_video_src=($et_video=active_slide.find("iframe")).attr("src"),$et_video.attr("src",""),$et_video.attr("src",et_video_src)):active_slide.has("video").length&&(active_slide.find(".et_pb_section_video_bg").length||($et_video=active_slide.find("video"))[0].pause())}function et_fix_slider_content_images(){var $this_slider=$et_slider,$slide_image_container=$this_slider.find(".et-pb-active-slide .et_pb_slide_image"),$slide_video_container=$this_slider.find(".et-pb-active-slide .et_pb_slide_video"),$slide=$slide_image_container.closest(".et_pb_slide"),$slider=$slide.closest(".et_pb_slider"),slide_height=parseFloat($slider.innerHeight()),image_height=parseFloat(.8*slide_height),slide_image_container_height=parseFloat($slide_image_container.height()),slide_video_container_height=parseFloat($slide_video_container.height());isNaN(image_height)||($slide_image_container.find("img").css("maxHeight",image_height+"px"),slide_image_container_height=parseInt($slide_image_container.height())),!isNaN(slide_image_container_height)&&$slide.hasClass("et_pb_media_alignment_center")&&$slide_image_container.css("marginTop","-"+slide_image_container_height/2+"px"),isNaN(slide_video_container_height)||$slide_video_container.css("marginTop","-"+slide_video_container_height/2+"px")}function et_get_bg_layout_color($slide){return $slide.hasClass("et_pb_bg_layout_light")?"et_pb_bg_layout_light":"et_pb_bg_layout_dark"}function et_maybe_set_controls_color($slide){var next_slide_dot_color,$arrows,arrows_color;void 0!==$et_slider_controls&&$et_slider_controls.length&&(""!==(next_slide_dot_color=$slide.attr("data-dots_color")||"")?($et_slider_controls.attr("style","background-color: "+hex_to_rgba(next_slide_dot_color,"0.3")+";"),$et_slider_controls.filter(".et-pb-active-control").attr("style","background-color: "+hex_to_rgba(next_slide_dot_color)+"!important;")):$et_slider_controls.removeAttr("style")),void 0!==$et_slider_arrows&&$et_slider_arrows.length&&($arrows=$et_slider_arrows.find("a"),""!==(arrows_color=$slide.attr("data-arrows_color")||"")?$arrows.attr("style","color: "+arrows_color+"!important;"):$arrows.css("color","inherit"))}function et_fix_builder_content(){is_post_slider&&setTimeout(function(){var $et_pb_circle_counter=$(".et_pb_circle_counter"),$et_pb_number_counter=$(".et_pb_number_counter");window.et_fix_testimonial_inner_width(),$et_pb_circle_counter.length&&window.et_pb_reinit_circle_counters($et_pb_circle_counter),$et_pb_number_counter.length&&window.et_pb_reinit_number_counters($et_pb_number_counter),window.et_reinit_waypoint_modules()},1e3)}function hex_to_rgba(color,alpha){var rgba,color_16=parseInt(color.replace("#",""),16);return rgba=(color_16>>16&255)+","+(color_16>>8&255)+","+(255&color_16)+","+(alpha=alpha||1),rgba="rgba("+rgba+")"}var $et_slider_arrows,$et_slider_controls,$et_slider_carousel_controls,et_slider_timer,settings=$.extend({slide:".et-slide",arrows:".et-pb-slider-arrows",prev_arrow:".et-pb-arrow-prev",next_arrow:".et-pb-arrow-next",controls:".et-pb-controllers a",carousel_controls:".et_pb_carousel_item",control_active_class:"et-pb-active-control",previous_text:et_pb_custom.previous,next_text:et_pb_custom.next,fade_speed:500,use_arrows:!0,use_controls:!0,manual_arrows:"",append_controls_to:"",controls_below:!1,controls_class:"et-pb-controllers",slideshow:!1,slideshow_speed:7e3,show_progress_bar:!1,tabs_animation:!1,use_carousel:!1},options),$et_slider=$(el),$et_slide=$et_slider.closest_descendent(settings.slide),et_slides_number=$et_slide.length,et_fade_speed=settings.fade_speed,et_active_slide=0,controls_html="",carousel_html="",is_post_slider=($et_slider.find(".et_pb_container").width(),$et_slider.hasClass("et_pb_post_slider"));if($et_slider.et_animation_running=!1,$.data(el,"et_pb_simple_slider",$et_slider),$et_slide.eq(0).addClass("et-pb-active-slide"),settings.tabs_animation||$et_slider.hasClass("et_pb_bg_layout_dark")||$et_slider.hasClass("et_pb_bg_layout_light")||$et_slider.addClass(et_get_bg_layout_color($et_slide.eq(0))),settings.use_arrows&&et_slides_number>1&&(""==settings.manual_arrows?$et_slider.append('<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#"><span>'+settings.previous_text+'</span></a><a class="et-pb-arrow-next" href="#"><span>'+settings.next_text+"</span></a></div>"):$et_slider.append(settings.manual_arrows),$et_slider_arrows=$et_slider.find(settings.arrows),$et_slider.find(settings.prev_arrow),$et_slider.find(settings.next_arrow),$et_slider.on("click.et_pb_simple_slider",settings.next_arrow,function(){return!$et_slider.et_animation_running&&($et_slider.et_slider_move_to("next"),!1)}),$et_slider.on("click.et_pb_simple_slider",settings.prev_arrow,function(){return!$et_slider.et_animation_running&&($et_slider.et_slider_move_to("previous"),!1)}),$et_slider.on("swipeleft.et_pb_simple_slider",settings.slide,function(event){$(event.target).closest(".et-fb-popover-tinymce").length||$(event.target).closest(".et-fb-editable-element").length||$et_slider.et_slider_move_to("next")}),$et_slider.on("swiperight.et_pb_simple_slider",settings.slide,function(event){$(event.target).closest(".et-fb-popover-tinymce").length||$(event.target).closest(".et-fb-editable-element").length||$et_slider.et_slider_move_to("previous")})),settings.use_controls&&et_slides_number>1){for(i=1;i<=et_slides_number;i++)controls_html+='<a href="#"'+(1==i?' class="'+settings.control_active_class+'"':"")+">"+i+"</a>";$et_slider.find("video").length>0&&(settings.controls_class+=" et-pb-controllers-has-video-tag"),controls_html='<div class="'+settings.controls_class+'">'+controls_html+"</div>",""==settings.append_controls_to?$et_slider.append(controls_html):$(settings.append_controls_to).append(controls_html),$et_slider_controls=settings.controls_below?$et_slider.parent().find(settings.controls):$et_slider.find(settings.controls),et_maybe_set_controls_color($et_slide.eq(0)),$et_slider.on("click.et_pb_simple_slider",settings.controls,function(){return!$et_slider.et_animation_running&&($et_slider.et_slider_move_to($(this).index()),!1)})}if(settings.use_carousel&&et_slides_number>1){for(var i=1;i<=et_slides_number;i++)slide_id=i-1,image_src=void 0!==$et_slide.eq(slide_id).data("image")?"url("+$et_slide.eq(slide_id).data("image")+")":"none",carousel_html+='<div class="et_pb_carousel_item '+(1==i?settings.control_active_class:"")+'" data-slide-id="'+slide_id+'"><div class="et_pb_video_overlay" href="#" style="background-image: '+image_src+';"><div class="et_pb_video_overlay_hover"><a href="#" class="et_pb_video_play"></a></div></div></div>';carousel_html='<div class="et_pb_carousel"><div class="et_pb_carousel_items">'+carousel_html+"</div></div>",$et_slider.after(carousel_html),($et_slider_carousel_controls=$et_slider.siblings(".et_pb_carousel").find(settings.carousel_controls)).on("click.et_pb_simple_slider",function(){if($et_slider.et_animation_running)return!1;var $this=$(this);return $et_slider.et_slider_move_to($this.data("slide-id")),!1})}settings.slideshow&&et_slides_number>1&&$et_slider.on("mouseenter.et_pb_simple_slider",function(){$et_slider.hasClass("et_slider_auto_ignore_hover")||($et_slider.addClass("et_slider_hovered"),void 0!==et_slider_timer&&clearInterval(et_slider_timer))}).on("mouseleave.et_pb_simple_slider",function(){$et_slider.hasClass("et_slider_auto_ignore_hover")||($et_slider.removeClass("et_slider_hovered"),et_slider_auto_rotate())}),et_slider_auto_rotate(),$et_slider.et_slider_destroy=function(){void 0!==et_slider_timer&&clearInterval(et_slider_timer),$et_slider.off(".et_pb_simple_slider"),$et_slider.find(".et_pb_slide").css({"z-index":"",display:"",opacity:""}),$et_slider.find(".et-pb-active-slide").removeClass("et-pb-active-slide"),$et_slider.find(".et-pb-moved-slide").removeClass("et-pb-moved-slide"),$et_slider.find(".et-pb-slider-arrows, .et-pb-controllers").remove(),$et_slider.siblings(".et_pb_carousel").remove(),$et_slider.removeData("et_pb_simple_slider")},$et_slider.et_fix_slider_content_images=et_fix_slider_content_images,window.et_load_event_fired?et_fix_slider_height($et_slider):$et_window.on("load",function(){et_fix_slider_height($et_slider)}),$et_window.on("resize.et_simple_slider",function(){et_fix_slider_height($et_slider)}),$et_slider.et_slider_move_to=function(direction){var $next_slide,$active_slide=$et_slide.eq(et_active_slide);if($et_slider.et_animation_running=!0,$et_slider.removeClass("et_slide_transition_to_next et_slide_transition_to_previous").addClass("et_slide_transition_to_"+direction),$et_slider.find(".et-pb-moved-slide").removeClass("et-pb-moved-slide"),"next"==direction||"previous"==direction)et_active_slide="next"==direction?et_active_slide+1<et_slides_number?et_active_slide+1:0:et_active_slide-1>=0?et_active_slide-1:et_slides_number-1;else{if(et_active_slide==direction)return void($et_slider.et_animation_running=!1);et_active_slide=direction}void 0!==et_slider_timer&&clearInterval(et_slider_timer),$next_slide=$et_slide.eq(et_active_slide),void 0!==$active_slide.find("video")[0]&&void 0!==$active_slide.find("video")[0].player&&$active_slide.find("video")[0].player.pause(),void 0!==$next_slide.find("video")[0]&&void 0!==$next_slide.find("video")[0].player&&$next_slide.find("video")[0].player.play();var $active_slide_video=$active_slide.find(".et_pb_video_box iframe");if($active_slide_video.length){var active_slide_video_src=$active_slide_video.attr("src");active_slide_video_src=active_slide_video_src.replace(/\?autoplay=1$/,""),active_slide_video_src=active_slide_video_src.replace(/\?autoplay=1&(amp;)?/,"?"),active_slide_video_src=active_slide_video_src.replace(/&(amp;)?autoplay=1/,""),setTimeout(function(){$active_slide_video.attr({src:active_slide_video_src})},settings.fade_speed),$active_slide_video.parents(".et_pb_video_box").next(".et_pb_video_overlay").css({display:"block",opacity:1})}$et_slider.trigger("simple_slider_before_move_to",{direction:direction,next_slide:$next_slide}),$et_slide.each(function(){$(this).css("zIndex",1)}),$active_slide.css("zIndex",2).removeClass("et-pb-active-slide").addClass("et-pb-moved-slide").data("slide-status","inactive"),$next_slide.css({display:"block",opacity:0}).addClass("et-pb-active-slide").data("slide-status","active"),et_fix_slider_content_images(),et_fix_builder_content(),settings.use_controls&&$et_slider_controls.removeClass(settings.control_active_class).eq(et_active_slide).addClass(settings.control_active_class),settings.use_carousel&&$et_slider_carousel_controls.removeClass(settings.control_active_class).eq(et_active_slide).addClass(settings.control_active_class),settings.tabs_animation?($next_slide.css({display:"none",opacity:0}),$active_slide.addClass("et_slide_transition").css({display:"block",opacity:1}).animate({opacity:0},et_fade_speed,function(){$(this).css("display","none").removeClass("et_slide_transition"),$next_slide.css({display:"block",opacity:0}).animate({opacity:1},et_fade_speed,function(){$et_slider.et_animation_running=!1,$et_slider.trigger("simple_slider_after_move_to",{next_slide:$next_slide})})})):(et_maybe_set_controls_color($next_slide),$next_slide.animate({opacity:1},et_fade_speed),$active_slide.addClass("et_slide_transition").css({display:"list-item",opacity:1}).animate({opacity:0},et_fade_speed,function(){var active_slide_layout_bg_color=et_get_bg_layout_color($active_slide),next_slide_layout_bg_color=et_get_bg_layout_color($next_slide);$(this).css("display","none").removeClass("et_slide_transition"),et_stop_video($active_slide),$et_slider.removeClass(active_slide_layout_bg_color).addClass(next_slide_layout_bg_color),$et_slider.et_animation_running=!1,$et_slider.trigger("simple_slider_after_move_to",{next_slide:$next_slide})})),$next_slide.find(".et_parallax_bg").length&&window.et_pb_parallax_init($next_slide.find(".et_parallax_bg")),et_slider_auto_rotate()}},$.fn.et_pb_simple_slider=function(options){return this.each(function(){var slider=$.data(this,"et_pb_simple_slider");return slider||new $.et_pb_simple_slider(this,options)})};var et_hash_module_seperator="||",et_hash_module_param_seperator="|";$.et_pb_simple_carousel=function(el,options){function set_carousel_height($the_carousel){$the_carousel_items.width();var carousel_items_height=$the_carousel_items.height();$carousel_items.css("height",carousel_items_height+"px")}function set_carousel_columns($the_carousel){var columns,$carousel_parent=$the_carousel.parents(".et_pb_column");$carousel_items.width(),$the_carousel_items.length;if($carousel_parent.hasClass("et_pb_column_4_4")||$carousel_parent.hasClass("et_pb_column_3_4")||$carousel_parent.hasClass("et_pb_column_2_3")?columns=$et_window.width()<768?3:4:$carousel_parent.hasClass("et_pb_column_1_2")||$carousel_parent.hasClass("et_pb_column_3_8")||$carousel_parent.hasClass("et_pb_column_1_3")?columns=3:$carousel_parent.hasClass("et_pb_column_1_4")&&(columns=$et_window.width()>480&&$et_window.width()<980?3:2),columns!==$carousel_items.data("portfolio-columns")&&!$the_carousel.data("columns_setting_up")){$the_carousel.data("columns_setting_up",!0),$carousel_items.removeClass("columns-"+$carousel_items.data("portfolio-columns")),$carousel_items.addClass("columns-"+columns),$carousel_items.data("portfolio-columns",columns),$carousel_items.find(".et-carousel-group").length&&($the_carousel_items.appendTo($carousel_items),$carousel_items.find(".et-carousel-group").remove());var the_carousel_items=$carousel_items.data("items"),$carousel_group=$('<div class="et-carousel-group active">').appendTo($carousel_items);for($the_carousel_items.data("position",""),the_carousel_items.length<=columns?$carousel_items.find(".et-pb-slider-arrows").hide():$carousel_items.find(".et-pb-slider-arrows").show(),position=1,x=0;x<the_carousel_items.length;x++,position++)x<columns?($(the_carousel_items[x]).show(),$(the_carousel_items[x]).appendTo($carousel_group),$(the_carousel_items[x]).data("position",position),$(the_carousel_items[x]).addClass("position_"+position)):(position=$(the_carousel_items[x]).data("position"),$(the_carousel_items[x]).removeClass("position_"+position),$(the_carousel_items[x]).data("position",""),$(the_carousel_items[x]).hide());$the_carousel.data("columns_setting_up",!1)}}var settings=$.extend({slide_duration:500},options),$et_carousel=$(el),$carousel_items=$et_carousel.find(".et_pb_carousel_items"),$the_carousel_items=$carousel_items.find(".et_pb_carousel_item");$et_carousel.et_animation_running=!1,$et_carousel.addClass("container-width-change-notify").on("containerWidthChanged",function(event){set_carousel_columns($et_carousel),set_carousel_height()}),$carousel_items.data("items",$the_carousel_items.toArray()),$et_carousel.data("columns_setting_up",!1),$carousel_items.prepend('<div class="et-pb-slider-arrows"><a class="et-pb-slider-arrow et-pb-arrow-prev" href="#"><span>'+et_pb_custom.previous+'</span></a><a class="et-pb-slider-arrow et-pb-arrow-next" href="#"><span>'+et_pb_custom.next+"</span></a></div>"),set_carousel_columns($et_carousel),set_carousel_height(),$et_carousel_next=$et_carousel.find(".et-pb-arrow-next"),$et_carousel_prev=$et_carousel.find(".et-pb-arrow-prev"),$et_carousel.on("click",".et-pb-arrow-next",function(){return!$et_carousel.et_animation_running&&($et_carousel.et_carousel_move_to("next"),!1)}),$et_carousel.on("click",".et-pb-arrow-prev",function(){return!$et_carousel.et_animation_running&&($et_carousel.et_carousel_move_to("previous"),!1)}),$et_carousel.on("swipeleft",function(){$et_carousel.et_carousel_move_to("next")}),$et_carousel.on("swiperight",function(){$et_carousel.et_carousel_move_to("previous")}),$et_carousel.et_carousel_move_to=function(direction){var $active_carousel_group=$carousel_items.find(".et-carousel-group.active"),items=$carousel_items.data("items"),columns=$carousel_items.data("portfolio-columns");$et_carousel.et_animation_running=!0;left=0;if($active_carousel_group.children().each(function(){$(this).css({position:"absolute",left:left}),left+=$(this).outerWidth(!0)}),"next"==direction){var $next_carousel_group,current_position=1,next_position=1,next_items_start=active_items_end=(active_items_start=items.indexOf($active_carousel_group.children().first()[0]))+columns,next_items_end=next_items_start+columns;for(($next_carousel_group=$('<div class="et-carousel-group next" style="display: none;left: 100%;position: absolute;top: 0;">').insertAfter($active_carousel_group)).css({width:$active_carousel_group.innerWidth()}).show(),x=0,total=0;total>=active_items_start&&total<active_items_end&&($(items[x]).addClass("changing_position current_position current_position_"+current_position),$(items[x]).data("current_position",current_position),current_position++),total>=next_items_start&&total<next_items_end&&($(items[x]).data("next_position",next_position),$(items[x]).addClass("changing_position next_position next_position_"+next_position),$(items[x]).hasClass("current_position")?($(items[x]).clone(!0).appendTo($active_carousel_group).hide().addClass("delayed_container_append_dup").attr("id",$(items[x]).attr("id")+"-dup"),$(items[x]).addClass("delayed_container_append")):$(items[x]).addClass("container_append"),next_position++),!(next_position>columns);x++,total++)x>=items.length-1&&(x=-1);sorted=$carousel_items.find(".container_append, .delayed_container_append_dup").sort(function(a,b){var el_a_position=parseInt($(a).data("next_position")),el_b_position=parseInt($(b).data("next_position"));return el_a_position<el_b_position?-1:el_a_position>el_b_position?1:0});$(sorted).show().appendTo($next_carousel_group);left=0;$next_carousel_group.children().each(function(){$(this).css({position:"absolute",left:left}),left+=$(this).outerWidth(!0)}),$active_carousel_group.animate({left:"-100%"},{duration:settings.slide_duration,complete:function(){$carousel_items.find(".delayed_container_append").each(function(){left=$("#"+$(this).attr("id")+"-dup").css("left"),$(this).css({position:"absolute",left:left}),$(this).appendTo($next_carousel_group)}),$active_carousel_group.removeClass("active"),$active_carousel_group.children().each(function(){position=$(this).data("position"),current_position=$(this).data("current_position"),$(this).removeClass("position_"+position+" changing_position current_position current_position_"+current_position),$(this).data("position",""),$(this).data("current_position",""),$(this).hide(),$(this).css({position:"",left:""}),$(this).appendTo($carousel_items)}),$active_carousel_group.remove()}}),next_left=$active_carousel_group.width()+parseInt($the_carousel_items.first().css("marginRight").slice(0,-2)),$next_carousel_group.addClass("active").css({position:"absolute",top:0,left:next_left}),$next_carousel_group.animate({left:"0%"},{duration:settings.slide_duration,complete:function(){$next_carousel_group.removeClass("next").addClass("active").css({position:"",width:"",top:"",left:""}),$next_carousel_group.find(".changing_position").each(function(index){position=$(this).data("position"),current_position=$(this).data("current_position"),next_position=$(this).data("next_position"),$(this).removeClass("container_append delayed_container_append position_"+position+" changing_position current_position current_position_"+current_position+" next_position next_position_"+next_position),$(this).data("current_position",""),$(this).data("next_position",""),$(this).data("position",index+1)}),$next_carousel_group.children().css({position:"",left:""}),$next_carousel_group.find(".delayed_container_append_dup").remove(),$et_carousel.et_animation_running=!1}})}else if("previous"==direction){var $prev_carousel_group,current_position=columns,prev_position=columns,columns_span=columns-1,active_items_start=items.indexOf($active_carousel_group.children().last()[0]),active_items_end=active_items_start-columns_span,prev_items_start=active_items_end-1,prev_items_end=prev_items_start-columns_span;for(($prev_carousel_group=$('<div class="et-carousel-group prev" style="display: none;left: 100%;position: absolute;top: 0;">').insertBefore($active_carousel_group)).css({left:"-"+$active_carousel_group.innerWidth(),width:$active_carousel_group.innerWidth()}).show(),x=items.length-1,total=items.length-1;total<=active_items_start&&total>=active_items_end&&($(items[x]).addClass("changing_position current_position current_position_"+current_position),$(items[x]).data("current_position",current_position),current_position--),total<=prev_items_start&&total>=prev_items_end&&($(items[x]).data("prev_position",prev_position),$(items[x]).addClass("changing_position prev_position prev_position_"+prev_position),$(items[x]).hasClass("current_position")?($(items[x]).clone(!0).appendTo($active_carousel_group).addClass("delayed_container_append_dup").attr("id",$(items[x]).attr("id")+"-dup"),$(items[x]).addClass("delayed_container_append")):$(items[x]).addClass("container_append"),prev_position--),!(prev_position<=0);x--,total--)0==x&&(x=items.length);var sorted=$carousel_items.find(".container_append, .delayed_container_append_dup").sort(function(a,b){var el_a_position=parseInt($(a).data("prev_position")),el_b_position=parseInt($(b).data("prev_position"));return el_a_position<el_b_position?-1:el_a_position>el_b_position?1:0});$(sorted).show().appendTo($prev_carousel_group);var left=0;$prev_carousel_group.children().each(function(){$(this).css({position:"absolute",left:left}),left+=$(this).outerWidth(!0)}),$active_carousel_group.animate({left:"100%"},{duration:settings.slide_duration,complete:function(){$carousel_items.find(".delayed_container_append").reverse().each(function(){left=$("#"+$(this).attr("id")+"-dup").css("left"),$(this).css({position:"absolute",left:left}),$(this).prependTo($prev_carousel_group)}),$active_carousel_group.removeClass("active"),$active_carousel_group.children().each(function(){position=$(this).data("position"),current_position=$(this).data("current_position"),$(this).removeClass("position_"+position+" changing_position current_position current_position_"+current_position),$(this).data("position",""),$(this).data("current_position",""),$(this).hide(),$(this).css({position:"",left:""}),$(this).appendTo($carousel_items)}),$active_carousel_group.remove()}}),prev_left=-1*$active_carousel_group.width()-parseInt($the_carousel_items.first().css("marginRight").slice(0,-2)),$prev_carousel_group.addClass("active").css({position:"absolute",top:0,left:prev_left}),$prev_carousel_group.animate({left:"0%"},{duration:settings.slide_duration,complete:function(){$prev_carousel_group.removeClass("prev").addClass("active").css({position:"",width:"",top:"",left:""}),$prev_carousel_group.find(".delayed_container_append_dup").remove(),$prev_carousel_group.find(".changing_position").each(function(index){position=$(this).data("position"),current_position=$(this).data("current_position"),prev_position=$(this).data("prev_position"),$(this).removeClass("container_append delayed_container_append position_"+position+" changing_position current_position current_position_"+current_position+" prev_position prev_position_"+prev_position),$(this).data("current_position",""),$(this).data("prev_position",""),position=index+1,$(this).data("position",position),$(this).addClass("position_"+position)}),$prev_carousel_group.children().css({position:"",left:""}),$et_carousel.et_animation_running=!1}})}}},$.fn.et_pb_simple_carousel=function(options){return this.each(function(){var carousel=$.data(this,"et_pb_simple_carousel");return carousel||new $.et_pb_simple_carousel(this,options)})},$(document).ready(function(){function et_get_column_types($columns){var row_class="";return $columns.length&&($columns.each(function(){var column_type=$(this).attr("class").split("et_pb_column_")[1],column_type_updated=(void 0!==column_type?column_type.split(" ",1)[0]:"4_4").replace("_","-").trim();row_class+="_"+column_type_updated}),row_class="_1-4_1-4_1-4_1-4"===row_class?"_4col":row_class),row_class}function fullwidth_portfolio_carousel_slide($arrow){var $the_portfolio=$arrow.parents(".et_pb_fullwidth_portfolio"),$portfolio_items=$the_portfolio.find(".et_pb_portfolio_items"),$active_carousel_group=($portfolio_items.find(".et_pb_portfolio_item"),$portfolio_items.find(".et_pb_carousel_group.active")),items=$portfolio_items.data("items"),columns=$portfolio_items.data("portfolio-columns"),item_width=$active_carousel_group.innerWidth()/columns,original_item_width=100/columns+"%";if(void 0!==items&&!$the_portfolio.data("carouseling"))if($the_portfolio.data("carouseling",!0),$active_carousel_group.children().each(function(){$(this).css({width:item_width+1,"max-width":item_width,position:"absolute",left:item_width*($(this).data("position")-1)})}),$arrow.hasClass("et-pb-arrow-next")){var $next_carousel_group,current_position=1,next_position=1,next_items_start=active_items_end=(active_items_start=items.indexOf($active_carousel_group.children().first()[0]))+columns,next_items_end=next_items_start+columns,active_carousel_width=$active_carousel_group.innerWidth();for(($next_carousel_group=$('<div class="et_pb_carousel_group next" style="display: none;left: 100%;position: absolute;top: 0;">').insertAfter($active_carousel_group)).css({width:active_carousel_width,"max-width":active_carousel_width}).show(),x=0,total=0;total>=active_items_start&&total<active_items_end&&($(items[x]).addClass("changing_position current_position current_position_"+current_position),$(items[x]).data("current_position",current_position),current_position++),total>=next_items_start&&total<next_items_end&&($(items[x]).data("next_position",next_position),$(items[x]).addClass("changing_position next_position next_position_"+next_position),$(items[x]).hasClass("current_position")?($(items[x]).clone(!0).appendTo($active_carousel_group).hide().addClass("delayed_container_append_dup").attr("id",$(items[x]).attr("id")+"-dup"),$(items[x]).addClass("delayed_container_append")):$(items[x]).addClass("container_append"),next_position++),!(next_position>columns);x++,total++)x>=items.length-1&&(x=-1);sorted=$portfolio_items.find(".container_append, .delayed_container_append_dup").sort(function(a,b){var el_a_position=parseInt($(a).data("next_position")),el_b_position=parseInt($(b).data("next_position"));return el_a_position<el_b_position?-1:el_a_position>el_b_position?1:0}),$(sorted).show().appendTo($next_carousel_group),$next_carousel_group.children().each(function(){$(this).css({width:item_width,"max-width":item_width,position:"absolute",left:item_width*($(this).data("next_position")-1)})}),$active_carousel_group.animate({left:"-100%"},{duration:700,complete:function(){$portfolio_items.find(".delayed_container_append").each(function(){$(this).css({width:item_width,"max-width":item_width,position:"absolute",left:item_width*($(this).data("next_position")-1)}),$(this).appendTo($next_carousel_group)}),$active_carousel_group.removeClass("active"),$active_carousel_group.children().each(function(){position=$(this).data("position"),current_position=$(this).data("current_position"),$(this).removeClass("position_"+position+" changing_position current_position current_position_"+current_position),$(this).data("position",""),$(this).data("current_position",""),$(this).hide(),$(this).css({position:"",width:"","max-width":"",left:""}),$(this).appendTo($portfolio_items)}),$active_carousel_group.remove(),et_carousel_auto_rotate($the_portfolio)}}),$next_carousel_group.addClass("active").css({position:"absolute",top:0,left:"100%"}),$next_carousel_group.animate({left:"0%"},{duration:700,complete:function(){setTimeout(function(){$next_carousel_group.removeClass("next").addClass("active").css({position:"",width:"","max-width":"",top:"",left:""}),$next_carousel_group.find(".delayed_container_append_dup").remove(),$next_carousel_group.find(".changing_position").each(function(index){position=$(this).data("position"),current_position=$(this).data("current_position"),next_position=$(this).data("next_position"),$(this).removeClass("container_append delayed_container_append position_"+position+" changing_position current_position current_position_"+current_position+" next_position next_position_"+next_position),$(this).data("current_position",""),$(this).data("next_position",""),$(this).data("position",index+1)}),$next_carousel_group.children().css({position:"",width:original_item_width,"max-width":original_item_width,left:""}),$the_portfolio.data("carouseling",!1)},100)}})}else{var $prev_carousel_group,current_position=columns,prev_position=columns,columns_span=columns-1,active_items_start=items.indexOf($active_carousel_group.children().last()[0]),active_items_end=active_items_start-columns_span,prev_items_start=active_items_end-1,prev_items_end=prev_items_start-columns_span,active_carousel_width=$active_carousel_group.innerWidth();for(($prev_carousel_group=$('<div class="et_pb_carousel_group prev" style="display: none;left: 100%;position: absolute;top: 0;">').insertBefore($active_carousel_group)).css({left:"-"+active_carousel_width,width:active_carousel_width,"max-width":active_carousel_width}).show(),x=items.length-1,total=items.length-1;total<=active_items_start&&total>=active_items_end&&($(items[x]).addClass("changing_position current_position current_position_"+current_position),$(items[x]).data("current_position",current_position),current_position--),total<=prev_items_start&&total>=prev_items_end&&($(items[x]).data("prev_position",prev_position),$(items[x]).addClass("changing_position prev_position prev_position_"+prev_position),$(items[x]).hasClass("current_position")?($(items[x]).clone(!0).appendTo($active_carousel_group).addClass("delayed_container_append_dup").attr("id",$(items[x]).attr("id")+"-dup"),$(items[x]).addClass("delayed_container_append")):$(items[x]).addClass("container_append"),prev_position--),!(prev_position<=0);x--,total--)0==x&&(x=items.length);sorted=$portfolio_items.find(".container_append, .delayed_container_append_dup").sort(function(a,b){var el_a_position=parseInt($(a).data("prev_position")),el_b_position=parseInt($(b).data("prev_position"));return el_a_position<el_b_position?-1:el_a_position>el_b_position?1:0}),$(sorted).show().appendTo($prev_carousel_group),$prev_carousel_group.children().each(function(){$(this).css({width:item_width,"max-width":item_width,position:"absolute",left:item_width*($(this).data("prev_position")-1)})}),$active_carousel_group.animate({left:"100%"},{duration:700,complete:function(){$portfolio_items.find(".delayed_container_append").reverse().each(function(){$(this).css({width:item_width,"max-width":item_width,position:"absolute",left:item_width*($(this).data("prev_position")-1)}),$(this).prependTo($prev_carousel_group)}),$active_carousel_group.removeClass("active"),$active_carousel_group.children().each(function(){position=$(this).data("position"),current_position=$(this).data("current_position"),$(this).removeClass("position_"+position+" changing_position current_position current_position_"+current_position),$(this).data("position",""),$(this).data("current_position",""),$(this).hide(),$(this).css({position:"",width:"","max-width":"",left:""}),$(this).appendTo($portfolio_items)}),$active_carousel_group.remove()}}),$prev_carousel_group.addClass("active").css({position:"absolute",top:0,left:"-100%"}),$prev_carousel_group.animate({left:"0%"},{duration:700,complete:function(){setTimeout(function(){$prev_carousel_group.removeClass("prev").addClass("active").css({position:"",width:"","max-width":"",top:"",left:""}),$prev_carousel_group.find(".delayed_container_append_dup").remove(),$prev_carousel_group.find(".changing_position").each(function(index){position=$(this).data("position"),current_position=$(this).data("current_position"),prev_position=$(this).data("prev_position"),$(this).removeClass("container_append delayed_container_append position_"+position+" changing_position current_position current_position_"+current_position+" prev_position prev_position_"+prev_position),$(this).data("current_position",""),$(this).data("prev_position",""),position=index+1,$(this).data("position",position),$(this).addClass("position_"+position)}),$prev_carousel_group.children().css({position:"",width:original_item_width,"max-width":original_item_width,left:""}),$the_portfolio.data("carouseling",!1)},100)}})}}function set_fullwidth_portfolio_columns($the_portfolio,carousel_mode){var columns,$portfolio_items=$the_portfolio.find(".et_pb_portfolio_items"),portfolio_items_width=$portfolio_items.width(),$the_portfolio_items=$portfolio_items.find(".et_pb_portfolio_item");$the_portfolio_items.length;if(void 0!==$the_portfolio_items&&(columns=portfolio_items_width>=1600?5:portfolio_items_width>=1024?4:portfolio_items_width>=768?3:portfolio_items_width>=480?2:1,portfolio_item_width=portfolio_items_width/columns,portfolio_item_height=.75*portfolio_item_width,carousel_mode&&$portfolio_items.css({height:portfolio_item_height}),$the_portfolio_items.css({height:portfolio_item_height}),columns!==$portfolio_items.data("portfolio-columns")&&!$the_portfolio.data("columns_setting_up"))){$the_portfolio.data("columns_setting_up",!0);var portfolio_item_width_percentage=100/columns+"%";if($the_portfolio_items.css({width:portfolio_item_width_percentage,"max-width":portfolio_item_width_percentage}),$portfolio_items.removeClass("columns-"+$portfolio_items.data("portfolio-columns")),$portfolio_items.addClass("columns-"+columns),$portfolio_items.data("portfolio-columns",columns),!carousel_mode)return $the_portfolio.data("columns_setting_up",!1);$portfolio_items.find(".et_pb_carousel_group").length&&($the_portfolio_items.appendTo($portfolio_items),$portfolio_items.find(".et_pb_carousel_group").remove());var the_portfolio_items=$portfolio_items.data("items"),$carousel_group=$('<div class="et_pb_carousel_group active">').appendTo($portfolio_items);if(void 0!==the_portfolio_items){for($the_portfolio_items.data("position",""),the_portfolio_items.length<=columns?$portfolio_items.find(".et-pb-slider-arrows").hide():$portfolio_items.find(".et-pb-slider-arrows").show(),position=1,x=0;x<the_portfolio_items.length;x++,position++)x<columns?($(the_portfolio_items[x]).show(),$(the_portfolio_items[x]).appendTo($carousel_group),$(the_portfolio_items[x]).data("position",position),$(the_portfolio_items[x]).addClass("position_"+position)):(position=$(the_portfolio_items[x]).data("position"),$(the_portfolio_items[x]).removeClass("position_"+position),$(the_portfolio_items[x]).data("position",""),$(the_portfolio_items[x]).hide());$the_portfolio.data("columns_setting_up",!1)}}}function et_carousel_auto_rotate($carousel){"on"===$carousel.data("auto-rotate")&&$carousel.find(".et_pb_portfolio_item").length>$carousel.find(".et_pb_carousel_group .et_pb_portfolio_item").length&&!$carousel.hasClass("et_carousel_hovered")&&(et_carousel_timer=setTimeout(function(){fullwidth_portfolio_carousel_slide($carousel.find(".et-pb-arrow-next"))},$carousel.data("auto-rotate-speed")),$carousel.data("et_carousel_timer",et_carousel_timer))}function et_audio_module_set(){($(".et_pb_audio_module .mejs-audio").length||$(".et_audio_content .mejs-audio").length)&&$(".et_audio_container").each(function(){et_pb_audio_module_init($(this))})}function set_filterable_grid_items($the_portfolio){var active_category=$the_portfolio.find(".et_pb_portfolio_filter > a.active").data("category-slug");window.et_pb_set_responsive_grid($the_portfolio.find(".et_pb_portfolio_items"),".et_pb_portfolio_item"),$the_portfolio_visible_items="all"===active_category?$the_portfolio.find(".et_pb_portfolio_item"):$the_portfolio.find(".et_pb_portfolio_item.project_category_"+active_category);var visible_grid_items=$the_portfolio_visible_items.length,posts_number=$the_portfolio.data("posts-number");set_filterable_grid_pages($the_portfolio,0===posts_number?1:Math.ceil(visible_grid_items/posts_number));var visible_grid_items=0,_page=1;$the_portfolio.find(".et_pb_portfolio_item").data("page",""),$the_portfolio_visible_items.each(function(i){visible_grid_items++,0===parseInt(visible_grid_items%posts_number)?($(this).data("page",_page),_page++):$(this).data("page",_page)}),$the_portfolio_visible_items.filter(function(){return 1==$(this).data("page")}).show(),$the_portfolio_visible_items.filter(function(){return 1!=$(this).data("page")}).hide()}function set_filterable_grid_pages($the_portfolio,pages){if($pagination=$the_portfolio.find(".et_pb_portofolio_pagination"),$pagination.length&&($pagination.html("<ul></ul>"),!(pages<=1))){$pagination_list=$pagination.children("ul"),$pagination_list.append('<li class="prev" style="display:none;"><a href="#" data-page="prev" class="page-prev">'+et_pb_custom.prev+"</a></li>");for(var page=1;page<=pages;page++){var first_page_class=1===page?" active":"",last_page_class=page===pages?" last-page":"",hidden_page_class=page>=5?' style="display:none;"':"";$pagination_list.append("<li"+hidden_page_class+' class="page page-'+page+'"><a href="#" data-page="'+page+'" class="page-'+page+first_page_class+last_page_class+'">'+page+"</a></li>")}$pagination_list.append('<li class="next"><a href="#" data-page="next" class="page-next">'+et_pb_custom.next+"</a></li>")}}function set_filterable_portfolio_hash($the_portfolio){if($the_portfolio.attr("id")){var this_portfolio_state=[];this_portfolio_state.push($the_portfolio.attr("id")),this_portfolio_state.push($the_portfolio.find(".et_pb_portfolio_filter > a.active").data("category-slug")),$the_portfolio.find(".et_pb_portofolio_pagination a.active").length?this_portfolio_state.push($the_portfolio.find(".et_pb_portofolio_pagination a.active").data("page")):this_portfolio_state.push(1),et_set_hash(this_portfolio_state=this_portfolio_state.join(et_hash_module_param_seperator))}}function et_pb_init_maps(){$et_pb_map.each(function(){et_pb_map_init($(this))})}function et_toggle_animation_callback(initial_toggle_state,$module,$section){"closed"===initial_toggle_state?$module.removeClass("et_pb_toggle_close").addClass("et_pb_toggle_open"):$module.removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close"),$section.hasClass("et_pb_section_parallax")&&!$section.children().hasClass("et_pb_parallax_css")&&$.proxy(et_parallax_set_height,$section)()}function et_fix_nav_direction(){window_width=$(window).width(),$(".nav li.et-reverse-direction-nav").removeClass("et-reverse-direction-nav"),$(".nav li li ul").each(function(){var $dropdown=$(this),dropdown_width=$dropdown.width(),dropdown_offset=$dropdown.offset(),$parents=$dropdown.parents(".nav > li");dropdown_offset.left>window_width-dropdown_width&&$parents.addClass("et-reverse-direction-nav")})}function et_waypoint($element,options,max_instances){max_instances=max_instances||$element.data("et_waypoint_max_instances")||1;var current_instances=$element.data("et_waypoint")||[];if(current_instances.length<max_instances){var new_instances=$element.waypoint(options);new_instances&&new_instances.length>0&&(current_instances.push(new_instances[0]),$element.data("et_waypoint",current_instances))}else for(var i=0;i<current_instances.length;i++)current_instances[i].context.refresh()}function et_get_offset(element,fallback){var section_index=element.parents(".et_pb_section").index(),section_length=$(".et_pb_section").length-1,row_index=element.parents(".et_pb_row").index(),row_length=element.parents(".et_pb_section").children().length-1;return section_index===section_length&&row_index===row_length?"bottom-in-view":fallback}function et_animate_element($element){var animation_style=$element.attr("data-animation-style"),animation_repeat=$element.attr("data-animation-repeat"),animation_duration=$element.attr("data-animation-duration"),animation_delay=$element.attr("data-animation-delay"),animation_intensity=$element.attr("data-animation-intensity"),animation_starting_opacity=$element.attr("data-animation-starting-opacity"),animation_speed_curve=$element.attr("data-animation-speed-curve");et_remove_animation_data($element);var starting_opacity=isNaN(parseInt(animation_starting_opacity))?0:.01*parseInt(animation_starting_opacity);-1===$.inArray(animation_speed_curve,["linear","ease","ease-in","ease-out","ease-in-out"])&&(animation_speed_curve="ease-in-out"),$element.css({"animation-duration":animation_duration,"animation-delay":animation_delay,opacity:starting_opacity,"animation-timing-function":animation_speed_curve});for(var intensity_css={},intensity_percentage=isNaN(parseInt(animation_intensity))?50:parseInt(animation_intensity),intensity_animations=["slide","zoom","flip","fold","roll"],original_animation=!1,original_direction=!1,i=0;i<intensity_animations.length;i++){var animation=intensity_animations[i];if(animation_style&&animation_style.substr(0,animation.length)===animation){original_animation=animation;""!==(original_direction=animation_style.substr(animation.length,animation_style.length))&&(original_direction=original_direction.toLowerCase());break}}!1!==original_animation&&!1!==original_direction&&(intensity_css=et_process_animation_intensity(original_animation,original_direction,intensity_percentage)),$.isEmptyObject(intensity_css)||$element.css(intensity_css),$element.addClass("et_animated"),$element.addClass(animation_style),$element.addClass(animation_repeat)}function et_process_animation_intensity(animation,direction,intensity){var intensity_css={};switch(animation){case"slide":switch(direction){case"top":intensity_css={transform:"translate3d(0, "+(percentage=-2*intensity)+"%, 0)"};break;case"right":intensity_css={transform:"translate3d("+(percentage=2*intensity)+"%, 0, 0)"};break;case"bottom":intensity_css={transform:"translate3d(0, "+(percentage=2*intensity)+"%, 0)"};break;case"left":var percentage=-2*intensity;intensity_css={transform:"translate3d("+percentage+"%, 0, 0)"};break;default:intensity_css={transform:"scale3d("+(scale=.01*(100-intensity))+", "+scale+", "+scale+")"}}break;case"zoom":var scale=.01*(100-intensity);switch(direction){case"top":case"right":case"bottom":case"left":default:intensity_css={transform:"scale3d("+scale+", "+scale+", "+scale+")"}}break;case"flip":switch(direction){case"right":intensity_css={transform:"perspective(2000px) rotateY("+(degree=Math.ceil(.9*intensity))+"deg)"};break;case"left":intensity_css={transform:"perspective(2000px) rotateY("+(degree=-1*Math.ceil(.9*intensity))+"deg)"};break;case"top":default:intensity_css={transform:"perspective(2000px) rotateX("+(degree=Math.ceil(.9*intensity))+"deg)"};break;case"bottom":intensity_css={transform:"perspective(2000px) rotateX("+(degree=-1*Math.ceil(.9*intensity))+"deg)"}}break;case"fold":switch(direction){case"top":intensity_css={transform:"perspective(2000px) rotateX("+(degree=-1*Math.ceil(.9*intensity))+"deg)"};break;case"bottom":intensity_css={transform:"perspective(2000px) rotateX("+(degree=Math.ceil(.9*intensity))+"deg)"};break;case"left":intensity_css={transform:"perspective(2000px) rotateY("+(degree=Math.ceil(.9*intensity))+"deg)"};break;case"right":default:intensity_css={transform:"perspective(2000px) rotateY("+(degree=-1*Math.ceil(.9*intensity))+"deg)"}}break;case"roll":switch(direction){case"right":case"bottom":intensity_css={transform:"rotate3d(0, 0, 1, "+(degree=-1*Math.ceil(3.6*intensity))+"deg)"};break;case"top":case"left":intensity_css={transform:"rotate3d(0, 0, 1, "+(degree=Math.ceil(3.6*intensity))+"deg)"};break;default:var degree=Math.ceil(3.6*intensity);intensity_css={transform:"rotate3d(0, 0, 1, "+degree+"deg)"}}}return intensity_css}function et_has_animation_data($element){var has_animation=!1;if("undefined"!=typeof et_animation_data&&et_animation_data.length>0)for(var i=0;i<et_animation_data.length;i++){var animation_entry=et_animation_data[i];if(animation_entry.class&&$element.hasClass(animation_entry.class)){has_animation=!0;break}}return has_animation}function et_remove_animation_data($element){for(var data_attrs_to_remove=[],data_attrs=$element.get(0).attributes,i=0;i<data_attrs.length;i++)"data-animation-"===data_attrs[i].name.substring(0,15)&&data_attrs_to_remove.push(data_attrs[i].name);$.each(data_attrs_to_remove,function(index,attr_name){$element.removeAttr(attr_name)})}function et_pb_maybe_log_event($goal_container,event,callback){var log_event=void 0===event?"con_goal":event;$goal_container.hasClass("et_pb_ab_goal")&&!et_pb_ab_logged_status[log_event]?et_pb_ab_update_stats(log_event,callback):void 0!==callback&&callback()}function et_pb_ab_update_stats(record_type,set_page_id,set_subject_id,set_test_id,callback){var subject_id=void 0===set_subject_id?et_pb_get_subject_id():set_subject_id,page_id=void 0===set_page_id?et_pb_custom.page_id:set_page_id,test_id=void 0===set_test_id?et_pb_custom.unique_test_id:set_test_id,stats_data=JSON.stringify({test_id:page_id,subject_id:subject_id,record_type:record_type});et_pb_set_cookie(365,"et_pb_ab_"+record_type+"_"+page_id+test_id+("click_goal"===record_type||"con_short"===record_type?"":subject_id)+"=true"),et_pb_ab_logged_status[record_type]=!0,$.ajax({type:"POST",url:et_pb_custom.ajaxurl,data:{action:"et_pb_update_stats_table",stats_data_array:stats_data,et_ab_log_nonce:et_pb_custom.et_ab_log_nonce}}).always(function(){void 0!==callback&&callback()})}function et_pb_get_subject_id(){var $subject=$(".et_pb_ab_subject");return!($subject.length<=0)&&$subject.attr("class").split("et_pb_ab_subject_id-")[1].split(" ")[0].split("_")[1]}function et_pb_set_cookie_expire(days){var ms=24*days*60*60*1e3,date=new Date;return date.setTime(date.getTime()+ms),"; expires="+date.toUTCString()}function et_pb_check_cookie_value(cookie_name,value){return et_pb_get_cookie_value(cookie_name)==value}function et_pb_get_cookie_value(cookie_name){return et_pb_parse_cookies()[cookie_name]}function et_pb_parse_cookies(){for(var cookies=document.cookie.split("; "),ret={},i=cookies.length-1;i>=0;i--){var el=cookies[i].split("=");ret[el[0]]=el[1]}return ret}function et_pb_set_cookie(expire,cookie_content){cookie_expire=et_pb_set_cookie_expire(expire),document.cookie=cookie_content+cookie_expire+"; path=/"}function et_pb_get_fixed_main_header_height(){if(!window.et_is_fixed_nav)return 0;var fixed_height_onload=void 0===$("#main-header").attr("data-fixed-height-onload")?0:$("#main-header").attr("data-fixed-height-onload");return window.et_is_fixed_nav?parseFloat(fixed_height_onload):0}function et_pb_window_load_scripts(){et_fix_fullscreen_section(),$("section.et_pb_fullscreen").each(function(){var $this_section=$(this);$.proxy(et_calc_fullscreen_section,$this_section)()}),$(".et_pb_fullwidth_header_scroll").on("click","a",et_pb_fullwidth_header_scroll),setTimeout(function(){$(".et_pb_preload").removeClass("et_pb_preload")},500),$.fn.hashchange&&($(window).hashchange(function(){process_et_hashchange(window.location.hash.substring(1))}),$(window).hashchange()),$et_pb_parallax.length&&!et_is_mobile_device&&$et_pb_parallax.each(function(){et_pb_parallax_init($(this))}),et_audio_module_set(),window.et_reinit_waypoint_modules(),$(".et_audio_content").length&&$(window).trigger("resize")}function et_pb_set_paginated_content($current_module,is_cache){void 0!==$current_module.find(".et_pb_salvattore_content").attr("data-columns")&&(is_cache||salvattore.registerGrid($current_module.find(".et_pb_salvattore_content")[0]),salvattore.recreateColumns($current_module.find(".et_pb_salvattore_content")[0]),$current_module.find(".et_pb_post").css({opacity:"1"})),$current_module.find(".et_audio_container").length>0&&"undefined"!=typeof wp&&void 0!==wp.mediaelement&&"function"==typeof wp.mediaelement.initialize&&(wp.mediaelement.initialize(),$(window).trigger("resize")),$current_module.find(".et-waypoint, .et_pb_circle_counter, .et_pb_number_counter").length>0&&$current_module.find(".et-waypoint, .et_pb_circle_counter, .et_pb_number_counter").each(function(){var $waypoint_module=$(this);$waypoint_module.hasClass("et_pb_circle_counter")&&window.et_pb_reinit_circle_counters($waypoint_module),$waypoint_module.hasClass("et_pb_number_counter")&&window.et_pb_reinit_number_counters($waypoint_module),$waypoint_module.find(".et_pb_counter_amount").length>0&&$waypoint_module.find(".et_pb_counter_amount").each(function(){window.et_bar_counters_init($(this))}),$(this).css({opacity:"1"}),window.et_reinit_waypoint_modules()}),$current_module.find(".et_pb_slider").length>0&&$current_module.find(".et_pb_slider").each(function(){et_pb_slider_init($(this))}),$current_module.on("click",".et_pb_video_overlay",function(e){e.preventDefault(),et_pb_play_overlayed_video($(this))}),$current_module.fitVids({customSelector:"iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']"}),$current_module.fadeTo("slow",1),$("body").animate({scrollTop:$current_module.offset().top-($("#main-header").innerHeight()+$("#top-header").innerHeight()+50)})}function et_conditional_check($form){$form.find("[data-conditional-logic]").hide().each(function(){var $conditional=$(this),rules=$conditional.data("conditional-logic"),relation=$conditional.data("conditional-relation");show_field=!1;for(var matched_rules=[],i=0;i<rules.length;i++){var ruleset=rules[i],check_id=ruleset[0],check_type=ruleset[1],check_value=ruleset[2],$wrapper=$form.find('.et_pb_contact_field[data-id="'+check_id+'"]'),field_type=($wrapper.data("id"),$wrapper.data("type"));if($wrapper.is(":visible")){switch(field_type){case"input":case"email":field_value=$wrapper.find("input").val();break;case"text":field_value=$wrapper.find("textarea").val();break;case"radio":field_value=$wrapper.find("input:checked").val()||"";break;case"checkbox":var field_value=!1;$wrapper.find(":checkbox:checked").each(function(){if(check_value===$(this).val())return field_value=!0,!1}),check_value=!0;break;case"select":field_value=$wrapper.find("select").val()}if("is empty"!==check_type&&"is not empty"!==check_type||(check_type="is empty"===check_type?"is":"is not",check_value="","checkbox"===field_type&&!1===field_value&&(field_value="")),!("is"===check_type&&field_value!==check_value||"is not"===check_type&&field_value===check_value)){var containsRegExp=new RegExp(check_value,"i");if(("contains"!==check_type||field_value.match(containsRegExp))&&("does not contain"!==check_type||!field_value.match(containsRegExp))){var maybeNumericValue=parseInt(field_value),maybeNumbericCheckValue=parseInt(check_value);("is greater"!==check_type&&"is less"!==check_type||!isNaN(maybeNumericValue)&&!isNaN(maybeNumbericCheckValue))&&("is greater"===check_type&&maybeNumericValue<=maybeNumbericCheckValue||"is less"===check_type&&maybeNumericValue>=maybeNumbericCheckValue||matched_rules.push(!0))}}}}$conditional.hide();var $conditional_input=$conditional.find('input[type="text"]'),conditional_pattern=$conditional_input.attr("pattern");$conditional_input.attr("novalidate","novalidate"),$conditional_input.attr("data-pattern",conditional_pattern),$conditional_input.removeAttr("pattern"),"all"===relation&&rules.length===matched_rules.length&&($conditional.show(),$conditional_input.removeAttr("novalidate"),$conditional_input.attr("pattern",$conditional_input.data("pattern"))),"any"===relation&&0<matched_rules.length&&($conditional.show(),$conditional_input.removeAttr("novalidate"),$conditional_input.attr("pattern",$conditional_input.data("pattern")))})}$(window).trigger("et_pb_before_init_modules");var $et_pb_slider=$(".et_pb_slider"),$et_pb_tabs=$(".et_pb_tabs"),$et_pb_video_section=$(".et_pb_section_video_bg"),$et_pb_newsletter_button=$(".et_pb_newsletter_button"),$et_pb_filterable_portfolio=$(".et_pb_filterable_portfolio"),$et_pb_fullwidth_portfolio=$(".et_pb_fullwidth_portfolio"),$et_pb_gallery=$(".et_pb_gallery"),$et_pb_countdown_timer=$(".et_pb_countdown_timer"),$et_post_gallery=$(".et_post_gallery"),$et_lightbox_image=$(".et_pb_lightbox_image"),$et_pb_map=$(".et_pb_map_container"),$et_pb_circle_counter=$(".et_pb_circle_counter"),$et_pb_number_counter=$(".et_pb_number_counter"),$et_pb_parallax=$(".et_parallax_bg"),$et_pb_shop=$(".et_pb_shop"),et_is_mobile_device=($(".single.et_pb_pagebuilder_layout.et_full_width_page"),null!==navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/)),et_is_ipad=navigator.userAgent.match(/iPad/),et_is_ie9=null!==navigator.userAgent.match(/MSIE 9.0/),$et_container=$(et_pb_custom.is_builder_plugin_used?".et_pb_row":".container"),et_container_width=$et_container.width(),et_hide_nav=($("body").hasClass("et_vertical_fixed"),$("body").hasClass("rtl"),$("body").hasClass("et_hide_nav")),$top_header=($("body").hasClass("et_header_style_left"),$("#top-header")),$et_main_content_first_row=($("#main-header"),$("#page-container"),$(".et_transparent_nav"),$("body.et_pb_pagebuilder_layout .et_pb_section:first-child"),$("#main-content .container:first-child")),etRecalculateOffset=($et_main_content_first_row.find(".et_post_meta_wrapper:first").find("h1"),$et_main_content_first_row.find(".entry-content:first"),$("body.single-post"),!1),$et_sticky_image=($(".et_header_style_split"),$("#et-top-navigation"),$("#logo"),$(".et_pb_image_sticky")),$et_pb_counter_amount=$(".et_pb_counter_amount"),$et_pb_carousel=$(".et_pb_carousel"),$et_menu_selector=$(et_pb_custom.is_divi_theme_used?"ul.nav":".et_pb_fullwidth_menu ul.nav"),et_pb_ab_bounce_rate=1e3*et_pb_custom.ab_bounce_rate,et_pb_ab_logged_status={read_page:!1,read_goal:!1,view_goal:!1,click_goal:!1,con_goal:!1,con_short:!1};window.et_pb_slider_init=function($this_slider){var et_slider_settings={fade_speed:700,slide:$this_slider.hasClass("et_pb_gallery")?".et_pb_gallery_item":".et_pb_slide"};if($this_slider.hasClass("et_pb_slider_no_arrows")&&(et_slider_settings.use_arrows=!1),$this_slider.hasClass("et_pb_slider_no_pagination")&&(et_slider_settings.use_controls=!1),$this_slider.hasClass("et_slider_auto")){var et_slider_autospeed_class_value=/et_slider_speed_(\d+)/g;et_slider_settings.slideshow=!0;var et_slider_autospeed=et_slider_autospeed_class_value.exec($this_slider.attr("class"));et_slider_settings.slideshow_speed=null===et_slider_autospeed?10:et_slider_autospeed[1]}$this_slider.parent().hasClass("et_pb_video_slider")&&(et_slider_settings.controls_below=!0,et_slider_settings.append_controls_to=$this_slider.parent(),setTimeout(function(){$(".et_pb_preload").removeClass("et_pb_preload")},500)),$this_slider.hasClass("et_pb_slider_carousel")&&(et_slider_settings.use_carousel=!0),$this_slider.et_pb_simple_slider(et_slider_settings)};var et_parent_menu_longpress_start,$et_top_menu=$et_menu_selector,et_parent_menu_click=!0,is_frontend_builder=$("body").hasClass("et-fb"),et_menu_hover_triggered=!1;if($(".et_pb_ab_shop_conversion").length&&void 0!==et_pb_get_cookie_value("et_pb_ab_shop_log")&&""!==et_pb_get_cookie_value("et_pb_ab_shop_log")){var shop_log_data=et_pb_get_cookie_value("et_pb_ab_shop_log").split("_");page_id=shop_log_data[0],subject_id=shop_log_data[1],test_id=shop_log_data[2],et_pb_ab_update_stats("con_goal",page_id,subject_id,test_id),et_pb_set_cookie(0,"et_pb_ab_shop_log=true")}if($(".et_pb_ab_split_track").length&&$(".et_pb_ab_split_track").each(function(){var cookies_name="et_pb_ab_shortcode_track_"+$(this).data("test_id");if(void 0!==et_pb_get_cookie_value(cookies_name)&&""!==et_pb_get_cookie_value(cookies_name)){var track_data=et_pb_get_cookie_value(cookies_name).split("_");page_id=track_data[0],subject_id=track_data[1],test_id=track_data[2],et_pb_ab_update_stats("con_short",page_id,subject_id,test_id),et_pb_set_cookie(0,cookies_name+"=true")}}),et_pb_custom.is_ab_testing_active&&function(){var $et_pb_ab_goal=$(".et_pb_ab_goal"),et_ab_subject_id=et_pb_get_subject_id();if($.each(et_pb_ab_logged_status,function(key,value){var cookie_subject="click_goal"===key||"con_short"===key?"":et_ab_subject_id;et_pb_ab_logged_status[key]=et_pb_check_cookie_value("et_pb_ab_"+key+"_"+et_pb_custom.page_id+et_pb_custom.unique_test_id+cookie_subject,"true")}),et_pb_ab_logged_status.read_page||setTimeout(function(){et_pb_ab_update_stats("read_page")},et_pb_ab_bounce_rate),"on"!==et_pb_custom.is_shortcode_tracking||et_pb_ab_logged_status.con_short||et_pb_set_cookie(365,"et_pb_ab_shortcode_track_"+et_pb_custom.page_id+"="+et_pb_custom.page_id+"_"+et_pb_get_subject_id()+"_"+et_pb_custom.unique_test_id),$et_pb_ab_goal.length)if($et_pb_ab_goal.hasClass("et_pb_module")&&($et_pb_ab_goal.hasClass("et_pb_button")||$et_pb_ab_goal.find(".et_pb_button").length)){if(!$et_pb_ab_goal.hasClass("et_pb_contact_form_container")&&!$et_pb_ab_goal.hasClass("et_pb_newsletter")){var $goal_button=$et_pb_ab_goal.hasClass("et_pb_button")?$et_pb_ab_goal:$et_pb_ab_goal.find(".et_pb_button");if($et_pb_ab_goal.hasClass("et_pb_comments_module")){var comment_submitted=-1!==window.location.href.indexOf("#comment-"),log_conversion=et_pb_check_cookie_value("et_pb_ab_comment_log_"+et_pb_custom.page_id+et_pb_custom.unique_test_id,"true");comment_submitted&&log_conversion&&(et_pb_ab_update_stats("con_goal"),et_pb_set_cookie(0,"et_pb_ab_comment_log_"+et_pb_custom.page_id+et_pb_custom.unique_test_id+"=true"))}$goal_button.click(function(){!$et_pb_ab_goal.hasClass("et_pb_comments_module")||et_pb_ab_logged_status.con_goal?et_pb_maybe_log_event($et_pb_ab_goal,"click_goal"):et_pb_set_cookie(365,"et_pb_ab_comment_log_"+et_pb_custom.page_id+et_pb_custom.unique_test_id+"=true")})}}else $et_pb_ab_goal.click(function(){$et_pb_ab_goal.hasClass("et_pb_shop")&&!et_pb_ab_logged_status.con_goal&&et_pb_set_cookie(365,"et_pb_ab_shop_log="+et_pb_custom.page_id+"_"+et_pb_get_subject_id()+"_"+et_pb_custom.unique_test_id),et_pb_maybe_log_event($et_pb_ab_goal,"click_goal")})}(),$(".et_pb_row").length&&$(".et_pb_row").each(function(){var $this_row=$(this),row_class="";""===(row_class=et_get_column_types($this_row.find(">.et_pb_column")))||-1===row_class.indexOf("1-4")&&"_4col"!==row_class||$this_row.addClass("et_pb_row"+row_class),$this_row.find(".et_pb_row_inner").length&&$this_row.find(".et_pb_row_inner").each(function(){var $this_row_inner=$(this);""!==(row_class=et_get_column_types($this_row_inner.find(".et_pb_column")))&&-1!==row_class.indexOf("1-4")&&$this_row_inner.addClass("et_pb_row"+row_class)})}),$et_top_menu.find("li").hover(function(){$(this).closest("li.mega-menu").length&&!$(this).hasClass("mega-menu")||($(this).addClass("et-show-dropdown"),$(this).removeClass("et-hover").addClass("et-hover"),et_menu_hover_triggered=!0)},function(){var $this_el=$(this);$this_el.removeClass("et-show-dropdown").addClass("et-dropdown-removing"),et_menu_hover_triggered=!1,setTimeout(function(){$this_el.hasClass("et-show-dropdown")||$this_el.removeClass("et-hover").removeClass("et-dropdown-removing")},200)}),$et_top_menu.find(".menu-item-has-children > a").on("touchstart",function(){et_parent_menu_longpress_start=(new Date).getTime()}).on("touchend",function(){if((new Date).getTime()>=et_parent_menu_longpress_start+300)et_parent_menu_click=!0;else if(et_parent_menu_click=!1,!et_menu_hover_triggered){var $et_parent_menu=$(this).parent("li");$et_parent_menu.hasClass("et-hover")?$et_parent_menu.trigger("mouseleave"):$et_parent_menu.trigger("mouseenter")}et_parent_menu_longpress_start=0}).click(function(){return!!et_parent_menu_click}),$et_top_menu.find("li.mega-menu").each(function(){var $li_mega_menu=$(this),li_mega_menu_item_count=$li_mega_menu.children("ul").children("li").length;li_mega_menu_item_count<4&&$li_mega_menu.addClass("mega-menu-parent mega-menu-parent-"+li_mega_menu_item_count)}),$et_sticky_image.each(function(){var $this_el=$(this),$row=$this_el.closest(".et_pb_row"),$section=$row.closest(".et_pb_section"),$column=$this_el.closest(".et_pb_column");return!$row.is(":last-child")||(!$this_el.is(":last-child")||($section.hasClass("et_pb_section_sticky")||$section.addClass("et_pb_section_sticky"),$column.addClass("et_pb_row_sticky"),void(!$section.hasClass("et_pb_section_sticky_mobile")&&$column.is(":last-child")&&$section.addClass("et_pb_section_sticky_mobile"))))}),et_is_mobile_device&&($(".et_pb_section_video_bg").each(function(){var $this_el=$(this);$this_el.closest(".et_pb_preload").removeClass("et_pb_preload"),$this_el.remove()}),$("body").addClass("et_mobile_device"),et_is_ipad||$("body").addClass("et_mobile_device_not_ipad")),et_is_ie9&&$("body").addClass("et_ie9"),($et_pb_video_section.length||is_frontend_builder)&&(window.et_pb_video_section_init=function($et_pb_video_section){$et_pb_video_section.find("video").mediaelementplayer({pauseOtherPlayers:!1,success:function(mediaElement,domObject){mediaElement.addEventListener("loadeddata",function(){et_pb_resize_section_video_bg($(domObject)),et_pb_center_video($(domObject).closest(".mejs-video"))},!1),mediaElement.addEventListener("canplay",function(){$(domObject).closest(".et_pb_preload").removeClass("et_pb_preload")},!1)}})},et_pb_video_section_init($et_pb_video_section)),$et_post_gallery.length){var magnificPopup=$.magnificPopup.instance;$("body").on("swiperight",".mfp-container",function(){magnificPopup.prev()}),$("body").on("swipeleft",".mfp-container",function(){magnificPopup.next()}),$et_post_gallery.each(function(){$(this).magnificPopup({delegate:".et_pb_gallery_image a",type:"image",removalDelay:500,gallery:{enabled:!0,navigateByImgClick:!0},mainClass:"mfp-fade",zoom:{enabled:!et_pb_custom.is_builder_plugin_used,duration:500,opener:function(element){return element.find("img")}}})}),$et_post_gallery.find("a").unbind("click")}($et_lightbox_image.length||is_frontend_builder)&&($et_lightbox_image.unbind("click"),$et_lightbox_image.bind("click"),window.et_pb_image_lightbox_init=function($et_lightbox_image){$et_lightbox_image.magnificPopup({type:"image",removalDelay:500,mainClass:"mfp-fade",zoom:{enabled:!et_pb_custom.is_builder_plugin_used,duration:500,opener:function(element){return element.find("img")}}})},et_pb_image_lightbox_init($et_lightbox_image)),($et_pb_slider.length||is_frontend_builder)&&$et_pb_slider.each(function(){$this_slider=$(this),et_pb_slider_init($this_slider)}),(($et_pb_carousel=$(".et_pb_carousel")).length||is_frontend_builder)&&$et_pb_carousel.each(function(){var et_carousel_settings={slide_duration:1e3};$(this).et_pb_simple_carousel(et_carousel_settings)}),($et_pb_fullwidth_portfolio.length||is_frontend_builder)&&(window.et_fullwidth_portfolio_init=function($the_portfolio){var $portfolio_items=$the_portfolio.find(".et_pb_portfolio_items");$portfolio_items.data("items",$portfolio_items.find(".et_pb_portfolio_item").toArray()),$the_portfolio.data("columns_setting_up",!1),$the_portfolio.hasClass("et_pb_fullwidth_portfolio_carousel")?($portfolio_items.prepend('<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#"><span>'+et_pb_custom.previous+'</span></a><a class="et-pb-arrow-next" href="#"><span>'+et_pb_custom.next+"</span></a></div>"),set_fullwidth_portfolio_columns($the_portfolio,!0),et_carousel_auto_rotate($the_portfolio),$the_portfolio.on("swiperight",function(){$(this).find(".et-pb-arrow-prev").click()}),$the_portfolio.on("swipeleft",function(){$(this).find(".et-pb-arrow-next").click()}),$the_portfolio.hover(function(){$(this).addClass("et_carousel_hovered"),void 0!==$(this).data("et_carousel_timer")&&clearInterval($(this).data("et_carousel_timer"))},function(){$(this).removeClass("et_carousel_hovered"),et_carousel_auto_rotate($(this))}),$the_portfolio.data("carouseling",!1),$the_portfolio.on("click",".et-pb-slider-arrows a",function(e){return fullwidth_portfolio_carousel_slide($(this)),e.preventDefault(),!1})):set_fullwidth_portfolio_columns($the_portfolio,!1)},$et_pb_fullwidth_portfolio.each(function(){et_fullwidth_portfolio_init($(this))})),window.et_pb_audio_module_init=function($audio_container){var $this_player=$audio_container,$time_rail=$this_player.find(".mejs-time-rail"),$time_slider=$this_player.find(".mejs-time-slider");$time_rail.removeAttr("style"),$time_slider.removeAttr("style");var new_time_rail_width,$count_timer=$this_player.find("div.mejs-currenttime-container"),$count_timer_width_container=$this_player.find(".mejs-duration-container").length?$this_player.find(".mejs-duration-container"):$this_player.find(".mejs-currenttime-container"),player_width=$this_player.width(),controls_play_width=$this_player.find(".mejs-play").outerWidth(),time_width=$count_timer_width_container.outerWidth(),volume_icon_width=$this_player.find(".mejs-volume-button").outerWidth(),volume_bar_width=$this_player.find(".mejs-horizontal-volume-slider").outerWidth();$count_timer.addClass("custom"),$this_player.find(".mejs-controls div.mejs-duration-container").replaceWith($count_timer),0<(new_time_rail_width=player_width-(controls_play_width+time_width+volume_icon_width+volume_bar_width+65))&&($time_rail.attr("style","min-width: "+new_time_rail_width+"px;"),$time_slider.attr("style","min-width: "+new_time_rail_width+"px;"))},$(".et_pb_section_video").length&&(window._wpmejsSettings.pauseOtherPlayers=!1),($et_pb_filterable_portfolio.length||is_frontend_builder)&&(window.et_pb_filterable_portfolio_init=function($selector){void 0!==$selector?set_filterable_portfolio_init($selector):$et_pb_filterable_portfolio.each(function(){set_filterable_portfolio_init($(this))})},window.set_filterable_portfolio_init=function($the_portfolio){var $the_portfolio_items=$the_portfolio.find(".et_pb_portfolio_items"),all_portfolio_items=($the_portfolio.data("rtl"),$the_portfolio_items.clone());$the_portfolio.show(),$the_portfolio.find(".et_pb_portfolio_item").addClass("active"),$the_portfolio.css("display","block"),set_filterable_grid_items($the_portfolio),$the_portfolio.on("click",".et_pb_portfolio_filter a",function(e){e.preventDefault();var category_slug=$(this).data("category-slug"),$the_portfolio=$(this).parents(".et_pb_filterable_portfolio"),$the_portfolio_items=$the_portfolio.find(".et_pb_portfolio_items");"all"==category_slug?($the_portfolio.find(".et_pb_portfolio_filter a").removeClass("active"),$the_portfolio.find(".et_pb_portfolio_filter_all a").addClass("active"),$the_portfolio_items.empty(),$the_portfolio_items.append(all_portfolio_items.find(".et_pb_portfolio_item").clone()),$the_portfolio.find(".et_pb_portfolio_item").addClass("active")):($the_portfolio.find(".et_pb_portfolio_filter_all").removeClass("active"),$the_portfolio.find(".et_pb_portfolio_filter a").removeClass("active"),$the_portfolio.find(".et_pb_portfolio_filter_all a").removeClass("active"),$(this).addClass("active"),$the_portfolio_items.empty(),$the_portfolio_items.append(all_portfolio_items.find(".et_pb_portfolio_item.project_category_"+$(this).data("category-slug")).clone()),$the_portfolio_items.find(".et_pb_portfolio_item").removeClass("active"),$the_portfolio_items.find(".et_pb_portfolio_item.project_category_"+$(this).data("category-slug")).addClass("active").removeClass("inactive")),set_filterable_grid_items($the_portfolio),setTimeout(function(){set_filterable_portfolio_hash($the_portfolio)},500),$the_portfolio.find(".et_pb_portfolio_item").removeClass("first_in_row last_in_row"),et_pb_set_responsive_grid($the_portfolio,".et_pb_portfolio_item:visible")}),$the_portfolio.on("click",".et_pb_portofolio_pagination a",function(e){e.preventDefault();var to_page=$(this).data("page"),$the_portfolio=$(this).parents(".et_pb_filterable_portfolio");$the_portfolio.find(".et_pb_portfolio_items");et_pb_smooth_scroll($the_portfolio,!1,800),$(this).hasClass("page-prev")?to_page=parseInt($(this).parents("ul").find("a.active").data("page"))-1:$(this).hasClass("page-next")&&(to_page=parseInt($(this).parents("ul").find("a.active").data("page"))+1),$(this).parents("ul").find("a").removeClass("active"),$(this).parents("ul").find("a.page-"+to_page).addClass("active");var current_index=$(this).parents("ul").find("a.page-"+to_page).parent().index(),total_pages=$(this).parents("ul").find("li.page").length;$(this).parent().nextUntil(".page-"+(current_index+3)).show(),$(this).parent().prevUntil(".page-"+(current_index-3)).show(),$(this).parents("ul").find("li.page").each(function(i){$(this).hasClass("prev")||$(this).hasClass("next")||(i<current_index-3?$(this).hide():i>current_index+1?$(this).hide():$(this).show(),total_pages-current_index<=2&&total_pages-i<=5?$(this).show():current_index<=3&&i<=4&&$(this).show())}),to_page>1?$(this).parents("ul").find("li.prev").show():$(this).parents("ul").find("li.prev").hide(),$(this).parents("ul").find("a.active").hasClass("last-page")?$(this).parents("ul").find("li.next").hide():$(this).parents("ul").find("li.next").show(),$the_portfolio.find(".et_pb_portfolio_item").hide(),$the_portfolio.find(".et_pb_portfolio_item").filter(function(index){return $(this).data("page")===to_page}).show(),window.et_pb_set_responsive_grid($the_portfolio.find(".et_pb_portfolio_items"),".et_pb_portfolio_item"),setTimeout(function(){set_filterable_portfolio_hash($the_portfolio)},500),$the_portfolio.find(".et_pb_portfolio_item").removeClass("first_in_row last_in_row"),et_pb_set_responsive_grid($the_portfolio,".et_pb_portfolio_item:visible")}),$(this).on("et_hashchange",function(event){var params=event.params;($the_portfolio=$("#"+event.target.id)).find('.et_pb_portfolio_filter a[data-category-slug="'+params[0]+'"]').hasClass("active")||$the_portfolio.find('.et_pb_portfolio_filter a[data-category-slug="'+params[0]+'"]').click(),params[1]&&setTimeout(function(){$the_portfolio.find(".et_pb_portofolio_pagination a.page-"+params[1]).hasClass("active")||$the_portfolio.find(".et_pb_portofolio_pagination a.page-"+params[1]).addClass("active").click()},300)})},window.et_load_event_fired?et_pb_filterable_portfolio_init():$(window).load(function(){et_pb_filterable_portfolio_init()})),($et_pb_gallery.length||is_frontend_builder)&&(window.set_gallery_grid_items=function($the_gallery){var $the_gallery_items_container=$the_gallery.find(".et_pb_gallery_items"),$the_gallery_items=$the_gallery_items_container.find(".et_pb_gallery_item"),total_grid_items=$the_gallery_items.length,posts_number_original=parseInt($the_gallery_items_container.attr("data-per_page")),posts_number=isNaN(posts_number_original)||0===posts_number_original?4:posts_number_original,pages=Math.ceil(total_grid_items/posts_number);set_gallery_grid_pages($the_gallery,pages);var total_grid_items=0,_page=1;$the_gallery_items.data("page",""),$the_gallery_items.each(function(i){total_grid_items++,0===parseInt(total_grid_items%posts_number)?($(this).data("page",_page),_page++):$(this).data("page",_page)});$the_gallery_items.filter(function(){return 1==$(this).data("page")}).show();$the_gallery_items.filter(function(){return 1!=$(this).data("page")}).hide()},window.set_gallery_grid_pages=function($the_gallery,pages){if($pagination=$the_gallery.find(".et_pb_gallery_pagination"),$pagination.length)if($pagination.html("<ul></ul>"),pages<=1)$pagination.hide();else{$pagination_list=$pagination.children("ul"),$pagination_list.append('<li class="prev" style="display:none;"><a href="#" data-page="prev" class="page-prev">'+et_pb_custom.prev+"</a></li>");for(var page=1;page<=pages;page++){var first_page_class=1===page?" active":"",last_page_class=page===pages?" last-page":"",hidden_page_class=page>=5?' style="display:none;"':"";$pagination_list.append("<li"+hidden_page_class+' class="page page-'+page+'"><a href="#" data-page="'+page+'" class="page-'+page+first_page_class+last_page_class+'">'+page+"</a></li>")}$pagination_list.append('<li class="next"><a href="#" data-page="next" class="page-next">'+et_pb_custom.next+"</a></li>")}},window.set_gallery_hash=function($the_gallery){if($the_gallery.attr("id")){var this_gallery_state=[];this_gallery_state.push($the_gallery.attr("id")),$the_gallery.find(".et_pb_gallery_pagination a.active").length?this_gallery_state.push($the_gallery.find(".et_pb_gallery_pagination a.active").data("page")):this_gallery_state.push(1),et_set_hash(this_gallery_state=this_gallery_state.join(et_hash_module_param_seperator))}},window.et_pb_gallery_init=function($the_gallery){$the_gallery.hasClass("et_pb_gallery_grid")&&($the_gallery.show(),set_gallery_grid_items($the_gallery),$the_gallery.on("et_hashchange",function(event){var params=event.params;$the_gallery=$("#"+event.target.id),(page_to=params[0])&&($the_gallery.find(".et_pb_gallery_pagination a.page-"+page_to).hasClass("active")||$the_gallery.find(".et_pb_gallery_pagination a.page-"+page_to).addClass("active").click())}))},$et_pb_gallery.each(function(){var $the_gallery=$(this);et_pb_gallery_init($the_gallery)}),$et_pb_gallery.data("paginating",!1),window.et_pb_gallery_pagination_nav=function($the_gallery){$the_gallery.on("click",".et_pb_gallery_pagination a",function(e){e.preventDefault();var to_page=$(this).data("page"),$the_gallery=$(this).parents(".et_pb_gallery"),$the_gallery_items_container=$the_gallery.find(".et_pb_gallery_items"),$the_gallery_items=$the_gallery_items_container.find(".et_pb_gallery_item");if(!$the_gallery.data("paginating")){$the_gallery.data("paginating",!0),$(this).hasClass("page-prev")?to_page=parseInt($(this).parents("ul").find("a.active").data("page"))-1:$(this).hasClass("page-next")&&(to_page=parseInt($(this).parents("ul").find("a.active").data("page"))+1),$(this).parents("ul").find("a").removeClass("active"),$(this).parents("ul").find("a.page-"+to_page).addClass("active");var current_index=$(this).parents("ul").find("a.page-"+to_page).parent().index(),total_pages=$(this).parents("ul").find("li.page").length;$(this).parent().nextUntil(".page-"+(current_index+3)).show(),$(this).parent().prevUntil(".page-"+(current_index-3)).show(),$(this).parents("ul").find("li.page").each(function(i){$(this).hasClass("prev")||$(this).hasClass("next")||(i<current_index-3?$(this).hide():i>current_index+1?$(this).hide():$(this).show(),total_pages-current_index<=2&&total_pages-i<=5?$(this).show():current_index<=3&&i<=4&&$(this).show())}),to_page>1?$(this).parents("ul").find("li.prev").show():$(this).parents("ul").find("li.prev").hide(),$(this).parents("ul").find("a.active").hasClass("last-page")?$(this).parents("ul").find("li.next").hide():$(this).parents("ul").find("li.next").show(),$the_gallery_items.hide();$the_gallery_items.filter(function(index){return $(this).data("page")===to_page}).show();$the_gallery.data("paginating",!1),window.et_pb_set_responsive_grid($the_gallery_items_container,".et_pb_gallery_item"),setTimeout(function(){set_gallery_hash($the_gallery)},100),$("html, body").animate({scrollTop:$the_gallery.offset().top-200},200)}})},et_pb_gallery_pagination_nav($et_pb_gallery),is_frontend_builder&&et_pb_gallery_pagination_nav($("#et-fb-app"))),$et_pb_counter_amount.length&&$et_pb_counter_amount.each(function(){window.et_bar_counters_init($(this))}),window.et_countdown_timer=function(timer){var seconds_left=parseInt(timer.attr("data-end-timestamp"))-(new Date).getTime()/1e3;days=parseInt(seconds_left/86400),days=days>0?days:0,seconds_left%=86400,hours=parseInt(seconds_left/3600),hours=hours>0?hours:0,seconds_left%=3600,minutes=parseInt(seconds_left/60),minutes=minutes>0?minutes:0,seconds=parseInt(seconds_left%60),seconds=seconds>0?seconds:0;var $days_section=timer.find(".days > .value").parent(".section"),$hours_section=timer.find(".hours > .value").parent(".section"),$minutes_section=timer.find(".minutes > .value").parent(".section"),$seconds_section=timer.find(".seconds > .value").parent(".section");0==days?$days_section.hasClass("zero")||timer.find(".days > .value").html("000").parent(".section").addClass("zero").next().addClass("zero"):(days_slice=days.toString().length>=3?days.toString().length:3,timer.find(".days > .value").html(("000"+days).slice(-days_slice)),$days_section.hasClass("zero")&&$days_section.removeClass("zero").next().removeClass("zero")),0==days&&0==hours?$hours_section.hasClass("zero")||timer.find(".hours > .value").html("00").parent(".section").addClass("zero").next().addClass("zero"):(timer.find(".hours > .value").html(("0"+hours).slice(-2)),$hours_section.hasClass("zero")&&$hours_section.removeClass("zero").next().removeClass("zero")),0==days&&0==hours&&0==minutes?$minutes_section.hasClass("zero")||timer.find(".minutes > .value").html("00").parent(".section").addClass("zero").next().addClass("zero"):(timer.find(".minutes > .value").html(("0"+minutes).slice(-2)),$minutes_section.hasClass("zero")&&$minutes_section.removeClass("zero").next().removeClass("zero")),0==days&&0==hours&&0==minutes&&0==seconds?$seconds_section.hasClass("zero")||timer.find(".seconds > .value").html("00").parent(".section").addClass("zero"):(timer.find(".seconds > .value").html(("0"+seconds).slice(-2)),$seconds_section.hasClass("zero")&&$seconds_section.removeClass("zero").next().removeClass("zero"))},window.et_countdown_timer_labels=function(timer){timer.closest(".et_pb_column_3_8").length||timer.closest(".et_pb_column_1_4").length||timer.children(".et_pb_countdown_timer_container").width()<=400?(timer.find(".days .label").html(timer.find(".days").data("short")),timer.find(".hours .label").html(timer.find(".hours").data("short")),timer.find(".minutes .label").html(timer.find(".minutes").data("short")),timer.find(".seconds .label").html(timer.find(".seconds").data("short"))):(timer.find(".days .label").html(timer.find(".days").data("full")),timer.find(".hours .label").html(timer.find(".hours").data("full")),timer.find(".minutes .label").html(timer.find(".minutes").data("full")),timer.find(".seconds .label").html(timer.find(".seconds").data("full")))},($et_pb_countdown_timer.length||is_frontend_builder)&&(window.et_pb_countdown_timer_init=function($et_pb_countdown_timer){$et_pb_countdown_timer.each(function(){var timer=$(this);et_countdown_timer_labels(timer),et_countdown_timer(timer),setInterval(function(){et_countdown_timer(timer)},1e3)})},et_pb_countdown_timer_init($et_pb_countdown_timer)),($et_pb_tabs.length||is_frontend_builder)&&(window.et_pb_tabs_init=function($et_pb_tabs){var $et_pb_tabs_li=$et_pb_tabs.find(".et_pb_tabs_controls li");$et_pb_tabs.et_pb_simple_slider({use_controls:!1,use_arrows:!1,slide:".et_pb_all_tabs > div",tabs_animation:!0}).on("et_hashchange",function(event){var params=event.params,$the_tabs=$("#"+event.target.id),active_tab=params[0];$the_tabs.find(".et_pb_tabs_controls li").eq(active_tab).hasClass("et_pb_tab_active")||$the_tabs.find(".et_pb_tabs_controls li").eq(active_tab).click()}),$et_pb_tabs_li.click(function(){var $this_el=$(this),$tabs_container=$this_el.closest(".et_pb_tabs").data("et_pb_simple_slider");if($tabs_container.et_animation_running)return!1;if($this_el.addClass("et_pb_tab_active").siblings().removeClass("et_pb_tab_active"),$tabs_container.data("et_pb_simple_slider").et_slider_move_to($this_el.index()),$this_el.closest(".et_pb_tabs").attr("id")){var tab_state=[];tab_state.push($this_el.closest(".et_pb_tabs").attr("id")),tab_state.push($this_el.index()),et_set_hash(tab_state=tab_state.join(et_hash_module_param_seperator))}return!1}),window.et_pb_set_tabs_height()},window.et_pb_tabs_init($et_pb_tabs)),($et_pb_map.length||is_frontend_builder)&&(window.et_pb_map_init=function($this_map_container){if("undefined"!=typeof google){var infowindow_active,$this_map=$this_map_container.children(".et_pb_map"),this_map_grayscale=$this_map_container.attr("data-grayscale")||0,is_draggable=et_is_mobile_device&&"off"!==$this_map.data("mobile-dragging")||!et_is_mobile_device;0!==this_map_grayscale&&(this_map_grayscale="-"+this_map_grayscale.toString()),$this_map_container.data("map",new google.maps.Map($this_map[0],{zoom:parseInt($this_map.attr("data-zoom")),center:new google.maps.LatLng(parseFloat($this_map.attr("data-center-lat")),parseFloat($this_map.attr("data-center-lng"))),mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:"on"==$this_map.attr("data-mouse-wheel"),draggable:is_draggable,panControlOptions:{position:$this_map_container.is(".et_beneath_transparent_nav")?google.maps.ControlPosition.LEFT_BOTTOM:google.maps.ControlPosition.LEFT_TOP},zoomControlOptions:{position:$this_map_container.is(".et_beneath_transparent_nav")?google.maps.ControlPosition.LEFT_BOTTOM:google.maps.ControlPosition.LEFT_TOP},styles:[{stylers:[{saturation:parseInt(this_map_grayscale)}]}]})),$this_map_container.find(".et_pb_map_pin").each(function(){var $this_marker=$(this),marker=new google.maps.Marker({position:new google.maps.LatLng(parseFloat($this_marker.attr("data-lat")),parseFloat($this_marker.attr("data-lng"))),map:$this_map_container.data("map"),title:$this_marker.attr("data-title"),icon:{url:et_pb_custom.builder_images_uri+"/marker.png",size:new google.maps.Size(46,43),anchor:new google.maps.Point(16,43)},shape:{coord:[1,1,46,43],type:"rect"},anchorPoint:new google.maps.Point(0,-45)});if($this_marker.find(".infowindow").length){var infowindow=new google.maps.InfoWindow({content:$this_marker.html()});google.maps.event.addListener($this_map_container.data("map"),"click",function(){infowindow.close()}),google.maps.event.addListener(marker,"click",function(){infowindow_active&&infowindow_active.close(),infowindow_active=infowindow,infowindow.open($this_map_container.data("map"),marker)})}})}},window.et_load_event_fired?et_pb_init_maps():"undefined"!=typeof google&&google.maps.event.addDomListener(window,"load",function(){et_pb_init_maps()})),$et_pb_shop.length&&$et_pb_shop.each(function(){var $this_el=$(this),icon=$this_el.data("icon")||"";if(""===icon)return!0;$this_el.find(".et_overlay").attr("data-icon",icon).addClass("et_pb_inline_icon")}),($et_pb_circle_counter.length||is_frontend_builder||$(".et_pb_ajax_pagination_container").length>0)&&(window.et_pb_circle_counter_init=function($the_counter,animate){0!==$the_counter.width()&&$the_counter.easyPieChart({animate:{duration:1800,enabled:!0},size:0!==$the_counter.width()?$the_counter.width():10,barColor:$the_counter.data("bar-bg-color"),trackColor:$the_counter.data("color")||"#000000",trackAlpha:$the_counter.data("alpha")||"0.1",scaleColor:!1,lineWidth:5,onStart:function(){$(this.el).find(".percent p").css({visibility:"visible"})},onStep:function(from,to,percent){$(this.el).find(".percent-value").text(Math.round(parseInt(percent)))},onStop:function(from,to){$(this.el).find(".percent-value").text($(this.el).data("number-value"))}})},window.et_pb_reinit_circle_counters=function($et_pb_circle_counter){$et_pb_circle_counter.each(function(){var $the_counter=$(this);window.et_pb_circle_counter_init($the_counter,!1),$the_counter.on("containerWidthChanged",function(event){($the_counter=$(event.target)).find("canvas").remove(),$the_counter.removeData("easyPieChart"),window.et_pb_circle_counter_init($the_counter,!0)})})},window.et_pb_reinit_circle_counters($et_pb_circle_counter)),($et_pb_number_counter.length||is_frontend_builder||$(".et_pb_ajax_pagination_container").length>0)&&(window.et_pb_reinit_number_counters=function($et_pb_number_counter){function et_format_number(number_value,separator){return number_value.toString().replace(/\B(?=(\d{3})+(?!\d))/g,separator)}$.fn.fitText&&$et_pb_number_counter.find(".percent p").fitText(.3),$et_pb_number_counter.each(function(){var $this_counter=$(this),separator=$this_counter.data("number-separator");$this_counter.easyPieChart({animate:{duration:1800,enabled:!0},size:0,trackColor:!1,scaleColor:!1,lineWidth:0,onStart:function(){$(this.el).addClass("active")},onStep:function(from,to,percent){percent!=to&&$(this.el).find(".percent-value").text(et_format_number(Math.round(parseInt(percent)),separator))},onStop:function(from,to){$(this.el).find(".percent-value").text(et_format_number($(this.el).data("number-value"),separator))}})})},window.et_pb_reinit_number_counters($et_pb_number_counter)),window.et_apply_parallax=function(){if($(this).length&&void 0!==$(this)&&void 0!==$(this).offset()){var main_position,$this=$(this),element_top=$this.offset().top;main_position="translate(0, "+.3*($et_window.scrollTop()+$et_window.height()-element_top)+"px)",$this.children(".et_parallax_bg").css({"-webkit-transform":main_position,"-moz-transform":main_position,"-ms-transform":main_position,transform:main_position})}},window.et_parallax_set_height=function(){var bg_height,$this=$(this);bg_height=.3*$et_window.height()+$this.innerHeight(),$this.find(".et_parallax_bg").css({height:bg_height})},$("body").on("click",".et_pb_toggle_title, .et_fb_toggle_overlay",function(){var $accordion_active_toggle,module_offset,$module=$(this).closest(".et_pb_toggle"),$section=$module.parents(".et_pb_section"),$content=$module.find(".et_pb_toggle_content"),$accordion=$module.closest(".et_pb_accordion"),is_accordion=$accordion.length,is_accordion_toggling=$accordion.hasClass("et_pb_accordion_toggling"),window_offset_top=$(window).scrollTop(),fixed_header_height=0,initial_toggle_state=$module.hasClass("et_pb_toggle_close")?"closed":"opened";if(is_accordion){if($module.hasClass("et_pb_toggle_open")||is_accordion_toggling)return!1;$accordion.addClass("et_pb_accordion_toggling"),$accordion_active_toggle=$module.siblings(".et_pb_toggle_open")}$content.is(":animated")||($("body").hasClass("safari")?$content.fadeToggle(700,function(){et_toggle_animation_callback(initial_toggle_state,$module,$section)}):$content.slideToggle(700,function(){et_toggle_animation_callback(initial_toggle_state,$module,$section)}),is_accordion&&$accordion_active_toggle.find(".et_pb_toggle_content").slideToggle(700,function(){$accordion_active_toggle.removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close"),$accordion.removeClass("et_pb_accordion_toggling"),module_offset=$module.offset(),$("#wpadminbar").length&&(fixed_header_height+=$("#wpadminbar").height()),$("#top-header").length&&(fixed_header_height+=$("#top-header").height()),$("#main-header").length&&!window.et_is_vertical_nav&&(fixed_header_height+=$("#main-header").height()),window_offset_top+fixed_header_height>module_offset.top&&$("html, body").animate({scrollTop:module_offset.top-fixed_header_height-50})}))});var $et_contact_container=$(".et_pb_contact_form_container");$et_contact_container.length&&$et_contact_container.each(function(){var $this_contact_container=$(this),$et_contact_form=$this_contact_container.find("form"),et_email_reg=($this_contact_container.find("input.et_pb_contact_submit"),$et_contact_form.find("input[type=text], .et_pb_checkbox_handle, input[type=radio]:checked, textarea, .et_pb_contact_select"),/^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$/),redirect_url=void 0!==$this_contact_container.data("redirect_url")?$this_contact_container.data("redirect_url"):"";$et_contact_form.find("input[type=checkbox]").on("change",function(){var $checkbox=$(this),$checkbox_field=$checkbox.siblings("input[type=text]:first"),is_checked=$checkbox.prop("checked");$checkbox_field.val(is_checked?$checkbox_field.data("checked"):$checkbox_field.data("unchecked"))}),$et_contact_form.on("submit",function(event){var $this_contact_form=$(this),$this_inputs=$this_contact_form.find('input[type=text], .et_pb_checkbox_handle, .et_pb_contact_field[data-type="radio"], textarea, select'),this_et_contact_error=!1,$et_contact_message=$this_contact_form.closest(".et_pb_contact_form_container").find(".et-pb-contact-message"),et_message="",et_fields_message="",$this_contact_container=$this_contact_form.closest(".et_pb_contact_form_container"),$captcha_field=$this_contact_form.find(".et_pb_contact_captcha"),form_unique_id=void 0!==$this_contact_container.data("form_unique_num")?$this_contact_container.data("form_unique_num"):0,inputs_list=[];et_message="<ul>",$this_inputs.removeClass("et_contact_error");var hidden_fields=[];if($this_inputs.each(function(){var $this_el=$(this),$this_wrapper=!1;"checkbox"===$this_el.data("field_type")&&($this_wrapper=$this_el.parents(".et_pb_contact_field")).removeClass("et_contact_error"),"radio"===$this_el.data("type")&&($this_wrapper=($this_el=$this_el.find('input[type="radio"]')).parents(".et_pb_contact_field"));var default_value,this_id=$this_el.attr("id"),this_val=$this_el.val(),this_label=$this_el.siblings("label:first").text(),field_type=void 0!==$this_el.data("field_type")?$this_el.data("field_type"):"text",required_mark=void 0!==$this_el.data("required_mark")?$this_el.data("required_mark"):"not_required",original_id=void 0!==$this_el.data("original_id")?$this_el.data("original_id"):"",unchecked=!1;if(this_label=this_label.replace(/"/g,"""),"radio"===field_type){if(0!==$this_wrapper.find('input[type="radio"]').length){field_type="radio";var $firstRadio=$this_wrapper.find('input[type="radio"]:first');required_mark=void 0!==$firstRadio.data("required_mark")?$firstRadio.data("required_mark"):"not_required",this_val="",$this_wrapper.find('input[type="radio"]:checked')&&(this_val=$this_wrapper.find('input[type="radio"]:checked').val())}this_label=$this_wrapper.find(".et_pb_contact_form_label").text(),this_id=$this_wrapper.find('input[type="radio"]:first').attr("name"),original_id=$this_wrapper.attr("data-id"),0===$this_wrapper.find('input[type="radio"]:checked').length&&(unchecked=!0)}if("checkbox"===field_type){if(this_val="",0!==$this_wrapper.find('input[type="checkbox"]').length){field_type="checkbox";var $checkboxHandle=$this_wrapper.find(".et_pb_checkbox_handle");required_mark=void 0!==$checkboxHandle.data("required_mark")?$checkboxHandle.data("required_mark"):"not_required",$this_wrapper.find('input[type="checked"]:checked')&&(this_val=[],$this_wrapper.find('input[type="checkbox"]:checked').each(function(){this_val.push($(this).val())}),this_val=this_val.join(", "))}$this_wrapper.find(".et_pb_checkbox_handle").val(this_val),this_label=$this_wrapper.find(".et_pb_contact_form_label").text(),this_id=$this_wrapper.find(".et_pb_checkbox_handle").attr("name"),original_id=$this_wrapper.attr("data-id"),0===$this_wrapper.find('input[type="checkbox"]:checked').length&&(unchecked=!0)}if($this_el.is(":visible")||"hidden"===$this_el.attr("type")||"radio"===$this_el.attr("type"))if("hidden"!==$this_el.attr("type")&&"radio"!==$this_el.attr("type")||$this_el.parents(".et_pb_contact_field").is(":visible")){if(void 0!==this_id&&inputs_list.push({field_id:this_id,original_id:original_id,required_mark:required_mark,field_type:field_type,field_label:this_label}),"required"!==required_mark||""!==this_val&&!0!==unchecked||(!1===$this_wrapper?$this_el.addClass("et_contact_error"):$this_wrapper.addClass("et_contact_error"),this_et_contact_error=!0,""===(default_value=this_label)&&(default_value=et_pb_custom.captcha),et_fields_message+="<li>"+default_value+"</li>"),"email"===field_type){var processed_email=this_val.trim().toLowerCase(),is_valid_email=et_email_reg.test(processed_email);""===processed_email||this_label===processed_email||is_valid_email||($this_el.addClass("et_contact_error"),this_et_contact_error=!0,is_valid_email||(et_message+="<li>"+et_pb_custom.invalid+"</li>"))}}else hidden_fields.push(original_id);else hidden_fields.push(original_id)}),$captcha_field.length&&""!==$captcha_field.val()){var first_digit=parseInt($captcha_field.data("first_digit")),second_digit=parseInt($captcha_field.data("second_digit"));parseInt($captcha_field.val())!==first_digit+second_digit&&(et_message+="<li>"+et_pb_custom.wrong_captcha+"</li>",this_et_contact_error=!0,first_digit=Math.floor(15*Math.random()+1),second_digit=Math.floor(15*Math.random()+1),$captcha_field.data("first_digit",first_digit),$captcha_field.data("second_digit",second_digit),$this_contact_form.find(".et_pb_contact_captcha_question").empty().append(first_digit+" + "+second_digit))}if(!this_et_contact_error){var $href=$(this).attr("action"),form_data=$(this).serializeArray();form_data.push({name:"et_pb_contact_email_fields_"+form_unique_id,value:JSON.stringify(inputs_list)}),hidden_fields.length>0&&form_data.push({name:"et_pb_contact_email_hidden_fields_"+form_unique_id,value:JSON.stringify(hidden_fields)}),$this_contact_container.removeClass("et_animated").removeAttr("style").fadeTo("fast",.2,function(){$this_contact_container.load($href+" #"+$this_contact_form.closest(".et_pb_contact_form_container").attr("id")+"> *",form_data,function(responseText){$(responseText).find(".et_pb_contact_error_text").length||(et_pb_maybe_log_event($this_contact_container,"con_goal"),""!==redirect_url&&(window.location.href=redirect_url)),$this_contact_container.fadeTo("fast",1)})})}et_message+="</ul>",""!==et_fields_message&&("<ul></ul>"!=et_message&&(et_message='<p class="et_normal_padding">'+et_pb_custom.contact_error_message+"</p>"+et_message),et_fields_message="<ul>"+et_fields_message+"</ul>",et_fields_message="<p>"+et_pb_custom.fill_message+"</p>"+et_fields_message,et_message=et_fields_message+et_message),"<ul></ul>"!=et_message&&($et_contact_message.html(et_message),$this_contact_container.parents(".et_pb_section_parallax").length&&$this_contact_container.parents(".et_pb_section_parallax").each(function(){!$(this).children(".et_parallax_bg").hasClass("et_pb_parallax_css")&&$et_window.trigger("resize")})),event.preventDefault()})}),window.et_pb_play_overlayed_video=function($play_video){var video_iframe_src,video_iframe_src_splitted,video_iframe_src_autoplay,$this=$play_video,$video_image=$this.closest(".et_pb_video_overlay"),$wrapper=$this.closest(".et_pb_video, .et_main_video_container, .et_pb_video_wrap"),$video_iframe=$wrapper.find("iframe");if(!!$video_iframe.length){if(video_iframe_src=$video_iframe.attr("src"),video_iframe_src_splitted=video_iframe_src.split("?"),-1!==video_iframe_src.indexOf("autoplay="))return;video_iframe_src_autoplay=void 0!==video_iframe_src_splitted[1]?video_iframe_src_splitted[0]+"?autoplay=1&"+video_iframe_src_splitted[1]:video_iframe_src_splitted[0]+"?autoplay=1",$video_iframe.attr({src:video_iframe_src_autoplay})}else $wrapper.find("video").get(0).play();$video_image.fadeTo(500,0,function(){$(this).css("display","none")})},$(".et_pb_post .et_pb_video_overlay, .et_pb_video .et_pb_video_overlay, .et_pb_video_wrap .et_pb_video_overlay").click(function(){var $this=$(this);return et_pb_play_overlayed_video($this),!1}),window.et_pb_resize_section_video_bg=function($video){$element=void 0!==$video?$video.closest(".et_pb_section_video_bg"):$(".et_pb_section_video_bg"),$element.each(function(){var $this_el=$(this);is_frontend_builder&&($this_el.removeAttr("data-ratio"),$this_el.find("video").removeAttr("style"));var width,height,el_ratio=parseFloat($this_el.attr("data-ratio")),el_width=parseInt($this_el.find("video").attr("width")||$this_el.find("video").width()),el_height=parseInt($this_el.find("video").attr("height")||$this_el.find("video").height()),ratio=isNaN(el_ratio)?el_width/el_height:el_ratio,$video_elements=$this_el.find(".mejs-video, video, object").css("margin",0),$container=$this_el.closest(".et_pb_section_video").length?$this_el.closest(".et_pb_section_video"):$this_el.closest(".et_pb_slides"),body_width=$container.innerWidth(),container_height=$container.innerHeight();void 0!==$this_el.attr("data-ratio")||isNaN(ratio)||$this_el.attr("data-ratio",ratio),body_width/container_height<ratio?(width=container_height*ratio,height=container_height):(width=body_width,height=body_width/ratio),$video_elements.width(width).height(height),is_frontend_builder&&setTimeout(function(){$video_elements.width(width).height(height)},0)})},window.et_pb_center_video=function($video){$element=void 0!==$video?$video:$(".et_pb_section_video_bg .mejs-video"),$element.length&&$element.each(function(){var $this_el=$(this);if(et_pb_adjust_video_margin($this_el),is_frontend_builder&&setTimeout(function(){et_pb_adjust_video_margin($this_el)},0),void 0!==$video&&$video.closest(".et_pb_slider").length&&!$video.closest(".et_pb_first_video").length)return!1})},window.et_pb_adjust_video_margin=function($el){var $video_width_negative=0-$el.width()/2;$el.css("margin-left",$video_width_negative)},window.et_fix_slider_height=function($slider){var $this_slider=$slider||$et_pb_slider;$this_slider&&$this_slider.length&&$this_slider.each(function(){var $slide_section=$(this).parent(".et_pb_section"),$slides=$(this).find(".et_pb_slide"),$slide_containers=$slides.find(".et_pb_container"),max_height=0,image_margin=0,need_image_margin_top=$(this).hasClass("et_pb_post_slider_image_top"),need_image_margin_bottom=$(this).hasClass("et_pb_post_slider_image_bottom");if($slide_section.is(".et_pb_section_first"))return!0;$slide_containers.css("height",0),$slides.addClass("et_pb_temp_slide"),"object"==typeof $(this).data("et_pb_simple_slider")&&$(this).data("et_pb_simple_slider").et_fix_slider_content_images(),$slides.each(function(){var height=parseFloat($(this).innerHeight()),$slide_image=$(this).find(".et_pb_slide_image"),adjustedHeight=parseFloat($(this).data("adjustedHeight")),autoTopPadding=isNaN(adjustedHeight)?0:adjustedHeight;height=autoTopPadding&&autoTopPadding<height?height-autoTopPadding:height,(need_image_margin_top||need_image_margin_bottom)&&($slide_image.length?(image_margin=need_image_margin_top?parseFloat($slide_image.css("margin-top")):parseFloat($slide_image.css("margin-bottom")),image_margin+=10):$(this).find(".et_pb_container").addClass("et_pb_no_image")),0===Math.abs(parseInt($(this).find(".et_pb_slide_description").height()))&&$(this).find(".et_pb_container").addClass("et_pb_empty_slide"),max_height<height&&(max_height=height)}),max_height+image_margin<1?$slide_containers.css("height",""):$slide_containers.css("height",max_height+image_margin),$slides.removeClass("et_pb_temp_slide"),$slides.filter(".et-pb-active-slide").find(".et_pb_slide_image").children("img").addClass("active")})},et_fix_nav_direction(),et_pb_form_placeholders_init($(".et_pb_newsletter_form, .et_pb_comments_module #commentform")),$(".et_pb_fullwidth_menu ul.nav").each(function(i){i++,et_duplicate_menu($(this),$(this).parents(".et_pb_row").find("div .mobile_nav"),"mobile_menu"+i,"et_mobile_menu")}),$(".et_pb_fullwidth_menu").each(function(){var this_menu=$(this),bg_color=this_menu.data("bg_color");bg_color&&this_menu.find("ul").css({"background-color":bg_color})}),$et_pb_newsletter_button.click(function(event){et_pb_submit_newsletter($(this),event)}),window.et_pb_submit_newsletter=function($submit,event){function get_redirect_query(){var query={};return redirect_query?($name.length>0&&redirect_query.indexOf("name")>-1&&(query.name=$name.val()),$lastname.length>0&&redirect_query.indexOf("last_name")>-1&&(query.last_name=$lastname.val()),redirect_query.indexOf("email")>-1&&(query.email=$email.val()),redirect_query.indexOf("ip_address")>-1&&(query.ip_address=$newsletter_container.data("ip_address")),redirect_query.indexOf("css_id")>-1&&(query.form_id=$newsletter_container.attr("id")),decodeURIComponent($.param(query))):""}if($submit.closest(".et_pb_login_form").length||$submit.closest(".et_pb_feedburner_form").length)et_pb_maybe_log_event($submit.closest(".et_pb_newsletter"),"con_goal");else{void 0!==event&&event.preventDefault();var $newsletter_container=$submit.closest(".et_pb_newsletter"),$name=$newsletter_container.find('input[name="et_pb_signup_firstname"]'),$lastname=$newsletter_container.find('input[name="et_pb_signup_lastname"]'),$email=$newsletter_container.find('input[name="et_pb_signup_email"]'),list_id=$newsletter_container.find('input[name="et_pb_signup_list_id"]').val(),$error_message=$newsletter_container.find(".et_pb_newsletter_error").hide(),provider=$newsletter_container.find('input[name="et_pb_signup_provider"]').val(),account=$newsletter_container.find('input[name="et_pb_signup_account_name"]').val(),et_email_reg=/^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$/,$success_message=$newsletter_container.find(".et_pb_newsletter_success"),redirect_url=$newsletter_container.data("redirect_url"),redirect_query=$newsletter_container.data("redirect_query");$name.removeClass("et_pb_signup_error"),$lastname.removeClass("et_pb_signup_error"),$email.removeClass("et_pb_signup_error"),$error_message.html("");var is_valid=!0;$name.length>0&&!$name.val()&&($name.addClass("et_pb_signup_error"),is_valid=!1),$lastname.length>0&&!$lastname.val()&&($lastname.addClass("et_pb_signup_error"),is_valid=!1),et_email_reg.test($email.val())||($email.addClass("et_pb_signup_error"),is_valid=!1),is_valid&&$.ajax({type:"POST",url:et_pb_custom.ajaxurl,dataType:"json",data:{action:"et_pb_submit_subscribe_form",et_frontend_nonce:et_pb_custom.et_frontend_nonce,et_list_id:list_id,et_firstname:$name.val(),et_lastname:$lastname.val(),et_email:$email.val(),et_provider:provider,et_account:account},beforeSend:function(){$newsletter_container.find(".et_pb_newsletter_button").addClass("et_pb_button_text_loading").find(".et_subscribe_loader").show()},complete:function(){$newsletter_container.find(".et_pb_newsletter_button").removeClass("et_pb_button_text_loading").find(".et_subscribe_loader").hide()},success:function(data){data?(data.error&&$error_message.show().append("<h2>").text(data.error),data.success&&(redirect_url?et_pb_maybe_log_event($newsletter_container,"con_goal",function(){var query=get_redirect_query();redirect_url.indexOf("?")>-1?redirect_url+="&":redirect_url+="?",window.location=redirect_url+query}):(et_pb_maybe_log_event($newsletter_container,"con_goal"),$newsletter_container.find(".et_pb_newsletter_form > p").hide(),$success_message.show()))):$error_message.html(et_pb_custom.subscription_failed).show()}})}},window.et_fix_testimonial_inner_width=function(){var window_width=$(window).width();window_width>959?$(".et_pb_testimonial").each(function(){if($(this).is(":visible")){var $testimonial=$(this),portrait_width=$testimonial.find(".et_pb_testimonial_portrait").outerWidth(!0),$testimonial_descr=$testimonial.find(".et_pb_testimonial_description"),$outer_column=$testimonial.closest(".et_pb_column"),testimonial_indent=$outer_column.hasClass("et_pb_column_1_3")||$outer_column.hasClass("et_pb_column_1_4")||$outer_column.hasClass("et_pb_column_3_8")?0:portrait_width;$testimonial_descr.css("margin-left",testimonial_indent)}}):window_width>767?$(".et_pb_testimonial").each(function(){if($(this).is(":visible")){var $testimonial=$(this),portrait_width=$testimonial.find(".et_pb_testimonial_portrait").outerWidth(!0),$testimonial_descr=$testimonial.find(".et_pb_testimonial_description"),$outer_column=$testimonial.closest(".et_pb_column"),testimonial_indent=$outer_column.hasClass("et_pb_column_1_4")||$outer_column.hasClass("et_pb_column_3_8")?0:portrait_width;$testimonial_descr.css("margin-left",testimonial_indent)}}):$(".et_pb_testimonial_description").removeAttr("style")},window.et_fix_testimonial_inner_width(),window.et_pb_video_background_init=function($this_video_background,this_video_background){var $video_background_wrapper=$this_video_background.closest(".et_pb_section_video_bg"),onplaying=!1,onpause=!0;this_video_background.onplaying=function(){onplaying=!0,onpause=!1},this_video_background.onpause=function(){onplaying=!1,onpause=!0},et_waypoint($video_background_wrapper,{offset:"100%",handler:function(direction){$this_video_background.is(":visible")&&"down"===direction?this_video_background.paused&&!onplaying&&this_video_background.play():$this_video_background.is(":visible")&&"up"===direction&&(this_video_background.paused||onpause||this_video_background.pause())}},2),et_waypoint($video_background_wrapper,{offset:function(){var video_height=this.element.clientHeight,toggle_offset=Math.ceil(window.innerHeight/2);return video_height>toggle_offset&&(toggle_offset=video_height),-1*toggle_offset},handler:function(direction){$this_video_background.is(":visible")&&"up"===direction?this_video_background.paused&&!onplaying&&this_video_background.play():$this_video_background.is(":visible")&&"down"===direction&&(this_video_background.paused||onpause||this_video_background.pause())}},2)},window.et_reinit_waypoint_modules=et_pb_debounce(function(){var $et_pb_circle_counter=$(".et_pb_circle_counter"),$et_pb_number_counter=$(".et_pb_number_counter"),$et_pb_video_background=$(".et_pb_section_video_bg video");if($.fn.waypoint&&"yes"!==et_pb_custom.ignore_waypoints){if("undefined"!=typeof et_animation_data&&et_animation_data.length>0){$("body").css("overflow-x","hidden"),$("#page-container").css("overflow-y","hidden");for(var i=0;i<et_animation_data.length;i++){var animation_entry=et_animation_data[i];if(animation_entry.class&&animation_entry.style&&animation_entry.repeat&&animation_entry.duration&&animation_entry.delay&&animation_entry.intensity&&animation_entry.starting_opacity&&animation_entry.speed_curve){var $waypointed=$("."+animation_entry.class),animation_style=animation_entry.style,animation_repeat="once"===animation_entry.repeat?"":"infinite",animation_duration=animation_entry.duration,animation_delay=animation_entry.delay,animation_intensity=animation_entry.intensity,animation_starting_opacity=animation_entry.starting_opacity,animation_speed_curve=animation_entry.speed_curve;$waypointed.attr({"data-animation-style":animation_style,"data-animation-repeat":animation_repeat,"data-animation-duration":animation_duration,"data-animation-delay":animation_delay,"data-animation-intensity":animation_intensity,"data-animation-starting-opacity":animation_starting_opacity,"data-animation-speed-curve":animation_speed_curve}),$waypointed.hasClass("et_pb_circle_counter")?(et_waypoint($waypointed,{offset:"65%",handler:function(){$(this.element).data("PieChartHasLoaded")||void 0===$(this.element).data("easyPieChart")||($(this.element).data("easyPieChart").update($(this.element).data("number-value")),$(this.element).data("PieChartHasLoaded",!0),et_animate_element($(this.element)))}}),et_waypoint($waypointed,{offset:"bottom-in-view",handler:function(){$(this.element).data("PieChartHasLoaded")||void 0===$(this.element).data("easyPieChart")||($(this.element).data("easyPieChart").update($(this.element).data("number-value")),$(this.element).data("PieChartHasLoaded",!0),et_animate_element($(this.element)))}})):$waypointed.hasClass("et_pb_number_counter")?(et_waypoint($waypointed,{offset:"75%",handler:function(){$(this.element).data("easyPieChart").update($(this.element).data("number-value")),et_animate_element($(this.element))}}),et_waypoint($waypointed,{offset:"bottom-in-view",handler:function(){$(this.element).data("easyPieChart").update($(this.element).data("number-value")),et_animate_element($(this.element))}})):et_waypoint($waypointed,{offset:"100%",handler:function(){et_animate_element($(this.element))}})}}}et_waypoint($(".et_pb_counter_container, .et-waypoint"),{offset:"75%",handler:function(){$(this.element).addClass("et-animated")}}),et_waypoint($(".et_pb_counter_container, .et-waypoint"),{offset:"bottom-in-view",handler:function(){$(this.element).addClass("et-animated")}}),$(".et_pb_counter_container, .et-waypoint").each(function(){et_waypoint($(this),{offset:et_get_offset($(this),"75%"),handler:function(){$(this.element).addClass("et-animated")}},2)}),$et_pb_circle_counter.length&&$et_pb_circle_counter.each(function(){var $this_counter=$(this);$this_counter.is(":visible")&&!et_has_animation_data($this_counter)&&et_waypoint($this_counter,{offset:et_get_offset($(this),"65%"),handler:function(){$this_counter.data("PieChartHasLoaded")||void 0===$this_counter.data("easyPieChart")||($this_counter.data("easyPieChart").update($this_counter.data("number-value")),$this_counter.data("PieChartHasLoaded",!0))}},2)}),$et_pb_number_counter.length&&$et_pb_number_counter.each(function(){var $this_counter=$(this);et_has_animation_data($this_counter)||et_waypoint($this_counter,{offset:et_get_offset($(this),"75%"),handler:function(){$this_counter.data("easyPieChart").update($this_counter.data("number-value"))}})}),$(".et_pb_ab_goal").length&&et_waypoint($et_pb_ab_goal=$(".et_pb_ab_goal"),{offset:et_get_offset($(this),"80%"),handler:function(){!et_pb_ab_logged_status.read_goal&&$et_pb_ab_goal.length&&$et_pb_ab_goal.visible(!0)&&(setTimeout(function(){$et_pb_ab_goal.length&&$et_pb_ab_goal.visible(!0)&&!et_pb_ab_logged_status.read_goal&&et_pb_ab_update_stats("read_goal")},3e3),et_pb_maybe_log_event($et_pb_ab_goal,"view_goal"))}})}else if($(".et_pb_counter_container, .et-waypoint").addClass("et-animated"),$et_pb_circle_counter.length&&$et_pb_circle_counter.each(function(){var $this_counter=$(this);$this_counter.is(":visible")&&($this_counter.data("PieChartHasLoaded")||($this_counter.data("easyPieChart").update($this_counter.data("number-value")),$this_counter.data("PieChartHasLoaded",!0)))}),$et_pb_number_counter.length&&$et_pb_number_counter.each(function(){var $this_counter=$(this);$this_counter.data("easyPieChart").update($this_counter.data("number-value"))}),$(".et_pb_ab_goal").length){var $et_pb_ab_goal=$(".et_pb_ab_goal");if(et_pb_ab_logged_status.read_goal||!$et_pb_ab_goal.length||!$et_pb_ab_goal.visible(!0))return;setTimeout(function(){$et_pb_ab_goal.length&&$et_pb_ab_goal.visible(!0)&&!et_pb_ab_logged_status.read_goal&&et_pb_ab_update_stats("read_goal")},3e3),et_pb_maybe_log_event($et_pb_ab_goal,"view_goal")}$et_pb_video_background.length&&$et_pb_video_background.each(function(){var $this_video_background=$(this);et_pb_video_background_init($this_video_background,this)})},100);var fullscreen_section_width={},fullscreen_section_timeout={};if(window.et_calc_fullscreen_section=function(event){var isResizing="object"==typeof event&&"resize"===event.type,$et_window=$(window),$this_section=$(this),section_index=$this_section.index(".et_pb_fullscreen"),timeout=isResizing&&void 0!==fullscreen_section_width[section_index]&&event.target.window_width>fullscreen_section_width[section_index]?800:0;fullscreen_section_width[section_index]=$et_window.width(),void 0!==fullscreen_section_timeout[section_index]&&clearTimeout(fullscreen_section_timeout[section_index]),fullscreen_section_timeout[section_index]=setTimeout(function(){var $body=$("body"),this_section_index=$this_section.index(".et_pb_fullwidth_header"),this_section_offset=$this_section.offset(),$header=$this_section.children(".et_pb_fullwidth_header_container"),$header_content=$header.children(".header-content-container"),$header_image=$header.children(".header-image-container"),sectionHeight=window.innerHeight||$et_window.height(),$wpadminbar=$("#wpadminbar"),has_wpadminbar=$wpadminbar.length,wpadminbar_height=has_wpadminbar?$wpadminbar.height():0,$top_header=$("#top-header"),has_top_header=$top_header.length,top_header_height=has_top_header?$top_header.height():0,$main_header=$("#main-header"),has_main_header=$main_header.length,main_header_height=has_main_header?$main_header.outerHeight():0,fixed_main_header_height=et_pb_get_fixed_main_header_height(),is_wp_relative_admin_bar=(this_section_offset.top,$et_window.width()<782),is_desktop_view=$et_window.width()>980,overall_header_height=($et_window.width()<=980&&$et_window.width(),$et_window.width(),window.et_is_vertical_nav&&is_desktop_view?wpadminbar_height+top_header_height:wpadminbar_height+top_header_height+main_header_height),is_first_module=this_section_offset.top<=overall_header_height;if($main_header.attr("data-height-onload")&&(main_header_height=parseFloat($main_header.attr("data-height-onload"))),has_wpadminbar&&(is_wp_relative_admin_bar?is_first_module&&(sectionHeight-=wpadminbar_height):sectionHeight-=wpadminbar_height),has_top_header&&is_desktop_view&&(et_hide_nav&&!window.et_is_vertical_nav?is_first_module||(sectionHeight-=top_header_height):!window.et_is_fixed_nav||window.et_is_vertical_nav?is_first_module&&(sectionHeight-=top_header_height):sectionHeight-=top_header_height),has_main_header&&(is_desktop_view?et_hide_nav&&!window.et_is_vertical_nav?is_first_module||(sectionHeight-=fixed_main_header_height):window.et_is_fixed_nav&&!window.et_is_vertical_nav?sectionHeight-=is_first_module?main_header_height:fixed_main_header_height:window.et_is_fixed_nav||window.et_is_vertical_nav||is_first_module&&(sectionHeight-=main_header_height):is_first_module&&(sectionHeight-=main_header_height)),$body.hasClass("et_transparent_nav")&&$body.hasClass("et_hide_nav")&&0===this_section_index&&$this_section.css("padding-top",""),$this_section.css("min-height",sectionHeight+"px"),$header.css("min-height",sectionHeight+"px"),$header.hasClass("center")&&$header_content.hasClass("bottom")&&$header_image.hasClass("bottom")&&$header.addClass("bottom-bottom"),$header.hasClass("center")&&$header_content.hasClass("center")&&$header_image.hasClass("center")&&$header.addClass("center-center"),$header.hasClass("center")&&$header_content.hasClass("center")&&$header_image.hasClass("bottom")){$header.addClass("center-bottom");var contentHeight=sectionHeight-$header_image.outerHeight(!0);contentHeight>0&&$header_content.css("min-height",contentHeight+"px")}$header.hasClass("center")&&$header_content.hasClass("bottom")&&$header_image.hasClass("center")&&$header.addClass("bottom-center"),($header.hasClass("left")||$header.hasClass("right"))&&!$header_content.length&&$header_image.length&&$header.css("justify-content","flex-end"),$header.hasClass("center")&&$header_content.hasClass("bottom")&&!$header_image.length&&$header_content.find(".header-content").css("margin-bottom","80px"),$header_content.hasClass("bottom")&&$header_image.hasClass("center")&&($header_image.find(".header-image").css("margin-bottom","80px"),$header_image.css("align-self","flex-end"))},timeout)},window.et_pb_parallax_init=function($this_parallax){if(!$this_parallax.hasClass("et_pb_parallax_css")){var $this_parent=$this_parallax.parent();$.proxy(et_parallax_set_height,$this_parent)(),$.proxy(et_apply_parallax,$this_parent)(),$et_window.on("scroll",$.proxy(et_apply_parallax,$this_parent)),$et_window.on("resize",$.proxy(et_parallax_set_height,$this_parent)),$et_window.on("resize",$.proxy(et_apply_parallax,$this_parent)),$this_parent.find(".et-learn-more .heading-more").click(function(){setTimeout(function(){$.proxy(et_parallax_set_height,$this_parent)()},300)})}},$(window).resize(function(){var window_width=$et_window.width(),et_container_css_width=$et_container.css("width"),et_container_actual_width=(void 0!==et_container_css_width?"%"!==et_container_css_width.substr(-1,1):"")?$et_container.width():$et_container.width()/100*window_width,containerWidthChanged=et_container_width!==et_container_actual_width;if(et_pb_resize_section_video_bg(),et_pb_center_video(),et_fix_slider_height(),et_fix_nav_direction(),$et_pb_fullwidth_portfolio.each(function(){set_container_height=!!$(this).hasClass("et_pb_fullwidth_portfolio_carousel"),set_fullwidth_portfolio_columns($(this),set_container_height)}),containerWidthChanged){$(".container-width-change-notify").trigger("containerWidthChanged"),setTimeout(function(){$et_pb_filterable_portfolio.each(function(){set_filterable_grid_items($(this))}),$et_pb_gallery.each(function(){$(this).hasClass("et_pb_gallery_grid")&&set_gallery_grid_items($(this))})},100),et_container_width=et_container_actual_width,etRecalculateOffset=!0;var $et_pb_circle_counter=$(".et_pb_circle_counter");$et_pb_circle_counter.length&&$et_pb_circle_counter.each(function(){var $this_counter=$(this);$this_counter.is(":visible")&&void 0!==$this_counter.data("easyPieChart")&&$this_counter.data("easyPieChart").update($this_counter.data("number-value"))}),$et_pb_countdown_timer.length&&$et_pb_countdown_timer.each(function(){var timer=$(this);et_countdown_timer_labels(timer)})}window.et_fix_testimonial_inner_width(),et_audio_module_set(),$et_pb_counter_amount.length&&$et_pb_counter_amount.each(function(){window.et_bar_counters_init($(this))})}),$(window).ready(function(){$.fn.fitVids&&($(".et_pb_slide_video").fitVids(),$(".et_pb_module").fitVids({customSelector:"iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']"})),et_fix_video_wmode(".fluid-width-video-wrapper"),et_fix_slider_height(),$("section.et_pb_fullscreen").each(function(){var $this_section=$(this);$.proxy(et_calc_fullscreen_section,$this_section)(),$et_window.on("resize",$.proxy(et_calc_fullscreen_section,$this_section))})}),window.et_pb_fullwidth_header_scroll=function(event){event.preventDefault();var window_width=$et_window.width(),$body=$("body"),is_wp_relative_admin_bar=window_width<782,is_transparent_main_header=$body.hasClass("et_transparent_nav"),is_hide_nav=$body.hasClass("et_hide_nav"),is_desktop_view=window_width>980,$this_section=$(this).parents("section"),this_section_offset=$this_section.offset(),$wpadminbar=$("#wpadminbar"),$main_header=$("#main-header"),wpadminbar_height=$wpadminbar.length&&!is_wp_relative_admin_bar?$wpadminbar.height():0,top_header_height=window.et_is_fixed_nav&&is_desktop_view?$top_header.height():0,data_height_onload=void 0===$main_header.attr("data-height-onload")?0:$main_header.attr("data-height-onload");if(initial_fixed_difference=$main_header.height()===et_pb_get_fixed_main_header_height()||!is_desktop_view||!window.et_is_fixed_nav||is_transparent_main_header||is_hide_nav?0:et_pb_get_fixed_main_header_height()-parseFloat(data_height_onload),section_bottom=this_section_offset.top+$this_section.outerHeight(!0)+initial_fixed_difference-(wpadminbar_height+top_header_height+et_pb_get_fixed_main_header_height()),animate_modified=!1,$this_section.length){$("html, body").animate({scrollTop:section_bottom},{duration:800})}},window.et_load_event_fired?et_pb_window_load_scripts():$(window).load(function(){et_pb_window_load_scripts()}),$(".et_section_specialty").length&&$(".et_section_specialty").each(function(){$(this).find(".et_pb_row").find(">.et_pb_column:not(.et_pb_specialty_column)").addClass("et_pb_column_single")}),$(".et_pb_section_parallax").length&&$(".et_pb_map").length&&$("body").addClass("parallax-map-support"),$(".et_pb_widget_area "+et_pb_custom.widget_search_selector).each(function(){var $search_wrap=$(this),$search_input_submit=$search_wrap.find('input[type="submit"]'),search_input_submit_text=$search_input_submit.attr("value"),$search_button=$search_wrap.find("button"),search_button_text=$search_button.text(),has_submit_button=!(!$search_input_submit.length&&!$search_button.length);($search_wrap.find('input[type="text"]').length||$search_wrap.find('input[type="search"]').length)&&(has_submit_button||$search_wrap.addClass("et-no-submit-button"),$search_wrap.width()<150&&$search_wrap.addClass("et-narrow-wrapper"),!$search_input_submit.length||void 0!==search_input_submit_text&&""!==search_input_submit_text||($search_input_submit.remove(),$search_wrap.addClass("et-no-submit-button")),!$search_button.length||void 0!==search_button_text&&""!==search_button_text||($search_button.remove(),$search_wrap.addClass("et-no-submit-button")))}),$("body").on("click",".et_pb_ajax_pagination_container .wp-pagenavi a,.et_pb_ajax_pagination_container .pagination a",function(){var $current_module,this_link=$(this),href=this_link.attr("href"),current_href=window.location.href,module_classes=this_link.closest(".et_pb_module").attr("class").split(" "),module_class_processed="";return window.et_pb_ajax_pagination_cache=window.et_pb_ajax_pagination_cache||[],$.each(module_classes,function(index,value){""!==value.trim()&&(module_class_processed+="."+value)}),$current_module=$(module_class_processed),void 0!==window.et_pb_ajax_pagination_cache[href+module_class_processed]?$current_module.fadeTo("slow",.2,function(){$current_module.find(".et_pb_ajax_pagination_container").replaceWith(window.et_pb_ajax_pagination_cache[href+module_class_processed]),et_pb_set_paginated_content($current_module,!0)}):(void 0===window.et_pb_ajax_pagination_cache[current_href+module_class_processed]&&(window.et_pb_ajax_pagination_cache[current_href+module_class_processed]=$current_module.find(".et_pb_ajax_pagination_container")),$current_module.fadeTo("slow",.2).load(href+" "+module_class_processed+" .et_pb_ajax_pagination_container",function(){et_pb_set_paginated_content($current_module,!1),window.et_pb_ajax_pagination_cache[href+module_class_processed]=$current_module.find(".et_pb_ajax_pagination_container")})),!1}),window.et_pb_search_init=function($search){var $input_field=$search.find(".et_pb_s"),$button=$search.find(".et_pb_searchsubmit"),input_padding=$search.hasClass("et_pb_text_align_right")?"paddingLeft":"paddingRight",disabled_button=$search.hasClass("et_pb_hide_search_button");$button.css({position:"relative"}),$button.innerHeight()>$input_field.innerHeight()&&$input_field.height($button.innerHeight()),disabled_button||$input_field.css(input_padding,$button.innerWidth()+10),$button.css({position:""})},window.et_pb_search_percentage_custom_margin_fix=function($search){var inputMargin=$search.find(".et_pb_s").css("margin").split(" "),inputMarginObj={};switch(inputMargin.length){case 4:inputMarginObj={top:inputMargin[0],right:inputMargin[1],bottom:inputMargin[2],left:inputMargin[3]};break;case 2:inputMarginObj={top:inputMargin[0],right:inputMargin[1],bottom:inputMargin[0],left:inputMargin[1]};break;default:inputMarginObj={top:inputMargin[0],right:inputMargin[0],bottom:inputMargin[0],left:inputMargin[0]}}var inputRight=0-parseFloat(inputMarginObj.left)+"px";$search.find(".et_pb_searchsubmit").css({top:inputMarginObj.top,right:inputRight,bottom:inputMarginObj.bottom})},$(".et_pb_search").length&&$(".et_pb_search").each(function(){var $search=$(this);$search.is(".et_pb_search_percentage_custom_margin")&&et_pb_search_percentage_custom_margin_fix($search),et_pb_search_init($search)}),window.et_pb_comments_init=function($comments_module){var $comments_module_button=$comments_module.find(".comment-reply-link, .submit");$comments_module_button.length&&($comments_module_button.addClass("et_pb_button"),void 0!==$comments_module.attr("data-icon")&&""!==$comments_module.attr("data-icon")&&($comments_module_button.attr("data-icon",$comments_module.attr("data-icon")),$comments_module_button.addClass("et_pb_custom_button_icon")))},$(".et_pb_comments_module").length&&$(".et_pb_comments_module").each(function(){var $comments_module=$(this);et_pb_comments_init($comments_module)}),window.et_fix_pricing_currency_position(),$(".et_pb_contact_form_container").each(function(){var $form=$(this);$form.on("change","input, textarea, select",function(){et_conditional_check($form)}),et_conditional_check($form)}),"undefined"!=typeof et_animation_data&&et_animation_data.length>0){for(var maxFullwidthMenuIndex=0,i=0;i<et_animation_data.length;i++){var animation_entry=et_animation_data[i];animation_entry.class&&($("."+animation_entry.class).hasClass("et_pb_fullwidth_menu")&&maxFullwidthMenuIndex++)}$(".et_pb_fullwidth_menu").each(function(){var $fullWidthMenu=$(this);$fullWidthMenu.on("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(){$fullWidthMenu.css("z-index",maxFullwidthMenuIndex-$fullWidthMenu.index(".et_pb_fullwidth_menu"))})})}$(document).trigger("et_pb_after_init_modules")})}, // Underscore may be freely distributed under the MIT license. window.et_pb_debounce=function(func,wait,immediate){var timeout,args,context,timestamp,result,now=Date.now||(new Date).getTime(),later=function(){var last=now-timestamp;last<wait&&last>=0?timeout=setTimeout(later,wait-last):(timeout=null,immediate||(result=func.apply(context,args),timeout||(context=args=null)))};return function(){context=this,args=arguments,timestamp=now;var callNow=immediate&&!timeout;return timeout||(timeout=setTimeout(later,wait)),callNow&&(result=func.apply(context,args),context=args=null),result}},et_pb_custom.is_ab_testing_active&&"yes"===et_pb_custom.is_cache_plugin_active?($(window).load(function(){window.et_load_event_fired=!0}),$.ajax({type:"POST",url:et_pb_custom.ajaxurl,dataType:"json",data:{action:"et_pb_ab_get_subject_id",et_frontend_nonce:et_pb_custom.et_frontend_nonce,et_pb_ab_test_id:et_pb_custom.page_id},success:function(subject_data){subject_data&&($(".et_pb_subject_placeholder_id_"+subject_data.id).after(subject_data.content),$(".et_pb_subject_placeholder").remove(),window.et_pb_init_modules(),$("body").trigger("et_pb_ab_subject_ready"))}})):window.et_pb_init_modules(),$(document).ready(function(){(et_pb_box_shadow_elements||[]).map(et_pb_box_shadow_apply_overlay)})}(jQuery);
Save Changes
Rename File
Rename