text: !function(a){"use strict";a.fn.fitVids=function(e){var n={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("div");i.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>',t.appendChild(i.childNodes[1])}return e&&a.extend(n,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];n.customSelector&&e.push(n.customSelector);var i=".fitvidsignore";n.ignore&&(i=i+", "+n.ignore);var t=a(this).find(e.join(","));(t=(t=t.not("object object")).not(i)).each(function(){var e=a(this);if(!(0<e.parents(i).length||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var 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("name")){var n="fitvid"+a.fn.fitVids._count;e.attr("name",n),a.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*t+"%"),e.removeAttr("height").removeAttr("width")}})})},a.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(d){function e(){}function p(e,t){g.ev.on(n+e+C,t)}function u(e,t,n,i){var a=document.createElement("div");return a.className="mfp-"+e,n&&(a.innerHTML=n),i?t&&t.appendChild(a):(a=d(a),t&&a.appendTo(t)),a}function f(e,t){g.ev.triggerHandler(n+e,t),g.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),g.st.callbacks[e]&&g.st.callbacks[e].apply(g,d.isArray(t)?t:[t]))}function m(e){return e===t&&g.currTemplate.closeBtn||(g.currTemplate.closeBtn=d(g.st.closeMarkup.replace("%title%",g.st.tClose)),t=e),g.currTemplate.closeBtn}function o(){d.magnificPopup.instance||((g=new e).init(),d.magnificPopup.instance=g)}var g,i,h,a,v,t,l="Close",c="BeforeClose",b="MarkupParse",y="Open",r="Change",n="mfp",C="."+n,w="mfp-ready",s="mfp-removing",_="mfp-prevent-close",k=!!window.jQuery,I=d(window);function T(){P&&(E.after(P.addClass(x)).detach(),P=null)}e.prototype={constructor:e,init:function(){var e=navigator.appVersion;g.isIE7=-1!==e.indexOf("MSIE 7."),g.isIE8=-1!==e.indexOf("MSIE 8."),g.isLowIE=g.isIE7||g.isIE8,g.isAndroid=/android/gi.test(e),g.isIOS=/iphone|ipad|ipod/gi.test(e),g.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}(),g.probablyMobile=g.isAndroid||g.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),h=d(document),g.popupsCache={}},open:function(e){var t;if(!1===e.isObj){g.items=e.items.toArray(),g.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]){g.index=t;break}}else g.items=d.isArray(e.items)?e.items:[e.items],g.index=e.index||0;if(!g.isOpen){g.types=[],v="",e.mainEl&&e.mainEl.length?g.ev=e.mainEl.eq(0):g.ev=h,e.key?(g.popupsCache[e.key]||(g.popupsCache[e.key]={}),g.currTemplate=g.popupsCache[e.key]):g.currTemplate={},g.st=d.extend(!0,{},d.magnificPopup.defaults,e),g.fixedContentPos="auto"===g.st.fixedContentPos?!g.probablyMobile:g.st.fixedContentPos,g.st.modal&&(g.st.closeOnContentClick=!1,g.st.closeOnBgClick=!1,g.st.showCloseBtn=!1,g.st.enableEscapeKey=!1),g.bgOverlay||(g.bgOverlay=u("bg").on("click"+C,function(){g.close()}),g.wrap=u("wrap").attr("tabindex",-1).on("click"+C,function(e){g._checkIfClose(e.target)&&g.close()}),g.container=u("container",g.wrap)),g.contentContainer=u("content"),g.st.preloader&&(g.preloader=u("preloader",g.container,g.st.tLoading));var a=d.magnificPopup.modules;for(t=0;t<a.length;t++){var o=a[t];o=o.charAt(0).toUpperCase()+o.slice(1),g["init"+o].call(g)}f("BeforeOpen"),g.st.showCloseBtn&&(g.st.closeBtnInside?(p(b,function(e,t,n,i){n.close_replaceWith=m(i.type)}),v+=" mfp-close-btn-in"):g.wrap.append(m())),g.st.alignTop&&(v+=" mfp-align-top"),g.fixedContentPos?g.wrap.css({overflow:g.st.overflowY,overflowX:"hidden",overflowY:g.st.overflowY}):g.wrap.css({top:I.scrollTop(),position:"absolute"}),!1!==g.st.fixedBgPos&&("auto"!==g.st.fixedBgPos||g.fixedContentPos)||g.bgOverlay.css({height:h.height(),position:"absolute"}),g.st.enableEscapeKey&&h.on("keyup"+C,function(e){27===e.keyCode&&g.close()}),I.on("resize"+C,function(){g.updateSize()}),g.st.closeOnContentClick||(v+=" mfp-auto-cursor"),v&&g.wrap.addClass(v);var r=g.wH=I.height(),s={};if(g.fixedContentPos&&g._hasScrollBar(r)){var l=g._getScrollbarSize();l&&(s.marginRight=l)}g.fixedContentPos&&(g.isIE7?d("body, html").css("overflow","hidden"):s.overflow="hidden");var c=g.st.mainClass;return g.isIE7&&(c+=" mfp-ie7"),c&&g._addClassToMFP(c),g.updateItemHTML(),f("BuildControls"),d("html").css(s),g.bgOverlay.add(g.wrap).prependTo(g.st.prependTo||d(document.body)),g._lastFocusedEl=document.activeElement,setTimeout(function(){g.content?(g._addClassToMFP(w),g._setFocus()):g.bgOverlay.addClass(w),h.on("focusin"+C,g._onFocusIn)},16),g.isOpen=!0,g.updateSize(r),f(y),e}g.updateItemHTML()},close:function(){g.isOpen&&(f(c),g.isOpen=!1,g.st.removalDelay&&!g.isLowIE&&g.supportsTransition?(g._addClassToMFP(s),setTimeout(function(){g._close()},g.st.removalDelay)):g._close())},_close:function(){f(l);var e=s+" "+w+" ";if(g.bgOverlay.detach(),g.wrap.detach(),g.container.empty(),g.st.mainClass&&(e+=g.st.mainClass+" "),g._removeClassFromMFP(e),g.fixedContentPos){var t={marginRight:""};g.isIE7?d("body, html").css("overflow",""):t.overflow="",d("html").css(t)}h.off("keyup.mfp focusin"+C),g.ev.off(C),g.wrap.attr("class","mfp-wrap").removeAttr("style"),g.bgOverlay.attr("class","mfp-bg"),g.container.attr("class","mfp-container"),!g.st.showCloseBtn||g.st.closeBtnInside&&!0!==g.currTemplate[g.currItem.type]||g.currTemplate.closeBtn&&g.currTemplate.closeBtn.detach(),g.st.autoFocusLast&&g._lastFocusedEl&&d(g._lastFocusedEl).focus(),g.currItem=null,g.content=null,g.currTemplate=null,g.prevHeight=0,f("AfterClose")},updateSize:function(e){if(g.isIOS){var t=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*t;g.wrap.css("height",n),g.wH=n}else g.wH=e||I.height();g.fixedContentPos||g.wrap.css("height",g.wH),f("Resize")},updateItemHTML:function(){var e=g.items[g.index];g.contentContainer.detach(),g.content&&g.content.detach(),e.parsed||(e=g.parseEl(g.index));var t=e.type;if(f("BeforeChange",[g.currItem?g.currItem.type:"",t]),g.currItem=e,!g.currTemplate[t]){var n=!!g.st[t]&&g.st[t].markup;f("FirstMarkupParse",n),g.currTemplate[t]=!n||d(n)}a&&a!==e.type&&g.container.removeClass("mfp-"+a+"-holder");var i=g["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,g.currTemplate[t]);g.appendContent(i,t),e.preloaded=!0,f(r,e),a=e.type,g.container.prepend(g.contentContainer),f("AfterChange")},appendContent:function(e,t){(g.content=e)?g.st.showCloseBtn&&g.st.closeBtnInside&&!0===g.currTemplate[t]?g.content.find(".mfp-close").length||g.content.append(m()):g.content=e:g.content="",f("BeforeAppend"),g.container.addClass("mfp-"+t+"-holder"),g.contentContainer.append(g.content)},parseEl:function(e){var t,n=g.items[e];if((n=n.tagName?{el:d(n)}:(t=n.type,{data:n,src:n.src})).el){for(var i=g.types,a=0;a<i.length;a++)if(n.el.hasClass("mfp-"+i[a])){t=i[a];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=t||g.st.type||"inline",n.index=e,n.parsed=!0,f("ElementParse",g.items[e]=n),g.items[e]},addGroup:function(t,n){function e(e){e.mfpEl=this,g._openClick(e,t,n)}var i="click.magnificPopup";(n=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||e.altKey||e.shiftKey)){var i=void 0!==n.disableOn?n.disableOn:d.magnificPopup.defaults.disableOn;if(i)if(d.isFunction(i)){if(!i.call(g))return!0}else if(I.width()<i)return!0;e.type&&(e.preventDefault(),g.isOpen&&e.stopPropagation()),n.el=d(e.mfpEl),n.delegate&&(n.items=t.find(n.delegate)),g.open(n)}},updateStatus:function(e,t){if(g.preloader){i!==e&&g.container.removeClass("mfp-s-"+i),t||"loading"!==e||(t=g.st.tLoading);var n={status:e,text:t};f("UpdateStatus",n),e=n.status,t=n.text,g.preloader.html(t),g.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),g.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(e){if(!d(e).hasClass(_)){var t=g.st.closeOnContentClick,n=g.st.closeOnBgClick;if(t&&n)return!0;if(!g.content||d(e).hasClass("mfp-close")||g.preloader&&e===g.preloader[0])return!0;if(e===g.content[0]||d.contains(g.content[0],e)){if(t)return!0}else if(n&&d.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){g.bgOverlay.addClass(e),g.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),g.wrap.removeClass(e)},_hasScrollBar:function(e){return(g.isIE7?h.height():document.body.scrollHeight)>(e||I.height())},_setFocus:function(){(g.st.focus?g.content.find(g.st.focus).eq(0):g.wrap).focus()},_onFocusIn:function(e){return e.target===g.wrap[0]||d.contains(g.wrap[0],e.target)?void 0:(g._setFocus(),!1)},_parseMarkup:function(a,e,t){var o;t.data&&(e=d.extend(t.data,e)),f(b,[a,e,t]),d.each(e,function(e,t){if(void 0===t||!1===t)return!0;if(1<(o=e.split("_")).length){var n=a.find(C+"-"+o[0]);if(0<n.length){var i=o[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(o[1],t)}}else a.find(C+"-"+e).html(t)})},_getScrollbarSize:function(){if(void 0===g.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),g.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return g.scrollbarSize}},d.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){return o(),(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">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},d.fn.magnificPopup=function(e){o();var t=d(this);if("string"==typeof e)if("open"===e){var n,i=k?t.data("magnificPopup"):t[0].magnificPopup,a=parseInt(arguments[1],10)||0;n=i.items?i.items[a]:(n=t,i.delegate&&(n=n.find(i.delegate)),n.eq(a)),g._openClick({mfpEl:n},t,i)}else g.isOpen&&g[e].apply(g,Array.prototype.slice.call(arguments,1));else e=d.extend(!0,{},e),k?t.data("magnificPopup",e):t[0].magnificPopup=e,g.addGroup(t,e);return t};var x,E,P,S="inline";function O(){N&&d(document.body).removeClass(N)}function A(){O(),g.req&&g.req.abort()}d.magnificPopup.registerModule(S,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){g.types.push(S),p(l+"."+S,function(){T()})},getInline:function(e,t){if(T(),e.src){var n=g.st.inline,i=d(e.src);if(i.length){var a=i[0].parentNode;a&&a.tagName&&(E||(x=n.hiddenClass,E=u(x),x="mfp-"+x),P=i.after(E).detach().removeClass(x)),g.updateStatus("ready")}else g.updateStatus("error",n.tNotFound),i=d("<div>");return e.inlineElement=i}return g.updateStatus("ready"),g._parseMarkup(t,{},e),t}}});var N,M,z,L="ajax";function B(e){if(g.currTemplate[j]){var t=g.currTemplate[j].find("iframe");t.length&&(e||(t[0].src="//about:blank"),g.isIE8&&t.css("display",e?"block":"none"))}}d.magnificPopup.registerModule(L,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){g.types.push(L),N=g.st.ajax.cursor,p(l+"."+L,A),p("BeforeChange."+L,A)},getAjax:function(a){N&&d(document.body).addClass(N),g.updateStatus("loading");var e=d.extend({url:a.src,success:function(e,t,n){var i={data:e,xhr:n};f("ParseAjax",i),g.appendContent(d(i.data),L),a.finished=!0,O(),g._setFocus(),setTimeout(function(){g.wrap.addClass(w)},16),g.updateStatus("ready"),f("AjaxContentAdded")},error:function(){O(),a.finished=a.loadError=!0,g.updateStatus("error",g.st.ajax.tError.replace("%url%",a.src))}},g.st.ajax.settings);return g.req=d.ajax(e),""}}}),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=g.st.image,t=".image";g.types.push("image"),p(y+t,function(){"image"===g.currItem.type&&e.cursor&&d(document.body).addClass(e.cursor)}),p(l+t,function(){e.cursor&&d(document.body).removeClass(e.cursor),I.off("resize"+C)}),p("Resize"+t,g.resizeImage),g.isLowIE&&p("AfterChange",g.resizeImage)},resizeImage:function(){var e=g.currItem;if(e&&e.img&&g.st.image.verticalFit){var t=0;g.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",g.wH-t)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,M&&clearInterval(M),e.isCheckingImgSize=!1,f("ImageHasSize",e),e.imgHidden&&(g.content&&g.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(t){var n=0,i=t.img[0],a=function(e){M&&clearInterval(M),M=setInterval(function(){return 0<i.naturalWidth?void g._onImageHasSize(t):(200<n&&clearInterval(M),void(3==++n?a(10):40===n?a(50):100===n&&a(500)))},e)};a(1)},getImage:function(e,t){var n=0,i=function(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===g.currItem&&(g._onImageHasSize(e),g.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,f("ImageLoadComplete")):++n<200?setTimeout(i,100):a())},a=function(){e&&(e.img.off(".mfploader"),e===g.currItem&&(g._onImageHasSize(e),g.updateStatus("error",o.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)},o=g.st.image,r=t.find(".mfp-img");if(r.length){var s=document.createElement("img");s.className="mfp-img",e.el&&e.el.find("img").length&&(s.alt=e.el.find("img").attr("alt")),e.img=d(s).on("load.mfploader",i).on("error.mfploader",a),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 g._parseMarkup(t,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=g.st.image.titleSrc;if(t){if(d.isFunction(t))return t.call(g,e);if(e.el)return e.el.attr(t)||""}return""}(e),img_replaceWith:e.img},e),g.resizeImage(),e.hasSize?(M&&clearInterval(M),e.loadError?(t.addClass("mfp-loading"),g.updateStatus("error",o.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),g.updateStatus("ready"))):(g.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),g.findImageSize(e))),t}}}),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,o=g.st.zoom,t=".zoom";if(o.enabled&&g.supportsTransition){function n(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+o.duration/1e3+"s "+o.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return i["-webkit-"+a]=i["-moz-"+a]=i["-o-"+a]=i[a]=n,t.css(i),t}function i(){g.content.css("visibility","visible")}var a,r,s=o.duration;p("BuildControls"+t,function(){if(g._allowZoom()){if(clearTimeout(a),g.content.css("visibility","hidden"),!(e=g._getItemToZoom()))return void i();(r=n(e)).css(g._getOffset()),g.wrap.append(r),a=setTimeout(function(){r.css(g._getOffset(!0)),a=setTimeout(function(){i(),setTimeout(function(){r.remove(),e=r=null,f("ZoomAnimationEnded")},16)},s)},16)}}),p(c+t,function(){if(g._allowZoom()){if(clearTimeout(a),g.st.removalDelay=s,!e){if(!(e=g._getItemToZoom()))return;r=n(e)}r.css(g._getOffset(!0)),g.wrap.append(r),g.content.css("visibility","hidden"),setTimeout(function(){r.css(g._getOffset())},16)}}),p(l+t,function(){g._allowZoom()&&(i(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===g.currItem.type},_getItemToZoom:function(){return!!g.currItem.hasSize&&g.currItem.img},_getOffset:function(e){var t,n=(t=e?g.currItem.img:g.st.zoom.opener(g.currItem.el||g.currItem)).offset(),i=parseInt(t.css("padding-top"),10),a=parseInt(t.css("padding-bottom"),10);n.top-=d(window).scrollTop()-i;var o={width:t.width(),height:(k?t.innerHeight():t[0].offsetHeight)-a-i};return void 0===z&&(z=void 0!==document.createElement("p").style.MozTransform),z?o["-moz-transform"]=o.transform="translate("+n.left+"px,"+n.top+"px)":(o.left=n.left,o.top=n.top),o}}});var j="iframe";function F(e){var t=g.items.length;return t-1<e?e-t:e<0?t+e:e}function H(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)}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(){g.types.push(j),p("BeforeChange",function(e,t,n){t!==n&&(t===j?B():n===j&&B(!0))}),p(l+"."+j,function(){B()})},getIframe:function(e,t){var n=e.src,i=g.st.iframe;d.each(i.patterns,function(){return-1<n.indexOf(this.index)?(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):void 0});var a={};return i.srcAction&&(a[i.srcAction]=n),g._parseMarkup(t,a,e),g.updateStatus("ready"),t}}}),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 o=g.st.gallery,e=".mfp-gallery",a=Boolean(d.fn.mfpFastClick);return g.direction=!0,!(!o||!o.enabled)&&(v+=" mfp-gallery",p(y+e,function(){o.navigateByImgClick&&g.wrap.on("click"+e,".mfp-img",function(){return 1<g.items.length?(g.next(),!1):void 0}),h.on("keydown"+e,function(e){37===e.keyCode?g.prev():39===e.keyCode&&g.next()})}),p("UpdateStatus"+e,function(e,t){t.text&&(t.text=H(t.text,g.currItem.index,g.items.length))}),p(b+e,function(e,t,n,i){var a=g.items.length;n.counter=1<a?H(o.tCounter,i.index,a):""}),p("BuildControls"+e,function(){if(1<g.items.length&&o.arrows&&!g.arrowLeft){var e=o.arrowMarkup,t=g.arrowLeft=d(e.replace(/%title%/gi,o.tPrev).replace(/%dir%/gi,"left")).addClass(_),n=g.arrowRight=d(e.replace(/%title%/gi,o.tNext).replace(/%dir%/gi,"right")).addClass(_),i=a?"mfpFastClick":"click";t[i](function(){g.prev()}),n[i](function(){g.next()}),g.isIE7&&(u("b",t[0],!1,!0),u("a",t[0],!1,!0),u("b",n[0],!1,!0),u("a",n[0],!1,!0)),g.container.append(t.add(n))}}),p(r+e,function(){g._preloadTimeout&&clearTimeout(g._preloadTimeout),g._preloadTimeout=setTimeout(function(){g.preloadNearbyImages(),g._preloadTimeout=null},16)}),void p(l+e,function(){h.off(e),g.wrap.off("click"+e),g.arrowLeft&&a&&g.arrowLeft.add(g.arrowRight).destroyMfpFastClick(),g.arrowRight=g.arrowLeft=null}))},next:function(){g.direction=!0,g.index=F(g.index+1),g.updateItemHTML()},prev:function(){g.direction=!1,g.index=F(g.index-1),g.updateItemHTML()},goTo:function(e){g.direction=e>=g.index,g.index=e,g.updateItemHTML()},preloadNearbyImages:function(){var e,t=g.st.gallery.preload,n=Math.min(t[0],g.items.length),i=Math.min(t[1],g.items.length);for(e=1;e<=(g.direction?i:n);e++)g._preloadItem(g.index+e);for(e=1;e<=(g.direction?n:i);e++)g._preloadItem(g.index-e)},_preloadItem:function(e){if(e=F(e),!g.items[e].preloaded){var t=g.items[e];t.parsed||(t=g.parseEl(e)),f("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,f("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0}}}});var D,K,W="retina";function R(){I.off("touchmove"+K+" touchend"+K)}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=g.st.retina,i=n.ratio;1<(i=isNaN(i)?i():i)&&(p("ImageHasSize."+W,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),p("ElementParse."+W,function(e,t){t.src=n.replaceSrc(t,i)}))}}}}),D="ontouchstart"in window,K=".mfpFastClick",d.fn.mfpFastClick=function(l){return d(this).each(function(){var t,n,i,a,o,r,s,e=d(this);D&&e.on("touchstart"+K,function(e){o=!1,s=1,r=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],i=r.clientX,a=r.clientY,I.on("touchmove"+K,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-a))&&(o=!0,R())}).on("touchend"+K,function(e){R(),o||1<s||(t=!0,e.preventDefault(),clearTimeout(n),n=setTimeout(function(){t=!1},1e3),l())})}),e.on("click"+K,function(){t||l()})})},d.fn.destroyMfpFastClick=function(){d(this).off("touchstart"+K+" click"+K),D&&I.off("touchmove"+K+" touchend"+K)},o()}),function(p,o){function a(e,t){this.element=e,this.settings=p.extend({},n,t),this.settings.duplicate||t.hasOwnProperty("removeIds")||(this.settings.removeIds=!1),this._defaults=n,this._name=r,this.init()}var n={label:"MENU",duplicate:!0,duration:200,easingOpen:"swing",easingClose:"swing",closedSymbol:"&#9658;",openedSymbol:"&#9660;",prependTo:"body",appendTo:"",parentTag:"a",closeOnClick:!1,allowParentLinks:!1,nestedParentLinks:!0,showChildren:!1,removeIds:!0,removeClasses:!1,removeStyles:!1,brand:"",animations:"jquery",init:function(){},beforeOpen:function(){},beforeClose:function(){},afterOpen:function(){},afterClose:function(){}},r="slicknav",u="slicknav";Keyboard={DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,RIGHT:39,SPACE:32,TAB:9,UP:38},a.prototype.init=function(){var e,t,s=this,n=p(this.element),l=this.settings;if(l.duplicate?s.mobileNav=n.clone():s.mobileNav=n,l.removeIds&&(s.mobileNav.removeAttr("id"),s.mobileNav.find("*").each(function(e,t){p(t).removeAttr("id")})),l.removeClasses&&(s.mobileNav.removeAttr("class"),s.mobileNav.find("*").each(function(e,t){p(t).removeAttr("class")})),l.removeStyles&&(s.mobileNav.removeAttr("style"),s.mobileNav.find("*").each(function(e,t){p(t).removeAttr("style")})),e=u+"_icon",""===l.label&&(e+=" "+u+"_no-text"),"a"==l.parentTag&&(l.parentTag='a href="#"'),s.mobileNav.attr("class",u+"_nav"),t=p('<div class="'+u+'_menu"></div>'),""!==l.brand){var i=p('<div class="'+u+'_brand">'+l.brand+"</div>");p(t).append(i)}s.btn=p(["<"+l.parentTag+' aria-haspopup="true" role="button" tabindex="0" class="'+u+"_btn "+u+'_collapsed">','<span class="'+u+'_menutxt">'+l.label+"</span>",'<span class="'+e+'">','<span class="'+u+'_icon-bar"></span>','<span class="'+u+'_icon-bar"></span>','<span class="'+u+'_icon-bar"></span>',"</span>","</"+l.parentTag+">"].join("")),p(t).append(s.btn),""!==l.appendTo?p(l.appendTo).append(t):p(l.prependTo).prepend(t),t.append(s.mobileNav);var a=s.mobileNav.find("li");p(a).each(function(){var e=p(this),t={};if(t.children=e.children("ul").attr("role","menu"),e.data("menu",t),0<t.children.length){var n=e.contents(),i=!1,a=[];p(n).each(function(){return!p(this).is("ul")&&(a.push(this),void(p(this).is("a")&&(i=!0)))});var o=p("<"+l.parentTag+' role="menuitem" aria-haspopup="true" tabindex="-1" class="'+u+'_item"/>');l.allowParentLinks&&!l.nestedParentLinks&&i?p(a).wrapAll('<span class="'+u+"_parent-link "+u+'_row"/>').parent():p(a).wrapAll(o).parent().addClass(u+"_row"),l.showChildren?e.addClass(u+"_open"):e.addClass(u+"_collapsed"),e.addClass(u+"_parent");var r=p('<span class="'+u+'_arrow">'+(l.showChildren?l.openedSymbol:l.closedSymbol)+"</span>");l.allowParentLinks&&!l.nestedParentLinks&&i&&(r=r.wrap(o).parent()),p(a).last().after(r)}else 0===e.children().length&&e.addClass(u+"_txtnode");e.children("a").attr("role","menuitem").click(function(e){l.closeOnClick&&!p(e.target).parent().closest("li").hasClass(u+"_parent")&&p(s.btn).click()}),l.closeOnClick&&l.allowParentLinks&&(e.children("a").children("a").click(function(e){p(s.btn).click()}),e.find("."+u+"_parent-link a:not(."+u+"_item)").click(function(e){p(s.btn).click()}))}),p(a).each(function(){var e=p(this).data("menu");l.showChildren||s._visibilityToggle(e.children,null,!1,null,!0)}),s._visibilityToggle(s.mobileNav,null,!1,"init",!0),s.mobileNav.attr("role","menu"),p(o).mousedown(function(){s._outlines(!1)}),p(o).keyup(function(){s._outlines(!0)}),p(s.btn).click(function(e){e.preventDefault(),s._menuToggle()}),s.mobileNav.on("click","."+u+"_item",function(e){e.preventDefault(),s._itemClick(p(this))}),p(s.btn).keydown(function(e){var t=e||event;switch(t.keyCode){case Keyboard.ENTER:case Keyboard.SPACE:case Keyboard.DOWN:e.preventDefault(),t.keyCode===Keyboard.DOWN&&p(s.btn).hasClass(u+"_open")||s._menuToggle(),p(s.btn).next().find('[role="menuitem"]').first().focus()}}),s.mobileNav.on("keydown","."+u+"_item",function(e){switch((e||event).keyCode){case Keyboard.ENTER:e.preventDefault(),s._itemClick(p(e.target));break;case Keyboard.RIGHT:e.preventDefault(),p(e.target).parent().hasClass(u+"_collapsed")&&s._itemClick(p(e.target)),p(e.target).next().find('[role="menuitem"]').first().focus()}}),s.mobileNav.on("keydown",'[role="menuitem"]',function(e){switch((e||event).keyCode){case Keyboard.DOWN:e.preventDefault();var t=(i=(n=p(e.target).parent().parent().children().children('[role="menuitem"]:visible')).index(e.target))+1;n.length<=t&&(t=0),n.eq(t).focus();break;case Keyboard.UP:e.preventDefault();var n,i=(n=p(e.target).parent().parent().children().children('[role="menuitem"]:visible')).index(e.target);n.eq(i-1).focus();break;case Keyboard.LEFT:if(e.preventDefault(),p(e.target).parent().parent().parent().hasClass(u+"_open")){var a=p(e.target).parent().parent().prev();a.focus(),s._itemClick(a)}else p(e.target).parent().parent().hasClass(u+"_nav")&&(s._menuToggle(),p(s.btn).focus());break;case Keyboard.ESCAPE:e.preventDefault(),s._menuToggle(),p(s.btn).focus()}}),l.allowParentLinks&&l.nestedParentLinks&&p("."+u+"_item a").click(function(e){e.stopImmediatePropagation()})},a.prototype._menuToggle=function(e){var t=this.btn,n=this.mobileNav;t.hasClass(u+"_collapsed")?(t.removeClass(u+"_collapsed"),t.addClass(u+"_open")):(t.removeClass(u+"_open"),t.addClass(u+"_collapsed")),t.addClass(u+"_animating"),this._visibilityToggle(n,t.parent(),!0,t)},a.prototype._itemClick=function(e){var t=this.settings,n=e.data("menu");n||((n={}).arrow=e.children("."+u+"_arrow"),n.ul=e.next("ul"),n.parent=e.parent(),n.parent.hasClass(u+"_parent-link")&&(n.parent=e.parent().parent(),n.ul=e.parent().next("ul")),e.data("menu",n)),n.parent.hasClass(u+"_collapsed")?(n.arrow.html(t.openedSymbol),n.parent.removeClass(u+"_collapsed"),n.parent.addClass(u+"_open")):(n.arrow.html(t.closedSymbol),n.parent.addClass(u+"_collapsed"),n.parent.removeClass(u+"_open")),n.parent.addClass(u+"_animating"),this._visibilityToggle(n.ul,n.parent,!0,e)},a.prototype._visibilityToggle=function(n,e,t,i,a){function o(e,t){p(e).removeClass(u+"_animating"),p(t).removeClass(u+"_animating"),a||l.afterOpen(e)}function r(e,t){n.attr("aria-hidden","true"),c.attr("tabindex","-1"),s._setVisAttr(n,!0),n.hide(),p(e).removeClass(u+"_animating"),p(t).removeClass(u+"_animating"),a?"init"==e&&l.init():l.afterClose(e)}var s=this,l=s.settings,c=s._getActionItems(n),d=0;t&&(d=l.duration),n.hasClass(u+"_hidden")?(n.removeClass(u+"_hidden"),a||l.beforeOpen(i),"jquery"===l.animations?n.stop(!0,!0).slideDown(d,l.easingOpen,function(){o(i,e)}):"velocity"===l.animations&&n.velocity("finish").velocity("slideDown",{duration:d,easing:l.easingOpen,complete:function(){o(i,e)}}),n.attr("aria-hidden","false"),c.attr("tabindex","0"),s._setVisAttr(n,!1)):(n.addClass(u+"_hidden"),a||l.beforeClose(i),"jquery"===l.animations?n.stop(!0,!0).slideUp(d,this.settings.easingClose,function(){r(i,e)}):"velocity"===l.animations&&n.velocity("finish").velocity("slideUp",{duration:d,easing:l.easingClose,complete:function(){r(i,e)}}))},a.prototype._setVisAttr=function(e,t){var n=this,i=e.children("li").children("ul").not("."+u+"_hidden");t?i.each(function(){var e=p(this);e.attr("aria-hidden","true"),n._getActionItems(e).attr("tabindex","-1"),n._setVisAttr(e,t)}):i.each(function(){var e=p(this);e.attr("aria-hidden","false"),n._getActionItems(e).attr("tabindex","0"),n._setVisAttr(e,t)})},a.prototype._getActionItems=function(e){var t=e.data("menu");if(!t){t={};var n=e.children("li"),i=n.find("a");t.links=i.add(n.find("."+u+"_item")),e.data("menu",t)}return t.links},a.prototype._outlines=function(e){e?p("."+u+"_item, ."+u+"_btn").css("outline",""):p("."+u+"_item, ."+u+"_btn").css("outline","none")},a.prototype.toggle=function(){this._menuToggle()},a.prototype.open=function(){this.btn.hasClass(u+"_collapsed")&&this._menuToggle()},a.prototype.close=function(){this.btn.hasClass(u+"_open")&&this._menuToggle()},p.fn[r]=function(t){var n,i=arguments;return void 0===t||"object"==typeof t?this.each(function(){p.data(this,"plugin_"+r)||p.data(this,"plugin_"+r,new a(this,t))}):"string"==typeof t&&"_"!==t[0]&&"init"!==t?(this.each(function(){var e=p.data(this,"plugin_"+r);e instanceof a&&"function"==typeof e[t]&&(n=e[t].apply(e,Array.prototype.slice.call(i,1)))}),void 0!==n?n:this):void 0}}(jQuery,document,window),function(e,t,n){e(function(){e(".hentry, .widget").fitVids(),e("#menu-primary-items").slicknav({prependTo:"#site-navigation",allowParentLinks:!0}),function(){var t=e(".search-area");e(".search-toggle").on("click",function(e){e.stopPropagation(),t.slideToggle("slow")}),e(n).on("click",function(e){e.stopPropagation(),t.is(":visible")&&!t.is(e.target)&&0===t.has(e.target).length&&t.slideToggle("slow")})}()})}(window.jQuery,window,document);