var h=void 0,i=null,n,o=this;function p(){}
function q(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function r(a){return typeof a=="string"}function s(a){return a[aa]||(a[aa]=++ba)}var aa="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),ba=0;function ca(a,b,c){return a.call.apply(a.bind,arguments)}
function da(a,b,c){if(!a)throw Error();if(arguments.length>2){var e=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,e);return a.apply(b,c)}}else return function(){return a.apply(b,arguments)}}function u(a,b,c){u=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ca:da;return u.apply(i,arguments)}
function w(a,b){function c(){}c.prototype=b.prototype;a.o=b.prototype;a.prototype=new c};function ea(a,b){for(var c=0,e=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=Math.max(e.length,f.length),g=0;c==0&&g<d;g++){var j=e[g]||"",k=f[g]||"",l=RegExp("(\\d*)(\\D*)","g"),E=RegExp("(\\d*)(\\D*)","g");do{var m=l.exec(j)||["","",""],t=E.exec(k)||["","",""];if(m[0].length==0&&t[0].length==0)break;c=fa(m[1].length==0?0:parseInt(m[1],10),t[1].length==0?0:parseInt(t[1],10))||fa(m[2].length==0,t[2].length==0)||fa(m[2],t[2])}while(c==
0)}return c}function fa(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};var x,ga,y,ha,ia,ja;function ka(){return o.navigator?o.navigator.userAgent:i}ia=ha=y=ga=x=!1;var z;if(z=ka()){var la=o.navigator;x=z.indexOf("Opera")==0;ga=!x&&z.indexOf("MSIE")!=-1;ha=(y=!x&&z.indexOf("WebKit")!=-1)&&z.indexOf("Mobile")!=-1;ia=!x&&!y&&la.product=="Gecko"}var ma=x,A=ga,B=ia,C=y,na=ha,oa,pa=o.navigator;oa=pa&&pa.platform||"";ja=oa.indexOf("Mac")!=-1;var qa=oa.indexOf("Win")!=-1,ra;
a:{var D="",F;if(ma&&o.opera)var sa=o.opera.version,D=typeof sa=="function"?sa():sa;else if(B?F=/rv\:([^\);]+)(\)|;)/:A?F=/MSIE\s+([^\);]+)(\)|;)/:C&&(F=/WebKit\/(\S+)/),F)var ta=F.exec(ka()),D=ta?ta[1]:"";if(A){var ua,va=o.document;ua=va?va.documentMode:h;if(ua>parseFloat(D)){ra=String(ua);break a}}ra=D}var wa={};function G(a){return wa[a]||(wa[a]=ea(ra,a)>=0)}var xa={};function ya(){return xa[9]||(xa[9]=A&&document.documentMode&&document.documentMode>=9)};function za(a){var b=H,c;for(c in b)a.call(h,b[c],c,b)}var Aa="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");function Ba(a,b){for(var c,e,f=1;f<arguments.length;f++){e=arguments[f];for(c in e)a[c]=e[c];for(var d=0;d<Aa.length;d++)c=Aa[d],Object.prototype.hasOwnProperty.call(e,c)&&(a[c]=e[c])}};var Ca=Array.prototype,Da=Ca.indexOf?function(a,b,c){return Ca.indexOf.call(a,b,c)}:function(a,b,c){c=c==i?0:c<0?Math.max(0,a.length+c):c;if(r(a))return!r(b)||b.length!=1?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};var Ea;!A||ya();var Fa=A&&!G("8");function I(){}I.prototype.H=!1;I.prototype.h=function(){if(!this.H)this.H=!0,this.b()};I.prototype.b=function(){this.N&&Ga.apply(i,this.N)};function Ga(a){for(var b=0,c=arguments.length;b<c;++b){var e=arguments[b],f=q(e);f=="array"||f=="object"&&typeof e.length=="number"?Ga.apply(i,e):e&&typeof e.h=="function"&&e.h()}};function J(a,b){this.type=a;this.currentTarget=this.target=b}w(J,I);J.prototype.b=function(){delete this.type;delete this.target;delete this.currentTarget};J.prototype.i=!1;J.prototype.n=!0;J.prototype.preventDefault=function(){this.n=!1};function Ha(a){Ha[" "](a);return a}Ha[" "]=p;function K(a,b){a&&this.q(a,b)}w(K,J);n=K.prototype;n.target=i;n.relatedTarget=i;n.offsetX=0;n.offsetY=0;n.clientX=0;n.clientY=0;n.screenX=0;n.screenY=0;n.button=0;n.keyCode=0;n.charCode=0;n.ctrlKey=!1;n.altKey=!1;n.shiftKey=!1;n.metaKey=!1;n.S=!1;n.z=i;
n.q=function(a,b){var c=this.type=a.type;J.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;if(e){if(B){var f;a:{try{Ha(e.nodeName);f=!0;break a}catch(d){}f=!1}f||(e=i)}}else if(c=="mouseover")e=a.fromElement;else if(c=="mouseout")e=a.toElement;this.relatedTarget=e;this.offsetX=a.offsetX!==h?a.offsetX:a.layerX;this.offsetY=a.offsetY!==h?a.offsetY:a.layerY;this.clientX=a.clientX!==h?a.clientX:a.pageX;this.clientY=a.clientY!==h?a.clientY:a.pageY;this.screenX=
a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.S=ja?a.metaKey:a.ctrlKey;this.state=a.state;this.z=a;delete this.n;delete this.i};
n.preventDefault=function(){K.o.preventDefault.call(this);var a=this.z;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Fa)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}};n.b=function(){K.o.b.call(this);this.relatedTarget=this.currentTarget=this.target=this.z=i};function Ia(){}var Ja=0;n=Ia.prototype;n.key=0;n.j=!1;n.C=!1;n.q=function(a,b,c,e,f,d){if(q(a)=="function")this.I=!0;else if(a&&a.handleEvent&&q(a.handleEvent)=="function")this.I=!1;else throw Error("Invalid listener argument");this.l=a;this.L=b;this.src=c;this.type=e;this.capture=!!f;this.A=d;this.C=!1;this.key=++Ja;this.j=!1};n.handleEvent=function(a){return this.I?this.l.call(this.A||this.src,a):this.l.handleEvent.call(this.l,a)};var Ka,La=(Ka="ScriptEngine"in o&&o.ScriptEngine()=="JScript")?o.ScriptEngineMajorVersion()+"."+o.ScriptEngineMinorVersion()+"."+o.ScriptEngineBuildVersion():"0";function L(a,b){this.J=b;this.f=[];if(a>this.J)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(var c=0;c<a;c++)this.f.push(this.e?this.e():{})}w(L,I);L.prototype.e=i;L.prototype.G=i;L.prototype.getObject=function(){return this.f.length?this.f.pop():this.e?this.e():{}};function M(a,b){a.f.length<a.J?a.f.push(b):Ma(a,b)}
function Ma(a,b){if(a.G)a.G(b);else{var c=q(b);if(c=="object"||c=="array"||c=="function")if(q(b.h)=="function")b.h();else for(var e in b)delete b[e]}}L.prototype.b=function(){L.o.b.call(this);for(var a=this.f;a.length;)Ma(this,a.pop());delete this.f};var Na,Oa,N,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa;
(function(){function a(){return{d:0,c:0}}function b(){return[]}function c(){function a(b){b=g.call(a.src,a.key,b);if(!b)return b}return a}function e(){return new Ia}function f(){return new K}var d=Ka&&!(ea(La,"5.7")>=0),g;Ra=function(a){g=a};if(d){Na=function(){return j.getObject()};Oa=function(a){M(j,a)};N=function(){return k.getObject()};Pa=function(a){M(k,a)};Qa=function(){return l.getObject()};Sa=function(){M(l,c())};Ta=function(){return E.getObject()};Ua=function(a){M(E,a)};Va=function(){return m.getObject()};
Wa=function(a){M(m,a)};var j=new L(0,600);j.e=a;var k=new L(0,600);k.e=b;var l=new L(0,600);l.e=c;var E=new L(0,600);E.e=e;var m=new L(0,600);m.e=f}else Na=a,Oa=p,N=b,Pa=p,Qa=c,Sa=p,Ta=e,Ua=p,Va=f,Wa=p})();var O={},P={},H={},Q={};
function R(a,b,c,e,f){if(b)if(q(b)=="array"){for(var d=0;d<b.length;d++)R(a,b[d],c,e,f);return i}else{var e=!!e,g=P;b in g||(g[b]=Na());g=g[b];e in g||(g[e]=Na(),g.d++);var g=g[e],j=s(a),k;g.c++;if(g[j]){k=g[j];for(d=0;d<k.length;d++)if(g=k[d],g.l==c&&g.A==f){if(g.j)break;return k[d].key}}else k=g[j]=N(),g.d++;d=Qa();d.src=a;g=Ta();g.q(c,d,a,b,e,f);c=g.key;d.key=c;k.push(g);O[c]=g;H[j]||(H[j]=N());H[j].push(g);a.addEventListener?(a==o||!a.F)&&a.addEventListener(b,d,e):a.attachEvent(b in Q?Q[b]:Q[b]=
"on"+b,d);return c}else throw Error("Invalid event type");}function S(a,b,c,e,f){if(q(b)=="array")for(var d=0;d<b.length;d++)S(a,b[d],c,e,f);else{e=!!e;a:{d=P;if(b in d&&(d=d[b],e in d&&(d=d[e],a=s(a),d[a]))){a=d[a];break a}a=i}if(a)for(d=0;d<a.length;d++)if(a[d].l==c&&a[d].capture==e&&a[d].A==f){T(a[d].key);break}}}
function T(a){if(O[a]){var b=O[a];if(!b.j){var c=b.src,e=b.type,f=b.L,d=b.capture;c.removeEventListener?(c==o||!c.F)&&c.removeEventListener(e,f,d):c.detachEvent&&c.detachEvent(e in Q?Q[e]:Q[e]="on"+e,f);c=s(c);f=P[e][d][c];if(H[c]){var g=H[c],j=Da(g,b);j>=0&&Ca.splice.call(g,j,1);g.length==0&&delete H[c]}b.j=!0;f.K=!0;Xa(e,d,c,f);delete O[a]}}}
function Xa(a,b,c,e){if(!e.s&&e.K){for(var f=0,d=0;f<e.length;f++)if(e[f].j){var g=e[f].L;g.src=i;Sa(g);Ua(e[f])}else f!=d&&(e[d]=e[f]),d++;e.length=d;e.K=!1;d==0&&(Pa(e),delete P[a][b][c],P[a][b].d--,P[a][b].d==0&&(Oa(P[a][b]),delete P[a][b],P[a].d--),P[a].d==0&&(Oa(P[a]),delete P[a]))}}
function Ya(a){var b,c=0,e=b==i;b=!!b;if(a==i)za(function(a){for(var d=a.length-1;d>=0;d--){var f=a[d];if(e||b==f.capture)T(f.key),c++}});else if(a=s(a),H[a])for(var a=H[a],f=a.length-1;f>=0;f--){var d=a[f];if(e||b==d.capture)T(d.key),c++}}function U(a,b,c,e,f){var d=1,b=s(b);if(a[b]){a.c--;a=a[b];a.s?a.s++:a.s=1;try{for(var g=a.length,j=0;j<g;j++){var k=a[j];k&&!k.j&&(d&=Za(k,f)!==!1)}}finally{a.s--,Xa(c,e,b,a)}}return Boolean(d)}function Za(a,b){var c=a.handleEvent(b);a.C&&T(a.key);return c}
Ra(function(a,b){if(!O[a])return!0;var c=O[a],e=c.type,f=P;if(!(e in f))return!0;var f=f[e],d,g;Ea===h&&(Ea=A&&!o.addEventListener);if(Ea){var j;if(!(j=b))a:{j="window.event".split(".");for(var k=o;d=j.shift();)if(k[d]!=i)k=k[d];else{j=i;break a}j=k}d=j;j=!0 in f;k=!1 in f;if(j){if(d.keyCode<0||d.returnValue!=h)return!0;a:{var l=!1;if(d.keyCode==0)try{d.keyCode=-1;break a}catch(E){l=!0}if(l||d.returnValue==h)d.returnValue=!0}}l=Va();l.q(d,this);d=!0;try{if(j){for(var m=N(),t=l.currentTarget;t;t=t.parentNode)m.push(t);
g=f[!0];g.c=g.d;for(var v=m.length-1;!l.i&&v>=0&&g.c;v--)l.currentTarget=m[v],d&=U(g,m[v],e,!0,l);if(k){g=f[!1];g.c=g.d;for(v=0;!l.i&&v<m.length&&g.c;v++)l.currentTarget=m[v],d&=U(g,m[v],e,!1,l)}}else d=Za(c,l)}finally{if(m)m.length=0,Pa(m);l.h();Wa(l)}return d}e=new K(b,this);try{d=Za(c,e)}finally{e.h()}return d});function $a(a,b){J.call(this,"navigate");this.T=a;this.W=b}w($a,J);function V(){}w(V,I);n=V.prototype;n.F=!0;n.B=i;n.addEventListener=function(a,b,c,e){R(this,a,b,c,e)};n.removeEventListener=function(a,b,c,e){S(this,a,b,c,e)};
n.dispatchEvent=function(a){var b=a.type||a,c=P;if(b in c){if(r(a))a=new J(a,this);else if(a instanceof J)a.target=a.target||this;else{var e=a,a=new J(b,this);Ba(a,e)}var e=1,f,c=c[b],b=!0 in c,d;if(b){f=[];for(d=this;d;d=d.B)f.push(d);d=c[!0];d.c=d.d;for(var g=f.length-1;!a.i&&g>=0&&d.c;g--)a.currentTarget=f[g],e&=U(d,f[g],a.type,!0,a)&&a.n!=!1}if(!1 in c)if(d=c[!1],d.c=d.d,b)for(g=0;!a.i&&g<f.length&&d.c;g++)a.currentTarget=f[g],e&=U(d,f[g],a.type,!1,a)&&a.n!=!1;else for(f=this;!a.i&&f&&d.c;f=f.B)a.currentTarget=
f,e&=U(d,f,a.type,!1,a)&&a.n!=!1;a=Boolean(e)}else a=!0;return a};n.b=function(){V.o.b.call(this);Ya(this);this.B=i};function ab(a,b){this.a=a||window;this.u=b||i;R(this.a,"popstate",this.m,!1,this);R(this.a,"hashchange",this.m,!1,this)}w(ab,V);n=ab.prototype;n.w=!1;n.p=!0;n.t="/";function bb(a){if(a.p){var a=a.a.location.href,b=a.indexOf("#");return b<0?"":a.substring(b+1)}else return a.u?a.u.X(a.t,a.a.location):a.a.location.pathname.substr(a.t.length)}n.b=function(){S(this.a,"popstate",this.m,!1,this);this.p&&S(this.a,"hashchange",this.m,!1,this)};n.m=function(){this.w&&this.dispatchEvent(new $a(bb(this),!0))};function cb(a,b){this.width=a;this.height=b}cb.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};cb.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};!A||ya();!B&&!A||A&&ya()||B&&G("1.9.1");A&&G("9");function W(a){return r(a)?document.getElementById(a):a}
function db(){var a=document;if(a.querySelectorAll&&a.querySelector&&(!C||document.compatMode=="CSS1Compat"||G("528")))return a.querySelectorAll("A.pjax");if(a.getElementsByClassName){for(var a=a.getElementsByClassName("pjax"),b={},c=0,e=0,f;f=a[e];e++)"A"==f.nodeName&&(b[c++]=f);b.length=c;return b}a=a.getElementsByTagName("A");b={};for(e=c=0;f=a[e];e++){var d=f.className;typeof d.split=="function"&&Da(d.split(/\s+/),"pjax")>=0&&(b[c++]=f)}b.length=c;return b}
function eb(a){var b=a.document;if(C&&!G("500")&&!na){typeof a.innerHeight=="undefined"&&(a=window);var b=a.innerHeight,c=a.document.documentElement.scrollHeight;a==a.top&&c<b&&(b-=15);return new cb(a.innerWidth,b)}a=b.compatMode=="CSS1Compat"?b.documentElement:b.body;return new cb(a.clientWidth,a.clientHeight)};function fb(a){this.a=a||window;this.r=R(this.a,"resize",this.Q,!1,this);this.g=eb(this.a||window);if(C&&qa||ma&&this.a.self!=this.a.top)this.v=window.setInterval(u(this.D,this),gb)}w(fb,V);var gb=500;n=fb.prototype;n.r=i;n.a=i;n.g=i;n.v=i;n.b=function(){fb.o.b.call(this);if(this.r)T(this.r),this.r=i;if(this.v)window.clearInterval(this.v),this.v=i;this.g=this.a=i};n.Q=function(){this.D()};
n.D=function(){var a=eb(this.a||window);if(!(a==this.g||(!a||!this.g?0:a.width==this.g.width&&a.height==this.g.height)))this.g=a,this.dispatchEvent("resize")};A&&document.documentMode>=8||B&&G("1.9.2")||C&&G("532.1");function X(){this.U=new fb;var a=this.k=new ab;if(a.p!=!1)S(a.a,"hashchange",a.m,!1,a),a.p=!1;a=this.k;if(!0!=a.w)a.w=!0,a.dispatchEvent(new $a(bb(a),!1))}var Y="bm.PageManager".split("."),Z=o;!(Y[0]in Z)&&Z.execScript&&Z.execScript("var "+Y[0]);for(var $;Y.length&&($=Y.shift());)!Y.length&&X!==h?Z[$]=X:Z=Z[$]?Z[$]:Z[$]={};
X.prototype.R=function(){var a=W("backgroundContainer"),b=document.createElement("img");b.src=window.location.hostname=="www.benmccann.com"?"/images/makhtesh-ramon.jpg":"images/makhtesh-ramon.jpg";b.id="backgroundImage";a.insertBefore(b,a.firstChild);this.M();hb(bb(this.k));R(this.U,"resize",u(this.M,this));a=window;if(a.history&&a.history.pushState){R(this.k,"navigate",u(this.P,this));a=db();for(b=0;b<a.length;b++)R(a[b],"click",u(this.O,this))}};X.prototype.initialize=X.prototype.R;
X.prototype.O=function(a){a.preventDefault();var a=a.target.getAttribute("href").replace(/^\/|\/$/g,""),b=this.k,c=a==""?"":a+"/";c!=bb(b)&&(b.a.history.pushState(i,b.a.document.title||"",b.p?"#"+c:b.u?b.u.V(c,b.t,b.a.location):b.t+c+b.a.location.search),b.dispatchEvent(new $a(c,!1)));hb(a)};X.prototype.P=function(a){hb(a.T)};
function hb(a){switch(a.replace(/^\/|\/$/g,"")){case "personal":W("profileContent").innerHTML="<p>I've moved eight times to different cities around the U.S., performed in the half-time show of the 2000 NCAA Football National Championship Game, appeared on \"The Price is Right\", and scuba dived in the Great Barrier Reef. I'm always planning the next adventure.</p><p>In my free time, I take every opportunity to enjoy California's weather and natural beauty; you'll often find me hiking or skiing in the mountains one day and playing beach volleyball or scuba diving the next.</p>";break;
case "contact":W("profileContent").innerHTML='<div class="nav"><p><a href="mailto:ben@benmccann.com">ben@benmccann.com</a></p><p><a href="http://www.linkedin.com/in/benmccann">LinkedIN</a></p><p><a href="http://angel.co/ben-mccann">AngelList</a></p></div>';break;default:W("profileContent").innerHTML='<p>I worked on Google Analytics for over three years. Most recently, I was part of the core team that launched <a href="http://analytics.blogspot.com/2011/09/whats-happening-on-your-site-right-now.html">Realtime Analytics</a>. In my 20% time, I created the Google Spreadsheets <a href="http://googledocs.blogspot.com/2010/04/preview-faster-more-feature-rich-google.html">formula bar</a> and <a href="http://googledocs.blogspot.com/2010/05/formula-highlighting-in-spreadsheets.html">formula highlighting</a>.</p><p>I graduated from Carnegie Mellon University where I earned both my B.S. in Computer Science and MBA in only 4 years, and was the youngest ever graduate of the Masters program at the Tepper School of Business.</p>'}}
X.prototype.M=function(){var a=Math.min(Math.max(screen.width-100,window.innerWidth)-50,1280),b=Math.min(Math.max(screen.height-250,window.innerHeight)-50,800);a/b<1.6?b=a*800/1280:a=b*1280/800;var c=W("backgroundContainer");c.style.width=a+"px";c.style.height=b+"px"};

