; (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];var css='.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%;}';var div=document.createElement("div");div.innerHTML='

x

';head.appendChild(div.childNodes[1]);} if(options){$.extend(settings,options);} return 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'];if(settings.customSelector){selectors.push(settings.customSelector);} var ignoreList='.fitvidsignore';if(settings.ignore){ignoreList=ignoreList+', '+settings.ignore;} var $allVideos=$(this).find(selectors.join(','));$allVideos=$allVideos.not('object object');$allVideos=$allVideos.not(ignoreList);$allVideos.each(function(){var $this=$(this);if($this.parents(ignoreList).length>0){return;} if(this.tagName.toLowerCase()==='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){return;} if((!$this.css('height')&&!$this.css('width'))&&(isNaN($this.attr('height'))||isNaN($this.attr('width')))){$this.attr('height',9);$this.attr('width',16);} var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'),10))))?parseInt($this.attr('height'),10):$this.height(),width=!isNaN(parseInt($this.attr('width'),10))?parseInt($this.attr('width'),10):$this.width(),aspectRatio=height/width;if(!$this.attr('name')){var videoName='fitvid'+$.fn.fitVids._count;$this.attr('name',videoName);$.fn.fitVids._count++;} $this.wrap('
').parent('.fluid-width-video-wrapper').css('padding-top',(aspectRatio*100)+'%');$this.removeAttr('height').removeAttr('width');});});};$.fn.fitVids._count=0;})(window.jQuery||window.Zepto); !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],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll=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,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){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.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),o=i===this.waypoints.length-1;return o?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))}(); !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},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(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},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};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+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(''):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.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:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});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 a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.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,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',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(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+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:'',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=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.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=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.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,v.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||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()}); (function($){$(document).ready(function(){var user_agent=navigator.userAgent;var is_opera_edge;var browser=user_agent.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))/i)||[];var browser_name='';var browser_class='';if(/trident/i.test(browser[0])){browser_name='ie';}else if(browser[0]==='Chrome'){is_opera_edge=user_agent.match(/\b(OPR|Edge)/);if(is_opera_edge!==null){browser_name=is_opera_edge[0].replace('OPR','opera');}} if(''===browser_name){if('standalone'in window.navigator&&!window.navigator.standalone){browser_name='uiwebview';}else{browser_name=browser[0]&&''!==browser[0]?browser[0]:navigator.appName;}} browser_name=browser_name.toLowerCase();switch(browser_name){case'msie':browser_class='ie';break;case'firefox':browser_class='gecko';break;default:browser_class=browser_name;break;} if(user_agent.match(/iPhone/)){browser_class+=' iphone';} $('body').addClass(browser_class);});})(jQuery); !function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document); !function(a){var b;a.exitIntent=function(c,d){function j(c){var d=document.documentElement?document.documentElement.scrollTop:document.body.scrollTop,i=document.documentElement?document.documentElement.scrollLeft:document.body.scrollLeft;if(d=a(document).scrollTop()>d?a(document).scrollTop():d,i=a(document).scrollLeft()>i?a(document).scrollLeft():i,-1==Math.round(c.pageX)||-1==Math.round(c.pageY)||-3==c.pageX||-3==c.pageY)var j=-h+d,k=g-i;else var j=-c.pageY+d,k=c.pageX-i;var n,l=-e/f*k,m=e/f*k-e;if(j>=l&&j>=m&&(n="top"),!(/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)&&j<0&&j>-e&&k>0&&k0&&"top"!=n)){if(b&&clearTimeout(b),a.exitIntent.settings.sensitivity<=0)return void a.event.trigger("exitintent");b=setTimeout(function(){b=null,a.event.trigger("exitintent")},a.exitIntent.settings.sensitivity)}}function k(){b&&(clearTimeout(b),b=null)}function l(a){g=a.pageX,h=a.pageY}var g,e=a(window).height(),f=a(window).width(),h=0;if(a(window).resize(function(b){e=a(window).height(),f=a(window).width()}),a.exitIntent.settings=a.extend(a.exitIntent.settings,d),"enable"==c)a(window).mouseleave(j),a(window).mouseenter(k),a(window).mousemove(l);else{if("disable"!=c)throw"Invalid parameter to jQuery.exitIntent -- should be 'enable'/'disable'";k(),a(window).unbind("mouseleave",j),a(window).unbind("mouseenter",k),a(window).unbind("mousemove",l)}},a.exitIntent.settings={sensitivity:300}}(jQuery); jQuery(function($){if($('div.overlay-container').length){function togglePlayableTags(overlay_id){if(!overlay_id){overlay_id='';} $(overlay_id+'.overlay').find("iframe").each(function(){var src=$(this).attr('src');$(this).attr('data-src',src);$(this).attr('src','about:blank');});$(overlay_id+'.overlay').find("video").each(function(){$(this).get(0).pause();});$(overlay_id+'.overlay').find('audio').each(function(){this.pause();this.currentTime=0;});} togglePlayableTags();var $doviframes=$("#sidebar-overlay .overlay iframe");setTimeout(function(){$doviframes.each(function(){var iframeHeight=this.height;if(iframeHeight==''){iframeHeight=$(this).height();} iframeWidth=this.width;if(iframeWidth==''){iframeWidth=$(this).width();} iframeHeight=parseInt(iframeHeight);iframeWidth=parseInt(iframeWidth);var ratio=iframeHeight/iframeWidth;$(this).attr("data-ratio",ratio).removeAttr("width").removeAttr("height");var width=$(this).parent().width();$(this).width(width).height(width*ratio);});},200);$(window).resize(function(){$doviframes.each(function(){var width=$(this).parent().width();$(this).width(width).height(width*$(this).data("ratio"));});});if($('#et-builder-module-design-cached-inline-styles').length&&!$('#cloned-et-builder-module-design-cached-inline-styles').length){var divicachedcss=$('#et-builder-module-design-cached-inline-styles');var divicachedcsscontent=divicachedcss.html();divicachedcsscontent=divicachedcsscontent.replace(/\#page-container/g,' ');$(divicachedcss).after('');} $(document).keyup(function(e){if(e.keyCode==27){closeActiveOverlay();}});$(window).load(function(){if(window.location.hash){var hash=window.location.hash.substring(1);var idx_overlay=hash.indexOf('overlay');if(idx_overlay!==-1){var idx_overlayArr=hash.split('-');if(idx_overlayArr.length>1){var overlay_id=idx_overlayArr[1];showOverlay(overlay_id);}}}});var overlay_container=$('div.overlay-container');var container=$('div#page-container');$(overlay_container).each(function(){$('[id="'+this.id+'"]:gt(0)').remove();});$('body [id^="overlay_"]').on('click',function(){var overlayArr=$(this).attr('id').split('_');var overlay_id=overlayArr[3];showOverlay(overlay_id);});$('body [rel^="unique_overlay_"]').on('click',function(){var overlayArr=$(this).attr('rel').split('_');var overlay_id=overlayArr[4];showOverlay(overlay_id);});$('body [class*="divioverlay-"], body [class*="overlay-"]').on('click',function(){var overlayArr=$(this).attr('class').split(' ');$(overlayArr).each(function(index,value){idx_overlay=value.indexOf('overlay');if(idx_overlay!==-1){var idx_overlayArr=value.split('-');if(idx_overlayArr.length>1){var overlay_id=idx_overlayArr[1];showOverlay(overlay_id);}}});});if(typeof overlays_with_css_trigger!=='undefined'){if($(overlays_with_css_trigger).length>0){$.each(overlays_with_css_trigger,function(overlay_id,selector){$(selector).on('click',function(){showOverlay(overlay_id);});});}} if(typeof overlays_with_automatic_trigger!=='undefined'){if($(overlays_with_automatic_trigger).length>0){$.each(overlays_with_automatic_trigger,function(overlay_id,at_settings){var at_settings_parsed=jQuery.parseJSON(at_settings);var at_type_value=at_settings_parsed.at_type;var at_onceperload=at_settings_parsed.at_onceperload;if(at_onceperload==1){showOverlayOnce(overlay_id);} if(at_type_value=='overlay-timed'){var time_delayed=at_settings_parsed.at_value*1000;setTimeout(function(){showOverlay(overlay_id);},time_delayed);} if(at_type_value=='overlay-scroll'){var overlayScroll=at_settings_parsed.at_value,refScroll;if(overlayScroll.indexOf('%')||overlayScroll.indexOf('px')){if(overlayScroll.indexOf('%')){overlayScroll=overlayScroll.replace(/%/g,'');refScroll='%';} if(overlayScroll.indexOf('px')){overlayScroll=overlayScroll.replace(/px/g,'');refScroll='px';} overlayScroll=overlayScroll.split(':');var overlayScrollFrom=overlayScroll[0];var overlayScrollTo=overlayScroll[1];$(window).scroll(function(e){var s=getScrollTop(),d=$(document).height(),c=$(window).height();if(refScroll=='%'){wScroll=(s/(d-c))*100;}else if(refScroll=='px'){wScroll=s;}else{return;} if(overlayScrollFrom>0&&overlayScrollTo>0){if(overlayScrollFrom<=wScroll&&overlayScrollTo>=wScroll){if(!isActiveOverlay(overlay_id)){showOverlay(overlay_id);}} else if(isActiveOverlay(overlay_id)){closeActiveOverlay(overlay_id);}} if(overlayScrollFrom>0&&overlayScrollTo==''){if(overlayScrollFrom<=wScroll){if(!isActiveOverlay(overlay_id)){showOverlay(overlay_id);}} else if(isActiveOverlay(overlay_id)){closeActiveOverlay(overlay_id);}} if(overlayScrollFrom==''&&overlayScrollTo>0){if(overlayScrollTo>=wScroll){if(!isActiveOverlay(overlay_id)){showOverlay(overlay_id);}} else if(isActiveOverlay(overlay_id)){closeActiveOverlay(overlay_id);}}});}} if(at_type_value=='overlay-exit'){$.exitIntent('enable',{'sensitivity':100});$(document).bind('exitintent',function(){if(!isActiveOverlay(overlay_id)){showOverlay(overlay_id);}});}});}} $('.nav a, .mobile_nav a').each(function(index,value){href=$(value).attr('href');if(href!==undefined){idx_overlay=href.indexOf('overlay');if(idx_overlay!==-1){var idx_overlayArr=href.split('-');if(idx_overlayArr.length>1){var overlay_id=idx_overlayArr[1];$(this).attr('data-overlayid',overlay_id);$(this).on('click',function(){overlay_id=$(this).data('overlayid');showOverlay(overlay_id);});}}}});transEndEventNames={'WebkitTransition':'webkitTransitionEnd','MozTransition':'transitionend','OTransition':'oTransitionEnd','msTransition':'MSTransitionEnd','transition':'transitionend'},transEndEventName=transEndEventNames[Modernizr.prefixed('transition')],support={transitions:Modernizr.csstransitions};function shuffle(array){var currentIndex=array.length,temporaryValue,randomIndex;while(0!==currentIndex){randomIndex=Math.floor(Math.random()*currentIndex);currentIndex-=1;temporaryValue=array[currentIndex];array[currentIndex]=array[randomIndex];array[randomIndex]=temporaryValue;} return array;} function toggleOverlay(overlay_id){var overlay_selector='#overlay-'+overlay_id;var overlay_cache_selector='#overlay-'+overlay_id;var overlay_container='#divi-overlay-container-'+overlay_id;var overlay=$('body').find(overlay_cache_selector);var oid=overlay.attr('id');var prevent_mainpage_scroll=overlay.data('preventscroll');var displayonceperload=overlay.data('displayonceperload');var overlay_active_selector='div.overlay-container div.overlay-body';var preventOpen=overlay.attr('data-preventopen');if($(overlay_cache_selector).hasClass("overlay-cornershape")){var s=Snap(document.querySelector(overlay_cache_selector).querySelector('svg'));var original_s=Snap(document.querySelector(overlay_selector).querySelector('svg'));var path=s.select('path');var original_path=original_s.select('path');var pathConfig={from:original_path.attr('d'),to:document.querySelector(overlay_cache_selector).getAttribute('data-path-to')};} if($(overlay_cache_selector).hasClass("overlay-boxes")){paths=[].slice.call(document.querySelector(overlay_cache_selector).querySelectorAll('svg > path')),pathsTotal=paths.length;} if($(overlay_cache_selector).hasClass("overlay-genie")){var s1=Snap(document.querySelector(overlay_cache_selector).querySelector('svg')),path1=s1.select('path'),steps=document.querySelector(overlay_cache_selector).getAttribute('data-steps').split(';'),stepsTotal=steps.length;} if($(overlay_cache_selector).hasClass('overlay-boxes')){var cnt=0;shuffle(paths);} if($(overlay).hasClass('open')){$(overlay).removeClass('open');$(overlay).addClass('close');if($(overlay_cache_selector).hasClass('overlay-hugeinc')||$(overlay_cache_selector).hasClass('overlay-corner')||$(overlay_cache_selector).hasClass('overlay-scale')){$(overlay_cache_selector).css('opacity',0);} if($(overlay_cache_selector).hasClass('overlay-contentpush')){$(container).removeClass('overlay-contentpush-open');setTimeout(function(){$(container).removeClass('container2');$("html,body").removeAttr('style');},1000);} if($(overlay_cache_selector).hasClass('overlay-contentscale')){$(container).removeClass('overlay-contentscale-open');setTimeout(function(){$(container).removeClass('container3');},1000);} if($(overlay_cache_selector).hasClass('overlay-cornershape')){var onEndTransitionFn=function(ev){$(overlay).removeClass('close');};path.animate({'path':pathConfig.from},400,mina.linear,onEndTransitionFn);} else if($(overlay_cache_selector).hasClass('overlay-boxes')){paths.forEach(function(p,i){setTimeout(function(){++cnt;p.style.display='none';if(cnt===pathsTotal){$(overlay).removeClass('close');}},i*30);});} else if($(overlay_cache_selector).hasClass('overlay-genie')){var pos=stepsTotal-1;var onEndTransitionFn=function(ev){$(overlay).removeClass('close');},nextStep=function(pos){pos--;if(pos<0)return;path1.animate({'path':steps[pos]},60,mina.linear,function(){if(pos===0){onEndTransitionFn();} nextStep(pos);});};nextStep(pos);}else{overlay=document.querySelector(overlay_cache_selector);var onEndTransitionFn=function(ev){if(support.transitions){if(ev.propertyName!=='visibility')return;this.removeEventListener(transEndEventName,onEndTransitionFn);} $(overlay).removeClass('close');};if(support.transitions){overlay.addEventListener(transEndEventName,onEndTransitionFn);}else{onEndTransitionFn();}} if(prevent_mainpage_scroll){$('html,body').removeClass('prevent_mainpage_scroll');$('body').removeClass('prevent_mainpage_scroll_mobile');$('#page-container').removeClass('prevent_content_scroll');$('html, body').scrollTop($(overlay).attr('data-scrolltop'));$(overlay).attr('data-scrolltop','');} setTimeout(function(){$(overlay_cache_selector).removeAttr('style');$(overlay_cache_selector+' path').removeAttr('style');if(!isActiveOverlay()){$("#page-container .container").css('z-index','1');$("#page-container #main-header").css('z-index','99989');$("#sidebar-overlay").css('z-index','-15');} if(displayonceperload){$(overlay_container).remove();}else{togglePlayableTags('#overlay-'+overlay_id);}},500);} else if(!$(overlay).hasClass('close')&&!preventOpen){if(displayonceperload){overlay.attr('data-preventopen',1);} overlay.attr('data-scrolltop',getScrollTop());$("#page-container .container").css('z-index','0');$("#page-container #main-header").css('z-index','-1');$("#sidebar-overlay").css('z-index','16777271');setTimeout(function(){$(overlay).addClass('open');if(overlay.attr('data-bgcolor')!=""){$(overlay_cache_selector).css({'background-color':overlay.attr('data-bgcolor')});} if(overlay.attr('data-fontcolor')!=""){$(overlay_cache_selector).css('color',overlay.attr('data-fontcolor'));} if($(overlay_cache_selector).hasClass('overlay-contentpush')){$("html,body").css('overflow-x','hidden');$(overlay_cache_selector).css('opacity',1);container.attr('class','container2');$(container).addClass('overlay-contentpush-open');} if($(overlay_cache_selector).hasClass('overlay-contentscale')){container.attr('class','container3');$(container).addClass('overlay-contentscale-open');} if($(overlay_cache_selector).hasClass('overlay-cornershape')){$(overlay_cache_selector).css({"background":"transparent none repeat scroll 0 0"});path.animate({'path':pathConfig.to},400,mina.linear);$(overlay_cache_selector+' .overlay-path').css({"fill":overlay.attr('data-bgcolor')});} if($(overlay_cache_selector).hasClass('overlay-boxes')){$(overlay_cache_selector).css({"background":"transparent none repeat scroll 0 0"});paths.forEach(function(p,i){setTimeout(function(){p.style.display='block';p.style.fill=overlay.attr('data-bgcolor');},i*30);});} if($(overlay_cache_selector).hasClass('overlay-genie')){$(overlay_cache_selector).css({"background":"transparent none repeat scroll 0 0"});var pos=0;$(overlay).addClass('open');var nextStep=function(pos){pos++;if(pos>stepsTotal-1)return;path1.animate({'path':steps[pos]},60,mina.linear,function(){nextStep(pos);});$(overlay_cache_selector+' .overlay-path').css({"fill":overlay.attr('data-bgcolor')});};nextStep(pos);} if(prevent_mainpage_scroll){$('html,body').addClass('prevent_mainpage_scroll');$('body').addClass('prevent_mainpage_scroll_mobile');$('#page-container').addClass('prevent_content_scroll');}},200);}} function getScrollTop(){if(typeof pageYOffset!='undefined'){return pageYOffset;}else{var B=document.body;var D=document.documentElement;D=(D.clientHeight)?D:B;return D.scrollTop;}} function showOverlay(overlay_id){if(!DovisInt(overlay_id)) return;var data={action:'divioverlay_content',overlay_id:overlay_id};divi_overlay_container_selector='#divi-overlay-container-'+overlay_id;if($(divi_overlay_container_selector).length){overlay_body=$(divi_overlay_container_selector).find('.overlay');toggleSrcInPlayableTags(overlay_body);toggleOverlay(overlay_id);}} function showOverlayOnce(overlay_id){if(!DovisInt(overlay_id)) return;overlay='#overlay-'+overlay_id;$(overlay).attr('data-displayonceperload',1);} function toggleSrcInPlayableTags(str){str.find("iframe").each(function(){var src=$(this).data('src');$(this).attr('src',src);});return str;} $('body').on('click','.overlay.open, .overlay-close, .overlay-close span, .close-divi-overlay',function(e){if(e.target!==e.currentTarget)return;closeActiveOverlay();});function closeActiveOverlay(overlay_id){var overlay=$('body').find('.overlay.open');var displayonceperload=overlay.data('displayonceperload');if(overlay.length){if(overlay_id==null){var overlayArr=overlay.attr('id').split('-');overlay_id=overlayArr[1];} showOverlay(overlay_id);}} function getActiveOverlay(onlyNumber){overlay=$('body').find('.overlay.active');overlay_id=null;if(overlay.length){var overlayArr=overlay.attr('id').split('-');var overlay_id=overlayArr[1];} return overlay_id;} function isOpeningOverlay(overlay_id){if(!overlay_id){return null;} var overlay=$('#overlay-'+overlay_id);if($(overlay).css('opacity')<1){return true;} return false;} function isClosingOverlay(overlay_id){if(!overlay_id){return null;} var overlay=$('#overlay-'+overlay_id);if($(overlay).hasClass('close')){return false;} return true;} function isActiveOverlay(overlay_id){if(!overlay_id){var overlay=$('.overlay.open');}else{var overlay=$('#overlay-'+overlay_id);} if($(overlay).hasClass('open')){return true;} return false;}}});function DovisInt(value){var x;return isNaN(value)?!1:(x=parseFloat(value),(0|x)===x);};