text: !function(o){"use strict";o.fn.fitVids=function(e){var n={customSelector:null};if(!document.getElementById("fit-vids-style")){var t=document.createElement("div"),i=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];t.className="fit-vids-style",t.id="fit-vids-style",t.style.display="none",t.innerHTML="&shy;<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>",i.parentNode.insertBefore(t,i)}return e&&o.extend(n,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];n.customSelector&&e.push(n.customSelector);var t=o(this).find(e.join(","));(t=t.not("object object")).each(function(){var e=o(this);if(!("embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){var t=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("id")){var n="fitvid"+Math.floor(999999*Math.random());e.attr("id",n)}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*t+"%"),e.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(d){var u,i,p,f,o,m,t,l="Close",c="BeforeClose",h="MarkupParse",g="Open",r="Change",n="mfp",v="."+n,y="mfp-ready",a="mfp-removing",s="mfp-prevent-close",e=function(){},w=!!window.jQuery,C=d(window),b=function(e,t){u.ev.on(n+e+v,t)},E=function(e,t,n,i){var o=document.createElement("div");return o.className="mfp-"+e,n&&(o.innerHTML=n),i?t&&t.appendChild(o):(o=d(o),t&&o.appendTo(t)),o},x=function(e,t){u.ev.triggerHandler(n+e,t),u.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),u.st.callbacks[e]&&u.st.callbacks[e].apply(u,d.isArray(t)?t:[t]))},I=function(e){return e===t&&u.currTemplate.closeBtn||(u.currTemplate.closeBtn=d(u.st.closeMarkup.replace("%title%",u.st.tClose)),t=e),u.currTemplate.closeBtn},T=function(){d.magnificPopup.instance||((u=new e).init(),d.magnificPopup.instance=u)};e.prototype={constructor:e,init:function(){var e=navigator.appVersion;u.isIE7=-1!==e.indexOf("MSIE 7."),u.isIE8=-1!==e.indexOf("MSIE 8."),u.isLowIE=u.isIE7||u.isIE8,u.isAndroid=/android/gi.test(e),u.isIOS=/iphone|ipad|ipod/gi.test(e),u.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),u.probablyMobile=u.isAndroid||u.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),f=d(document),u.popupsCache={}},open:function(e){var t;if(p||(p=d(document.body)),!1===e.isObj){u.items=e.items.toArray(),u.index=0;var n,i=e.items;for(t=0;t<i.length;t++)if((n=i[t]).parsed&&(n=n.el[0]),n===e.el[0]){u.index=t;break}}else u.items=d.isArray(e.items)?e.items:[e.items],u.index=e.index||0;if(!u.isOpen){u.types=[],m="",e.mainEl&&e.mainEl.length?u.ev=e.mainEl.eq(0):u.ev=f,e.key?(u.popupsCache[e.key]||(u.popupsCache[e.key]={}),u.currTemplate=u.popupsCache[e.key]):u.currTemplate={},u.st=d.extend(!0,{},d.magnificPopup.defaults,e),u.fixedContentPos="auto"===u.st.fixedContentPos?!u.probablyMobile:u.st.fixedContentPos,u.st.modal&&(u.st.closeOnContentClick=!1,u.st.closeOnBgClick=!1,u.st.showCloseBtn=!1,u.st.enableEscapeKey=!1),u.bgOverlay||(u.bgOverlay=E("bg").on("click"+v,function(){u.close()}),u.wrap=E("wrap").attr("tabindex",-1).on("click"+v,function(e){u._checkIfClose(e.target)&&u.close()}),u.container=E("container",u.wrap)),u.contentContainer=E("content"),u.st.preloader&&(u.preloader=E("preloader",u.container,u.st.tLoading));var o=d.magnificPopup.modules;for(t=0;t<o.length;t++){var a=o[t];a=a.charAt(0).toUpperCase()+a.slice(1),u["init"+a].call(u)}x("BeforeOpen"),u.st.showCloseBtn&&(u.st.closeBtnInside?(b(h,function(e,t,n,i){n.close_replaceWith=I(i.type)}),m+=" mfp-close-btn-in"):u.wrap.append(I())),u.st.alignTop&&(m+=" mfp-align-top"),u.fixedContentPos?u.wrap.css({overflow:u.st.overflowY,overflowX:"hidden",overflowY:u.st.overflowY}):u.wrap.css({top:C.scrollTop(),position:"absolute"}),(!1===u.st.fixedBgPos||"auto"===u.st.fixedBgPos&&!u.fixedContentPos)&&u.bgOverlay.css({height:f.height(),position:"absolute"}),u.st.enableEscapeKey&&f.on("keyup"+v,function(e){27===e.keyCode&&u.close()}),C.on("resize"+v,function(){u.updateSize()}),u.st.closeOnContentClick||(m+=" mfp-auto-cursor"),m&&u.wrap.addClass(m);var r=u.wH=C.height(),s={};if(u.fixedContentPos&&u._hasScrollBar(r)){var l=u._getScrollbarSize();l&&(s.marginRight=l)}u.fixedContentPos&&(u.isIE7?d("body, html").css("overflow","hidden"):s.overflow="hidden");var c=u.st.mainClass;return u.isIE7&&(c+=" mfp-ie7"),c&&u._addClassToMFP(c),u.updateItemHTML(),x("BuildControls"),d("html").css(s),u.bgOverlay.add(u.wrap).prependTo(u.st.prependTo||p),u._lastFocusedEl=document.activeElement,setTimeout(function(){u.content?(u._addClassToMFP(y),u._setFocus()):u.bgOverlay.addClass(y),f.on("focusin"+v,u._onFocusIn)},16),u.isOpen=!0,u.updateSize(r),x(g),e}u.updateItemHTML()},close:function(){u.isOpen&&(x(c),u.isOpen=!1,u.st.removalDelay&&!u.isLowIE&&u.supportsTransition?(u._addClassToMFP(a),setTimeout(function(){u._close()},u.st.removalDelay)):u._close())},_close:function(){x(l);var e=a+" "+y+" ";if(u.bgOverlay.detach(),u.wrap.detach(),u.container.empty(),u.st.mainClass&&(e+=u.st.mainClass+" "),u._removeClassFromMFP(e),u.fixedContentPos){var t={marginRight:""};u.isIE7?d("body, html").css("overflow",""):t.overflow="",d("html").css(t)}f.off("keyup.mfp focusin"+v),u.ev.off(v),u.wrap.attr("class","mfp-wrap").removeAttr("style"),u.bgOverlay.attr("class","mfp-bg"),u.container.attr("class","mfp-container"),!u.st.showCloseBtn||u.st.closeBtnInside&&!0!==u.currTemplate[u.currItem.type]||u.currTemplate.closeBtn&&u.currTemplate.closeBtn.detach(),u._lastFocusedEl&&d(u._lastFocusedEl).focus(),u.currItem=null,u.content=null,u.currTemplate=null,u.prevHeight=0,x("AfterClose")},updateSize:function(e){if(u.isIOS){var t=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*t;u.wrap.css("height",n),u.wH=n}else u.wH=e||C.height();u.fixedContentPos||u.wrap.css("height",u.wH),x("Resize")},updateItemHTML:function(){var e=u.items[u.index];u.contentContainer.detach(),u.content&&u.content.detach(),e.parsed||(e=u.parseEl(u.index));var t=e.type;if(x("BeforeChange",[u.currItem?u.currItem.type:"",t]),u.currItem=e,!u.currTemplate[t]){var n=!!u.st[t]&&u.st[t].markup;x("FirstMarkupParse",n),u.currTemplate[t]=!n||d(n)}o&&o!==e.type&&u.container.removeClass("mfp-"+o+"-holder");var i=u["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,u.currTemplate[t]);u.appendContent(i,t),e.preloaded=!0,x(r,e),o=e.type,u.container.prepend(u.contentContainer),x("AfterChange")},appendContent:function(e,t){(u.content=e)?u.st.showCloseBtn&&u.st.closeBtnInside&&!0===u.currTemplate[t]?u.content.find(".mfp-close").length||u.content.append(I()):u.content=e:u.content="",x("BeforeAppend"),u.container.addClass("mfp-"+t+"-holder"),u.contentContainer.append(u.content)},parseEl:function(e){var t,n=u.items[e];if((n=n.tagName?{el:d(n)}:(t=n.type,{data:n,src:n.src})).el){for(var i=u.types,o=0;o<i.length;o++)if(n.el.hasClass("mfp-"+i[o])){t=i[o];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=t||u.st.type||"inline",n.index=e,n.parsed=!0,u.items[e]=n,x("ElementParse",n),u.items[e]},addGroup:function(t,n){var e=function(e){e.mfpEl=this,u._openClick(e,t,n)};n||(n={});var i="click.magnificPopup";n.mainEl=t,n.items?(n.isObj=!0,t.off(i).on(i,e)):(n.isObj=!1,n.delegate?t.off(i).on(i,n.delegate,e):(n.items=t).off(i).on(i,e))},_openClick:function(e,t,n){if((void 0!==n.midClick?n.midClick:d.magnificPopup.defaults.midClick)||2!==e.which&&!e.ctrlKey&&!e.metaKey){var i=void 0!==n.disableOn?n.disableOn:d.magnificPopup.defaults.disableOn;if(i)if(d.isFunction(i)){if(!i.call(u))return!0}else if(C.width()<i)return!0;e.type&&(e.preventDefault(),u.isOpen&&e.stopPropagation()),n.el=d(e.mfpEl),n.delegate&&(n.items=t.find(n.delegate)),u.open(n)}},updateStatus:function(e,t){if(u.preloader){i!==e&&u.container.removeClass("mfp-s-"+i),t||"loading"!==e||(t=u.st.tLoading);var n={status:e,text:t};x("UpdateStatus",n),e=n.status,t=n.text,u.preloader.html(t),u.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),u.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(e){if(!d(e).hasClass(s)){var t=u.st.closeOnContentClick,n=u.st.closeOnBgClick;if(t&&n)return!0;if(!u.content||d(e).hasClass("mfp-close")||u.preloader&&e===u.preloader[0])return!0;if(e===u.content[0]||d.contains(u.content[0],e)){if(t)return!0}else if(n&&d.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){u.bgOverlay.addClass(e),u.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),u.wrap.removeClass(e)},_hasScrollBar:function(e){return(u.isIE7?f.height():document.body.scrollHeight)>(e||C.height())},_setFocus:function(){(u.st.focus?u.content.find(u.st.focus).eq(0):u.wrap).focus()},_onFocusIn:function(e){if(e.target!==u.wrap[0]&&!d.contains(u.wrap[0],e.target))return u._setFocus(),!1},_parseMarkup:function(o,e,t){var a;t.data&&(e=d.extend(t.data,e)),x(h,[o,e,t]),d.each(e,function(e,t){if(void 0===t||!1===t)return!0;if(1<(a=e.split("_")).length){var n=o.find(v+"-"+a[0]);if(0<n.length){var i=a[1];"replaceWith"===i?n[0]!==t[0]&&n.replaceWith(t):"img"===i?n.is("img")?n.attr("src",t):n.replaceWith('<img src="'+t+'" class="'+n.attr("class")+'" />'):n.attr(a[1],t)}}else o.find(v+"-"+e).html(t)})},_getScrollbarSize:function(){if(void 0===u.scrollbarSize){var e=document.createElement("div");e.id="mfp-sbm",e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),u.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u.scrollbarSize}},d.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){return T(),(e=e?d.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return d.magnificPopup.instance&&d.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(d.magnificPopup.defaults[e]=t.options),d.extend(this.proto,t.proto),this.modules.push(e)},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">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},d.fn.magnificPopup=function(e){T();var t=d(this);if("string"==typeof e)if("open"===e){var n,i=w?t.data("magnificPopup"):t[0].magnificPopup,o=parseInt(arguments[1],10)||0;n=i.items?i.items[o]:(n=t,i.delegate&&(n=n.find(i.delegate)),n.eq(o)),u._openClick({mfpEl:n},t,i)}else u.isOpen&&u[e].apply(u,Array.prototype.slice.call(arguments,1));else e=d.extend(!0,{},e),w?t.data("magnificPopup",e):t[0].magnificPopup=e,u.addGroup(t,e);return t};var k,S,_,P="inline",M=function(){_&&(S.after(_.addClass(k)).detach(),_=null)};d.magnificPopup.registerModule(P,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){u.types.push(P),b(l+"."+P,function(){M()})},getInline:function(e,t){if(M(),e.src){var n=u.st.inline,i=d(e.src);if(i.length){var o=i[0].parentNode;o&&o.tagName&&(S||(k=n.hiddenClass,S=E(k),k="mfp-"+k),_=i.after(S).detach().removeClass(k)),u.updateStatus("ready")}else u.updateStatus("error",n.tNotFound),i=d("<div>");return e.inlineElement=i}return u.updateStatus("ready"),u._parseMarkup(t,{},e),t}}});var $,z="ajax",B=function(){$&&p.removeClass($)},L=function(){B(),u.req&&u.req.abort()};d.magnificPopup.registerModule(z,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){u.types.push(z),$=u.st.ajax.cursor,b(l+"."+z,L),b("BeforeChange."+z,L)},getAjax:function(o){$&&p.addClass($),u.updateStatus("loading");var e=d.extend({url:o.src,success:function(e,t,n){var i={data:e,xhr:n};x("ParseAjax",i),u.appendContent(d(i.data),z),o.finished=!0,B(),u._setFocus(),setTimeout(function(){u.wrap.addClass(y)},16),u.updateStatus("ready"),x("AjaxContentAdded")},error:function(){B(),o.finished=o.loadError=!0,u.updateStatus("error",u.st.ajax.tError.replace("%url%",o.src))}},u.st.ajax.settings);return u.req=d.ajax(e),""}}});var O;d.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 e=u.st.image,t=".image";u.types.push("image"),b(g+t,function(){"image"===u.currItem.type&&e.cursor&&p.addClass(e.cursor)}),b(l+t,function(){e.cursor&&p.removeClass(e.cursor),C.off("resize"+v)}),b("Resize"+t,u.resizeImage),u.isLowIE&&b("AfterChange",u.resizeImage)},resizeImage:function(){var e=u.currItem;if(e&&e.img&&u.st.image.verticalFit){var t=0;u.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",u.wH-t)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,O&&clearInterval(O),e.isCheckingImgSize=!1,x("ImageHasSize",e),e.imgHidden&&(u.content&&u.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(t){var n=0,i=t.img[0],o=function(e){O&&clearInterval(O),O=setInterval(function(){0<i.naturalWidth?u._onImageHasSize(t):(200<n&&clearInterval(O),3===++n?o(10):40===n?o(50):100===n&&o(500))},e)};o(1)},getImage:function(e,t){var n=0,i=function(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===u.currItem&&(u._onImageHasSize(e),u.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,x("ImageLoadComplete")):++n<200?setTimeout(i,100):o())},o=function(){e&&(e.img.off(".mfploader"),e===u.currItem&&(u._onImageHasSize(e),u.updateStatus("error",a.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)},a=u.st.image,r=t.find(".mfp-img");if(r.length){var s=document.createElement("img");s.className="mfp-img",e.img=d(s).on("load.mfploader",i).on("error.mfploader",o),s.src=e.src,r.is("img")&&(e.img=e.img.clone()),0<(s=e.img[0]).naturalWidth?e.hasSize=!0:s.width||(e.hasSize=!1)}return u._parseMarkup(t,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=u.st.image.titleSrc;if(t){if(d.isFunction(t))return t.call(u,e);if(e.el)return e.el.attr(t)||""}return""}(e),img_replaceWith:e.img},e),u.resizeImage(),e.hasSize?(O&&clearInterval(O),e.loadError?(t.addClass("mfp-loading"),u.updateStatus("error",a.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),u.updateStatus("ready"))):(u.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),u.findImageSize(e))),t}}});var N;d.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,a=u.st.zoom,t=".zoom";if(a.enabled&&u.supportsTransition){var n,i,o=a.duration,r=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+a.duration/1e3+"s "+a.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return i["-webkit-"+o]=i["-moz-"+o]=i["-o-"+o]=i[o]=n,t.css(i),t},s=function(){u.content.css("visibility","visible")};b("BuildControls"+t,function(){if(u._allowZoom()){if(clearTimeout(n),u.content.css("visibility","hidden"),!(e=u._getItemToZoom()))return void s();(i=r(e)).css(u._getOffset()),u.wrap.append(i),n=setTimeout(function(){i.css(u._getOffset(!0)),n=setTimeout(function(){s(),setTimeout(function(){i.remove(),e=i=null,x("ZoomAnimationEnded")},16)},o)},16)}}),b(c+t,function(){if(u._allowZoom()){if(clearTimeout(n),u.st.removalDelay=o,!e){if(!(e=u._getItemToZoom()))return;i=r(e)}i.css(u._getOffset(!0)),u.wrap.append(i),u.content.css("visibility","hidden"),setTimeout(function(){i.css(u._getOffset())},16)}}),b(l+t,function(){u._allowZoom()&&(s(),i&&i.remove(),e=null)})}},_allowZoom:function(){return"image"===u.currItem.type},_getItemToZoom:function(){return!!u.currItem.hasSize&&u.currItem.img},_getOffset:function(e){var t,n=(t=e?u.currItem.img:u.st.zoom.opener(u.currItem.el||u.currItem)).offset(),i=parseInt(t.css("padding-top"),10),o=parseInt(t.css("padding-bottom"),10);n.top-=d(window).scrollTop()-i;var a={width:t.width(),height:(w?t.innerHeight():t[0].offsetHeight)-o-i};return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N?a["-moz-transform"]=a.transform="translate("+n.left+"px,"+n.top+"px)":(a.left=n.left,a.top=n.top),a}}});var j="iframe",F=function(e){if(u.currTemplate[j]){var t=u.currTemplate[j].find("iframe");t.length&&(e||(t[0].src="//about:blank"),u.isIE8&&t.css("display",e?"block":"none"))}};d.magnificPopup.registerModule(j,{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(){u.types.push(j),b("BeforeChange",function(e,t,n){t!==n&&(t===j?F():n===j&&F(!0))}),b(l+"."+j,function(){F()})},getIframe:function(e,t){var n=e.src,i=u.st.iframe;d.each(i.patterns,function(){if(-1<n.indexOf(this.index))return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1});var o={};return i.srcAction&&(o[i.srcAction]=n),u._parseMarkup(t,o,e),u.updateStatus("ready"),t}}});var A=function(e){var t=u.items.length;return t-1<e?e-t:e<0?t+e:e},H=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};d.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 a=u.st.gallery,e=".mfp-gallery",o=Boolean(d.fn.mfpFastClick);if(u.direction=!0,!a||!a.enabled)return!1;m+=" mfp-gallery",b(g+e,function(){a.navigateByImgClick&&u.wrap.on("click"+e,".mfp-img",function(){if(1<u.items.length)return u.next(),!1}),f.on("keydown"+e,function(e){37===e.keyCode?u.prev():39===e.keyCode&&u.next()})}),b("UpdateStatus"+e,function(e,t){t.text&&(t.text=H(t.text,u.currItem.index,u.items.length))}),b(h+e,function(e,t,n,i){var o=u.items.length;n.counter=1<o?H(a.tCounter,i.index,o):""}),b("BuildControls"+e,function(){if(1<u.items.length&&a.arrows&&!u.arrowLeft){var e=a.arrowMarkup,t=u.arrowLeft=d(e.replace(/%title%/gi,a.tPrev).replace(/%dir%/gi,"left")).addClass(s),n=u.arrowRight=d(e.replace(/%title%/gi,a.tNext).replace(/%dir%/gi,"right")).addClass(s),i=o?"mfpFastClick":"click";t[i](function(){u.prev()}),n[i](function(){u.next()}),u.isIE7&&(E("b",t[0],!1,!0),E("a",t[0],!1,!0),E("b",n[0],!1,!0),E("a",n[0],!1,!0)),u.container.append(t.add(n))}}),b(r+e,function(){u._preloadTimeout&&clearTimeout(u._preloadTimeout),u._preloadTimeout=setTimeout(function(){u.preloadNearbyImages(),u._preloadTimeout=null},16)}),b(l+e,function(){f.off(e),u.wrap.off("click"+e),u.arrowLeft&&o&&u.arrowLeft.add(u.arrowRight).destroyMfpFastClick(),u.arrowRight=u.arrowLeft=null})},next:function(){u.direction=!0,u.index=A(u.index+1),u.updateItemHTML()},prev:function(){u.direction=!1,u.index=A(u.index-1),u.updateItemHTML()},goTo:function(e){u.direction=e>=u.index,u.index=e,u.updateItemHTML()},preloadNearbyImages:function(){var e,t=u.st.gallery.preload,n=Math.min(t[0],u.items.length),i=Math.min(t[1],u.items.length);for(e=1;e<=(u.direction?i:n);e++)u._preloadItem(u.index+e);for(e=1;e<=(u.direction?n:i);e++)u._preloadItem(u.index-e)},_preloadItem:function(e){if(e=A(e),!u.items[e].preloaded){var t=u.items[e];t.parsed||(t=u.parseEl(e)),x("LazyLoad",t),"image"===t.type&&(t.img=d('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,x("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0}}}});var R,q,D,W="retina";d.magnificPopup.registerModule(W,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(1<window.devicePixelRatio){var n=u.st.retina,i=n.ratio;1<(i=isNaN(i)?i():i)&&(b("ImageHasSize."+W,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),b("ElementParse."+W,function(e,t){t.src=n.replaceSrc(t,i)}))}}}}),R="ontouchstart"in window,q=function(){C.off("touchmove"+D+" touchend"+D)},D=".mfpFastClick",d.fn.mfpFastClick=function(l){return d(this).each(function(){var t,n,i,o,a,r,s,e=d(this);R&&e.on("touchstart"+D,function(e){a=!1,s=1,r=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],i=r.clientX,o=r.clientY,C.on("touchmove"+D,function(e){r=e.originalEvent?e.originalEvent.touches:e.touches,s=r.length,r=r[0],(10<Math.abs(r.clientX-i)||10<Math.abs(r.clientY-o))&&(a=!0,q())}).on("touchend"+D,function(e){q(),a||1<s||(t=!0,e.preventDefault(),clearTimeout(n),n=setTimeout(function(){t=!1},1e3),l())})}),e.on("click"+D,function(){t||l()})})},d.fn.destroyMfpFastClick=function(){d(this).off("touchstart"+D+" click"+D),R&&C.off("touchmove"+D+" touchend"+D)},T()}(window.jQuery||window.Zepto),window.matchMedia=window.matchMedia||function(e,t){"use strict";var n,i=e.documentElement,o=i.firstElementChild||i.firstChild,a=e.createElement("body"),r=e.createElement("div");return r.id="mq-test-1",r.style.cssText="position:absolute;top:-100em",a.style.background="none",a.appendChild(r),function(e){return r.innerHTML='&shy;<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',i.insertBefore(a,o),n=42===r.offsetWidth,i.removeChild(a),{matches:n,media:e}}}(document),function(v){"use strict";var e={};if((v.respond=e).update=function(){},e.mediaQueriesSupported=v.matchMedia&&v.matchMedia("only all").matches,!e.mediaQueriesSupported){var y,w,C,b=v.document,E=b.documentElement,x=[],I=[],T=[],a={},k=b.getElementsByTagName("head")[0]||E,r=b.getElementsByTagName("base")[0],S=k.getElementsByTagName("link"),s=[],t=function(){for(var e=0;e<S.length;e++){var t=S[e],n=t.href,i=t.media,o=t.rel&&"stylesheet"===t.rel.toLowerCase();n&&o&&!a[n]&&(t.styleSheet&&t.styleSheet.rawCssText?(c(t.styleSheet.rawCssText,n,i),a[n]=!0):(/^([a-zA-Z:]*\/\/)/.test(n)||r)&&n.replace(RegExp.$1,"").split("/")[0]!==v.location.host||s.push({href:n,media:i}))}l()},l=function(){if(s.length){var t=s.shift();n(t.href,function(e){c(e,t.href,t.media),a[t.href]=!0,v.setTimeout(function(){l()},0)})}},c=function(e,t,n){var i=e.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),o=i&&i.length||0,a=function(e){return e.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3")},r=!o&&n;(t=t.substring(0,t.lastIndexOf("/"))).length&&(t+="/"),r&&(o=1);for(var s=0;s<o;s++){var l,c,d,u;r?(l=n,I.push(a(e))):(l=i[s].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,I.push(RegExp.$2&&a(RegExp.$2))),u=(d=l.split(",")).length;for(var p=0;p<u;p++)c=d[p],x.push({media:c.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:I.length-1,hasquery:-1<c.indexOf("("),minw:c.match(/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:c.match(/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}P()},_=function(){var e,t=b.createElement("div"),n=b.body,i=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||((n=i=b.createElement("body")).style.background="none"),n.appendChild(t),E.insertBefore(n,E.firstChild),e=t.offsetWidth,i?E.removeChild(n):n.removeChild(t),e=C=parseFloat(e)},P=function(e){var t="clientWidth",n=E[t],i="CSS1Compat"===b.compatMode&&n||b.body[t]||n,o={},a=S[S.length-1],r=(new Date).getTime();if(e&&y&&r-y<30)return v.clearTimeout(w),void(w=v.setTimeout(P,30));for(var s in y=r,x)if(x.hasOwnProperty(s)){var l=x[s],c=l.minw,d=l.maxw,u=null===c,p=null===d;c&&(c=parseFloat(c)*(-1<c.indexOf("em")?C||_():1)),d&&(d=parseFloat(d)*(-1<d.indexOf("em")?C||_():1)),l.hasquery&&(u&&p||!(u||c<=i)||!(p||i<=d))||(o[l.media]||(o[l.media]=[]),o[l.media].push(I[l.rules]))}for(var f in T)T.hasOwnProperty(f)&&T[f]&&T[f].parentNode===k&&k.removeChild(T[f]);for(var m in o)if(o.hasOwnProperty(m)){var h=b.createElement("style"),g=o[m].join("\n");h.type="text/css",h.media=m,k.insertBefore(h,a.nextSibling),h.styleSheet?h.styleSheet.cssText=g:h.appendChild(b.createTextNode(g)),T.push(h)}},n=function(e,t){var n=i();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!==n.readyState||200!==n.status&&304!==n.status||t(n.responseText)},4!==n.readyState&&n.send(null))},i=function(){var t=!1;try{t=new v.XMLHttpRequest}catch(e){t=new v.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}();t(),e.update=t,v.addEventListener?v.addEventListener("resize",o,!1):v.attachEvent&&v.attachEvent("onresize",o)}function o(){P(!0)}}(this);var q,responsiveNav=function(n,i){var o=!!n.getComputedStyle;n.getComputedStyle||(n.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=function(e){var t=/(\-([a-z]){1})/g;return"float"===e&&(e="styleFloat"),t.test(e)&&(e=e.replace(t,function(){return arguments[2].toUpperCase()})),n.currentStyle[e]?n.currentStyle[e]:null},this});var a,r,s,l,c=i.documentElement,e=i.getElementsByTagName("head")[0],d=i.createElement("style"),t=!1,u=function(t,n,i,o){if("addEventListener"in t)try{t.addEventListener(n,i,o)}catch(e){if("object"!=typeof i||!i.handleEvent)throw e;t.addEventListener(n,function(e){i.handleEvent.call(i,e)},o)}else"attachEvent"in t&&("object"==typeof i&&i.handleEvent?t.attachEvent("on"+n,function(){i.handleEvent.call(i)}):t.attachEvent("on"+n,i))},p=function(t,n,i,o){if("removeEventListener"in t)try{t.removeEventListener(n,i,o)}catch(e){if("object"!=typeof i||!i.handleEvent)throw e;t.removeEventListener(n,function(e){i.handleEvent.call(i,e)},o)}else"detachEvent"in t&&("object"==typeof i&&i.handleEvent?t.detachEvent("on"+n,function(){i.handleEvent.call(i)}):t.detachEvent("on"+n,i))},f=function(e,t){for(var n in t)e.setAttribute(n,t[n])},m=function(e,t){e.className+=" "+t,e.className=e.className.replace(/(^\s*)|(\s*$)/g,"")},h=function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ").replace(/(^\s*)|(\s*$)/g,"")},g=function(e,t){var n;for(n in this.options={animate:!0,transition:400,label:"Menu",insert:"after",customToggle:"",openPos:"relative",jsClass:"js",init:function(){},open:function(){},close:function(){}},t)this.options[n]=t[n];if(m(c,this.options.jsClass),this.wrapperEl=e.replace("#",""),!i.getElementById(this.wrapperEl))throw new Error("The nav element you are trying to select doesn't exist");this.wrapper=i.getElementById(this.wrapperEl),this.wrapper.inner=function(e){for(var t=e.firstChild;null!==t&&1!==t.nodeType;)t=t.nextSibling;return t}(this.wrapper),r=this.options,a=this.wrapper,this._init(this)};return g.prototype={destroy:function(){this._removeStyles(),h(a,"closed"),h(a,"opened"),a.removeAttribute("style"),a.removeAttribute("aria-hidden"),l=a=null,p(n,"load",this,!1),p(n,"resize",this,!1),p(s,"mousedown",this,!1),p(s,"touchstart",this,!1),p(s,"touchend",this,!1),p(s,"keyup",this,!1),p(s,"click",this,!1),r.customToggle?s.removeAttribute("aria-hidden"):s.parentNode.removeChild(s)},toggle:function(){t?(h(a,"opened"),m(a,"closed"),f(a,{"aria-hidden":"true"}),t=!1,r.close()):(h(a,"closed"),m(a,"opened"),a.style.position=r.openPos,f(a,{"aria-hidden":"false"}),t=!0,r.open())},handleEvent:function(e){var t=e||n.event;switch(t.type){case"mousedown":this._onmousedown(t);break;case"touchstart":this._ontouchstart(t);break;case"touchend":this._ontouchend(t);break;case"keyup":this._onkeyup(t);break;case"click":this._onclick(t);break;case"load":this._transitions(t),this._resize(t);break;case"resize":this._resize(t)}},_init:function(){m(a,"closed"),this._createToggle(),u(n,"load",this,!1),u(n,"resize",this,!1),u(s,"mousedown",this,!1),u(s,"touchstart",this,!1),u(s,"touchend",this,!1),u(s,"keyup",this,!1),u(s,"click",this,!1)},_createStyles:function(){d.parentNode||e.appendChild(d)},_removeStyles:function(){d.parentNode&&d.parentNode.removeChild(d)},_createToggle:function(){if(r.customToggle){var e=r.customToggle.replace("#","");if(!i.getElementById(e))throw new Error("The custom nav toggle you are trying to select doesn't exist");s=i.getElementById(e)}else{var t=i.createElement("a");t.innerHTML=r.label,f(t,{href:"#",id:"nav-toggle"}),"after"===r.insert?a.parentNode.insertBefore(t,a.nextSibling):a.parentNode.insertBefore(t,a),s=i.getElementById("nav-toggle")}},_preventDefault:function(e){e.preventDefault?(e.preventDefault(),e.stopPropagation()):e.returnValue=!1},_onmousedown:function(e){var t=e||n.event;3!==t.which&&2!==t.button&&(this._preventDefault(e),this.toggle(e))},_ontouchstart:function(e){s.onmousedown=null,this._preventDefault(e),this.toggle(e)},_ontouchend:function(){var e=this;a.addEventListener("click",e._preventDefault,!0),setTimeout(function(){a.removeEventListener("click",e._preventDefault,!0)},r.transition)},_onkeyup:function(e){13===(e||n.event).keyCode&&this.toggle(e)},_onclick:function(e){this._preventDefault(e)},_transitions:function(){if(r.animate){var e=a.style,t="max-height "+r.transition+"ms";e.WebkitTransition=t,e.MozTransition=t,e.OTransition=t,e.transition=t}},_calcHeight:function(){var e=a.inner.offsetHeight,t="#"+this.wrapperEl+".opened{max-height:"+e+"px}";o&&(d.innerHTML=t,t="")},_resize:function(){"none"!==n.getComputedStyle(s,null).getPropertyValue("display")?(f(s,{"aria-hidden":"false"}),a.className.match(/(^|\s)closed(\s|$)/)&&(f(a,{"aria-hidden":"true"}),a.style.position="absolute"),this._createStyles(),this._calcHeight()):(f(s,{"aria-hidden":"true"}),f(a,{"aria-hidden":"false"}),a.style.position=r.openPos,this._removeStyles()),r.init()}},function(e,t){return l||(l=new g(e,t)),l}}(window,document),jsonFeedUrl="/search.json",$searchForm=$("[data-search-form]"),$searchInput=$("[data-search-input]"),$resultTemplate=$("#search-result"),$resultsPlaceholder=$("[data-search-results]"),$foundContainer=$("[data-search-found]"),$foundTerm=$("[data-search-found-term]"),$foundCount=$("[data-search-found-count]"),allowEmpty=!0,showLoader=!0,loadingClass="is--loading";function initSearch(){getParameterByName("q")&&(q=decodeURIComponent(getParameterByName("q")),$searchInput.val(q),execSearch(q)),$(document).on("submit",$searchForm,function(e){e.preventDefault(),execSearch(q=$searchInput.val())})}function execSearch(e){(""!=e||allowEmpty)&&(showLoader&&toggleLoadingClass(),getSearchResults(processData()))}function toggleLoadingClass(){$resultsPlaceholder.toggleClass(loadingClass),$foundContainer.toggleClass(loadingClass)}function getSearchResults(e){$.get(BASE_URL+jsonFeedUrl,e,"json")}function processData(){return $results=[],function(e){var i=0,o="";$.each(e,function(e,t){if(-1<t.excerpt.toLowerCase().indexOf(q.toLowerCase())||-1<t.title.toLowerCase().indexOf(q.toLowerCase())){var n=populateResultContent($resultTemplate.html(),t);i++,o+=n}}),showLoader&&toggleLoadingClass(),populateResultsString(i),showSearchResults(o)}}function showSearchResults(e){$resultsPlaceholder.html(e)}function populateResultContent(e,t){return e=injectContent(e=injectContent(e=injectContent(e=injectContent(e,t.title,"##Title##"),t.link,"##Url##"),t.excerpt,"##Excerpt##"),t.date,"##Date##")}function populateResultsString(e){$foundTerm.text(q),$foundCount.text(e),$foundContainer.show()}function getParameterByName(e){var t=RegExp("[?&]"+e+"=([^&]*)").exec(window.location.search);return t&&decodeURIComponent(t[1].replace(/\+/g," "))}function injectContent(e,t,n){var i=new RegExp(n,"g");return e.replace(i,t)}$(document).ready(function(){$foundContainer.hide(),initSearch()});var navigation=responsiveNav("#site-nav",{animate:!0,transition:200,label:"<i class='fa fa-bars'></i> Menu",insert:"before",customToggle:"",openPos:"relative",jsClass:"js",init:function(){},open:function(){},close:function(){}});$("html").click(function(){$(navigation.wrapper).hasClass("opened")&&navigation.toggle()}),$("#site-nav").click(function(e){e.stopPropagation()}),$(function(){$("article").fitVids()}),$("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']").addClass("image-popup"),$(document).ready(function(){$(".image-popup").magnificPopup({type:"image",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">Image #%curr%</a> could not be loaded.'},removalDelay:300,mainClass:"mfp-fade"})});