function FastClick(n){"use strict";var i,t=this;if(this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=10,this.layer=n,!n||!n.nodeType)throw new TypeError("Layer must be a document node");(this.onClick=function(){return FastClick.prototype.onClick.apply(t,arguments)},this.onMouse=function(){return FastClick.prototype.onMouse.apply(t,arguments)},this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(t,arguments)},this.onTouchMove=function(){return FastClick.prototype.onTouchMove.apply(t,arguments)},this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(t,arguments)},this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(t,arguments)},FastClick.notNeeded(n))||(this.deviceIsAndroid&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0)),n.addEventListener("click",this.onClick,!0),n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchmove",this.onTouchMove,!1),n.addEventListener("touchend",this.onTouchEnd,!1),n.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(t,i,r){var u=Node.prototype.removeEventListener;t==="click"?u.call(n,t,i.hijacked||i,r):u.call(n,t,i,r)},n.addEventListener=function(t,i,r){var u=Node.prototype.addEventListener;t==="click"?u.call(n,t,i.hijacked||(i.hijacked=function(n){n.propagationStopped||i(n)}),r):u.call(n,t,i,r)}),typeof n.onclick=="function"&&(i=n.onclick,n.addEventListener("click",function(n){i(n)},!1),n.onclick=null))}FastClick.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0;FastClick.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent);FastClick.prototype.deviceIsIOS4=FastClick.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent);FastClick.prototype.deviceIsIOSWithBadTarget=FastClick.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);FastClick.prototype.needsClick=function(n){"use strict";switch(n.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(n.disabled)return!0;break;case"input":if(this.deviceIsIOS&&n.type==="file"||n.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(n.className)};FastClick.prototype.needsFocus=function(n){"use strict";switch(n.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!this.deviceIsAndroid;case"input":switch(n.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!n.disabled&&!n.readOnly;default:return/\bneedsfocus\b/.test(n.className)}};FastClick.prototype.sendClick=function(n,t){"use strict";var r,i;document.activeElement&&document.activeElement!==n&&document.activeElement.blur();i=t.changedTouches[0];r=document.createEvent("MouseEvents");r.initMouseEvent(this.determineEventType(n),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null);r.forwardedTouchEvent=!0;n.dispatchEvent(r)};FastClick.prototype.determineEventType=function(n){"use strict";return this.deviceIsAndroid&&n.tagName.toLowerCase()==="select"?"mousedown":"click"};FastClick.prototype.focus=function(n){"use strict";var t;this.deviceIsIOS&&n.setSelectionRange&&n.type.indexOf("date")!==0&&n.type!=="time"?(t=n.value.length,n.setSelectionRange(t,t)):n.focus()};FastClick.prototype.updateScrollParent=function(n){"use strict";var i,t;if(i=n.fastClickScrollParent,!i||!i.contains(n)){t=n;do{if(t.scrollHeight>t.offsetHeight){i=t;n.fastClickScrollParent=t;break}t=t.parentElement}while(t)}i&&(i.fastClickLastScrollTop=i.scrollTop)};FastClick.prototype.getTargetElementFromEventTarget=function(n){"use strict";return n.nodeType===Node.TEXT_NODE?n.parentNode:n};FastClick.prototype.onTouchStart=function(n){"use strict";var i,t,r;if(n.targetTouches.length>1)return!0;if(i=this.getTargetElementFromEventTarget(n.target),t=n.targetTouches[0],this.deviceIsIOS){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!this.deviceIsIOS4){if(t.identifier===this.lastTouchIdentifier)return n.preventDefault(),!1;this.lastTouchIdentifier=t.identifier;this.updateScrollParent(i)}}return this.trackingClick=!0,this.trackingClickStart=n.timeStamp,this.targetElement=i,this.touchStartX=t.pageX,this.touchStartY=t.pageY,n.timeStamp-this.lastClickTime<200&&n.preventDefault(),!0};FastClick.prototype.touchHasMoved=function(n){"use strict";var t=n.changedTouches[0],i=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>i||Math.abs(t.pageY-this.touchStartY)>i?!0:!1};FastClick.prototype.onTouchMove=function(n){"use strict";return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(n.target)||this.touchHasMoved(n))&&(this.trackingClick=!1,this.targetElement=null),!0):!0};FastClick.prototype.findControl=function(n){"use strict";return n.control!==undefined?n.control:n.htmlFor?document.getElementById(n.htmlFor):n.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};FastClick.prototype.onTouchEnd=function(n){"use strict";var u,e,i,r,f,t=this.targetElement;if(!this.trackingClick)return!0;if(n.timeStamp-this.lastClickTime<200)return this.cancelNextClick=!0,!0;if(this.cancelNextClick=!1,this.lastClickTime=n.timeStamp,e=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,this.deviceIsIOSWithBadTarget&&(f=n.changedTouches[0],t=document.elementFromPoint(f.pageX-window.pageXOffset,f.pageY-window.pageYOffset)||t,t.fastClickScrollParent=this.targetElement.fastClickScrollParent),i=t.tagName.toLowerCase(),i==="label"){if(u=this.findControl(t),u){if(this.focus(t),this.deviceIsAndroid)return!1;t=u}}else if(this.needsFocus(t))return n.timeStamp-e>100||this.deviceIsIOS&&window.top!==window&&i==="input"?(this.targetElement=null,!1):(this.focus(t),this.deviceIsIOS4&&i==="select"||(this.targetElement=null,n.preventDefault()),!1);return this.deviceIsIOS&&!this.deviceIsIOS4&&(r=t.fastClickScrollParent,r&&r.fastClickLastScrollTop!==r.scrollTop)?!0:(this.needsClick(t)||(n.preventDefault(),this.sendClick(t,n)),!1)};FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=!1;this.targetElement=null};FastClick.prototype.onMouse=function(n){"use strict";return this.targetElement?n.forwardedTouchEvent?!0:n.cancelable?!this.needsClick(this.targetElement)||this.cancelNextClick?(n.stopImmediatePropagation?n.stopImmediatePropagation():n.propagationStopped=!0,n.stopPropagation(),n.preventDefault(),!1):!0:!0:!0};FastClick.prototype.onClick=function(n){"use strict";var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):n.target.type==="submit"&&n.detail===0?!0:(t=this.onMouse(n),t||(this.targetElement=null),t)};FastClick.prototype.destroy=function(){"use strict";var n=this.layer;this.deviceIsAndroid&&(n.removeEventListener("mouseover",this.onMouse,!0),n.removeEventListener("mousedown",this.onMouse,!0),n.removeEventListener("mouseup",this.onMouse,!0));n.removeEventListener("click",this.onClick,!0);n.removeEventListener("touchstart",this.onTouchStart,!1);n.removeEventListener("touchmove",this.onTouchMove,!1);n.removeEventListener("touchend",this.onTouchEnd,!1);n.removeEventListener("touchcancel",this.onTouchCancel,!1)};FastClick.notNeeded=function(n){"use strict";var t;if(typeof ontouchstart=="undefined")return!0;if(/Chrome\/[0-9]+/.test(navigator.userAgent))if(FastClick.prototype.deviceIsAndroid){if(t=document.querySelector("meta[name=viewport]"),t&&t.content.indexOf("user-scalable=no")!==-1)return!0}else return!0;return n.style.msTouchAction==="none"?!0:!1};FastClick.attach=function(n){"use strict";return new FastClick(n)};typeof define!="undefined"&&define.amd?define(function(){"use strict";return FastClick}):typeof module!="undefined"&&module.exports?(module.exports=FastClick.attach,module.exports.FastClick=FastClick):window.FastClick=FastClick,function(n){function i(n){return typeof n=="object"?n:{top:n,left:n}}var t=n.scrollTo=function(t,i,r){n(window).scrollTo(t,i,r)};t.defaults={axis:"xy",duration:parseFloat(n.fn.jquery)>=1.3?0:1,limit:!0};t.window=function(){return n(window)._scrollable()};n.fn._scrollable=function(){return this.map(function(){var t=this,r=!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1,i;return r?(i=(t.contentWindow||t).document||t.ownerDocument||t,/webkit/i.test(navigator.userAgent)||i.compatMode=="BackCompat"?i.body:i.documentElement):t})};n.fn.scrollTo=function(r,u,f){return typeof u=="object"&&(f=u,u=0),typeof f=="function"&&(f={onAfter:f}),r=="max"&&(r=9e9),f=n.extend({},t.defaults,f),u=u||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(u/=2),f.offset=i(f.offset),f.over=i(f.over),this._scrollable().each(function(){function l(n){h.animate(o,u,f.easing,n&&function(){n.call(this,r,f)})}if(r!=null){var s=this,h=n(s),e=r,c,o={},a=h.is("html,body");switch(typeof e){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(e)){e=i(e);break}if(e=n(e,this),!e.length)return;case"object":(e.is||e.style)&&(c=(e=n(e)).offset())}n.each(f.axis.split(""),function(n,i){var y=i=="x"?"Left":"Top",u=y.toLowerCase(),r="scroll"+y,p=s[r],w=t.max(s,i),v;c?(o[r]=c[u]+(a?0:p-h.offset()[u]),f.margin&&(o[r]-=parseInt(e.css("margin"+y))||0,o[r]-=parseInt(e.css("border"+y+"Width"))||0),o[r]+=f.offset[u]||0,f.over[u]&&(o[r]+=e[i=="x"?"width":"height"]()*f.over[u])):(v=e[u],o[r]=v.slice&&v.slice(-1)=="%"?parseFloat(v)/100*w:v);f.limit&&/^\d+$/.test(o[r])&&(o[r]=o[r]<=0?0:Math.min(o[r],w));!n&&f.queue&&(p!=o[r]&&l(f.onAfterFirst),delete o[r])});l(f.onAfter)}}).end()};t.max=function(t,i){var r=i=="x"?"Width":"Height",u="scroll"+r;if(!n(t).is("html,body"))return t[u]-n(t)[r.toLowerCase()]();var f="client"+r,e=t.ownerDocument.documentElement,o=t.ownerDocument.body;return Math.max(e[u],o[u])-Math.min(e[f],o[f])}}(jQuery);$(function(){FastClick.attach(document.body);var n,t;$(window).resize(function(){n=$(window).height();t=$(window).width();$("#main").css({minHeight:n});pageScroller()}).trigger("resize").scroll(function(){$("#overlay").off("click.closeInfobox").removeClass("hello");$(".info-box").removeClass("hello")});$(".js body").addClass("hello");$("body").on("click",".select-drop-trigger",function(n){n.preventDefault();$(".select-drop").each(function(){$(this).hasClass("open")?$(this).removeClass("open"):$(this).addClass("open")})})});pageScroller=function(){Modernizr.mq("only all and (min-width: 500px)")?$(".recalculate").click(function(n){n.preventDefault();$(window).scrollTo("#hero",400)}):$(".recalculate").click(function(n){n.preventDefault();$(window).scrollTo("#page-header",0)})},function(){function u(n){this._value=n}function f(n,t,i){var u,r,f=Math.pow(10,t);return r=(Math.round(n*f)/f).toFixed(t),i&&(u=new RegExp("0{1,"+i+"}$"),r=r.replace(u,"")),r}function s(n,t){return t.indexOf("$")>-1?c(n,t):t.indexOf("%")>-1?l(n,t):t.indexOf(":")>-1?a(n,t):e(n._value,t)}function h(i,u){var s,h,c,l,f,e=u,a=["KB","MB","GB","TB","PB","EB","ZB","YB"],o=!1;if(u.indexOf(":")>-1)i._value=v(u);else if(u===r)i._value=0;else{for("."!==n[t].delimiters.decimal&&(u=u.replace(/\./g,"").replace(n[t].delimiters.decimal,".")),s=new RegExp("[^a-zA-Z]"+n[t].abbreviations.thousand+"(?:\\)|(\\"+n[t].currency.symbol+")?(?:\\))?)?$"),h=new RegExp("[^a-zA-Z]"+n[t].abbreviations.million+"(?:\\)|(\\"+n[t].currency.symbol+")?(?:\\))?)?$"),c=new RegExp("[^a-zA-Z]"+n[t].abbreviations.billion+"(?:\\)|(\\"+n[t].currency.symbol+")?(?:\\))?)?$"),l=new RegExp("[^a-zA-Z]"+n[t].abbreviations.trillion+"(?:\\)|(\\"+n[t].currency.symbol+")?(?:\\))?)?$"),f=0;f<=a.length&&!(o=u.indexOf(a[f])>-1?Math.pow(1024,f+1):!1);f++);i._value=(o?o:1)*(e.match(s)?Math.pow(10,3):1)*(e.match(h)?Math.pow(10,6):1)*(e.match(c)?Math.pow(10,9):1)*(e.match(l)?Math.pow(10,12):1)*(u.indexOf("%")>-1?.01:1)*((u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1)*Number(u.replace(/[^0-9\.]+/g,""));i._value=o?Math.ceil(i._value):i._value}return i._value}function c(i,r){var u,o=r.indexOf("$")<=1?!0:!1,f="";return r.indexOf(" $")>-1?(f=" ",r=r.replace(" $","")):r.indexOf("$ ")>-1?(f=" ",r=r.replace("$ ","")):r=r.replace("$",""),u=e(i._value,r),o?u.indexOf("(")>-1||u.indexOf("-")>-1?(u=u.split(""),u.splice(1,0,n[t].currency.symbol+f),u=u.join("")):u=n[t].currency.symbol+f+u:u.indexOf(")")>-1?(u=u.split(""),u.splice(-1,0,f+n[t].currency.symbol),u=u.join("")):u=u+f+n[t].currency.symbol,u}function l(n,t){var i,r="",u=100*n._value;return t.indexOf(" %")>-1?(r=" ",t=t.replace(" %","")):t=t.replace("%",""),i=e(u,t),i.indexOf(")")>-1?(i=i.split(""),i.splice(-1,0,r+"%"),i=i.join("")):i=i+r+"%",i}function a(n){var i=Math.floor(n._value/3600),t=Math.floor((n._value-3600*i)/60),r=Math.round(n._value-3600*i-60*t);return i+":"+(10>t?"0"+t:t)+":"+(10>r?"0"+r:r)}function v(n){var t=n.split(":"),i=0;return 3===t.length?(i+=3600*Number(t[0]),i+=60*Number(t[1]),i+=Number(t[2])):2===t.length&&(i+=60*Number(t[0]),i+=Number(t[1])),Number(i)}function e(i,u){var v,b,l,o,e,k,y=!1,d=!1,g=!1,h="",p="",w="",c=Math.abs(i),nt=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],s="",a=!1;if(0===i&&null!==r)return r;if(u.indexOf("(")>-1?(y=!0,u=u.slice(1,-1)):u.indexOf("+")>-1&&(d=!0,u=u.replace(/\+/g,"")),u.indexOf("a")>-1&&(u.indexOf(" a")>-1?(h=" ",u=u.replace(" a","")):u=u.replace("a",""),c>=Math.pow(10,12)?(h+=n[t].abbreviations.trillion,i/=Math.pow(10,12)):c<Math.pow(10,12)&&c>=Math.pow(10,9)?(h+=n[t].abbreviations.billion,i/=Math.pow(10,9)):c<Math.pow(10,9)&&c>=Math.pow(10,6)?(h+=n[t].abbreviations.million,i/=Math.pow(10,6)):c<Math.pow(10,6)&&c>=Math.pow(10,3)&&(h+=n[t].abbreviations.thousand,i/=Math.pow(10,3))),u.indexOf("b")>-1)for(u.indexOf(" b")>-1?(p=" ",u=u.replace(" b","")):u=u.replace("b",""),l=0;l<=nt.length;l++)if(v=Math.pow(1024,l),b=Math.pow(1024,l+1),i>=v&&b>i){p+=nt[l];v>0&&(i/=v);break}return u.indexOf("o")>-1&&(u.indexOf(" o")>-1?(w=" ",u=u.replace(" o","")):u=u.replace("o",""),w+=n[t].ordinal(i)),u.indexOf("[.]")>-1&&(g=!0,u=u.replace("[.]",".")),o=i.toString().split(".")[0],e=u.split(".")[1],k=u.indexOf(","),e?(e.indexOf("[")>-1?(e=e.replace("]",""),e=e.split("["),s=f(i,e[0].length+e[1].length,e[1].length)):s=f(i,e.length),o=s.split(".")[0],s=s.split(".")[1].length?n[t].delimiters.decimal+s.split(".")[1]:"",g&&0===Number(s.slice(1))&&(s="")):o=f(i,null),o.indexOf("-")>-1&&(o=o.slice(1),a=!0),k>-1&&(o=o.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+n[t].delimiters.thousands)),0===u.indexOf(".")&&(o=""),(y&&a?"(":"")+(!y&&a?"-":"")+(!a&&d?"+":"")+o+s+(w?w:"")+(h?h:"")+(p?p:"")+(y&&a?")":"")}function y(t,i){n[t]=i}var i,n={},t="en",r=null,o="0,0",p="undefined"!=typeof module&&module.exports;i=function(n){return i.isNumeral(n)?n=n.value():0===n||"undefined"==typeof n?n=0:Number(n)||(n=i.fn.unformat(n)),new u(Number(n))};i.version="1.5.1";i.isNumeral=function(n){return n instanceof u};i.language=function(r,u){if(!r)return t;if(r&&!u){if(!n[r])throw new Error("Unknown language : "+r);t=r}return(u||!n[r])&&y(r,u),i};i.language("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(n){var t=n%10;return 1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}});i.zeroFormat=function(n){r="string"==typeof n?n:null};i.defaultFormat=function(n){o="string"==typeof n?n:"0.0"};i.fn=u.prototype={clone:function(){return i(this)},format:function(n){return s(this,n?n:o)},unformat:function(n){return h(this,n?n:o)},value:function(){return this._value},valueOf:function(){return this._value},set:function(n){return this._value=Number(n),this},add:function(n){return this._value=this._value+Number(n),this},subtract:function(n){return this._value=this._value-Number(n),this},multiply:function(n){return this._value=this._value*Number(n),this},divide:function(n){return this._value=this._value/Number(n),this},difference:function(n){var t=this._value-Number(n);return 0>t&&(t=-t),t}};p&&(module.exports=i);"undefined"==typeof ender&&(this.numeral=i);"function"==typeof define&&define.amd&&define([],function(){return i})}.call(this);Array.prototype.filter||(Array.prototype.filter=function(n){"use strict";var t,f,r,u,i;if(!this)throw new TypeError;if(t=Object(this),f=t.length>>>0,typeof n!="function")throw new TypeError;r=[];u=arguments[1];for(i in t)t.hasOwnProperty(i)&&n.call(u,t[i],i,t)&&r.push(t[i]);return r});window.console||(window.console=function(){var n=this;n.log=function(){}});typeof String.prototype.startsWith!="function"&&(String.prototype.startsWith=function(n){return this.indexOf(n)==0})