!function(){"use strict";if(navigator.userAgent.match(/IEMobile\/10\.0/)){var e=document.createElement("style");e.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(e)}}(); !function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("div");a.innerHTML='

x

',r.appendChild(a.childNodes[1])}return e&&t.extend(i,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"];i.customSelector&&e.push(i.customSelector);var r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var a=t(this).find(e.join(","));(a=(a=a.not("object object")).not(r)).each(function(){var e=t(this);if(!(e.parents(r).length>0||"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 i=("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 a="fitvid"+t.fn.fitVids._count;e.attr("name",a),t.fn.fitVids._count++}e.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto); var objectFitImages=function(){"use strict";function t(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='"+t+"' height='"+e+"'%3E%3C/svg%3E"}function e(t){if(t.srcset&&!m&&window.picturefill){var e=window.picturefill._;t[e.ns]&&t[e.ns].evaled||e.fillImg(t,{reselect:!0}),t[e.ns].curSrc||(t[e.ns].supported=!1,e.fillImg(t,{reselect:!0})),t.currentSrc=t[e.ns].curSrc||t.src}}function i(t){for(var e,i=getComputedStyle(t).fontFamily,r={};null!==(e=l.exec(i));)r[e[1]]=e[2];return r}function r(e,i,r){var n=t(i||1,r||0);p.call(e,"src")!==n&&b.call(e,"src",n)}function n(t,e){t.naturalWidth?e(t):setTimeout(n,100,t,e)}function c(t){var c=i(t),o=t[a];if(c["object-fit"]=c["object-fit"]||"fill",!o.img){if("fill"===c["object-fit"])return;if(!o.skipTest&&g&&!c["object-position"])return}if(!o.img){o.img=new Image(t.width,t.height),o.img.srcset=p.call(t,"data-ofi-srcset")||t.srcset,o.img.src=p.call(t,"data-ofi-src")||t.src,b.call(t,"data-ofi-src",t.src),t.srcset&&b.call(t,"data-ofi-srcset",t.srcset),r(t,t.naturalWidth||t.width,t.naturalHeight||t.height),t.srcset&&(t.srcset="");try{s(t)}catch(t){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}e(o.img),t.style.backgroundImage='url("'+(o.img.currentSrc||o.img.src).replace(/"/g,'\\"')+'")',t.style.backgroundPosition=c["object-position"]||"center",t.style.backgroundRepeat="no-repeat",t.style.backgroundOrigin="content-box",/scale-down/.test(c["object-fit"])?n(o.img,function(){o.img.naturalWidth>t.width||o.img.naturalHeight>t.height?t.style.backgroundSize="contain":t.style.backgroundSize="auto"}):t.style.backgroundSize=c["object-fit"].replace("none","auto").replace("fill","100% 100%"),n(o.img,function(e){r(t,e.naturalWidth,e.naturalHeight)})}function s(t){var e={get:function(e){return t[a].img[e||"src"]},set:function(e,i){return t[a].img[i||"src"]=e,b.call(t,"data-ofi-"+i,e),c(t),e}};Object.defineProperty(t,"src",e),Object.defineProperty(t,"currentSrc",{get:function(){return e.get("currentSrc")}}),Object.defineProperty(t,"srcset",{get:function(){return e.get("srcset")},set:function(t){return e.set(t,"srcset")}})}function o(t,e){var i=!h&&!t;if(e=e||{},t=t||"img",f&&!e.skipTest||!d)return!1;"img"===t?t=document.getElementsByTagName("img"):"string"==typeof t?t=document.querySelectorAll(t):"length"in t||(t=[t]);for(var r=0;rn.height()?n.hasClass("fixed")&&!o||(n.addClass("fixed"),removableTopOuterHeight=t.length>0?t.outerHeight():0,u=n.height(),d=l.indexOf("op-removable-top-hidden")>-1?0:removableTopOuterHeight,n.css({marginTop:-u,top:u+m-d})):("fixed"!==i.css("position")&&(m=i.height()),"number"!=typeof m&&(m=0),n.css({marginTop:0,top:0+m}).removeClass("fixed"))}var n=e(".op-navbar.op-navbar-fixed"),t=e(".op-removable-top"),i=e("#wpadminbar"),a=document.querySelector(".op-removable-top"),r="",s="",c=i.height();if(a&&(r=window.getComputedStyle(a,"::after").getPropertyValue("content")),0===n.length)return!1;var d;e(window).on("scroll resize",function(){clearTimeout(d),d=setTimeout(function(){o()},100)}),o()}();var t,i=e("#primary > .op-entry");if(i.length>0){var a=parseInt(i.css("padding-top"),10),r=i.offset().top+a,s=e(".fixed-dynamic"),c=s.hasClass("left")?"left":"right",d=e(".op-navbar.op-navbar-fixed"),l=function(){a=parseInt(i.css("padding-top"),10),r=i.offset().top+a,t=r-e(window).scrollTop(),d.length>0&&(a+=d.outerHeight()),t0&&("left"===c?e("#primary .op-entry > .row, #colophon .op-footer").addClass("fixed-dynamic-content-padding-left"):e("#primary .op-entry > .row, #colophon .op-footer .op-container > .row, .optin-box-optimizetheme-before-footer").addClass("fixed-dynamic-content-padding-"+c),e(window).unbind("scroll",l),e(window).unbind("resize",l),e(window).bind("scroll",l).trigger("scroll"),e(window).bind("resize",l).trigger("scroll"))}o(),e(window).bind("resize",function(){o()}),e(".op-navbar .nav-close-wrap .closenav").click(function(){e(".op-navbar #navbar").animate({right:"100%"},"fast")}),e(".op-navbar .navbar-toggle").click(function(){e(".op-navbar #navbar").animate({right:0},"fast")}),e("#op_search_link").click(function(){return n(),!1}),e("#op_remove_search_link").click(function(){return n(),!1}),e("#primary").fitVids({ignore:".video-plugin-new, .video-plugin-frame, .op3-video-wrapper"}),function(){var o=e(".navbar-nav");"ontouchstart"in window||navigator.msMaxTouchPoints||e("body").addClass("op-not-touch-device");var n=function(e){var o=e.find("> .sub-menu");if(0===o.length)return!1;o.hasClass("sub-menu--alt")&&o.offset().left<0?o.removeClass("sub-menu--alt").find(".sub-menu").removeClass("sub-menu--alt"):o.offset().left+o.outerWidth()>window.innerWidth&&o.addClass("sub-menu--alt").find(".sub-menu").addClass("sub-menu--alt")};o.find(".menu-item-has-children").each(function(){var t,i=e(this);"ontouchstart"in window||navigator.msMaxTouchPoints?i.on("click",function(o){var t;return!!e("#navbar .nav-close-wrap").is(":visible")||(i.siblings(".sub-menu--active").removeClass("sub-menu--active").find(".sub-menu--active").removeClass("sub-menu--active"),i.hasClass("menu-item-has-children")?(t=i.find("> a"),!(!i.hasClass("sub-menu--active")||!t.attr("href")||"#"===t.attr("href"))||(i.toggleClass("sub-menu--active"),n(i),!1)):void 0)}):i.on("mouseenter",function(){clearTimeout(t),i.siblings(".menu-item--hover").removeClass("menu-item--hover"),i.addClass("menu-item--hover"),n(i)}).on("mouseleave",function(){t=setTimeout(function(){i.removeClass("menu-item--hover")},600)}),o.on("click","a",function(){var o=e("#navbar .nav-close-wrap"),n=e(this).attr("href");o.is(":visible")&&n.indexOf("#")>-1&&o.find(".closenav").trigger("click")})})}(),e(".sm-item-share").on("click",function(){return window.open(e(this).attr("href"),"sharer","toolbar=0,status=0,width=548,height=325"),!1}),function(){var o=e(".op-content-grid-row");o.length>0&&e("body").on("post-load",function(){e(".infinite-loader").remove(),setTimeout(function(){0===o.find("#infinite-handle").length&&(o.append('
'),o.addClass("op-content-grid-row--show-all"))},1)})}(),objectFitImages(),function(e,o,n){!function(){var n="undefined"!=typeof OP3ST&&void 0!==OP3ST.GoogleRecaptcha&&null!==OP3ST.GoogleRecaptcha?OP3ST.GoogleRecaptcha.googleRecaptchaSiteKey:"";e('[data-op3-form="op3-smart-form"]').each(function(){if(""!==n&&"undefined"!=typeof grecaptcha){var t=e(this);grecaptcha.ready(function(){grecaptcha.execute(n,{action:"op3optin"}).then(function(o){var n=e("").attr({type:"hidden",name:"op3-grecaptcha-token",value:o});t.append(n);var i=e(".grecaptcha-badge");i.show(),i.css("visibility","visible")})})}e(this).on("submit",function(n){n.preventDefault();var t=e(this).closest("form"),i=t.serialize(),a=t.find('input[name="redirect"]').val(),r=t.find('input[name="successMessage"]').val();e.ajax({url:t.attr("action"),type:"post",data:i,success:function(n){""!==a&&void 0!==a?o.location.href=a:""!==r&&void 0!==r&&(e("
").text(r).addClass("op3-form-notification").insertBefore(t),t.remove())},error:function(o,n,i){""===a&&void 0===a&&(e("
").text("ERROR: "+i).addClass("op3-form-notification error").insertBefore(t),t.remove())}})})})}()}(jQuery,window,document)}); !function(){var e=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,t=navigator.userAgent.toLowerCase().indexOf("opera")>-1,n=navigator.userAgent.toLowerCase().indexOf("msie")>-1;(e||t||n)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1)}(); ;