function scrollToElement(n){window.innerWidth<992&&setTimeout(function(){var t=document.getElementById("navbar-nav-scroll"),i;t&&(i=n.getBoundingClientRect().top+t.scrollTop-92,t.scroll({top:i,left:0,behavior:"smooth"}))},50)}function scrollWindowToElement(n){var r="scrollBehavior"in document.documentElement.style,t,i;r?(t=-75,i=n.getBoundingClientRect().top+window.scrollY+t,window.scrollTo({top:i,behavior:"smooth"})):$("html,body").animate({scrollTop:$(n).offset().top},1e3)}function noPostBack(n){var i=document.getElementById(n),t=i.value,r;if(t==""||t=="Enter terms")return i.value="Enter terms",!1;r="SearchResults.aspx?SEARCH_TERMS="+t;document.forms[0].action=r}function clickButton(n,t){var i=document.getElementById(t);return typeof i=="object"&&(navigator.appName.indexOf("Netscape")>-1&&n.keyCode===13||navigator.appName.indexOf("Microsoft Internet Explorer")>-1&&event.keyCode===13)?(i.click(),!1):event.keyCode===13?(i.click(),!1):void 0}function handleGAEvent(n,t,i,r){window.GAEventsHandler&&GAEventsHandler.sendGAEvent(n,t,i,r)}function showLoadingThrobber(){setTimeout(function(){$(".use-submit-behaviour").attr("disabled","disabled")},0);$(".loading-throbber-modal").show()}function hideLoadingThrobber(){setTimeout(function(){$(".use-submit-behaviour").removeAttr("disabled")},1);$(".loading-throbber-modal").hide()}function throbFor60Seconds(){showLoadingThrobber();setTimeout(function(){hideLoadingThrobber()},6e4)}var GAEventsHandler;window.Modernizr=function(n,t,i){function l(n){c.cssText=n}function at(n,t){return l(y.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function ut(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function vt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+st.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?ut(u,t):(u=(n+" "+ht.join(r+" ")+r).split(" "),vt(u,t,i))}function yt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=i[r]in o;return w.list&&(w.list=!!t.createElement("datalist")&&!!n.HTMLDataListElement),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var u=0,r,f,e,h=n.length;u<h;u++)o.setAttribute("type",f=n[u]),r=o.type!=="text",r&&(o.value=g,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&o.style.WebkitAppearance!==i?(s.appendChild(o),e=t.defaultView,r=e.getComputedStyle&&e.getComputedStyle(o,null).WebkitAppearance!=="textfield"&&o.offsetHeight!==0,s.removeChild(o)):/^(search|tel)$/.test(f)||(r=/^(url|email)$/.test(f)?o.checkValidity&&o.checkValidity()===!1:o.value!=g)),ct[n[u]]=!!r;return ct}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},d=!0,s=t.documentElement,e="modernizr",ft=t.createElement(e),c=ft.style,o=t.createElement("input"),g=":)",et={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),ot="Webkit Moz O ms",st=ot.split(" "),ht=ot.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ct={},w={},nt=[],tt=nt.slice,b,a=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:e+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',e,'">',n,"<\/style>"].join(""),f.id=e,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),s.style.overflow=v),!!a},pt=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t)&&i(t).matches||!1:(a("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},lt=function(){function n(n,u){u=u||t.createElement(r[n]||"div");n="on"+n;var f=n in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(n,""),f=h(u[n],"function"),h(u[n],"undefined")||(u[n]=i),u.removeAttribute(n))),u=null,f}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n}(),it={}.hasOwnProperty,rt,k;rt=!h(it,"undefined")&&!h(it.call,"undefined")?function(n,t){return it.call(n,t)}:function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=tt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(tt.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(tt.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.canvas=function(){var n=t.createElement("canvas");return!!n.getContext&&!!n.getContext("2d")};r.canvastext=function(){return!!u.canvas&&!!h(t.createElement("canvas").getContext("2d").fillText,"function")};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:a(["@media (",y.join("touch-enabled),("),e,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return lt("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!n.history&&!!history.pushState};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),v(c.backgroundColor,"rgba")};r.hsla=function(){return l("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")};r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return at("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("columnCount")};r.cssgradients=function(){var n="background-image:";return l((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+y.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&a("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var n;return a('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};r.generatedcontent=function(){var n;return a(["#",e,"{font:0/0 a}#",e,':after{content:"',g,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(et.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(et.call(t.createElementNS(p.svg,"clipPath")))};for(k in r)rt(r,k)&&(b=k.toLowerCase(),u[b]=r[k](),nt.push((u[b]?"":"no-")+b));return u.input||yt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)rt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof d!="undefined"&&d&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},l(""),ft=o=null,function(n,t){function v(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function s(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function u(n){var t=a[n[l]];return t||(t={},o++,n[l]=o,a[o]=t),t}function h(n,r,f){if(r||(r=t),i)return r.createElement(n);f||(f=u(r));var e;return e=f.cache[n]?f.cache[n].cloneNode():b.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),e.canHaveChildren&&!w.test(n)&&!e.tagUrn?f.frag.appendChild(e):e}function y(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||u(n);for(var e=r.frag.cloneNode(),f=0,o=s(),h=o.length;f<h;f++)e.createElement(o[f]);return e}function p(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?h(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/[\w\-]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function c(n){n||(n=t);var f=u(n);return r.shivCSS&&!e&&!f.hasCSS&&(f.hasCSS=!!v(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),i||p(n,f),n}var f=n.html5||{},w=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,b=/^(?: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,e,l="_html5shiv",o=0,a={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";e="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){e=!0;i=!0}})();r={elements:f.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:f.shivCSS!==!1,supportsUnknownElements:i,shivMethods:f.shivMethods!==!1,type:"default",shivDocument:c,createElement:h,createDocumentFragment:y};n.html5=r;c(t)}(this,t),u._version="2.8.3",u._prefixes=y,u._domPrefixes=ht,u._cssomPrefixes=st,u.mq=pt,u.hasEvent=lt,u.testProp=function(n){return ut([n])},u.testAllProps=f,u.testStyles=a,u.prefixed=function(n,t,i){return t?f(n,t,i):f(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(d?" js "+nt.join(" "):""),u}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function f(){var n=a.shift();v=1;n?n.t?s(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),f()):v=0}function ut(n,i,o,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&f(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&s(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:o,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]);"object"==n?p.data=i:(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)};a.splice(h,0,tt);"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:e),s(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&f()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var o=t.documentElement,s=n.setTimeout,e=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in o.style,d=k&&!!t.createRange().compareNode,g=d?o:e.parentNode,o=n.opera&&"[object Opera]"==y.call(n.opera),o=!!t.attachEvent&&!o,nt=k?"object":o?"script":"img",et=o?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,i=n.pop(),e=n.length,i={url:i,origUrl:i,prefixes:n},u,r,t=0;t<e;t++)r=n[t].split("="),(u=it[r.shift()])&&(i=u(i,r));for(t=0;t<f;t++)i=p[t](i);return i}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift();o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b();t&&t(o.origUrl,e,f);s&&s(o.origUrl,e,f);r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o);o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)};u.addPrefix=function(n,t){it[n]=t};u.addFilter=function(n){p.push(n)};u.errorTimeout=1e4;null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0);t.readyState="complete"},0));n.yepnope=b();n.yepnope.executeStack=f;n.yepnope.injectJs=function(n,i,r,o,h,c){var a=t.createElement("script"),v,y,o=o||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?f:i||l;a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};s(function(){v||(v=1,i(1))},o);h?a.onload():e.parentNode.insertBefore(a,e)};n.yepnope.injectCss=function(n,i,r,u,o,h){var u=t.createElement("link"),c,i=h?f:i||l;u.href=n;u.rel="stylesheet";u.type="text/css";for(c in r)u.setAttribute(c,r[c]);o||(e.parentNode.insertBefore(u,e),s(i,0))}}(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};window.CSbuttons=window.CSbuttons||{};$(function(){CSbuttons.cache={$shareButtons:$(".social-sharing")}});CSbuttons.init=function(){CSbuttons.socialSharing()};CSbuttons.socialSharing=function(){var f=CSbuttons.cache.$shareButtons,h=f.find("a"),n=f.attr("data-permalink"),t=$(".share-facebook"),i=$(".share-twitter"),r=$(".share-pinterest"),e=$(".share-google"),o=$(".share-reddit"),u=$(".share-linkedin"),s=$(".share-skype");t.length&&$.getJSON("https://graph.facebook.com/?id="+n+"&callback=?").done(function(n){n.shares?t.find(".share-count").text(n.shares).addClass("is-loaded"):t.find(".share-count").remove()}).fail(function(){t.find(".share-count").remove()});i.length&&$.getJSON("https://cdn.api.twitter.com/1/urls/count.json?url="+n+"&callback=?").done(function(n){n.count>0?i.find(".share-count").text(n.count).addClass("is-loaded"):i.find(".share-count").remove()}).fail(function(){i.find(".share-count").remove()});r.length&&$.getJSON("https://api.pinterest.com/v1/urls/count.json?url="+n+"&callback=?").done(function(n){n.count>0?r.find(".share-count").text(n.count).addClass("is-loaded"):r.find(".share-count").remove()}).fail(function(){r.find(".share-count").remove()});e.length&&e.find(".share-count").addClass("is-loaded");o.length&&o.find(".share-count").addClass("is-loaded");u.length&&$.getJSON("http://www.linkedin.com/countserv/count/share?url="+n+"&callback=?").done(function(n){n.count>0?u.find(".share-count").text(n.count).addClass("is-loaded"):u.find(".share-count").remove()}).fail(function(){u.find(".share-count").remove()});s.length&&s.find(".share-count").addClass("is-loaded");h.on("click",function(n){var u=$(this),t=u.attr("class").replace("-","_"),f=u.attr("href"),i=700,r=400;switch(t){case"share_twitter":r=300;break;case"share_fancy":i=480;r=720;break;case"share_google":i=500;break;case"share_reddit":t=!1;break;case"share_skype":i=300;r=720}t&&(n.preventDefault(),window.open(f,t,"width="+i+", height="+r))})};$(function(){window.CSbuttons.init()});!function(n){function i(){}function t(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(i,u){n.fn[i]=function(f){var h,e,s;if("string"==typeof f){for(var c=r.call(arguments,1),o=0,l=this.length;l>o;o++)if(h=this[o],e=n.data(h,i),e)if(n.isFunction(e[f])&&"_"!==f.charAt(0)){if(s=e[f].apply(e,c),void 0!==s)return s}else t("no such method '"+f+"' for "+i+" instance");else t("cannot call methods on "+i+" prior to initialization; attempted to call '"+f+"'");return this}return this.each(function(){var t=n.data(this,i);t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,i,t))})}}if(n){var t="undefined"==typeof console?i:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var r=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],t):t("object"==typeof exports?require("jquery"):n.jQuery)}(window),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,u=function(){},i,r;t.addEventListener?u=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(u=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});r={bind:u,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:n.eventie=r}(window),function(){function t(){}function u(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,r=this,f=r.EventEmitter;n.getListeners=function(n){var r,t,i=this._getEvents();if(n instanceof RegExp){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;t<n.length;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,r=this.getListenersAsObject(n),f="object"==typeof t;for(i in r)r.hasOwnProperty(i)&&-1===u(r[i],t)&&r[i].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;t<n.length;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,r=this.getListenersAsObject(n);for(i in r)r.hasOwnProperty(i)&&(f=u(r[i],t),-1!==f&&r[i].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if(n instanceof RegExp)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return r.EventEmitter=f,t};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:r.EventEmitter=t}.call(this),function(n){function t(n){if(n){if("string"==typeof r[n])return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var t,u=0,f=i.length;f>u;u++)if(t=i[u]+n,"string"==typeof r[t])return t}}var i="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):"object"==typeof exports?module.exports=t:n.getStyleProperty=t}(window),function(n){function i(n){var t=parseFloat(n),i=-1===n.indexOf("%")&&!isNaN(t);return i&&t}function u(){}function f(){for(var r,i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0,u=t.length;u>n;n++)r=t[n],i[r]=0;return i}function r(r){function c(){var f,t,c,l;h||(h=!0,f=n.getComputedStyle,(o=function(){var n=f?function(n){return f(n,null)}:function(n){return n.currentStyle};return function(t){var i=n(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),u=r("boxSizing"))&&(t=document.createElement("div"),t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[u]="border-box",c=document.body||document.documentElement,c.appendChild(t),l=o(t),s=200===i(l.width),c.removeChild(t)))}function l(n){var e,r,v,h,y,p;if(c(),"string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){if(e=o(n),"none"===e.display)return f();r={};r.width=n.offsetWidth;r.height=n.offsetHeight;for(var tt=r.isBorderBox=!(!u||!e[u]||"border-box"!==e[u]),l=0,it=t.length;it>l;l++)v=t[l],h=e[v],h=a(n,h),y=parseFloat(h),r[v]=isNaN(y)?0:y;var w=r.paddingLeft+r.paddingRight,b=r.paddingTop+r.paddingBottom,rt=r.marginLeft+r.marginRight,ut=r.marginTop+r.marginBottom,k=r.borderLeftWidth+r.borderRightWidth,d=r.borderTopWidth+r.borderBottomWidth,g=tt&&s,nt=i(e.width);return nt!==!1&&(r.width=nt+(g?0:w+k)),p=i(e.height),p!==!1&&(r.height=p+(g?0:b+d)),r.innerWidth=r.width-(w+k),r.innerHeight=r.height-(b+d),r.outerWidth=r.width+rt,r.outerHeight=r.height+ut,r}}function a(t,i){if(n.getComputedStyle||-1===i.indexOf("%"))return i;var r=t.style,e=r.left,u=t.runtimeStyle,f=u&&u.left;return f&&(u.left=t.currentStyle.left),r.left=i,i=r.pixelLeft,r.left=e,f&&(u.left=f),i}var o,u,s,h=!1;return l}var e="undefined"==typeof console?u:function(n){console.error(n)},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],r):"object"==typeof exports?module.exports=r(require("desandro-get-style-property")):n.getSize=r(n.getStyleProperty)}(window),function(n){function t(n){"function"==typeof n&&(t.isReady?n():f.push(n))}function r(n){var r="readystatechange"===n.type&&"complete"!==i.readyState;t.isReady||r||e()}function e(){var n,i,r;for(t.isReady=!0,n=0,i=f.length;i>n;n++)r=f[n],r()}function u(u){return"complete"===i.readyState?e():(u.bind(i,"DOMContentLoaded",r),u.bind(i,"readystatechange",r),u.bind(n,"load",r)),t}var i=n.document,f=[];t.isReady=!1;"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],u):"object"==typeof exports?module.exports=u(require("eventie")):n.docReady=u(n.eventie)}(window),function(n){function i(n,t){return n[u](t)}function r(n){if(!n.parentNode){var t=document.createDocumentFragment();t.appendChild(n)}}function o(n,t){r(n);for(var u=n.parentNode.querySelectorAll(t),i=0,f=u.length;f>i;i++)if(u[i]===n)return!0;return!1}function s(n,t){return r(n),i(n,t)}var t,u=function(){var u,i;if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(var r=["webkit","moz","ms","o"],t=0,f=r.length;f>t;t++)if(u=r[t],i=u+"MatchesSelector",n[i])return i}(),f,e;u?(f=document.createElement("div"),e=i(f,"div"),t=e?i:s):t=o;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):"object"==typeof exports?module.exports=t:window.matchesSelector=t}(Element.prototype),function(n,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(i,r){return t(n,i,r)}):"object"==typeof exports?module.exports=t(n,require("doc-ready"),require("desandro-matches-selector")):n.fizzyUIUtils=t(n,n.docReady,n.matchesSelector)}(window,function(n,t,i){var r={},f,u;return r.extend=function(n,t){for(var i in t)n[i]=t[i];return n},r.modulo=function(n,t){return(n%t+t)%t},f=Object.prototype.toString,r.isArray=function(n){return"[object Array]"==f.call(n)},r.makeArray=function(n){var t=[],i,u;if(r.isArray(n))t=n;else if(n&&"number"==typeof n.length)for(i=0,u=n.length;u>i;i++)t.push(n[i]);else t.push(n);return t},r.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},r.removeFrom=function(n,t){var i=r.indexOf(n,t);-1!=i&&n.splice(i,1)},r.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(n){return n instanceof HTMLElement}:function(n){return n&&"object"==typeof n&&1==n.nodeType&&"string"==typeof n.nodeName},r.setText=function(){function t(t,i){n=n||(void 0!==document.documentElement.textContent?"textContent":"innerText");t[n]=i}var n;return t}(),r.getParent=function(n,t){for(;n!=document.body;)if(n=n.parentNode,i(n,t))return n},r.getQueryElement=function(n){return"string"==typeof n?document.querySelector(n):n},r.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},r.filterFindElements=function(n,t){var u;n=r.makeArray(n);for(var f=[],e=0,h=n.length;h>e;e++)if(u=n[e],r.isElement(u))if(t){i(u,t)&&f.push(u);for(var s=u.querySelectorAll(t),o=0,c=s.length;c>o;o++)f.push(s[o])}else f.push(u);return f},r.debounceMethod=function(n,t,i){var u=n.prototype[t],r=t+"Timeout";n.prototype[t]=function(){var t=this[r],f,n;t&&clearTimeout(t);f=arguments;n=this;this[r]=setTimeout(function(){u.apply(n,f);delete n[r]},i||100)}},r.toDashed=function(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()},u=n.console,r.htmlInit=function(i,f){t(function(){for(var a,t,o,v,s,h=r.toDashed(f),c=document.querySelectorAll(".js-"+h),l="data-"+h+"-options",e=0,y=c.length;y>e;e++){t=c[e];o=t.getAttribute(l);try{a=o&&JSON.parse(o)}catch(p){u&&u.error("Error parsing "+l+" on "+t.nodeName.toLowerCase()+(t.id?"#"+t.id:"")+": "+p);continue}v=new i(t,a);s=n.jQuery;s&&s.data(t,f,v)}})},r}),function(n,t){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(i,r,u,f){return t(n,i,r,u,f)}):"object"==typeof exports?module.exports=t(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=t(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))}(window,function(n,t,i,r,u){function y(n){for(var t in n)return!1;return t=null,!0}function f(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}function p(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}var o=n.getComputedStyle,w=o?function(n){return o(n,null)}:function(n){return n.currentStyle},e=r("transition"),b=r("transform"),k=e&&b,d=!!r("perspective"),s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[e],h=["transform","transition","transitionDuration","transitionProperty"],c=function(){for(var n,t,u={},i=0,f=h.length;f>i;i++)n=h[i],t=r(n),t&&t!==n&&(u[n]=t);return u}(),l,a,v;return u.extend(f.prototype,t.prototype),f.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},f.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},f.prototype.getSize=function(){this.size=i(this.element)},f.prototype.css=function(n){var r=this.element.style,t,i;for(t in n)i=c[t]||t,r[i]=n[t]},f.prototype.getPosition=function(){var f=w(this.element),e=this.layout.options,o=e.isOriginLeft,s=e.isOriginTop,r=f[o?"left":"right"],u=f[s?"top":"bottom"],n=this.layout.size,t=-1!=r.indexOf("%")?parseFloat(r)/100*n.width:parseInt(r,10),i=-1!=u.indexOf("%")?parseFloat(u)/100*n.height:parseInt(u,10);t=isNaN(t)?0:t;i=isNaN(i)?0:i;t-=o?n.paddingLeft:n.paddingRight;i-=s?n.paddingTop:n.paddingBottom;this.position.x=t;this.position.y=i},f.prototype.layoutPosition=function(){var i=this.layout.size,n=this.layout.options,t={},r=n.isOriginLeft?"paddingLeft":"paddingRight",u=n.isOriginLeft?"left":"right",f=n.isOriginLeft?"right":"left",e=this.position.x+i[r];t[u]=this.getXValue(e);t[f]="";var o=n.isOriginTop?"paddingTop":"paddingBottom",s=n.isOriginTop?"top":"bottom",h=n.isOriginTop?"bottom":"top",c=this.position.y+i[o];t[s]=this.getYValue(c);t[h]="";this.css(t);this.emitEvent("layout",[this])},f.prototype.getXValue=function(n){var t=this.layout.options;return t.percentPosition&&!t.isHorizontal?n/this.layout.size.width*100+"%":n+"px"},f.prototype.getYValue=function(n){var t=this.layout.options;return t.percentPosition&&t.isHorizontal?n/this.layout.size.height*100+"%":n+"px"},f.prototype._transitionTo=function(n,t){this.getPosition();var r=this.position.x,u=this.position.y,f=parseInt(n,10),e=parseInt(t,10),o=f===this.position.x&&e===this.position.y;if(this.setPosition(n,t),o&&!this.isTransitioning)return void this.layoutPosition();var s=n-r,h=t-u,i={};i.transform=this.getTranslate(s,h);this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},f.prototype.getTranslate=function(n,t){var i=this.layout.options;return n=i.isOriginLeft?n:-n,t=i.isOriginTop?t:-t,d?"translate3d("+n+"px, "+t+"px, 0)":"translate("+n+"px, "+t+"px)"},f.prototype.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},f.prototype.moveTo=k?f.prototype._transitionTo:f.prototype.goTo,f.prototype.setPosition=function(n,t){this.position.x=parseInt(n,10);this.position.y=parseInt(t,10)},f.prototype._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},f.prototype._transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(n);i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},l="opacity,"+p(c.transform||"transform"),f.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:l,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(s,this,!1))},f.prototype.transition=f.prototype[e?"_transition":"_nonTransition"],f.prototype.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},f.prototype.onotransitionend=function(n){this.ontransitionend(n)},a={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"},f.prototype.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=a[n.propertyName]||n.propertyName,(delete t.ingProperties[i],y(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd)&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},f.prototype.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,!1);this.isTransitioning=!1},f.prototype._removeStyles=function(n){var t={};for(var i in n)t[i]="";this.css(t)},v={transitionProperty:"",transitionDuration:""},f.prototype.removeTransitionStyles=function(){this.css(v)},f.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])},f.prototype.remove=function(){if(!e||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var n=this;this.once("transitionEnd",function(){n.removeElem()});this.hide()},f.prototype.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("visibleStyle");t[i]=this.onRevealTransitionEnd;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.prototype.getHideRevealTransitionEndProperty=function(n){var t=this.layout.options[n],i;if(t.opacity)return"opacity";for(i in t)return i},f.prototype.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");t[i]=this.onHideTransitionEnd;this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},f}),function(n,t){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,r,u,f,e){return t(n,i,r,u,f,e)}):"object"==typeof exports?module.exports=t(n,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=t(n,n.eventie,n.EventEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)}(window,function(n,t,i,r,u,f){function e(n,t){var i=u.getQueryElement(n),r;if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||n)));this.element=i;o&&(this.$element=o(this.element));this.options=u.extend({},this.constructor.defaults);this.option(t);r=++l;this.element.outlayerGUID=r;s[r]=this;this._create();this.options.isInitLayout&&this.layout()}var h=n.console,o=n.jQuery,c=function(){},l=0,s={};return e.namespace="outlayer",e.Item=f,e.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},u.extend(e.prototype,i.prototype),e.prototype.option=function(n){u.extend(this.options,n)},e.prototype._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);u.extend(this.element.style,this.options.containerStyle);this.options.isResizeBound&&this.bindResize()},e.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},e.prototype._itemize=function(n){for(var u,f,i=this._filterFindItemElements(n),e=this.constructor.Item,r=[],t=0,o=i.length;o>t;t++)u=i[t],f=new e(u,this),r.push(f);return r},e.prototype._filterFindItemElements=function(n){return u.filterFindElements(n,this.options.itemSelector)},e.prototype.getItemElements=function(){for(var t=[],n=0,i=this.items.length;i>n;n++)t.push(this.items[n].element);return t},e.prototype.layout=function(){this._resetLayout();this._manageStamps();var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,n);this._isLayoutInited=!0},e.prototype._init=e.prototype.layout,e.prototype._resetLayout=function(){this.getSize()},e.prototype.getSize=function(){this.size=r(this.element)},e.prototype._getMeasurement=function(n,t){var f,i=this.options[n];i?("string"==typeof i?f=this.element.querySelector(i):u.isElement(i)&&(f=i),this[n]=f?r(f)[t]:i):this[n]=0},e.prototype.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},e.prototype._getItemsForLayout=function(n){for(var i,r=[],t=0,u=n.length;u>t;t++)i=n[t],i.isIgnored||r.push(i);return r},e.prototype._layoutItems=function(n,t){var i,r;if(this._emitCompleteOnItems("layout",n),n&&n.length){for(var f=[],u=0,e=n.length;e>u;u++)i=n[u],r=this._getItemLayoutPosition(i),r.item=i,r.isInstant=t||i.isLayoutInstant,f.push(r);this._processLayoutQueue(f)}},e.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},e.prototype._processLayoutQueue=function(n){for(var t,i=0,r=n.length;r>i;i++)t=n[i],this._positionItem(t.item,t.x,t.y,t.isInstant)},e.prototype._positionItem=function(n,t,i,r){r?n.goTo(t,i):n.moveTo(t,i)},e.prototype._postLayout=function(){this.resizeContainer()},e.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var n=this._getContainerSize();n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1))}},e.prototype._getContainerSize=c,e.prototype._setContainerMeasure=function(n,t){if(void 0!==n){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},e.prototype._emitCompleteOnItems=function(n,t){function r(){s.dispatchEvent(n+"Complete",null,[t])}function o(){f++;f===u&&r()}var s=this,u=t.length,e;if(!t||!u)return void r();for(var f=0,i=0,h=t.length;h>i;i++){e=t[i];e.once(n,o)}},e.prototype.dispatchEvent=function(n,t,i){var u=t?[t].concat(i):i,r;(this.emitEvent(n,u),o)&&((this.$element=this.$element||o(this.element),t)?(r=o.Event(t),r.type=n,this.$element.trigger(r,i)):this.$element.trigger(n,i))},e.prototype.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},e.prototype.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},e.prototype.stamp=function(n){var t,i,r;if(n=this._find(n))for(this.stamps=this.stamps.concat(n),t=0,i=n.length;i>t;t++)r=n[t],this.ignore(r)},e.prototype.unstamp=function(n){var t,r,i;if(n=this._find(n))for(t=0,r=n.length;r>t;t++)i=n[t],u.removeFrom(this.stamps,i),this.unignore(i)},e.prototype._find=function(n){if(n)return("string"==typeof n&&(n=this.element.querySelectorAll(n)),n=u.makeArray(n))},e.prototype._manageStamps=function(){var n,t,i;if(this.stamps&&this.stamps.length)for(this._getBoundingRect(),n=0,t=this.stamps.length;t>n;n++)i=this.stamps[n],this._manageStamp(i)},e.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},e.prototype._manageStamp=c,e.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=this._boundingRect,u=r(n);return{left:t.left-i.left-u.marginLeft,top:t.top-i.top-u.marginTop,right:i.right-t.right-u.marginRight,bottom:i.bottom-t.bottom-u.marginBottom}},e.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},e.prototype.bindResize=function(){this.isResizeBound||(t.bind(n,"resize",this),this.isResizeBound=!0)},e.prototype.unbindResize=function(){this.isResizeBound&&t.unbind(n,"resize",this);this.isResizeBound=!1},e.prototype.onresize=function(){function t(){n.resize();delete n.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var n=this;this.resizeTimeout=setTimeout(t,100)},e.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},e.prototype.needsResizeLayout=function(){var n=r(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},e.prototype.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},e.prototype.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},e.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},e.prototype.reveal=function(n){var i,t,r;for(this._emitCompleteOnItems("reveal",n),i=n&&n.length,t=0;i&&i>t;t++)r=n[t],r.reveal()},e.prototype.hide=function(n){var i,t,r;for(this._emitCompleteOnItems("hide",n),i=n&&n.length,t=0;i&&i>t;t++)r=n[t],r.hide()},e.prototype.revealItemElements=function(n){var t=this.getItems(n);this.reveal(t)},e.prototype.hideItemElements=function(n){var t=this.getItems(n);this.hide(t)},e.prototype.getItem=function(n){for(var i,t=0,r=this.items.length;r>t;t++)if(i=this.items[t],i.element===n)return i},e.prototype.getItems=function(n){var f,i;n=u.makeArray(n);for(var r=[],t=0,e=n.length;e>t;t++)f=n[t],i=this.getItem(f),i&&r.push(i);return r},e.prototype.remove=function(n){var t=this.getItems(n),i,f,r;if(this._emitCompleteOnItems("remove",t),t&&t.length)for(i=0,f=t.length;f>i;i++)r=t[i],r.remove(),u.removeFrom(this.items,r)},e.prototype.destroy=function(){var t=this.element.style,n,i,r,u;for(t.height="",t.position="",t.width="",n=0,i=this.items.length;i>n;n++)r=this.items[n],r.destroy();this.unbindResize();u=this.element.outlayerGUID;delete s[u];delete this.element.outlayerGUID;o&&o.removeData(this.element,this.constructor.namespace)},e.data=function(n){n=u.getQueryElement(n);var t=n&&n.outlayerGUID;return t&&s[t]},e.create=function(n,t){function i(){e.apply(this,arguments)}return Object.create?i.prototype=Object.create(e.prototype):u.extend(i.prototype,e.prototype),i.prototype.constructor=i,i.defaults=u.extend({},e.defaults),u.extend(i.defaults,t),i.prototype.settings={},i.namespace=n,i.data=e.data,i.Item=function(){f.apply(this,arguments)},i.Item.prototype=new f,u.htmlInit(i,n),o&&o.bridget&&o.bridget(n,i),i},e.Item=f,e}),function(n,t){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],t):"object"==typeof exports?module.exports=t(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):n.Masonry=t(n.Outlayer,n.getSize,n.fizzyUIUtils)}(window,function(n,t,i){var r=n.create("masonry");return r.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();var n=this.cols;for(this.colYs=[];n--;)this.colYs.push(0);this.maxY=0},r.prototype.measureColumns=function(){var n,i;(this.getContainerWidth(),this.columnWidth)||(n=this.items[0],i=n&&n.element,this.columnWidth=i&&t(i).outerWidth||this.containerWidth);var r=this.columnWidth+=this.gutter,f=this.containerWidth+this.gutter,u=f/r,e=r-f%r,o=e&&1>e?"round":"floor";u=Math[o](u);this.cols=Math.max(u,1)},r.prototype.getContainerWidth=function(){var i=this.options.isFitWidth?this.element.parentNode:this.element,n=t(i);this.containerWidth=n&&n.innerWidth},r.prototype._getItemLayoutPosition=function(n){n.getSize();var e=n.size.outerWidth%this.columnWidth,s=e&&1>e?"round":"ceil",t=Math[s](n.size.outerWidth/this.columnWidth);t=Math.min(t,this.cols);for(var r=this._getColGroup(t),u=Math.min.apply(Math,r),o=i.indexOf(r,u),h={x:this.columnWidth*o,y:u},c=u+n.size.outerHeight,l=this.cols+1-r.length,f=0;l>f;f++)this.colYs[o+f]=c;return h},r.prototype._getColGroup=function(n){var r;if(2>n)return this.colYs;for(var i=[],u=this.cols+1-n,t=0;u>t;t++)r=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,r);return i},r.prototype._manageStamp=function(n){var e=t(n),u=this._getElementOffset(n),o=this.options.isOriginLeft?u.left:u.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i,h,r;for(f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i),h=(this.options.isOriginTop?u.top:u.bottom)+e.outerHeight,r=f;i>=r;r++)this.colYs[r]=Math.max(h,this.colYs[r])},r.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this.options.isFitWidth&&(n.width=this._getContainerFitWidth()),n},r.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t&&0===this.colYs[t];)n++;return(this.cols-n)*this.columnWidth-this.gutter},r.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!==this.containerWidth},r});!function(n,t){"object"==typeof module&&module.exports?module.exports=t():n.Toastify=t()}(this,function(){function t(n,t){return t.offset[n]?isNaN(t.offset[n])?t.offset[n]:t.offset[n]+"px":"0px"}function i(n,t){return!(!n||"string"!=typeof t)&&!!(n.className&&n.className.trim().split(/\s+/gi).indexOf(t)>-1)}var n=function(t){return new n.lib.init(t)};return n.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},n.lib=n.prototype={toastify:"1.12.0",constructor:n,init:function(t){return t||(t={}),this.options={},this.toastElement=null,this.options.text=t.text||n.defaults.text,this.options.node=t.node||n.defaults.node,this.options.duration=0===t.duration?0:t.duration||n.defaults.duration,this.options.selector=t.selector||n.defaults.selector,this.options.callback=t.callback||n.defaults.callback,this.options.destination=t.destination||n.defaults.destination,this.options.newWindow=t.newWindow||n.defaults.newWindow,this.options.close=t.close||n.defaults.close,this.options.gravity="bottom"===t.gravity?"toastify-bottom":n.defaults.gravity,this.options.positionLeft=t.positionLeft||n.defaults.positionLeft,this.options.position=t.position||n.defaults.position,this.options.backgroundColor=t.backgroundColor||n.defaults.backgroundColor,this.options.avatar=t.avatar||n.defaults.avatar,this.options.className=t.className||n.defaults.className,this.options.stopOnFocus=void 0===t.stopOnFocus?n.defaults.stopOnFocus:t.stopOnFocus,this.options.onClick=t.onClick||n.defaults.onClick,this.options.offset=t.offset||n.defaults.offset,this.options.escapeMarkup=void 0!==t.escapeMarkup?t.escapeMarkup:n.defaults.escapeMarkup,this.options.ariaLive=t.ariaLive||n.defaults.ariaLive,this.options.style=t.style||n.defaults.style,t.backgroundColor&&(this.options.style.background=t.backgroundColor),this},buildToast:function(){var n,u,r,i,e,f;if(!this.options)throw"Toastify is not initialized";n=document.createElement("div");for(u in n.className="toastify on "+this.options.className,this.options.position?n.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(n.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):n.className+=" toastify-right",n.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.'),this.options.style)n.style[u]=this.options.style[u];if((this.options.ariaLive&&n.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)?n.appendChild(this.options.node):(this.options.escapeMarkup?n.innerText=this.options.text:n.innerHTML=this.options.text,""!==this.options.avatar)&&(r=document.createElement("img"),r.src=this.options.avatar,r.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?n.appendChild(r):n.insertAdjacentElement("afterbegin",r)),!0===this.options.close&&(i=document.createElement("button"),i.type="button",i.setAttribute("aria-label","Close"),i.className="toast-close",i.innerHTML="&#10006;",i.addEventListener("click",function(n){n.stopPropagation();this.removeElement(this.toastElement);window.clearTimeout(this.toastElement.timeOutValue)}.bind(this)),e=window.innerWidth>0?window.innerWidth:screen.width,("left"==this.options.position||!0===this.options.positionLeft)&&e>360?n.insertAdjacentElement("afterbegin",i):n.appendChild(i)),this.options.stopOnFocus&&this.options.duration>0&&(f=this,n.addEventListener("mouseover",function(){window.clearTimeout(n.timeOutValue)}),n.addEventListener("mouseleave",function(){n.timeOutValue=window.setTimeout(function(){f.removeElement(n)},f.options.duration)})),void 0!==this.options.destination&&n.addEventListener("click",function(n){n.stopPropagation();!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&n.addEventListener("click",function(n){n.stopPropagation();this.options.onClick()}.bind(this)),"object"==typeof this.options.offset){var o=t("x",this.options),s=t("y",this.options),h="left"==this.options.position?o:"-"+o,c="toastify-top"==this.options.gravity?s:"-"+s;n.style.transform="translate("+h+","+c+")"}return n},showToast:function(){var t,i;if(this.toastElement=this.buildToast(),!(t="string"==typeof this.options.selector?document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||"undefined"!=typeof ShadowRoot&&this.options.selector instanceof ShadowRoot?this.options.selector:document.body))throw"Root element is not defined";return i=n.defaults.oldestFirst?t.firstChild:t.lastChild,t.insertBefore(this.toastElement,i),n.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue);this.removeElement(this.toastElement)},removeElement:function(t){t.className=t.className.replace(" on","");window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node);t.parentNode&&t.parentNode.removeChild(t);this.options.callback.call(t);n.reposition()}.bind(this),400)}},n.reposition=function(){for(var u,n,f={top:15,bottom:15},e={top:15,bottom:15},o={top:15,bottom:15},r=document.getElementsByClassName("toastify"),t=0;t<r.length;t++)n=!0===i(r[t],"toastify-top")?"toastify-top":"toastify-bottom",u=r[t].offsetHeight,n=n.substr(9,n.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(r[t].style[n]=o[n]+"px",o[n]+=u+15):!0===i(r[t],"toastify-left")?(r[t].style[n]=f[n]+"px",f[n]+=u+15):(r[t].style[n]=e[n]+"px",e[n]+=u+15);return this},n.lib.init.prototype=n.lib,n}),function(n){n.fn.extend({leanModal:function(t){function i(t){n("#lean_overlay").fadeOut(200);n(t).css({display:"none"})}var r=n("<div id='lean_overlay'><\/div>");return n("body").append(r),t=n.extend({top:100,overlay:.5,closeButton:null},t),this.each(function(){var r=t;n(this).click(function(t){var u=n(this).attr("href"),e,f;n("#lean_overlay").click(function(){i(u)});n(r.closeButton).click(function(){i(u)});e=n(u).outerHeight();f=n(u).outerWidth();n("#lean_overlay").css({display:"block",opacity:0});n("#lean_overlay").fadeTo(200,r.overlay);n(u).css({display:"block",position:"fixed",opacity:0,"z-index":11e3,left:"50%","margin-left":-(f/2)+"px",top:r.top+"px"});n(u).fadeTo(200,1);t.preventDefault()})})}})}(jQuery);$(window).on("load",function(){var n=$("#masonry").masonry({columnWidth:".masonry__item__sizer",itemSelector:".masonry__item",percentPosition:!0})});$(function(){function i(){var n=$(window).scrollTop();n>=130?($(".header").addClass("header--sticky"),$("main.main").addClass("main--sticky")):($(".header").removeClass("header--sticky"),$("main.main").removeClass("main--sticky"))}function r(){$(".accordion--news h4").removeClass("active");$(".accordion--news ul").slideUp(300).removeClass("open")}function u(){$("#ExpandingSummaryContainers h2").removeClass("active");$("#ExpandingSummaryContainers > div").slideUp(300).removeClass("open")}$(function(){$(".js-modal").leanModal({closeButton:".modal_close"})});$("select").each(function(){$(this).wrap("<span class='select-field__wrapper'><\/span>");$(this).after("<span class='select-field__arrow'><\/span>")});$("select").change(function(){var n=$(this).find(":selected").text();$(this).next(".select-field__arrow").text(n)}).trigger("change");var n=document.getElementById("navbar-collapse"),t=null;n&&(n.addEventListener("show.bs.collapse",function(){document.body.classList.add("is-static")}),n.addEventListener("hide.bs.collapse",function(){document.body.classList.remove("is-static")}),t=new bootstrap.Collapse(n,{toggle:!1}));window.addEventListener("resize",function(){document.body.classList.remove("is-static");t&&t.hide()});$(".show-search, .comments__title-view").click(function(){$(this).parent().toggleClass("is-open")});$(window).scroll(function(){var n=$(window).scrollTop();n>=3e3?($(".back-to-top").removeClass("display-none"),$(".back-to-top").addClass("display-block")):($(".back-to-top").removeClass("display-block"),$(".back-to-top").addClass("display-none"))});$(".peel-panel__trigger--close").mouseenter(function(){$(".peel-panel").addClass("is-active");$(".peel-panel__trigger--close").addClass("is-active")});$(".peel-panel").mouseleave(function(){$(this).removeClass("is-active");$(".peel-panel__trigger--close").removeClass("is-active")});$(".peel-panel__trigger--close").on("touchstart",function(n){"use strict";$(this).hasClass("is-active")?($(this).removeClass("is-active"),$(".peel-panel").removeClass("is-active")):($(this).addClass("is-active"),$(".peel-panel").addClass("is-active"),n.preventDefault())});$(".comments__title-ico").click(function(){$(this).parent().toggleClass("is-open")});$(window).scroll(function(){i()});$(".accordion--news h4:first-of-type").addClass("active");$(".accordion--news ul:first-of-type").slideDown(300).addClass("open");$(".accordion--news h4").click(function(n){$(n.target).is(".active")?r():(r(),$(this).addClass("active"),$(this).next().slideDown(300).addClass("open"));n.preventDefault()});$("#ExpandingSummaryContainers h2:first-of-type").addClass("active");$("#ExpandingSummaryContainers h2:first-of-type + div").slideDown(300).addClass("open");$("#ExpandingSummaryContainers h2").click(function(n){$(n.target).is(".active")?u():(u(),$(this).addClass("active"),$(this).next().slideDown(300).addClass("open"));n.preventDefault()});$(".ExpandAllR").click(function(){$("#ExpandingSummaryContainers h2").addClass("active");$("#ExpandingSummaryContainers > div").slideDown(300).addClass("open")});$(".CloseAllL").click(function(){$("#ExpandingSummaryContainers h2").removeClass("active");$("#ExpandingSummaryContainers > div").slideUp(300).removeClass("open")});$('[id*="hlnkHaveYourSay1"]').prepend('<span class="comment-ico comment-ico--number">1<\/span>');$('[id*="hlnkHaveYourSay2"]').prepend('<span class="comment-ico comment-ico--add">+<\/span>');$(function(){$("a[href*=#]:not([href=#], [href*=accordion], [href=#modal], [href=#MortgageFormHolder] )").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var n=$(this.hash);if(n=n.length?n:$("[name="+this.hash.slice(1)+"]"),n.length)return scrollWindowToElement(n[0]),!1}})});i()});$(function(){if($(".use-submit-behaviour").length){window.onbeforeunload=throbFor60Seconds;$(".use-submit-behaviour").on("click",throbFor60Seconds);$(".field-validation-valid,.validation-summary-errors,.validation-summary-valid").bind("DOMSubtreeModified",function(){window.hideLoadingThrobber()})}AJAXFormListHandler.init()});GAEventsHandler=function(){function n(n,t,i,r,u){function f(){try{ga("send","event",t,i,r,u);n.removeEventListener("click",f,!0)}catch(e){console.warn(e)}}if(!window.ga||typeof ga=="undefined"||!n||typeof n=="undefined")return!1;u=typeof u=="number"?u:0;n.addEventListener("click",f,!0)}function t(n,t,i,r){if(!window.ga||typeof ga=="undefined")return!1;r=typeof r=="number"?parseInt(r,10):0;try{ga("send","event",n,t,i,r)}catch(u){console.warn(u)}}return{addGAEvent:n,sendGAEvent:t}}();var AJAXFormListHandler=function(){function n(){var n=document.querySelectorAll("form.ajax-form");n.forEach(function(n){(new AJAXFormHandler).init(n.id)})}return{init:n}}(),AJAXFormHandler=function(){function i(n){(t=n,f())&&e()}function f(){return n=document.getElementById(t),!!n}function e(){n.removeEventListener("submit",r);n.addEventListener("submit",r)}function r(n){if(n.preventDefault(),showLoadingThrobber(),!$(this).valid()){hideLoadingThrobber();return}o()}function o(){const t=n.getAttribute("data-recaptcha-sitekey");grecaptcha.ready(function(){grecaptcha.execute(t,{action:"submit"}).then(function(){s()})})}function s(){var f=new FormData(n),r;f.append("g-recaptcha-response",c());r=new XMLHttpRequest;r.open("POST",n.action);r.onload=function(r){if(r.target.status===200)window.location.href=JSON.parse(r.target.response).Url;else if(r.target.status===400){var f=document.getElementById(n.getAttribute("data-response-container"));f?(h(r.target.responseText,f),i(t),hideLoadingThrobber()):(hideLoadingThrobber(),u())}else hideLoadingThrobber(),u()};r.send(f)}function h(n,t){const i=document.createElement("div");i.innerHTML=n;const r=i.childNodes[0];t.innerHTML=r.innerHTML}function u(){ToastHelper.showToast({message:"Something went wrong. Please try again later.",isPositive:!1})}function c(){var n=document.getElementsByName("g-recaptcha-response");return n.length!==1?null:n[0].value}var t=null,n=null;return{init:i}},ToastHelper=function(){function n(n){var t="";n.isPositive!==null&&n.isPositive!==undefined&&(t=n.isPositive===!0?"positive":"negative");Toastify({text:n.message,className:t,duration:5e3,newWindow:!0,close:!1,gravity:"bottom",position:"center",stopOnFocus:!0}).showToast()}return{showToast:n}}()