!function(h){"use strict";h(document).ready(function(){h(".adv-search-form").each(function(){function e(){var t=r();if(0!==Object.keys(t).length)for(var e in 0===a.find(u).length&&u.appendTo(a),u.find(".filter-button").off().remove(),t)!t.hasOwnProperty(e)||parseInt(t[e].value,10)<=0||(0===u.find(s).length&&s.data({name:"clear-all"}).on("click",l).appendTo(u),h('<div class="button filter-button">'+o(t[e].text)+"</div>").data({name:t[e].name}).on("click",c).appendTo(u))}var n,a=h(this),i=a.find(".filters select"),r=function(){var n={};return i.each(function(){var t=h(this),e=t.get(0).nodeName.toLowerCase();void 0!==t.attr("name")&&(n[t.attr("name")]={value:t.val()||0,text:("select"===e?t.find(":selected"):t).text(),name:t.attr("name"),node:e})}),n},o=function(t){return t.replace(/\s*\([0-9,]+\)$/,"")},c=function(){var t=h(this).data("name");i.filter('[name="'+t+'"]').val(0).trigger("change")},l=function(){h("input[id=search_query_string]").val(""),i.val(0).trigger("change")},u=h('<div class="button-box"></div>'),s=h('<div class="button clear-all filter-button">Clear search</div>');function t(t){0===a.find(u).length&&u.appendTo(a),u.find(".filter-button").off().remove(),0===u.find(s).length&&h("input[id=search_query_string]").val().trim()&&s.data({name:"clear-all"}).on("click",function(){h("input[id=search_query_string]").val(""),a.submit()}).appendTo(u)}e(),a.on("change",".filters select, input[name=sort_results]",function(t){e(),clearTimeout(n),t.preventDefault(),a.find(".icon-magnification").first().addClass("search-loading"),n=setTimeout(function(){a.submit()},500)});var f,d,v,m=h("input[id=search_query_string]");void 0!==m.val()&&(m.keyup((f=t,d=600,v=0,function(){var t=this,e=arguments;clearTimeout(v),v=setTimeout(function(){f.apply(t,e)},d||0)})),t())})})}(jQuery);
!function(n){"use strict";n('a[href*="#"]').not('[href="#"]').not('[href="#0"]').not(".toggle").not(".event-navigation").on("click",function(t){var e=n(this.hash);location.pathname.replace(/^\//,"")===this.pathname.replace(/^\//,"")&&location.hostname===this.hostname&&(e=e.length?e:n("[name="+this.hash.slice(1)+"]")).length&&(t.preventDefault(),e[0].scrollIntoView({behavior:"smooth",block:"start",inline:"center"}))})}(jQuery);
!function(r){"use strict";function s(s){var o,t=this,n=r(window),i=r("body");return r.extend(t,{class_up:"scroll-up",class_down:"scroll-down",direction:{ypos:0,upwards:!1,last:null},set_direction:function(){"function"==typeof n.scrollTop&&(n.scrollTop()!==t.direction.ypos&&(t.direction.upwards=n.scrollTop()<t.direction.ypos),t.direction.ypos=n.scrollTop())},set_body_class:function(){!0===t.direction.upwards&&t.direction.last!==t.direction.upwards?(t.direction.last=t.direction.upwards,i.addClass(t.class_up).removeClass(t.class_down)):!1===t.direction.upwards&&t.direction.last!==t.direction.upwards&&(t.direction.last=t.direction.upwards,i.addClass(t.class_down).removeClass(t.class_up))},start:function(s){clearInterval(o),o=setInterval(t.set_body_class,s||200),n.on("scroll",t.set_direction)},stop:function(){i.removeClass(t.class_up).removeClass(t.class_down),clearInterval(t.event),n.off("scroll",t.set_direction)}},s),t}r(document).ready(function(){window.directionFlag=new s,window.directionFlag.start(100)})}(jQuery);
!function(s){"use strict";window.jrwFontScaler=new function(){var i=this,n=s(window);return s.extend(i,{domNodes:[],resizeEvent:null,windowWidth:n.width(),windowHeight:n.height(),recordWidth:function(){clearTimeout(i.resizeEvent),i.resizeEvent=setTimeout(function(){i.windowWidth==n.width()&&i.windowHeight==n.height()||(i.windowWidth=n.width(),i.windowHeight=n.height(),i.resize())},50)},start:function(){n.on("resize",window,i.recordWidth)},stop:function(){var e,t;for(t in i.domNodes)(e=i.domNodes[t]).dom.css({fontSize:""}).removeClass(e.settings.className),delete i.domNodes[t];n.off("resize",i.recordWidth)},remove:function(e){var t,n;for(n in i.domNodes)t=i.domNodes[n],s(e)[0]==s(t.dom)[0]&&((t=i.domNodes[n]).dom.css({fontSize:""}).removeClass(t.settings.className),delete i.domNodes[n])},add:function(e){e.dom.addClass(e.settings.className),i.domNodes.push(e),i.resize()},resize:function(){var e,t,n,o;for(o in i.domNodes)e=i.domNodes[o],(t=i.getBreakpointSettings(e)).enabled?(n=t.useParent?e.dom.parent().width():e.dom.outerWidth(!0))<=1||t.baseWidth<=1||((n=t.fontSize*(n/t.baseWidth))>=t.minFont&&n<=t.maxFont?e.dom.css({fontSize:n}):n<t.minFont?e.dom.css({fontSize:t.minFont}):n>t.maxFont&&e.dom.css({fontSize:t.maxFont})):e.dom.css({fontSize:""})},getBreakpointSettings:function(e){var t=s.extend(!0,{},e.settings);if(void 0!==t.responsive)for(var n in t.responsive)(n=s.extend(!0,{},e.settings,t.responsive[n])).breakpoint&&n.breakpoint<=i.windowWidth&&(t=s.extend(!0,{},e.settings,n));return t.enabled&&!t.fontSize&&(t.fontSize=i.getFontSize(e)),t},getFontSize:function(e){return e.dom.css({fontSize:""}),parseFloat(e.dom.css("fontSize"),10)}}),i.start(),i},s.fn.extend({scaleFont:function(n){var o={enabled:!0,baseWidth:!1,fontSize:!1,minFont:16,maxFont:100,className:"font-scaled",useParent:!1};return this.each(function(e,t){return s(t).isFontScaled()||window.jrwFontScaler.add({dom:s(t),settings:s.extend({},o,n)}),t})},unscaleFont:function(){return this.each(function(e,t){window.jrwScaler.remove(t)})},isFontScaled:function(){for(var e in window.jrwFontScaler.domNodes)if(window.jrwFontScaler.domNodes[e].dom.get(0)==this.get(0))return!0;return!1}})}(jQuery);
!function(t){"use strict";t(document).ready(function(){t("input, textarea").placeholder(),t('input[type="checkbox"]').bind("click.checked",function(){t(this).is(":checked")?t('label[for="'+t(this).attr("id")+'"]').addClass("checked"):t('label[for="'+t(this).attr("id")+'"]').removeClass("checked")}),t(document).on("tap",".fancy-select",function(e){t(e.target).is("select")||t(this).find("select").click()}),void 0!==t.browser&&t.browser.msie&&t("label").bind("click.checkbox",function(){var e=t("#"+t(this).attr("for"));e.is('input[type="checkbox"]')&&(e.is(":checked")?(e.removeAttr("checked"),t(this).removeClass("checked")):(e.attr("checked","checked"),t(this).addClass("checked")))}),Modernizr.touch&&window.navigator&&navigator.userAgent.toLowerCase().match(/iphone|ipad|ipod/i)&&t(document).on("focus","input,textarea,select",function(e){t(".stick-me").addClass("fixfixed"),$windowwidth<800&&t(".banner").addClass("fixfixed")}).on("blur","input,textarea,select",function(e){t(".stick-me,.banner").removeClass("fixfixed")})})}(jQuery);
!function(e,t,n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e,0,t),e.mobile}):n(e.jQuery,0,t)}(this,document,function(e,j,t,z){var l=e,n=t;function p(e){for(;e&&void 0!==e.originalEvent;)e=e.originalEvent;return e}function s(e){for(var t,n,o={};e;){for(n in t=l.data(e,y))t[n]&&(o[n]=o.hasVirtualBinding=!0);e=e.parentNode}return o}function o(){S=!0}function F(){S=!1}function a(){i(),k=setTimeout(function(){B=k=0,I.length=0,x=!1,o()},l.vmouse.resetTimerDuration)}function i(){k&&(clearTimeout(k),k=0)}function r(e,t,n){var o;return(n&&n[e]||!n&&function(e,t){for(var n;e;){if((n=l.data(e,y))&&(!t||n[t]))return e;e=e.parentNode}}(t.target,e))&&(o=function(e,t){var n,o,i,s,a,r,c,u=e.type;if((e=l.Event(e)).type=t,n=e.originalEvent,o=l.event.props,-1<u.search(/^(mouse|click)/)&&(o=G),n)for(a=o.length;a;)e[i=o[--a]]=n[i];if(-1<u.search(/mouse(down|up)|click/)&&!e.which&&(e.which=1),-1!==u.search(/^touch/)&&(u=(t=p(n)).touches,t=t.changedTouches,s=u&&u.length?u[0]:t&&t.length?t[0]:void 0))for(r=0,c=C.length;r<c;r++)e[i=C[r]]=s[i];return e}(t,e),l(t.target).trigger(o)),o}function c(e){var t=l.data(e.target,E);x||B&&B===t||!(t=r("v"+e.type,e))||(t.isDefaultPrevented()&&e.preventDefault(),t.isPropagationStopped()&&e.stopPropagation(),!t.isImmediatePropagationStopped())||e.stopImmediatePropagation()}function u(e){var t,n=p(e).touches;n&&1===n.length&&(t=s(n=e.target)).hasVirtualBinding&&(B=R++,l.data(n,E,B),i(),F(),M=!1,n=p(e).touches[0],J=n.pageX,K=n.pageY,r("vmouseover",e,t),r("vmousedown",e,t))}function h(e){S||(M||r("vmousecancel",e,s(e.target)),M=!0,a())}function H(e){var t,n,o,i;S||(t=p(e).touches[0],n=M,o=l.vmouse.moveDistanceThreshold,i=s(e.target),(M=M||Math.abs(t.pageX-J)>o||Math.abs(t.pageY-K)>o)&&!n&&r("vmousecancel",e,i),r("vmousemove",e,i),a())}function V(e){var t,n;S||(o(),r("vmouseup",e,t=s(e.target)),M||(n=r("vclick",e,t))&&n.isDefaultPrevented()&&(n=p(e).changedTouches[0],I.push({touchID:B,x:n.clientX,y:n.clientY}),x=!0),r("vmouseout",e,t),M=!1,a())}function q(e){var t,n=l.data(e,y);if(n)for(t in n)if(n[t])return 1}function Q(){}var v,d,f,m,A,g,w,b,T,D,y="virtualMouseBindings",E="virtualTouchID",P="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),C="clientX clientY pageX pageY screenX screenY".split(" "),X=l.event.mouseHooks?l.event.mouseHooks.props:[],G=l.event.props.concat(X),Y={},k=0,J=0,K=0,M=!1,I=[],x=!1,S=!1,L="addEventListener"in n,O=l(n),R=1,B=0;for(l.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},d=0;d<P.length;d++)l.event.special[P[d]]=function(n){var o=n.substr(1);return{setup:function(){q(this)||l.data(this,y,{}),l.data(this,y)[n]=!0,Y[n]=(Y[n]||0)+1,1===Y[n]&&O.bind(o,c),l(this).bind(o,Q),L&&(Y.touchstart=(Y.touchstart||0)+1,1===Y.touchstart)&&O.bind("touchstart",u).bind("touchend",V).bind("touchmove",H).bind("scroll",h)},teardown:function(){--Y[n],Y[n]||O.unbind(o,c),L&&(--Y.touchstart,Y.touchstart||O.unbind("touchstart",u).unbind("touchmove",H).unbind("touchend",V).unbind("scroll",h));var e=l(this),t=l.data(this,y);t&&(t[n]=!1),e.unbind(o,Q),q(this)||e.removeData(y)}}}(P[d]);function N(e,t,n,o){var i=n.type;n.type=t,o?f.event.trigger(n,A,e):f.event.dispatch.call(e,n),n.type=i}L&&n.addEventListener("click",function(e){var t,n,o,i,s,a=I.length,r=e.target;if(a)for(t=e.clientX,n=e.clientY,v=l.vmouse.clickDistanceThreshold,o=r;o;){for(i=0;i<a;i++)if(s=I[i],o===r&&Math.abs(s.x-t)<v&&Math.abs(s.y-n)<v||l.data(o,E)===s.touchID)return e.preventDefault(),void e.stopPropagation();o=o.parentNode}},!0),e.mobile={},X=e,n={touch:"ontouchend"in t},X.mobile.support=X.mobile.support||{},X.extend(X.support,n),X.extend(X.mobile.support,n),m=this,g=(f=e)(t),X=f.mobile.support.touch,w="touchmove scroll",b=X?"touchstart":"mousedown",T=X?"touchend":"mouseup",D=X?"touchmove":"mousemove",f.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(e,t){f.fn[t]=function(e){return e?this.bind(t,e):this.trigger(t)},f.attrFn&&(f.attrFn[t]=!0)}),f.event.special.scrollstart={enabled:!0,setup:function(){function t(e,t){N(i,(n=t)?"scrollstart":"scrollstop",e)}var n,o,i=this;f(i).bind(w,function(e){f.event.special.scrollstart.enabled&&(n||t(e,!0),clearTimeout(o),o=setTimeout(function(){t(e,!1)},50))})},teardown:function(){f(this).unbind(w)}},f.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var a=this,r=f(a),c=!1;r.bind("vmousedown",function(e){function t(){clearTimeout(i)}function n(){t(),r.unbind("vclick",o).unbind("vmouseup",t),g.unbind("vmousecancel",n)}function o(e){n(),c||s!==e.target?c&&e.preventDefault():N(a,"tap",e)}if(c=!1,e.which&&1!==e.which)return!1;var i,s=e.target;r.bind("vmouseup",t).bind("vclick",o),g.bind("vmousecancel",n),i=setTimeout(function(){f.event.special.tap.emitTapOnTaphold||(c=!0),N(a,"taphold",f.Event("taphold",{target:s}))},f.event.special.tap.tapholdThreshold)})},teardown:function(){f(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),g.unbind("vmousecancel")}},f.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(e){var t=m.pageXOffset,n=m.pageYOffset,o=e.clientX,i=e.clientY;return 0===e.pageY&&Math.floor(i)>Math.floor(e.pageY)||0===e.pageX&&Math.floor(o)>Math.floor(e.pageX)?(o-=t,i-=n):(i<e.pageY-n||o<e.pageX-t)&&(o=e.pageX-t,i=e.pageY-n),{x:o,y:i}},start:function(e){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e,t=f.event.special.swipe.getLocation(t);return{time:(new Date).getTime(),coords:[t.x,t.y],origin:f(e.target)}},stop:function(e){e=e.originalEvent.touches?e.originalEvent.touches[0]:e,e=f.event.special.swipe.getLocation(e);return{time:(new Date).getTime(),coords:[e.x,e.y]}},handleSwipe:function(e,t,n,o){var i;return t.time-e.time<f.event.special.swipe.durationThreshold&&Math.abs(e.coords[0]-t.coords[0])>f.event.special.swipe.horizontalDistanceThreshold&&Math.abs(e.coords[1]-t.coords[1])<f.event.special.swipe.verticalDistanceThreshold&&(i=e.coords[0]>t.coords[0]?"swipeleft":"swiperight",N(n,"swipe",f.Event("swipe",{target:o,swipestart:e,swipestop:t}),!0),N(n,i,f.Event(i,{target:o,swipestart:e,swipestop:t}),!0),!0)},eventInProgress:!1,setup:function(){var s=this,e=f(s),a={},t=f.data(this,"mobile-events");t||f.data(this,"mobile-events",t={length:0}),t.length++,(t.swipe=a).start=function(e){var t,n,o,i;f.event.special.swipe.eventInProgress||(f.event.special.swipe.eventInProgress=!0,n=f.event.special.swipe.start(e),o=e.target,i=!1,a.move=function(e){n&&!e.isDefaultPrevented()&&(t=f.event.special.swipe.stop(e),i||(i=f.event.special.swipe.handleSwipe(n,t,s,o))&&(f.event.special.swipe.eventInProgress=!1),Math.abs(n.coords[0]-t.coords[0])>f.event.special.swipe.scrollSupressionThreshold)&&e.preventDefault()},a.stop=function(){i=!0,f.event.special.swipe.eventInProgress=!1,g.off(D,a.move),a.move=null},g.on(D,a.move).one(T,a.stop))},e.on(b,a.start)},teardown:function(){var e,t=f.data(this,"mobile-events");t&&(e=t.swipe,delete t.swipe,t.length--,0===t.length)&&f.removeData(this,"mobile-events"),e&&(e.start&&f(this).off(b,e.start),e.move&&g.off(D,e.move),e.stop)&&g.off(T,e.stop)}},f.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(e,t){f.event.special[e]={setup:function(){f(this).bind(t,f.noop)},teardown:function(){f(this).unbind(t)}}})});
!function(e,a,d){var t,l="[object OperaMini]"==Object.prototype.toString.call(e.operamini),r="placeholder"in a.createElement("input")&&!l,l="placeholder"in a.createElement("textarea")&&!l,o=d.fn,c=d.valHooks,i=d.propHooks;function n(e,a){var t=this,l=d(t);if(t.value==l.attr("placeholder")&&l.hasClass("placeholder"))if(l.data("placeholder-password")){if(l=l.hide().next().show().attr("id",l.removeAttr("id").data("placeholder-id")),!0===e)return l[0].value=a;l.focus()}else t.value="",l.removeClass("placeholder"),t==h()&&t.select()}function p(){var a,t,l,r=this,e=d(r),o=this.id;if(""==r.value){if("password"==r.type){if(!e.data("placeholder-textinput")){try{a=e.clone().attr({type:"text"})}catch(e){a=d("<input>").attr(d.extend((r=this,t={},l=/^jQuery\d+$/,d.each(r.attributes,function(e,a){a.specified&&!l.test(a.name)&&(t[a.name]=a.value)}),t),{type:"text"}))}a.removeAttr("name").data({"placeholder-password":e,"placeholder-id":o}).bind("focus.placeholder",n),e.data({"placeholder-textinput":a,"placeholder-id":o}).before(a)}e=e.removeAttr("id").hide().prev().attr("id",o).show()}e.addClass("placeholder"),e[0].value=e.attr("placeholder")}else e.removeClass("placeholder")}function h(){try{return a.activeElement}catch(e){}}r&&l?(t=o.placeholder=function(){return this}).input=t.textarea=!0:((t=o.placeholder=function(){return this.filter((r?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":n,"blur.placeholder":p}).data("placeholder-enabled",!0).trigger("blur.placeholder"),this}).input=r,t.textarea=l,o={get:function(e){var a=d(e),t=a.data("placeholder-password");return t?t[0].value:a.data("placeholder-enabled")&&a.hasClass("placeholder")?"":e.value},set:function(e,a){var t=d(e),l=t.data("placeholder-password");return l?l[0].value=a:t.data("placeholder-enabled")?(""==a?(e.value=a,e!=h()&&p.call(e)):t.hasClass("placeholder")&&n.call(e,!0,a)||(e.value=a),t):e.value=a}},r||(c.input=o,i.value=o),l||(c.textarea=o,i.value=o),d(function(){d(a).delegate("form","submit.placeholder",function(){var e=d(".placeholder",this).each(n);setTimeout(function(){e.each(p)},10)})}),d(e).bind("beforeunload.placeholder",function(){d(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery);
!function(s){"use strict";function h(e){var i={};return(e||window.location.search).replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(e,t,n,o){i[t]=o}),i}s.fn.extend({campaingTracking:function(e){var a=s.extend({},{get:[],host:"",time:86400,overwrite:!1},e),t=h(),c={},g=new RegExp("^.*"+a.host+".*","gi");if("function"==typeof Cookies){for(var n in a.get)a.get.hasOwnProperty(n)&&(void 0!==t[a.get[n]]&&Cookies.set(a.get[n],t[a.get[n]],{expires:0<a.time?a.time/86400:0}),Cookies.get(a.get[n]))&&(c[a.get[n]]=Cookies.get(a.get[n]));return this.each(function(e,t){var n=s(t),o=n.get(0).search,i=n.get(0).hash,r=n.prop("href").replace(o,"").replace(i,"");return n.is("a")&&r.match(g)&&Object.keys(c).length&&n.on("tap",function(e){var t=c;e.preventDefault(),o.length&&(t=a.overwrite?s.extend(h(o),t):s.extend(t,h(o))),(o=Object.keys(t).length?s.map(t,function(e,t){return e&&t?t+"="+e:null}).join("&"):o).length&&!o.match(/^\?/)&&(o="?"+o),window.location=r+o+i}),t})}console.log("js.cookie not loaded.")}})}(jQuery);
!function(e){var n,o,t=!1;"function"==typeof define&&define.amd&&(define(e),t=!0),"object"==typeof exports&&(module.exports=e(),t=!0),t||(n=window.Cookies,(o=window.Cookies=e()).noConflict=function(){return window.Cookies=n,o})}(function(){function g(){for(var e=0,n={};e<arguments.length;e++){var o,t=arguments[e];for(o in t)n[o]=t[o]}return n}return function e(l){function C(e,n,o){var t,r;if("undefined"!=typeof document){if(1<arguments.length){"number"==typeof(o=g({path:"/"},C.defaults,o)).expires&&((r=new Date).setMilliseconds(r.getMilliseconds()+864e5*o.expires),o.expires=r),o.expires=o.expires?o.expires.toUTCString():"";try{t=JSON.stringify(n),/^[\{\[]/.test(t)&&(n=t)}catch(e){}n=l.write?l.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var i,c="";for(i in o)o[i]&&(c+="; "+i,!0!==o[i])&&(c+="="+o[i]);return document.cookie=e+"="+n+c}e||(t={});for(var s=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,p=0;p<s.length;p++){var a=s[p].split("=");'"'===(u=a.slice(1).join("=")).charAt(0)&&(u=u.slice(1,-1));try{var d=a[0].replace(f,decodeURIComponent),u=l.read?l.read(u,d):l(u,d)||u.replace(f,decodeURIComponent);if(this.json)try{u=JSON.parse(u)}catch(e){}if(e===d){t=u;break}e||(t[d]=u)}catch(e){}}return t}}return(C.set=C).get=function(e){return C.call(C,e)},C.getJSON=function(){return C.apply({json:!0},[].slice.call(arguments))},C.defaults={},C.remove=function(e,n){C(e,"",g(n,{expires:-1}))},C.withConverter=e,C}(function(){})});
!function(c){"use strict";c(document).ready(function(){c(document).on("tap",".widget .paging-nav",function(a){var d=c(this),e=d.parents(".widget").find(".ajax_data"),s=d.parents(".widget").hasClass("ajax-target")?d.parents(".widget"):d.parents(".widget").find(".ajax-target").last(),t=c("#icit-shown-posts").data("shown-posts"),n=e.data("query"),o=e.data("nonce"),i=e.data("start"),r=e.data("end"),u=e.data("layout"),l=e.data("site"),p=e.data("url"),n={_icit_ajax:"What did you hope to find?",action:"next_page",query:n,nonce:o,start:i,end:r,layout:u,site:l,shown:t,known:e.data("known")};d.hasClass("disabled")||(d.addClass("disabled"),c.post(p,n,function(a,t,n){d.removeClass("disabled"),null!==a&&"object"==typeof a&&void 0!==a.start&&(e.data("start",a.start),e.data("end",a.end),a.html&&s.append(a.html),a.found<=a.end)&&d.remove()},"json"))})})}(jQuery);
var modal,btn;window.document.documentMode&&((modal=document.getElementById("modal-ie11")).style.display="block",(btn=document.getElementById("modal-ie11__close")).onclick=function(){modal.style.display="none"});
!function(i,d,f){function m(e,t){return typeof e===t}function a(e){var t,n=g.className,r=l._config.classPrefix||"";h&&(n=n.baseVal),l._config.enableJSClass&&(t=new RegExp("(^|\\s)"+r+"no-js(\\s|$)"),n=n.replace(t,"$1"+r+"js$2")),l._config.enableClasses&&(n+=" "+r+e.join(" "+r),h?g.className.baseVal=n:g.className=n)}function p(e){return"function"!=typeof d.createElement?d.createElement(e):h?d.createElementNS.call(d,"http://www.w3.org/2000/svg",e):d.createElement.apply(d,arguments)}function M(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function o(e,t,n,r){var o,a,i,s,l="modernizr",c=p("div");(s=d.body)||((s=p(h?"svg":"body")).fake=!0);if(parseInt(n,10))for(;n--;)(a=p("div")).id=r?r[n]:l+(n+1),c.appendChild(a);return(o=p("style")).type="text/css",o.id="s"+l,(s.fake?s:c).appendChild(o),s.appendChild(c),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(d.createTextNode(e)),c.id=l,s.fake&&(s.style.background="",s.style.overflow="hidden",i=g.style.overflow,g.style.overflow="hidden",g.appendChild(s)),o=t(c,e),s.fake?(s.parentNode.removeChild(s),g.style.overflow=i,g.offsetHeight):c.parentNode.removeChild(c),!!o}function L(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function B(e,t){var n=e.length;if("CSS"in i&&"supports"in i.CSS){for(;n--;)if(i.CSS.supports(L(e[n]),t))return!0;return!1}if("CSSSupportsRule"in i){for(var r=[];n--;)r.push("("+L(e[n])+":"+t+")");return o("@supports ("+(r=r.join(" or "))+") { #modernizr { position: absolute; } }",function(e){return"absolute"==(e=e,t=null,n="position","getComputedStyle"in i?(r=getComputedStyle.call(i,e,t),o=i.console,null!==r?n&&(r=r.getPropertyValue(n)):o&&o[o.error?"error":"log"].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")):r=!t&&e.currentStyle&&e.currentStyle[n],r);var t,n,r,o})}return f}function O(e,t,n,r){function o(){i&&(delete $.style,delete $.modElem)}if(r=void 0!==r&&r,void 0!==n){var a=B(e,n);if(void 0!==a)return a}for(var i,s,l,c,d,u=["modernizr","tspan","samp"];!$.style&&u.length;)i=!0,$.modElem=p(u.shift()),$.style=$.modElem.style;for(l=e.length,s=0;s<l;s++)if(c=e[s],d=$.style[c],~(""+c).indexOf("-")&&(c=M(c)),$.style[c]!==f){if(r||void 0===n)return o(),"pfx"!=t||c;try{$.style[c]=n}catch(e){}if($.style[c]!=d)return o(),"pfx"!=t||c}return o(),!1}function r(e,t,n,r,o){var a,i,s=e.charAt(0).toUpperCase()+e.slice(1),l=(e+" "+K.join(s+" ")+s).split(" ");if(m(t,"string")||void 0===t)return O(l,t,r,o);var c=(e+" "+Y.join(s+" ")+s).split(" "),d=t,u=n;for(i in c)if(c[i]in d)if(!1===u)return c[i];else{a=d[c[i]];if(m(a,"function")){var f=a;var p=u||d;return function(){return f.apply(p,arguments)};return}else return a}return!1}function e(e,t,n){return r(e,f,f,t,n)}function U(e,t){if("object"==typeof e)for(var n in e)te(e,n)&&U(n,e[n]);else{var r=(e=e.toLowerCase()).split("."),o=l[r[0]];if(void 0!==(o=2==r.length?o[r[1]]:o))return l;t="function"==typeof t?t():t,1==r.length?l[r[0]]=t:(!l[r[0]]||l[r[0]]instanceof Boolean||(l[r[0]]=new Boolean(l[r[0]])),l[r[0]][r[1]]=t),a([(t&&0!=t?"":"no-")+r.join("-")]),l._trigger(e,t)}return l}var V=[],s=[],t={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){s.push({name:e,fn:t,options:n})},addAsyncTest:function(e){s.push({name:null,fn:e})}},l=function(){},n=(l.prototype=t,(l=new l).addTest("svg",!!d.createElementNS&&!!d.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),"CSS"in i&&"supports"in i.CSS),c="supportsCSS"in i,u=(l.addTest("supports",n||c),l.addTest("svgfilters",function(){var e=!1;try{e="SVGFEColorMatrixElement"in i&&2==SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE}catch(e){}return e}),t._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""]),g=(t._prefixes=u,d.documentElement),h="svg"===g.nodeName.toLowerCase();if(!h){var v=d;function q(){var e=E.elements;return"string"==typeof e?e.split(" "):e}function y(e){var t=W[e[I]];return t||(t={},S++,e[I]=S,W[S]=t),t}function D(e,t,n){return t=t||v,b?t.createElement(e):!(t=(n=n||y(t)).cache[e]?n.cache[e].cloneNode():H.test(e)?(n.cache[e]=n.createElem(e)).cloneNode():n.createElem(e)).canHaveChildren||G.test(e)||t.tagUrn?t:n.frag.appendChild(t)}function w(e){var t,n,r,o,a,i=y(e=e||v);return!E.shivCSS||T||i.hasCSS||(i.hasCSS=(o="article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}",a=(r=e).createElement("p"),r=r.getElementsByTagName("head")[0]||r.documentElement,a.innerHTML="x<style>"+o+"</style>",!!r.insertBefore(a.lastChild,r.firstChild))),b||(t=e,(n=i).cache||(n.cache={},n.createElem=t.createElement,n.createFrag=t.createDocumentFragment,n.frag=n.createFrag()),t.createElement=function(e){return E.shivMethods?D(e,t,n):n.createElem(e)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+q().join().replace(/[\w\-:]+/g,function(e){return n.createElem(e),n.frag.createElement(e),'c("'+e+'")'})+");return n}")(E,n.frag)),e}var T,b,c=(n=void 0!==i?i:this).html5||{},G=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,H=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,I="_html5shiv",S=0,W={};try{var x=v.createElement("a");x.innerHTML="<xyz></xyz>",T="hidden"in x,b=1==x.childNodes.length||(v.createElement("a"),void 0===(C=v.createDocumentFragment()).cloneNode)||void 0===C.createDocumentFragment||void 0===C.createElement}catch(e){b=T=!0}var E={elements:c.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==c.shivCSS,supportsUnknownElements:b,shivMethods:!1!==c.shivMethods,type:"default",shivDocument:w,createElement:D,createDocumentFragment:function(e,t){if(e=e||v,b)return e.createDocumentFragment();for(var n=(t=t||y(e)).frag.cloneNode(),r=0,o=q(),a=o.length;r<a;r++)n.createElement(o[r]);return n},addElements:function(e,t){var n=E.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),E.elements=n+" "+e,w(t)}};n.html5=E,w(v),"object"==typeof module&&module.exports&&(module.exports=E)}function J(e,t){var n;return!!e&&(!(n=(e="on"+e)in(t=t&&"string"!=typeof t?t:p(t||"div")))&&X&&((t=t.setAttribute?t:p("div")).setAttribute(e,""),n="function"==typeof t[e],t[e]!==f&&(t[e]=f),t.removeAttribute(e)),n)}var X,x="Moz O ms Webkit",Y=t._config.usePrefixes?x.toLowerCase().split(" "):[],Z=(t._domPrefixes=Y,X=!("onblur"in d.documentElement),t.hasEvent=J,l.addTest("audio",function(){var e=p("audio"),t=!1;try{(t=!!e.canPlayType)&&((t=new Boolean(t)).ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),t.opus=e.canPlayType('audio/ogg; codecs="opus"')||e.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(e){}return t}),l.addTest("video",function(){var e=p("video"),t=!1;try{(t=!!e.canPlayType)&&((t=new Boolean(t)).ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),t.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(e){}return t}),l.addTest("cssgradients",function(){for(var e="background-image:",t="",n=0,r=u.length-1;n<r;n++)t+=e+u[n]+"linear-gradient("+(0===n?"to ":"")+"left top, #9f9, white);";l._config.usePrefixes&&(t+=e+"-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));");var o=p("a").style;return o.cssText=t,-1<(""+o.backgroundImage).indexOf("gradient")}),l.addTest("inlinesvg",function(){var e=p("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)}),{}.toString),K=(l.addTest("smil",function(){return!!d.createElementNS&&/SVGAnimate/.test(Z.call(d.createElementNS("http://www.w3.org/2000/svg","animate")))}),t._config.usePrefixes?x.split(" "):[]),C=(t._cssomPrefixes=K,t.testStyles=o);c=navigator.userAgent,n=c.match(/w(eb)?osbrowser/gi),c=c.match(/windows phone/gi)&&c.match(/iemobile\/([0-9])+/gi)&&9<=parseFloat(RegExp.$1);function Q(e){var t,n=u.length,r=i.CSSRule;if(void 0===r)return f;if(e){if((t=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in r)return"@"+e;for(var o=0;o<n;o++){var a=u[o];if(a.toUpperCase()+"_"+t in r)return"@-"+a.toLowerCase()+"-"+e}}return!1}n||c?l.addTest("fontface",!1):C('@font-face {font-family:"font";src:url("https://")}',function(e,t){var n=d.getElementById("smodernizr"),n=n.sheet||n.styleSheet,n=n?n.cssRules&&n.cssRules[0]?n.cssRules[0].cssText:n.cssText||"":"",n=/src/i.test(n)&&0===n.indexOf(t.split(" ")[0]);l.addTest("fontface",n)}),C('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(e){l.addTest("generatedcontent",6<=e.offsetHeight)}),C("#modernizr div {width:1px} #modernizr div:nth-child(2n) {width:2px;}",function(e){for(var t=e.getElementsByTagName("div"),n=!0,r=0;r<5;r++)n=n&&t[r].offsetWidth===r%2+1;l.addTest("nthchild",n)},5);var ee,te,_,P,z,N,j,k,F,R,n=(ee=i.matchMedia||i.msMatchMedia)?function(e){e=ee(e);return e&&e.matches||!1}:function(e){var t=!1;return o("@media "+e+" { #modernizr { position: absolute; } }",function(e){t="absolute"==(i.getComputedStyle?i.getComputedStyle(e,null):e.currentStyle).position}),t},ne=(t.mq=n,l.addTest("mediaqueries",n("only all")),t.atRule=Q,{elem:p("modernizr")}),$=(l._q.push(function(){delete ne.elem}),{style:ne.elem.style}),c=(l._q.unshift(function(){delete $.style}),t.testProp=function(e,t,n){return O([e],f,t,n)},t.testAllProps=r,t.testAllProps=e,l.addTest("backgroundsize",e("backgroundSize","100%",!0)),l.addTest("flexbox",e("flexBasis","1px",!0)),l.addTest("flexboxlegacy",e("boxDirection","reverse",!0)),l.addTest("flexboxtweener",e("flexAlign","end",!0)),l.addTest("flexwrap",e("flexWrap","wrap",!0)),t.prefixed=function(e,t,n){return 0===e.indexOf("@")?Q(e):(-1!=e.indexOf("-")&&(e=M(e)),t?r(e,t,n):r(e,"pfx"))});for(F in l.addTest("objectfit",!!c("objectFit"),{aliases:["object-fit"]}),te=void 0===(R={}.hasOwnProperty)||void 0===R.call?function(e,t){return t in e&&void 0===e.constructor.prototype[t]}:function(e,t){return R.call(e,t)},t._l={},t.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),l.hasOwnProperty(e)&&setTimeout(function(){l._trigger(e,l[e])},0)},t._trigger=function(e,t){var n;this._l[e]&&(n=this._l[e],setTimeout(function(){for(var e=0;e<n.length;e++)(0,n[e])(t)},0),delete this._l[e])},l._q.push(function(){t.addTest=U}),l.addTest("svgasimg",d.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")),s)if(s.hasOwnProperty(F)){if(_=[],(P=s[F]).name&&(_.push(P.name.toLowerCase()),P.options)&&P.options.aliases&&P.options.aliases.length)for(z=0;z<P.options.aliases.length;z++)_.push(P.options.aliases[z].toLowerCase());for(N=m(P.fn,"function")?P.fn():P.fn,j=0;j<_.length;j++)1===(k=_[j].split(".")).length?l[k[0]]=N:(!l[k[0]]||l[k[0]]instanceof Boolean||(l[k[0]]=new Boolean(l[k[0]])),l[k[0]][k[1]]=N),V.push((N?"":"no-")+k.join("-"))}a(V),delete t.addTest,delete t.addAsyncTest;for(var A=0;A<l._q.length;A++)l._q[A]();i.Modernizr=l}(window,document);
!function(r,c,t){var i="nivoLightbox",e={effect:"fade",theme:"default",keyboardNav:!0,clickImgToClose:!1,clickOverlayToClose:!0,onInit:function(){},beforeShowLightbox:function(){},afterShowLightbox:function(t){},beforeHideLightbox:function(){},afterHideLightbox:function(){},beforePrev:function(t){},onPrev:function(t){},beforeNext:function(t){},onNext:function(t){},errorMessage:"The requested content cannot be loaded. Please try again later."};function o(t,o){this.el=t,this.$el=r(this.el),this.options=r.extend({},e,o),this._defaults=e,this._name=i,this.init()}o.prototype={init:function(){var o=this;r("html").hasClass("nivo-lightbox-notouch")||r("html").addClass("nivo-lightbox-notouch"),"ontouchstart"in t&&r("html").removeClass("nivo-lightbox-notouch"),this.$el.on("click",function(t){o.showLightbox(t)}),this.options.keyboardNav&&r("body").off("keyup").on("keyup",function(t){t=t.keyCode||t.which;27==t&&o.destructLightbox(),37==t&&r(".nivo-lightbox-prev").trigger("click"),39==t&&r(".nivo-lightbox-next").trigger("click")}),this.options.onInit.call(this)},showLightbox:function(t){var o,i,e,n=this,l=this.$el;this.checkContent(l)&&(t.preventDefault(),this.options.beforeShowLightbox.call(this),o=this.constructLightbox())&&(i=o.find(".nivo-lightbox-content"))&&(r("body").addClass("nivo-lightbox-body-effect-"+this.options.effect),this.processContent(i,l),this.$el.attr("data-lightbox-gallery")&&(e=r('[data-lightbox-gallery="'+this.$el.attr("data-lightbox-gallery")+'"]'),r(".nivo-lightbox-nav").show(),r(".nivo-lightbox-prev").off("click").on("click",function(t){t.preventDefault();t=e.index(l);l=e.eq(t-1),r(l).length||(l=e.last()),r.when(n.options.beforePrev.call(this,[l])).done(function(){n.processContent(i,l),n.options.onPrev.call(this,[l])})}),r(".nivo-lightbox-next").off("click").on("click",function(t){t.preventDefault();t=e.index(l);l=e.eq(t+1),r(l).length||(l=e.first()),r.when(n.options.beforeNext.call(this,[l])).done(function(){n.processContent(i,l),n.options.onNext.call(this,[l])})})),setTimeout(function(){o.addClass("nivo-lightbox-open"),n.options.afterShowLightbox.call(this,[o])},1))},checkContent:function(t){var o=t.attr("href"),i=o.match(/(youtube|youtube-nocookie|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/);return null!==o.match(/\.(jpeg|jpg|gif|png)$/i)||!!i||"ajax"==t.attr("data-lightbox-type")||"#"==o.substring(0,1)&&"inline"==t.attr("data-lightbox-type")||"iframe"==t.attr("data-lightbox-type")},processContent:function(i,t){var o,e=this,n=t.attr("href"),l=n.match(/(youtube|youtube-nocookie|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/);if(i.html("").addClass("nivo-lightbox-loading"),null!==(n=this.isHidpi()&&t.attr("data-lightbox-hidpi")?t.attr("data-lightbox-hidpi"):n).match(/\.(jpeg|jpg|gif|png)$/i)){var a=r("<img>",{src:n,class:"nivo-lightbox-image-display"});a.one("load",function(){var t=r('<div class="nivo-lightbox-image" />');t.append(a),i.html(t).removeClass("nivo-lightbox-loading"),t.css({"line-height":r(".nivo-lightbox-content").height()+"px",height:r(".nivo-lightbox-content").height()+"px"}),r(c).resize(function(){t.css({"line-height":r(".nivo-lightbox-content").height()+"px",height:r(".nivo-lightbox-content").height()+"px"})})}).each(function(){this.complete&&r(this).load()}),a.error(function(){var t=r('<div class="nivo-lightbox-error"><p>'+e.options.errorMessage+"</p></div>");i.html(t).removeClass("nivo-lightbox-loading")})}else if(l){var h="",s="nivo-lightbox-video";"youtube"==l[1]&&(h="//www.youtube.com/embed/"+l[4],s="nivo-lightbox-youtube"),"youtube-nocookie"==l[1]&&(h=n,s="nivo-lightbox-youtube"),"youtu"==l[1]&&(h="//www.youtube.com/embed/"+l[3],s="nivo-lightbox-youtube"),"vimeo"==l[1]&&(h="//player.vimeo.com/video/"+l[3],s="nivo-lightbox-vimeo"),h&&(l=r("<iframe>",{src:h,class:s,frameborder:0,vspace:0,hspace:0,scrolling:"auto"}),i.html(l),l.load(function(){i.removeClass("nivo-lightbox-loading")}))}else if("ajax"==t.attr("data-lightbox-type"))r.ajax({url:n,cache:!1,success:function(t){var o=r('<div class="nivo-lightbox-ajax" />');o.append(t),i.html(o).removeClass("nivo-lightbox-loading"),o.outerHeight()<i.height()&&o.css({position:"relative",top:"50%","margin-top":-o.outerHeight()/2+"px"}),r(c).resize(function(){o.outerHeight()<i.height()&&o.css({position:"relative",top:"50%","margin-top":-o.outerHeight()/2+"px"})})},error:function(){var t=r('<div class="nivo-lightbox-error"><p>'+e.options.errorMessage+"</p></div>");i.html(t).removeClass("nivo-lightbox-loading")}});else if("#"==n.substring(0,1)&&"inline"==t.attr("data-lightbox-type"))r(n).length?((o=r('<div class="nivo-lightbox-inline" />')).append(r(n).clone().show()),i.html(o).removeClass("nivo-lightbox-loading"),o.outerHeight()<i.height()&&o.css({position:"relative",top:"50%","margin-top":-o.outerHeight()/2+"px"}),r(c).resize(function(){o.outerHeight()<i.height()&&o.css({position:"relative",top:"50%","margin-top":-o.outerHeight()/2+"px"})})):(h=r('<div class="nivo-lightbox-error"><p>'+e.options.errorMessage+"</p></div>"),i.html(h).removeClass("nivo-lightbox-loading"));else{if("iframe"!=t.attr("data-lightbox-type"))return!1;s=r("<iframe>",{src:n,class:"nivo-lightbox-item",frameborder:0,vspace:0,hspace:0,scrolling:"auto"});i.html(s),s.load(function(){i.removeClass("nivo-lightbox-loading")})}t.attr("title")?((l=r("<span>",{class:"nivo-lightbox-title"})).text(t.attr("title")),r(".nivo-lightbox-title-wrap").html(l)):r(".nivo-lightbox-title-wrap").html("")},constructLightbox:function(){var t,o,i,e,n,l,a;return r(".nivo-lightbox-overlay").length?r(".nivo-lightbox-overlay"):(t=r("<div>",{class:"nivo-lightbox-overlay nivo-lightbox-theme-"+this.options.theme+" nivo-lightbox-effect-"+this.options.effect}),o=r("<div>",{class:"nivo-lightbox-wrap"}),i=r("<div>",{class:"nivo-lightbox-content"}),e=r('<a href="#" class="nivo-lightbox-nav nivo-lightbox-prev">Previous</a><a href="#" class="nivo-lightbox-nav nivo-lightbox-next">Next</a>'),n=r('<a href="#" class="nivo-lightbox-close" title="Close">Close</a>'),l=r("<div>",{class:"nivo-lightbox-title-wrap"}),o.append(i),o.append(l),t.append(o),t.append(e),t.append(n),r("body").append(t),(a=this).options.clickOverlayToClose&&t.on("click",function(t){(t.target===this||r(t.target).hasClass("nivo-lightbox-content")||r(t.target).hasClass("nivo-lightbox-image"))&&a.destructLightbox()}),a.options.clickImgToClose&&t.on("click",function(t){t.target!==this&&!r(t.target).hasClass("nivo-lightbox-image-display")||a.destructLightbox()}),n.on("click",function(t){t.preventDefault(),a.destructLightbox()}),t)},destructLightbox:function(){this.options.beforeHideLightbox.call(this),r(".nivo-lightbox-overlay").removeClass("nivo-lightbox-open"),r(".nivo-lightbox-nav").hide(),r("body").removeClass("nivo-lightbox-body-effect-"+this.options.effect);r(".nivo-lightbox-prev").off("click"),r(".nivo-lightbox-next").off("click"),r(".nivo-lightbox-content").empty(),this.options.afterHideLightbox.call(this)},isHidpi:function(){return 1<c.devicePixelRatio||!(!c.matchMedia||!c.matchMedia("(-webkit-min-device-pixel-ratio: 1.5),                              (min--moz-device-pixel-ratio: 1.5),                              (-o-min-device-pixel-ratio: 3/2),                              (min-resolution: 1.5dppx)").matches)}},r.fn[i]=function(t){return this.each(function(){r.data(this,i)||r.data(this,i,new o(this,t))})}}(jQuery,window,document);
!function(l){"use strict";function r(e,r){var r=l(r),a=r.get(0).search,t=r.get(0).hash;return r.prop("href").replace(a,"").replace(t,"").match(/\.(jpg|jpe|jpeg|png|gif|bmp|m4v|mp4)$/)}l(document).ready(function(){var e=l("a > img:only-child").parent().filter(r).attr("data-lightbox-gallery","gallery");1<=e.length&&e.nivoLightbox({clickOverlayToClose:!0,keyboardNav:!0})})}(jQuery);
!function(t){"use strict";t(document).ready(function(){"object"==typeof Modernizr&&!Modernizr.objectfit&&Modernizr.backgroundsize&&t(".gallery > figure > .gallery-icon a, .fixed-height, .figure-with-caption.aligncenter").each(function(i,e){var r=t(this).children("img");r.length&&(r.css({visibility:"hidden"}).wrap('<div class="object-fit-fix"></div>').parent(".object-fit-fix").css({backgroundImage:"url('"+r.attr("src")+"')",backgroundSize:"cover"}),r.on("lazyafterunveil",function(i){t(this).parent(".object-fit-fix").css({backgroundImage:"url('"+t(this).attr("src")+"')",backgroundSize:"cover"})}))})})}(jQuery);
!function(c){"use strict";c(document).ready(function(){c(".simple-ajax-pagination").each(function(){var u=c(this);u.append('<div class="load-more nav-links"><a href="#" class="paging-nav button outline">More articles</a></div>').siblings(".pagination-links").hide(),u.find(".load-more > .paging-nav").on("tap",function(a){var e,d,t,n,i,o,s,l,r;a.preventDefault(),e=(a=u).find(".load-more > .paging-nav"),a=(d=a.find(".ajax_data")).data("query"),t=d.data("nonce"),n=d.data("start"),i=d.data("end"),o=d.data("layout"),s=d.data("site"),l=d.data("url"),a={_icit_ajax:"What did you hope to find?",action:"next_page",query:a,nonce:t,start:n,end:i,layout:o,site:s},r=c(o),e.hasClass("disabled")||(e.addClass("disabled"),c.post(l,a,function(a,t,n){e.removeClass("disabled"),null!==a&&"object"==typeof a&&void 0!==a.start&&(d.data("start",a.start),d.data("end",a.end),a.html&&r.append(a.html),a.found<=a.end)&&e.remove()},"json"))})})})}(jQuery);
!function(d){"use strict";d(document).ready(function(){d(".carousel-me").each(function(s){var o=d(this),e=d('<div class="slick-controls"></div>'),t="undefined"!=typeof sitevars&&void 0!==sitevars.carousel_speed&&""!==sitevars.carousel_speed&&0<=sitevars.carousel_speed?sitevars.carousel_speed:0,l=[{breakpoint:480,settings:{dots:!0,slidesToShow:2,slidesToScroll:2}},{breakpoint:800,settings:{dots:!0,slidesToShow:3,slidesToScroll:3,autoplay:0<t}},{breakpoint:900,settings:{dots:!0,slidesToShow:4,slidesToScroll:4,autoplay:0<t}}],i=!1,a=!o.hasClass("not-infinite");o.hasClass("smaller")&&(l=[{breakpoint:480,settings:{dots:!0,slidesToShow:2,slidesToScroll:2}},{breakpoint:800,settings:{dots:!0,slidesToShow:3,slidesToScroll:3,autoplay:0<t}},{breakpoint:900,settings:{dots:!0,slidesToShow:4,slidesToScroll:4,autoplay:0<t}},{breakpoint:1100,settings:{dots:!0,slidesToShow:5,slidesToScroll:5,autoplay:0<t}}]),o.hasClass("tripple-card")&&(l=[{breakpoint:480,settings:{dots:!0,slidesToShow:2,slidesToScroll:2}},{breakpoint:800,settings:{dots:!0,slidesToShow:3,slidesToScroll:3,autoplay:0<t}}]),o.hasClass("double-card")&&(l=[{breakpoint:480,settings:{dots:!0,slidesToShow:2,slidesToScroll:2}},{breakpoint:800,settings:{dots:!0,slidesToShow:2,slidesToScroll:2,autoplay:0<t}}],i=!0),o.hasClass("single-card")&&(l=[{breakpoint:480,settings:{dots:!0,slidesToShow:1,slidesToScroll:1}},{breakpoint:800,settings:{dots:!0,slidesToShow:1,slidesToScroll:1,autoplay:0<t}}],i=!0),o.hasClass("sextuple-card")&&(l=[{breakpoint:340,settings:{dots:!0,slidesToShow:2,slidesToScroll:1,autoplay:0<t}},{breakpoint:490,settings:{dots:!0,slidesToShow:3,slidesToScroll:1,autoplay:0<t}},{breakpoint:800,settings:{dots:!0,slidesToShow:6,slidesToScroll:2,autoplay:0<t}}],i=!0),o.parent().append(e),o.slick({dots:!1,speed:500,autoplaySpeed:t,appendArrows:e,appendDots:e,infinite:a,slidesToShow:1,slidesToScroll:1,variableWidth:!1,centerMode:!1,adaptiveHeight:i,mobileFirst:!0,touchMove:!0,respondTo:"min",responsive:l})})})}(jQuery);
document.addEventListener("DOMContentLoaded",function(){function t(){o.forEach(function(t){t.classList.toggle("active",t.hash===window.location.hash)}),n.classList.toggle("target-within",!!window.location.hash&&!!n.querySelectorAll(window.location.hash).length),e.dataset.target=window.location.hash.substr(1).replace(/[^a-z0-9_\-]/gi,""),"#navsearch"===window.location.hash&&setTimeout(function(){document.querySelector("#navsearch input[type=text]").focus()},300)}var e=document.querySelector("body"),n=document.querySelector(".nav__masthead"),o=n.querySelectorAll("a.toggle");window.addEventListener("popstate",t),t(),document.addEventListener("animationend",function(t){t.target.dataset.animation=t.animationName,t.target.id&&window.location.hash&&t.target.id===window.location.hash.substr(1)&&(t.target.scrollTop=0)}),window.IntersectionObserver&&document.querySelectorAll(".watch-me").forEach(function(t){new IntersectionObserver(function([t]){t.target.classList.toggle("off-screen",!t.isIntersecting),t.target.classList.toggle("on-screen",t.isIntersecting)},{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]}).observe(t)})});
!function(t){"use strict";function o(){!1===e||window.history.state&&1===window.history.state.page?window.location.hash="":window.history.back()}function i(){t(document).find('a[href="'+window.location.hash+'"]').first().focus()}var e="function"==typeof window.history.replaceState&&window.history.replaceState({page:1,href:location.href},document.title);t(document).on("click",'a[href^="#"]:not([href="#"]).toggle',function(t){t.preventDefault(),this.hash===window.location.hash?(o(),i()):(window.location.hash&&window.history.state&&1!==window.history.state.page?window.history.replaceState({toggle:!0},"",this.href):window.history.pushState({toggle:!0},"",this.href),window.history.pushState({},"",this.href),window.history.back())}),t(document).keyup(function(t){27===t.keyCode&&window.location.hash&&(o(),i())})}(jQuery);
!function(l){"use strict";l(document).ready(function(){l(document).on("tap contextmenu","a.id-toggle",function(e){e.preventDefault();var e=l(this),t=e.attr("href").replace(/^#([a-zA-Z0-9_-].*)?$/,"$1"),a=l("body");""!==t?(a.toggleClass("show-"+t),e.toggleClass("active")):l("a.id-toggle").not(e).each(function(){a.removeClass("show-"+l(this).attr("href").replace(/^#([a-zA-Z0-9_-].*)?$/,"$1"))})}),l(document).on("tap contextmenu",'a[class*=" toggle-"], a[class^="toggle-"]',function(e){e.preventDefault();var e=l(this).attr("class").replace(/^.*?toggle\-([^\s'"]+).*?$/,"$1"),t=l("body");l(window).resize(),l('a[class*=" toggle-"], a[class^="toggle-"]').not(".toggle-"+e).each(function(){l(this).removeClass("active"),t.removeClass("show-"+l(this).attr("class").replace(/^.*?toggle\-([^\s'"]+).*?$/,"$1"))}),l(".toggle-"+e).toggleClass("active"),t.toggleClass("show-"+e),(l(this).hasClass("active")?(l(".focus-"+e).eq(0).focus(),l(".blur-"+e)):l(".focus-"+e).eq(0)).blur()}),l(document).on("tap",function(e){var t,a,s;l(e.target).is('a[class*=" toggle-"], a[class^="toggle-"]')||l(e.target).parents('a[class*=" toggle-"], a[class^="toggle-"]').length?e.preventDefault():(t=l(e.target).parents('[class^="keep-toggle-"], [class*=" keep-toggle-"]'),s=l('a[class*=" toggle-"].active, a[class^="toggle-"].active').map(function(e,t){return l(t).attr("class").replace(/^.*?toggle\-([^\s'"]+).*?$/,"$1")}),a=[],s=l.unique(s),(t=t.length?t:l(e.target).filter('[class^="keep-toggle-"], [class*=" keep-toggle-"]')).length&&l.each(t.attr("class").split(" "),function(e,t){"keep-toggle-"==t.trim().substring(0,12)&&(a[a.length]=t.replace(/^.*?keep\-toggle\-([^\s"']+).*?$/i,"$1"))}),s.each(function(e,t){-1===l.inArray(t,a)&&l("a.active.toggle-"+t).eq(0).trigger("tap")}))}),l(document).on("tap",'a[class^="tab-"], a[class*=" tab-"]',function(e){e.preventDefault();var e=l(this).parent(),t=e.next(),a=l(this).attr("class").replace(/^.*?tab\-([^\s'"]+).*?$/,"$1");l(window).resize(),t.find(".tab-page-"+a).length&&(e.find(".active").removeClass("active"),t.find(".active").removeClass("active"),l(this).addClass("active"),t.find(".tab-page-"+a).addClass("active"))})})}(jQuery);
!function(r){"use strict";r.fn.fitVids=function(e){var t,i,a={customSelector:null};return document.getElementById("fit-vids-style")||(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)),e&&r.extend(a,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"];a.customSelector&&e.push(a.customSelector),r(this).find(e.join(",")).not("object object").each(function(e,t){var i,a,o,t=r(t);"embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length||(i=("object"===this.tagName.toLowerCase()||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height())/(isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10)),o="",t.attr("id")||(a="fitvid"+Math.floor(999999*Math.random()),t.attr("id",a)),"undefined"!=typeof videooverlay&&void 0!==videooverlay.overlay&&0<parseInt(videooverlay.overlay,10)&&(o='<div class="fluid-width-video-wrapper-overlay"><p class="video-overlay-description">'+(videooverlay.desctxt||"By continuing to play this video you accept that in order to provide this free service, we may make your contact details available to the author of the content and that they may contact you.")+'</p><a href="#videoPlay" class="button video-overlay-button"  data-post-id="'+(videooverlay.postid||0)+'" data-meta-index="'+(e+1)+'">'+(videooverlay.buttontxt||"Click to play")+"</a></div>"),t.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%").append(o),t.removeAttr("height").removeAttr("width"))}),r(this).on("mouseup touchend",".video-overlay-button",function(e){var i=r(this),t={action:"videooverlay",index:0,src:"",url:"/admin-ajax.php"};e.preventDefault(),"object"==typeof videooverlay&&(r.extend(t,videooverlay),t.url=t.url.trim()),t.index=i.data("meta-index"),t.src=i.parent().siblings("iframe").attr("src")||"","true"!==i.data("logged")&&(i.data({logged:"true"}),r.ajax(t.url,{data:t,beforeSend:function(){i.text("Checking").addClass("busy")},success:function(){i.text("Starting").addClass("busy");var e,t=i.parent().siblings("iframe");0<t.length&&-1<t.attr("src").indexOf("vimeo")?(e=JSON.stringify({method:"play"}),t[0].contentWindow.postMessage(e,"*")):0<t.length&&t.attr("src").indexOf("youtub"),i.parent().remove()},error:function(){i.text("Failed").addClass("error")},complete:function(){i.data({logged:"done"})}}))})})}}(window.jQuery||window.Zepto);
!function(n){"use strict";n(document).ready(function(){n(".entry-content, .article-body").fitVids({customSelector:["iframe[src^='http://www.facebook.com/plugins/video.php']","iframe[src^='http://www.brightcove.com']","iframe[src^='http://bcove.me']","iframe[src^='http://link.brightcove.com']","iframe[src^='http://blip.tv']","iframe[src^='http://d.yimg.com']","iframe[src^='http://www.dailymotion.com']","iframe[src^='https://www.facebook.com/plugins/video.php']","iframe[src^='https://www.brightcove.com']","iframe[src^='https://bcove.me']","iframe[src^='https://link.brightcove.com']","iframe[src^='https://blip.tv']","iframe[src^='https://d.yimg.com']","iframe[src^='https://www.dailymotion.com']"].join(",")}),n(".faq-list").each(function(e,t){var a=n(this);a.children("li").click(function(){a.addClass("running"),n(this).addClass("active").siblings().removeClass("active")})}),n('.article-body a[rel^="attachment"], .article-body a[rel*=" attachment"]').each(function(e,t){var a=n(this),i=a.children("img.alignleft, img.alignright");i.length&&(i.hasClass("alignleft")?(a.addClass("alignleft"),i.removeClass("alignleft")):(a.addClass("alignright"),i.removeClass("alignright")))}),n(".slim-tax-large").parent("div").addClass("slim-column-large"),n(".slim-tax-small").parent("div").addClass("slim-column-small"),n(".footer-nav .menu-item-has-children > a").click(function(e){e.preventDefault(),n(this).parent().toggleClass("visible")}),n("#nav__burger .menu-item-has-children > a").click(function(e){e.preventDefault(),n(this).parent().toggleClass("visible")}),n("#menu-main-nav > li.menu-item").hasClass("current-menu-ancestor")&&n("div.nav__main").addClass("shows-menu-bar"),n("#menu-lit-tracker-main-nav > li.menu-item").hasClass("current-menu-ancestor")&&n("div.nav__main").addClass("shows-menu-bar");var e=document.getElementsByClassName("comments-toggle");let t;if(e)for(t=0;t<e.length;t++)e[t].addEventListener("click",function(){this.parentElement.parentElement.classList.toggle("comments--active"),"comments--active"!==this.parentElement.parentElement.classList.value?this.innerHTML="Show Comments":this.innerHTML="Hide Comments"});var a=n("<input>"),i=n(location).attr("href");n(".clipboard").on("click",function(){console.log("CLICKING"),n("body").append(a),a.val(i).select(),document.execCommand("copy"),a.remove()})})}(jQuery);
//# sourceMappingURL=behaviour.min.js.map
