(function(n,t,i){"use strict";function b(n){return n===" "||n==="\t"||n==="\n"||n==="\f"||n==="\r"}function fi(t,i){var r=new n.Image;return r.onerror=function(){o[t]=!1;f()},r.onload=function(){o[t]=r.width===1;f()},r.src=i,"pending"}function ei(){p=!1;a=n.devicePixelRatio;h={};w={};r.DPR=a||1;u.width=Math.max(n.innerWidth||0,e.clientWidth);u.height=Math.max(n.innerHeight||0,e.clientHeight);u.vw=u.width/100;u.vh=u.height/100;v=[u.height,u.width,a].join("-");u.em=r.getEmValue();u.rem=u.em}function oi(n,t,i,r){var f,o,e,u;return y.algorithm==="saveData"?n>2.7?u=i+1:(o=t-i,f=Math.pow(n-.6,1.5),e=o*f,r&&(e+=.1*f),u=n+e):u=i>1?Math.sqrt(n*t):n,u>i}function si(n){var i,t=r.getSet(n),u=!1;t!=="pending"&&(u=v,t&&(i=r.setRes(t),r.applySetCandidate(i,n)));n[r.ns].evaled=u}function hi(n,t){return n.res-t.res}function ci(n,t,i){var u;return!i&&t&&(i=n[r.ns].sets,i=i&&i[i.length-1]),u=pt(t,i),u&&(t=r.makeUrl(t),n[r.ns].curSrc=t,n[r.ns].curCan=u,u.res||ft(u,u.set.sizes)),u}function pt(n,t){var i,f,u;if(n&&t)for(u=r.parseSet(t),n=r.makeUrl(n),i=0;i<u.length;i++)if(n===r.makeUrl(u[i].url)){f=u[i];break}return f}function li(n,t){for(var i,f,o=n.getElementsByTagName("source"),u=0,e=o.length;u<e;u++)i=o[u],i[r.ns]=!0,f=i.getAttribute("srcset"),f&&t.push({srcset:f,media:i.getAttribute("media"),type:i.getAttribute("type"),sizes:i.getAttribute("sizes")})}function ai(n,t){function h(t){var i,r=t.exec(n.substring(e));if(r)return i=r[0],e+=i.length,i}function s(){for(var n=!1,u,r,e,i={},h,v,s,l,y,a=0;a<f.length;a++)h=f[a],v=h[h.length-1],s=h.substring(0,h.length-1),l=parseInt(s,10),y=parseFloat(s),at.test(s)&&v==="w"?((u||r)&&(n=!0),l===0?n=!0:u=l):ui.test(s)&&v==="x"?((u||r||e)&&(n=!0),y<0?n=!0:r=y):at.test(s)&&v==="h"?((e||r)&&(n=!0),l===0?n=!0:e=l):n=!0;n||(i.url=o,u&&(i.w=u),r&&(i.d=r),e&&(i.h=e),e||r||u||(i.d=1),i.d===1&&(t.has1x=!0),i.set=t,c.push(i))}function a(){for(h(ni),i="",u="in descriptor";;){if(r=n.charAt(e),u==="in descriptor")if(b(r))i&&(f.push(i),i="",u="after descriptor");else{if(r===","){e+=1;i&&f.push(i);s();return}if(r==="(")i=i+r,u="in parens";else{if(r===""){i&&f.push(i);s();return}i=i+r}}else if(u==="in parens")if(r===")")i=i+r,u="in descriptor";else{if(r===""){f.push(i);s();return}i=i+r}else if(u==="after descriptor"&&!b(r)){if(r===""){s();return}u="in descriptor";e-=1}e+=1}}for(var l=n.length,o,f,i,u,r,e=0,c=[];;){if(h(ti),e>=l)return c;o=h(ii);f=[];o.slice(-1)===","?(o=o.replace(ri,""),s()):a()}}function vi(n){function c(n){function f(){r&&(u.push(r),r="")}function h(){u[0]&&(s.push(u),u=[])}for(var i,r="",u=[],s=[],e=0,t=0,o=!1;;){if(i=n.charAt(t),i==="")return f(),h(),s;if(o)if(i==="*"&&n[t+1]==="/"){o=!1;t+=2;f();continue}else{t+=1;continue}else if(b(i))if(n.charAt(t-1)&&b(n.charAt(t-1))||!r){t+=1;continue}else if(e===0){f();t+=1;continue}else i=" ";else if(i==="(")e+=1;else if(i===")")e-=1;else if(i===","){f();h();t+=1;continue}else if(i==="/"&&n.charAt(t+1)==="*"){o=!0;t+=2;continue}r=r+i;t+=1}}function l(n){return s.test(n)&&parseFloat(n)>=0?!0:h.test(n)?!0:n==="0"||n==="-0"||n==="+0"?!0:!1}var s=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,h=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i,i,u,o,t,f,e;for(u=c(n),o=u.length,i=0;i<o;i++){if(t=u[i],f=t[t.length-1],l(f))e=f,t.pop();else continue;if(t.length===0)return e;if(t=t.join(" "),r.matchesMedia(t))return e}return"100vw"}t.createElement("picture");var wt,c,et,v,r={},k=!1,l=function(){},s=t.createElement("img"),d=s.getAttribute,ot=s.setAttribute,st=s.removeAttribute,e=t.documentElement,o={},y={algorithm:""},g="data-pfsrc",ht=g+"set",nt=navigator.userAgent,bt=/rident/.test(nt)||/ecko/.test(nt)&&nt.match(/rv\:(\d+)/)&&RegExp.$1>35,tt="currentSrc",kt=/\s+\+?\d+(e\d+)?w/,dt=/(\([^)]+\))?\s*(.+)/,it=n.picturefillCFG,gt="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",ct="font-size:100%!important;",p=!0,h={},w={},a=n.devicePixelRatio,u={px:1,"in":96},lt=t.createElement("a"),rt=!1,ni=/^[ \t\n\r\u000c]+/,ti=/^[, \t\n\r\u000c]+/,ii=/^[^ \t\n\r\u000c]+/,ri=/[,]+$/,at=/^\d+$/,ui=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,vt=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent&&n.attachEvent("on"+t,i)},ut=function(n){var t={};return function(i){return i in t||(t[i]=n(i)),t[i]}};var yt=function(){var n=/^([\d\.]+)(em|vw|px)$/,t=function(){for(var n=arguments,t=0,i=n[0];++t in n;)i=i.replace(n[t],n[++t]);return i},i=ut(function(n){return"return "+t((n||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/ig,"")+";"});return function(t,r){var f;if(!(t in h))if(h[t]=!1,r&&(f=t.match(n)))h[t]=f[1]*u[f[2]];else try{h[t]=new Function("e",i(t))(u)}catch(e){}return h[t]}}(),ft=function(n,t){return n.w?(n.cWidth=r.calcListLength(t||"100vw"),n.res=n.w/n.cWidth):n.res=n.d,n},f=function(n){if(k){var f,u,e,i=n||{};if(i.elements&&i.elements.nodeType===1&&(i.elements.nodeName.toUpperCase()==="IMG"?i.elements=[i.elements]:(i.context=i.elements,i.elements=null)),f=i.elements||r.qsa(i.context||t,i.reevaluate||i.reselect?r.sel:r.selShort),e=f.length){for(r.setupRun(i),rt=!0,u=0;u<e;u++)r.fillImg(f[u],i);r.teardownRun(i)}}};for(wt=n.console&&console.warn?function(n){console.warn(n)}:l,(tt in s)||(tt="src"),o["image/jpeg"]=!0,o["image/gif"]=!0,o["image/png"]=!0,o["image/svg+xml"]=t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),r.ns=("pf"+(new Date).getTime()).substr(0,9),r.supSrcset=("srcset"in s),r.supSizes=("sizes"in s),r.supPicture=!!n.HTMLPictureElement,r.supSrcset&&r.supPicture&&!r.supSizes&&function(n){s.srcset="data:,a";n.src="data:,a";r.supSrcset=s.complete===n.complete;r.supPicture=r.supSrcset&&r.supPicture}(t.createElement("img")),r.supSrcset&&!r.supSizes?function(){var i="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n=t.createElement("img"),u=function(){var t=n.width;t===2&&(r.supSizes=!0);et=r.supSrcset&&!r.supSizes;k=!0;setTimeout(f)};n.onload=u;n.onerror=u;n.setAttribute("sizes","9px");n.srcset=i+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w";n.src=i}():k=!0,r.selShort="picture>img,img[srcset]",r.sel=r.selShort,r.cfg=y,r.DPR=a||1,r.u=u,r.types=o,r.setSize=l,r.makeUrl=ut(function(n){return lt.href=n,lt.href}),r.qsa=function(n,t){return"querySelector"in n?n.querySelectorAll(t):[]},r.matchesMedia=function(){return r.matchesMedia=n.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?function(n){return!n||matchMedia(n).matches}:r.mMQ,r.matchesMedia.apply(this,arguments)},r.mMQ=function(n){return n?yt(n):!0},r.calcLength=function(n){var t=yt(n,!0)||!1;return t<0&&(t=!1),t},r.supportsType=function(n){return n?o[n]:!0},r.parseSize=ut(function(n){var t=(n||"").match(dt);return{media:t&&t[1],length:t&&t[2]}}),r.parseSet=function(n){return n.cands||(n.cands=ai(n.srcset,n)),n.cands},r.getEmValue=function(){var n;if(!c&&(n=t.body)){var i=t.createElement("div"),r=e.style.cssText,u=n.style.cssText;i.style.cssText=gt;e.style.cssText=ct;n.style.cssText=ct;n.appendChild(i);c=i.offsetWidth;n.removeChild(i);c=parseFloat(c,10);e.style.cssText=r;n.style.cssText=u}return c||16},r.calcListLength=function(n){if(!(n in w)||y.uT){var t=r.calcLength(vi(n));w[n]=t?t:u.width}return w[n]},r.setRes=function(n){var t,i,u;if(n)for(t=r.parseSet(n),i=0,u=t.length;i<u;i++)ft(t[i],n.sizes);return t},r.setRes.res=ft,r.applySetCandidate=function(n,t){if(n.length){var f,e,o,l,i,s,u,a,v,h=t[r.ns],c=r.DPR;if(s=h.curSrc||t[tt],u=h.curCan||ci(t,s,n[0].set),u&&u.set===n[0].set&&(v=bt&&!t.complete&&u.res-.1>c,v||(u.cached=!0,u.res>=c&&(i=u))),!i)for(n.sort(hi),l=n.length,i=n[l-1],e=0;e<l;e++)if(f=n[e],f.res>=c){o=e-1;i=n[o]&&(v||s!==r.makeUrl(f.url))&&oi(n[o].res,f.res,c,n[o].cached)?n[o]:f;break}i&&(a=r.makeUrl(i.url),h.curSrc=a,h.curCan=i,a!==s&&r.setSrc(t,i),r.setSize(t))}},r.setSrc=function(n,t){var i;n.src=t.url;t.set.type==="image/svg+xml"&&(i=n.style.width,n.style.width=n.offsetWidth+1+"px",n.offsetWidth+1&&(n.style.width=i))},r.getSet=function(n){for(var t,u,f=!1,e=n[r.ns].sets,i=0;i<e.length&&!f;i++)if(t=e[i],t.srcset&&r.matchesMedia(t.media)&&(u=r.supportsType(t.type))){u==="pending"&&(t=u);f=t;break}return f},r.parseSets=function(n,t,u){var o,e,s,h,c=t&&t.nodeName.toUpperCase()==="PICTURE",f=n[r.ns];(f.src===i||u.src)&&(f.src=d.call(n,"src"),f.src?ot.call(n,g,f.src):st.call(n,g));(f.srcset===i||u.srcset||!r.supSrcset||n.srcset)&&(o=d.call(n,"srcset"),f.srcset=o,h=!0);f.sets=[];c&&(f.pic=!0,li(t,f.sets));f.srcset?(e={srcset:f.srcset,sizes:d.call(n,"sizes")},f.sets.push(e),s=(et||f.src)&&kt.test(f.srcset||""),s||!f.src||pt(f.src,e)||e.has1x||(e.srcset+=", "+f.src,e.cands.push({url:f.src,d:1,set:e}))):f.src&&f.sets.push({srcset:f.src,sizes:null});f.curCan=null;f.curSrc=i;f.supported=!(c||e&&!r.supSrcset||s&&!r.supSizes);h&&r.supSrcset&&!f.supported&&(o?(ot.call(n,ht,o),n.srcset=""):st.call(n,ht));f.supported&&!f.srcset&&(!f.src&&n.src||n.src!==r.makeUrl(f.src))&&(f.src===null?n.removeAttribute("src"):n.src=f.src);f.parsed=!0},r.fillImg=function(n,t){var i,u=t.reselect||t.reevaluate;(n[r.ns]||(n[r.ns]={}),i=n[r.ns],u||i.evaled!==v)&&((!i.parsed||t.reevaluate)&&r.parseSets(n,n.parentNode,t),i.supported?i.evaled=v:si(n))},r.setupRun=function(){(!rt||p||a!==n.devicePixelRatio)&&ei()},r.supPicture?(f=l,r.fillImg=l):function(){var i,h=n.attachEvent?/d$|^c/:/d$|^c|^i/,f=function(){var n=t.readyState||"";o=setTimeout(f,n==="loading"?200:999);t.body&&(r.fillImgs(),i=i||h.test(n),i&&clearTimeout(o))},o=setTimeout(f,t.body?9:99),c=function(n,t){var i,r,u=function(){var f=new Date-r;f<t?i=setTimeout(u,t-f):(i=null,n())};return function(){r=new Date;i||(i=setTimeout(u,t))}},s=e.clientHeight,l=function(){p=Math.max(n.innerWidth||0,e.clientWidth)!==u.width||e.clientHeight!==s;s=e.clientHeight;p&&r.fillImgs()};vt(n,"resize",c(l,99));vt(t,"readystatechange",f)}(),r.picturefill=f,r.fillImgs=f,r.teardownRun=l,f._=r,n.picturefillCFG={pf:r,push:function(n){var t=n.shift();typeof r[t]=="function"?r[t].apply(r,n):(y[t]=n[0],rt&&r.fillImgs({reselect:!0}))}};it&&it.length;)n.picturefillCFG.push(it.shift());n.picturefill=f;typeof module=="object"&&typeof module.exports=="object"?module.exports=f:typeof define=="function"&&define.amd&&define("picturefill",function(){return f});r.supPicture||(o["image/webp"]=fi("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))})(window,document),function(n){n.fn.forFitSake=function(t){var i;t=n.extend({"class":"hasForFitSake",includeDetection:!0,debug:!1},t);i=function(n){t.debug&&console.log(n)};i("ForFitSake.js - debug mode");t.includeDetection&&!function(n,t,i){function e(n,t){return typeof n===t}function w(){var i,n,u,f,s,c,t,h;for(h in o)if(o.hasOwnProperty(h)){if(i=[],n=o[h],n.name&&(i.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(u=0;u<n.options.aliases.length;u++)i.push(n.options.aliases[u].toLowerCase());for(f=e(n.fn,"function")?n.fn():n.fn,s=0;s<i.length;s++)c=i[s],t=c.split("."),1===t.length?r[t[0]]=f:(!r[t[0]]||r[t[0]]instanceof Boolean||(r[t[0]]=new Boolean(r[t[0]])),r[t[0]][t[1]]=f),d.push((f?"":"no-")+t.join("-"))}}function b(n,t){return!!~(""+n).indexOf(t)}function a(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):t.createElement.apply(t,arguments)}function k(n,t,r,f){function h(){v&&(delete u.style,delete u.modElem)}var c,v,s,y,o,p,l;if((f=!e(f,"undefined")&&f,!e(r,"undefined"))&&(c=nativeTestProps(n,r),!e(c,"undefined")))return c;for(l=["modernizr","tspan","samp"];!u.style&&l.length;)v=!0,u.modElem=a(l.shift()),u.style=u.modElem.style;for(y=n.length,s=0;s<y;s++)if(o=n[s],p=u.style[o],b(o,"-")&&(o=cssToDOM(o)),u.style[o]!==i){if(f||e(r,"undefined"))return h(),"pfx"!=t||o;try{u.style[o]=r}catch(n){}if(u.style[o]!=p)return h(),"pfx"!=t||o}return h(),!1}function h(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),o=(n+" "+y.join(f+" ")+f).split(" ");return e(t,"string")||e(t,"undefined")?k(o,t,r,u):(o=(n+" "+c.join(f+" ")+f).split(" "),testDOMProps(o,t,i))}var o=[],f={_version:"3.4.0",_config:{classPrefix:"",enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){o.push({name:n,fn:t,options:i})},addAsyncTest:function(n){o.push({name:null,fn:n})}},r=function(){},c,l,u,p,s;r.prototype=f;r=new r;var d=[],v="Moz O ms Webkit",y=f._config.usePrefixes?v.split(" "):[];for(f._cssomPrefixes=y,c=f._config.usePrefixes?v.toLowerCase().split(" "):[],f._domPrefixes=c,l=(t.documentElement,{elem:a("modernizr")}),r._q.push(function(){delete l.elem}),u={style:l.elem.style},r._q.unshift(function(){delete u.style}),f.testAllProps=h,p=f.prefixed=function(n,t,i){return 0===n.indexOf("@")?atRule(n):(-1!=n.indexOf("-")&&(n=cssToDOM(n)),t?h(n,t,i):h(n,"pfx"))},r.addTest("objectfit",!!p("objectFit"),{aliases:["object-fit"]}),w(),delete f.addTest,delete f.addAsyncTest,s=0;s<r._q.length;s++)r._q[s]();n.Modernizr=r}(window,document);(!Modernizr.objectfit||t.debug)&&n(this).each(function(){if(n(this).length){var r=n(this),u=r.find("img").prop("src");r.is("img")&&(i("Item is image"),u=r.prop("src"),r=r.parent());i(r);i(u);u&&r.css({backgroundImage:"url("+u+")",backgroundRepeat:"no-repeat"}).addClass(t.class)}})}}(jQuery);$(".searchIcon").on("click",function(){$("body").toggleClass("search-open")});$(document).ready(function(){$("span.pull-quote").each(function(){var n=$(this).parent("p");n.css("position","relative");$(this).clone().addClass("pulled").prependTo(n)});$("span.pull-quote-left").each(function(){var n=$(this).parent("p");n.css("position","relative");$(this).clone().addClass("pulled left").prependTo(n)})}),function(n){n.fn.customselect=function(t,i){var r={csclass:"custom-select",search:!0,numitems:4,searchblank:!1,showblank:!0,searchvalue:!1,hoveropen:!1,emptytext:"",showdisabled:!1,useoptionclass:!1,mobilecheck:function(){return navigator.platform&&navigator.userAgent.match(/(android|iphone|ipad|blackberry)/i)}},u,f;return t&&typeof t=="object"&&n.extend(r,t),u=typeof r.mobilecheck=="function"?r.mobilecheck.call():r.mobilecheck,f=u?n(this).filter("select"):n(this).filter("select:not([multiple])"),f.each(function(){var e=n(this);e.data("cs-options")&&n.extend(r,e.data("cs-options"));var f=e.parents(r.selector+":first"),o={init:function(){var t={init:function(){t.container();t.value();t.subcontainer()},container:function(){f=n("<div/>").addClass(r.csclass);u&&(f.addClass(r.csclass+"-mobile"),e.css("opacity",0));e.before(f);e.appendTo(f);e.off("change",t._onchange).change(t._onchange);var i=null;f.hover(function(){i&&clearTimeout(i);f.addClass(r.csclass+"-hover")},function(){r.hoveropen&&(i=setTimeout(o.close,750));f.removeClass(r.csclass+"-hover")});n(document).mouseup(function(){f.is(r.selector+"-open")&&(f.is(r.selector+"-hover")?f.find("input").focus():o.close())})},value:function(){var t=n("<a href='#'><span/><\/a>").appendTo(f),u,i,s;e.appendTo(f);u="";i=null;t.click(function(n){n.preventDefault()}).focus(function(){f.addClass(r.csclass+"-focus")}).blur(function(){f.removeClass(r.csclass+"-focus")}).click(function(){f.addClass("fund-other-highlight")}).click(function(){n('input[type="radio"][name="code"]').prop("checked",!1)}).click(function(){n('input[type="number"][name="amount"]').prop("checked",!1)}).click(function(){n("#form-mask").toggle()});n("html").keyup(function(n){var o,h,s,f,c,l,a;if(t.is(":focus"))if(o=n.which,f=e.find("option").not(":disabled"),o>=48&&o<=90){for(u+=String.fromCharCode(o).toLowerCase(),c=0;c<f.length;c++)if(l=f.eq(c),a=(l.text()+"").toLowerCase(),(!l.is(":disabled")&&r.searchblank||a.length>0)&&a.indexOf(u)===0){e.val(l.attr("value")).change();break}i&&clearTimeout(i);i=setTimeout(function(){u=""},1e3);n.preventDefault()}else o===27?(i&&clearTimeout(i),u="",n.preventDefault()):o===38?(h=e.find("option:selected"),s=f.index(h),s>0?e.val(f.eq(s-1).attr("value")):e.val(f.eq(f.length-1).attr("value")),e.change(),n.preventDefault()):o===40&&(h=e.find("option:selected"),s=f.index(h),s<f.length-1?e.val(f.eq(s+1).attr("value")):e.val(f.eq(0).attr("value")),e.change(),n.preventDefault())});s=e.find("option:selected");t.find("span").html(s.text().length>0?s.text():r.emptytext);t.removeAttr("class");r.useoptionclass&&s.attr("class")&&t.addClass(s.attr("class")||"");r.hoveropen?t.mouseover(o.open):t.click(o.toggle)},subcontainer:function(){var i=n("<div/>").appendTo(f),u=n("<input type='input' class='' placeholder='Search for a fund'/>").appendTo(i),s,t,h;u.keyup(function(t){n.inArray(t.which,[13,38,40])<0&&(r.search?o.search(n(this).val()):(o.searchmove(n(this).val()),n(this).val("")))}).keydown(function(n){switch(n.which){case 13:val=f.find("ul li.active.option-hover").data("value");disabled=f.find("ul li.active.option-hover").is(".option-disabled");o.select(val,disabled);break;case 38:o.selectUp();break;case 40:o.selectDown();break;case 27:o.close();break;default:return!0}return n.preventDefault(),!1}).blur(function(){n(this).val("")});r.search||u.addClass(r.csclass+"-hidden-input");s=n("<div/>").appendTo(i);t=n("<ul/>").appendTo(s);e.find("option").each(function(i){var u=n(this).attr("value"),f=n(this).text(),e=n(this).is(":first-of-type");(r.showblank||u.length>0)&&(r.showdisabled||!e)&&n("<li/>",{"class":"active"+(i===0?" option-hover":"")+(n(this).is(":disabled")?" option-disabled":"")+(r.useoptionclass&&n(this).attr("class")?" "+n(this).attr("class"):""),"data-value":u,text:f.length>0?f:r.emptytext}).appendTo(t)});h=t.find("li");t.find("li").click(function(){o.select(n(this).data("value"),n(this).is(".option-disabled"))});f.find("div div").css({"overflow-y":h.length>r.numitems?"scroll":"visible"});n("<li/>",{"class":"no-results",text:"No results"}).appendTo(t)},_onchange:function(){e.val(n(this).val());o.select(n(this).val())}};e.is("select"+r.selector)&&!e.data("cs-options")&&t.init()},toggle:function(){f.is(r.selector+"-open")?o.close():o.open()},open:function(){u||(f.addClass(r.csclass+"-open"),f.find("input").focus(),f.find("ul li.no-results").hide(),o._selectMove(e.get(0).selectedIndex))},close:function(){f.removeClass(r.csclass+"-open");f.find("input").val("").blur();f.find("ul li").not(".no-results").addClass("active");var n=f.find("ul li").not(".no-results");f.find("div div").css({"overflow-y":n.length>r.numitems?"scroll":"visible"});f.find("a").focus()},search:function(t){t=n.trim(t.toLowerCase());var u=f.find("ul li.no-results").hide(),i=f.find("ul li").not(".no-results");i.each(function(){var f=(n(this).text()+"").toLowerCase(),u=(n(this).data("value")+"").toLowerCase(),i=!1;r.searchblank||u.length>0?r.searchvalue&&u.indexOf(t)>=0?i=!0:f.indexOf(t)>=0&&(i=!0):t.length===0&&(i=!0);i?n(this).addClass("active"):n(this).removeClass("active")});i=i.filter(".active").filter(":visible");f.find("div div").css({"overflow-y":i.length>r.numitems?"scroll":"visible"});i.length>0?o._selectMove(0):u.show()},searchmove:function(t){var i=[];e.find("option").each(function(r){n(this).text().toLowerCase().indexOf(t.toLowerCase())===0&&i.push(r)});i.length>0&&o._selectMove(i[0])},select:function(n,t){if(!t){e.val()!==n&&e.val(n).change();var i=e.find("option:selected"),u=f.find("a");u.find("span").text(i.text().length>0?i.text():r.emptytext);u.removeAttr("class");r.useoptionclass&&i.attr("class")&&u.addClass(i.attr("class")||"");o.close()}},selectUp:function(){var t=f.find("ul li.active").not(".no-results"),i=t.index(t.filter(".option-hover")),n=i-1;n=n<0?t.length-1:n;o._selectMove(n)},selectDown:function(){var t=f.find("ul li.active").not(".no-results"),i=t.index(t.filter(".option-hover")),n=i+1;n=n>t.length-1?0:n;o._selectMove(n)},destroy:function(){e.data("cs-options")&&(e.removeData("cs-options").insertAfter(f),f.remove())},_selectMove:function(n){var r=f.find("ul li.active"),t,i;r.removeClass("option-hover").eq(n).addClass("option-hover");t=f.find("div div");t.css("overflow-y")==="scroll"&&(t.scrollTop(0),i=r.eq(n),offset=i.offset().top+i.outerHeight()-t.offset().top-t.height(),offset>0&&t.scrollTop(offset))}},s=t;s&&typeof s=="object"&&(s="init",i=null);r.selector="."+r.csclass;s=s?s:"init";typeof o[s]=="function"&&o[s].call(this,i);s!=="destroy"&&e.data("cs-options",r)}),this}}(jQuery);$(function(){$("#standard").customselect()});$(document).ready(function(){$(".next").on("click",function(){$(window).scrollTop(0)});$("input[name='amount']").on("input",function(){$("#submit-to-checkout").prop("disabled",!1)});var n,t,r,u,f,i;$("#submit-to-checkout").click(function(){if(i)return!1;i=!0;n=$("#fieldset-step1");t=$("#checkout-container");$("#progressbar li").eq($("fieldset").index(t)).addClass("active");t.show();n.animate({opacity:0},{step:function(i){f=1-(1-i)*.2;r=i*50+"%";u=1-i;n.css({transform:"scale("+f+")",position:"absolute"});t.css({left:r,opacity:u})},duration:800,complete:function(){n.hide();i=!1}})});$("#checkout-container").empty().append('<iframe id="checkout" src="">');$("input#submit-to-checkout").click(function(){var t,n;$("#checkout").show();$this=$(this);t=$("#amount").val()?$("#amount").val():5;n="";n=$('input[name="code"]').is(":checked")?$('input[name="code"]:checked').val():$("select#standard").val();var i=$('input[name="recurring-frequency"]:checked').val(),r=$this.attr("action")+"&amount="+t+"&code="+n+"&RecurringFrequency="+i,u="https://online.gifts.washington.edu/secure/?page=make&FastForward=yes&nobanner=true&"+r;$("#checkout").attr("src",u)});$('input[type="radio"][name="code"').change(function(){$(".custom-select").removeClass("fund-other-highlight")});$("input#amount-other-number").click(function(){$("input#amount-other").prop("checked",!0)})});$(".fund").on("click",function(){var n=$(this).prop("for");$('[name="code"]').removeAttr("checked");$(".custom-select").removeClass("checked");$("#"+n).attr("checked",!0);console.log("Okay...")});$(".custom-select").on("change",function(){$('[name="code"]').removeAttr("checked");$(".custom-select").addClass("checked");console.log("Well, the click worked.")});(function(n,t){typeof define=="function"&&define.amd?define([],t):typeof module=="object"&&module.exports?module.exports=t():n.balanceText=t()})(this,function(){function o(){return}function i(n,t){Array.prototype.forEach.call(n,t)}function d(n){document.readyState!=="loading"?n():document.addEventListener?document.addEventListener("DOMContentLoaded",n):document.attachEvent("onreadystatechange",function(){document.readyState!=="loading"&&n()})}function g(n,t,i){var r;return function(){function e(){i||n.apply(u,f);r=null}var u=this,f=arguments;r?clearTimeout(r):i&&n.apply(u,f);r=setTimeout(e,t||100)}}function nt(){var n=document.documentElement.style;return n.textWrap||n.WebkitTextWrap||n.MozTextWrap||n.MsTextWrap}function s(){this.reset()}function tt(n){return u.some(function(t){return t.start<n&&n<t.end})}function a(n,r){var e,f;n.nodeType===n.ELEMENT_NODE?(e=window.getComputedStyle(n),e.whiteSpace==="nowrap"?(f=n.outerHTML.length,u.push({start:t,end:t+f}),t+=f):(i(n.childNodes,function(n){a(n,!0)}),r&&(t+=n.outerHTML.length-n.innerHTML.length))):t+=n.nodeType===n.COMMENT_NODE?n.length+7:n.nodeType===n.PROCESSING_INSTRUCTION_NODE?n.length+2:n.length}function it(n,i,r){if(r===0)n.style.whiteSpace=i,t=0,u=[],a(n,!1),n.style.whiteSpace="nowrap";else{var f=[];u.forEach(function(n){n.start>r&&f.push({start:n.start-r,end:n.end-r})});u=f}}function rt(n){var r=n.querySelectorAll('br[data-owner="balance-text-hyphen"]'),t,u;i(r,function(n){n.outerHTML=""});r=n.querySelectorAll('br[data-owner="balance-text"]');i(r,function(n){n.outerHTML=" "});t=n.querySelectorAll('span[data-owner="balance-text-softhyphen"]');t.length>0&&i(t,function(n){var t=document.createTextNode("­");n.parentNode.insertBefore(t,n);n.parentNode.removeChild(n)});t=n.querySelectorAll('span[data-owner="balance-text-justify"]');t.length>0&&(u="",i(t,function(n){u+=n.textContent;n.parentNode.removeChild(n)}),n.innerHTML=u)}function y(n,t,i){var u,e,r,f,o;return(t=t.trim(),f=t.split(" ").length,t=t+" ",f<2)?t:(r=document.createElement("span"),r.innerHTML=t,n.appendChild(r),e=r.offsetWidth,r.parentNode.removeChild(r),o=Math.floor((i-e)/(f-1)),r.style.wordSpacing=o+"px",r.setAttribute("data-owner","balance-text-justify"),u=document.createElement("div"),u.appendChild(r),u.innerHTML)}function p(n,t){var u=/(\s|-|\u2014|\u2013|\u00ad)(?![^<]*>)/g,i;if(!r)for(r=[],i=u.exec(n);i!==null;)tt(i.index)||r.push(i.index),i=u.exec(n);return r.indexOf(t)!==-1}function ut(n,t){return t===0||t===n.length||p(n,t-1)&&!p(n,t)}function h(n,t,i,r,u,f,e){var o;if(t&&typeof t=="string")for(;;){while(!ut(t,f))f+=u;if(n.innerHTML=t.substr(0,f),o=n.offsetWidth,u<0){if(o<=r||o<=0||f===0)break}else if(r<=o||i<=o||f===t.length)break;f+=u}e.index=f;e.width=o}function ft(n,t){var u,r,f,i=document.createElement("div");return i.style.display="block",i.style.position="absolute",i.style.bottom=0,i.style.right=0,i.style.width=0,i.style.height=0,i.style.margin=0,i.style.padding=0,i.style.visibility="hidden",i.style.overflow="hidden",r=document.createElement("span"),r.style.fontSize="2000px",r.innerHTML="&nbsp;",i.appendChild(r),n.appendChild(i),u=r.getBoundingClientRect(),i.parentNode.removeChild(i),f=u.height/u.width,t/f}function e(n){return n?typeof n=="string"?document.querySelectorAll(n):n.tagName&&n.querySelectorAll?[n]:n:[]}function w(n){i(e(n),function(n){var u,d;rt(n);var b=n.style.whiteSpace,ot=n.style.float,st=n.style.display,ht=n.style.position,ct=n.style.lineHeight;n.style.lineHeight="normal";u=n.offsetWidth;d=n.offsetHeight;n.style.whiteSpace="nowrap";n.style.float="none";n.style.display="inline";n.style.position="static";var a=n.offsetWidth,g=n.offsetHeight,nt=b==="pre-wrap"?0:ft(n,g);if(u>0&&a>u&&a<5e3){for(var t=n.innerHTML,l="",e="",tt=v(n),lt=Math.round(d/g),p=lt,ut=0,o,c,i,f,w,et,k;p>1;)r=null,it(n,b,ut),o=Math.round((a+nt)/p-nt),c=Math.round((t.length+1)/p)-1,i=new s,h(n,t,u,o,-1,c,i),f=new s,c=i.index,h(n,t,u,o,1,c,f),i.reset(),c=f.index,h(n,t,u,o,-1,c,i),w=i.index===0?f.index:u<f.width||i.index===f.index?i.index:Math.abs(o-i.width)<Math.abs(f.width-o)?i.index:f.index,e=t.substr(0,w).replace(/\s$/,""),k=Boolean(e.match(/\u00ad$/)),k&&(e=e.replace(/\u00ad$/,'<span data-owner="balance-text-softhyphen">-<\/span>')),tt?l+=y(n,e,u):(l+=e,et=k||Boolean(e.match(/(-|\u2014|\u2013)$/)),l+=et?'<br data-owner="balance-text-hyphen" />':'<br data-owner="balance-text" />'),t=t.substr(w),ut=w,p--,n.innerHTML=t,a=n.offsetWidth;n.innerHTML=tt?l+y(n,t,u):l+t}n.style.whiteSpace=b;n.style.float=ot;n.style.display=st;n.style.position=ht;n.style.lineHeight=ct})}function f(){var t=n.sel.join(","),i=e(t),r=Array.prototype.concat.apply(n.el,i);w(r)}function b(){c||(d(f),window.addEventListener("load",f),window.addEventListener("resize",g(f)),c=!0)}function et(t){typeof t=="string"?n.sel.push(t):i(e(t),function(t){n.el.push(t)});b();f()}function ot(t){typeof t=="string"?n.sel=n.sel.filter(function(n){return n!==t}):(t=e(t),n.el=n.el.filter(function(n){return t.indexOf(n)===-1}))}function st(){l||(n.sel.push(".balance-text"),b(),l=!0)}function k(n,t){n?t&&t.watch===!0?et(n):t&&t.watch===!1?ot(n):w(n):st()}var r,u,t,n={sel:[],el:[]},c=!1,l=!1,v;return(s.prototype.reset=function(){this.index=0;this.width=0},v=function(n){var t=n.currentStyle||window.getComputedStyle(n,null);return t.textAlign==="justify"},k.updateWatched=f,nt())?(o.updateWatched=o,o):k})