(function(d){var a="Lite-1.3";d.fn.cycle=function(e){return this.each(function(){e=e||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var l=d(this);var i=e.slideExpr?d(e.slideExpr,this):l.children();var g=i.get();if(g.length<2){window.console&&console.log("terminating; too few slides: "+g.length);return}var f=d.extend({},d.fn.cycle.defaults,e||{},d.metadata?l.metadata():d.meta?l.data():{});var m=d.isFunction(l.data)?l.data(f.metaAttr):null;if(m){f=d.extend(f,m)}f.before=f.before?[f.before]:[];f.after=f.after?[f.after]:[];f.after.unshift(function(){f.busy=0});var n=this.className;f.width=parseInt((n.match(/w:(\d+)/)||[])[1])||f.width;f.height=parseInt((n.match(/h:(\d+)/)||[])[1])||f.height;f.timeout=parseInt((n.match(/t:(\d+)/)||[])[1])||f.timeout;if(l.css("position")=="static"){l.css("position","relative")}if(f.width){l.width(f.width)}if(f.height&&f.height!="auto"){l.height(f.height)}var h=0;i.css({position:"absolute",top:0,left:0}).each(function(o){d(this).css("z-index",g.length-o)});d(g[h]).css("opacity",1).show();if(d.browser.msie){g[h].style.removeAttribute("filter")}if(f.fit&&f.width){i.width(f.width)}if(f.fit&&f.height&&f.height!="auto"){i.height(f.height)}if(f.pause){l.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}var j=d.fn.cycle.transitions[f.fx];j&&j(l,i,f);i.each(function(){var o=d(this);this.cycleH=(f.fit&&f.height)?f.height:o.height();this.cycleW=(f.fit&&f.width)?f.width:o.width()});if(f.cssFirst){d(i[h]).css(f.cssFirst)}if(f.timeout){if(f.speed.constructor==String){f.speed={slow:600,fast:200}[f.speed]||400}if(!f.sync){f.speed=f.speed/2}while((f.timeout-f.speed)<250){f.timeout+=f.speed}}f.speedIn=f.speed;f.speedOut=f.speed;f.slideCount=g.length;f.currSlide=h;f.nextSlide=1;var k=i[h];if(f.before.length){f.before[0].apply(k,[k,k,f,true])}if(f.after.length>1){f.after[1].apply(k,[k,k,f,true])}if(f.click&&!f.next){f.next=f.click}if(f.next){d(f.next).bind("click",function(){return c(g,f,f.rev?-1:1)})}if(f.prev){d(f.prev).bind("click",function(){return c(g,f,f.rev?1:-1)})}if(f.timeout){this.cycleTimeout=setTimeout(function(){b(g,f,0,!f.rev)},f.timeout+(f.delay||0))}})};function b(j,e,i,k){if(e.busy){return}var h=j[0].parentNode,m=j[e.currSlide],l=j[e.nextSlide];if(h.cycleTimeout===0&&!i){return}if(i||!h.cyclePause){if(e.before.length){d.each(e.before,function(n,p){p.apply(l,[m,l,e,k])})}var f=function(){if(d.browser.msie){this.style.removeAttribute("filter")}d.each(e.after,function(n,p){p.apply(l,[m,l,e,k])})};if(e.nextSlide!=e.currSlide){e.busy=1;d.fn.cycle.custom(m,l,e,f)}var g=(e.nextSlide+1)==j.length;e.nextSlide=g?0:e.nextSlide+1;e.currSlide=g?j.length-1:e.nextSlide-1}if(e.timeout){h.cycleTimeout=setTimeout(function(){b(j,e,0,!e.rev)},e.timeout)}}function c(e,f,i){var h=e[0].parentNode,g=h.cycleTimeout;if(g){clearTimeout(g);h.cycleTimeout=0}f.nextSlide=f.currSlide+i;if(f.nextSlide<0){f.nextSlide=e.length-1}else{if(f.nextSlide>=e.length){f.nextSlide=0}}b(e,f,1,i>=0);return false}d.fn.cycle.custom=function(k,h,i,e){var j=d(k),g=d(h);g.css(i.cssBefore);var f=function(){g.animate(i.animIn,i.speedIn,i.easeIn,e)};j.animate(i.animOut,i.speedOut,i.easeOut,function(){j.css(i.cssAfter);if(!i.sync){f()}});if(i.sync){f()}};d.fn.cycle.transitions={fade:function(f,g,e){g.not(":eq(0)").hide();e.cssBefore={opacity:0,display:"block"};e.cssAfter={display:"none"};e.animOut={opacity:0};e.animIn={opacity:1}},fadeout:function(f,g,e){e.before.push(function(k,i,j,h){d(k).css("zIndex",j.slideCount+(h===true?1:0));d(i).css("zIndex",j.slideCount+(h===true?0:1))});g.not(":eq(0)").hide();e.cssBefore={opacity:1,display:"block",zIndex:1};e.cssAfter={display:"none",zIndex:0};e.animOut={opacity:0}}};d.fn.cycle.ver=function(){return a};d.fn.cycle.defaults={animIn:{},animOut:{},fx:"fade",after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:"auto",metaAttr:"cycle",next:null,pause:0,prev:null,speed:1000,slideExpr:null,sync:1,timeout:4000}})(jQuery);
/*	
* FitText.js 1.0
*
* Copyright 2011, Dave Rupert http://daverupert.com
* Released under the WTFPL license 
* http://sam.zoy.org/wtfpl/
*
* Date: Thu May 05 14:23:00 2011 -0600
*/
(function(a){a.fn.fitText=function(d,b){var c={minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY};return this.each(function(){var e=a(this);var g=d||1;if(b){a.extend(c,b)}var f=function(){e.css("font-size",Math.max(Math.min(e.width()/(g*10),parseFloat(c.maxFontSize)),parseFloat(c.minFontSize)))};f();a(window).resize(f)})}})(jQuery);(function(f){var a=document.createElement("div"),b=a.style,k="transform",n="Transform",e=["O"+n,"ms"+n,"Webkit"+n,"Moz"+n,k],g=e.length,l,h,c,m=/Matrix([^)]*)/;while(g--){if(e[g] in b){f.support[k]=l=e[g];continue}}if(!l){f.support.matrixFilter=h=b.filter===""}a=b=null;f.cssNumber[k]=true;f.cssHooks[k]=c={get:function(o){var i=f.data(o,"transform")||{translate:[0,0],rotate:0,scale:[1,1],skew:[0,0]};i.toString=function(){return"translate("+this.translate[0]+"px,"+this.translate[1]+"px) rotate("+this.rotate+"rad) scale("+this.scale+") skew("+this.skew[0]+"rad,"+this.skew[1]+"rad)"};return i},set:function(E,B,s){if(typeof B==="string"){B=j(B)}var v=B.translate,C=B.rotate,G=B.scale,p=B.skew,F=E.style,x,t;f.data(E,"transform",B);if(!p[0]&&!p[1]){p=0}if(l){F[l]="translate("+v[0]+"px,"+v[1]+"px) rotate("+C+"rad) scale("+G+")"+(p?" skew("+p[0]+"rad,"+p[1]+"rad)":"")}else{if(h){if(!s){F.zoom=1}var o=Math.cos(C),i=Math.sin(C),r=o*G[0],q=-i*G[1],z=i*G[0],y=o*G[1],w,u,A,D;if(p){w=Math.tan(p[0]);u=Math.tan(p[1]);r+=q*u;q+=r*w;z+=y*u;y+=z*w}A=["Matrix(M11="+r,"M12="+q,"M21="+z,"M22="+y,"SizingMethod='auto expand'"].join();t=(x=E.currentStyle)&&x.filter||F.filter||"";F.filter=m.test(t)?t.replace(m,A):t+" progid:DXImageTransform.Microsoft."+A+")";if((D=f.transform.centerOrigin)){F[D=="margin"?"marginLeft":"left"]=-(E.offsetWidth/2)+(E.clientWidth/2)+"px";F[D=="margin"?"marginTop":"top"]=-(E.offsetHeight/2)+(E.clientHeight/2)+"px"}F.left=v[0]+"px";F.top=v[1]+"px"}}}};f.fx.step.transform=function(q){var p=q.elem,t=q.start,i=q.end,s=q.pos,o={},r;if(!t||typeof i==="string"){if(!t){t=c.get(p)}if(h){p.style.zoom=1}q.end=i=j(i)}o.translate=[(t.translate[0]+(i.translate[0]-t.translate[0])*s+0.5)|0,(t.translate[1]+(i.translate[1]-t.translate[1])*s+0.5)|0];o.rotate=t.rotate+(i.rotate-t.rotate)*s;o.scale=[t.scale[0]+(i.scale[0]-t.scale[0])*s,t.scale[1]+(i.scale[1]-t.scale[1])*s];o.skew=[t.skew[0]+(i.skew[0]-t.skew[0])*s,t.skew[1]+(i.skew[1]-t.skew[1])*s];c.set(p,o,true)};function j(o){o=o.split(")");var p=[0,0],s=0,r=[1,1],w=[0,0],t=o.length-1,q=f.trim,u,v;while(t--){u=o[t].split("(");v=u[1];switch(q(u[0])){case"translateX":p[0]+=parseInt(v,10);break;case"translateY":p[1]+=parseInt(v,10);break;case"translate":v=v.split(",");p[0]+=parseInt(v[0],10);p[1]+=parseInt(v[1]||0,10);break;case"rotate":s+=d(v);break;case"scaleX":r[0]*=v;case"scaleY":r[1]*=v;case"scale":v=v.split(",");r[0]*=v[0];r[1]*=(v.length>1?v[1]:v[0]);break;case"skewX":w[0]+=d(v);break;case"skewY":w[1]+=d(v);break;case"skew":v=v.split(",");w[0]+=d(v[0]);w[1]+=d(v[1]||"0");break}}return{translate:p,rotate:s,scale:r,skew:w}}function d(i){return ~i.indexOf("deg")?parseInt(i,10)*(Math.PI*2/360):~i.indexOf("grad")?parseInt(i,10)*(Math.PI/200):parseFloat(i)}f.transform={centerOrigin:"margin",radToDeg:function(i){return i*180/Math.PI}}})(jQuery);var mul_table=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259];var shg_table=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function stackBlurImage(d,e,b,a){var c=d.naturalWidth;var g=d.naturalHeight;e.style.width=c+"px";e.style.height=g+"px";e.width=c;e.height=g;var f=e.getContext("2d");f.clearRect(0,0,c,g);f.drawImage(d,0,0);if(isNaN(b)||b<1){return}if(a){stackBlurCanvasRGBA(e,0,0,c,g,b)}else{stackBlurCanvasRGB(e,0,0,c,g,b)}}function stackBlurCanvasRGBA(j,G,E,a,c,P){if(isNaN(P)||P<1){return}P|=0;var Z=j.getContext("2d");var U;try{try{U=Z.getImageData(G,E,a,c)}catch(Y){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");U=Z.getImageData(G,E,a,c)}catch(Y){throw new Error("unable to access local image data: "+Y);return}}}catch(Y){throw new Error("unable to access image data: "+Y)}var h=U.data;var N,M,W,T,s,v,n,f,g,D,S,r,F,B,b,J,O,t,q,m,u,w,z,I;var X=P+P+1;var K=a<<2;var o=a-1;var R=c-1;var l=P+1;var Q=l*(l+1)/2;var H=new BlurStack();var C=H;for(W=1;W<X;W++){C=C.next=new BlurStack();if(W==l){var k=C}}C.next=H;var V=null;var L=null;n=v=0;var A=mul_table[P];var d=shg_table[P];for(M=0;M<c;M++){J=O=t=q=f=g=D=S=0;r=l*(m=h[v]);F=l*(u=h[v+1]);B=l*(w=h[v+2]);b=l*(z=h[v+3]);f+=Q*m;g+=Q*u;D+=Q*w;S+=Q*z;C=H;for(W=0;W<l;W++){C.r=m;C.g=u;C.b=w;C.a=z;C=C.next}for(W=1;W<l;W++){T=v+((o<W?o:W)<<2);f+=(C.r=(m=h[T]))*(I=l-W);g+=(C.g=(u=h[T+1]))*I;D+=(C.b=(w=h[T+2]))*I;S+=(C.a=(z=h[T+3]))*I;J+=m;O+=u;t+=w;q+=z;C=C.next}V=H;L=k;for(N=0;N<a;N++){h[v+3]=z=(S*A)>>d;if(z!=0){z=255/z;h[v]=((f*A)>>d)*z;h[v+1]=((g*A)>>d)*z;h[v+2]=((D*A)>>d)*z}else{h[v]=h[v+1]=h[v+2]=0}f-=r;g-=F;D-=B;S-=b;r-=V.r;F-=V.g;B-=V.b;b-=V.a;T=(n+((T=N+P+1)<o?T:o))<<2;J+=(V.r=h[T]);O+=(V.g=h[T+1]);t+=(V.b=h[T+2]);q+=(V.a=h[T+3]);f+=J;g+=O;D+=t;S+=q;V=V.next;r+=(m=L.r);F+=(u=L.g);B+=(w=L.b);b+=(z=L.a);J-=m;O-=u;t-=w;q-=z;L=L.next;v+=4}n+=a}for(N=0;N<a;N++){O=t=q=J=g=D=S=f=0;v=N<<2;r=l*(m=h[v]);F=l*(u=h[v+1]);B=l*(w=h[v+2]);b=l*(z=h[v+3]);f+=Q*m;g+=Q*u;D+=Q*w;S+=Q*z;C=H;for(W=0;W<l;W++){C.r=m;C.g=u;C.b=w;C.a=z;C=C.next}s=a;for(W=1;W<=P;W++){v=(s+N)<<2;f+=(C.r=(m=h[v]))*(I=l-W);g+=(C.g=(u=h[v+1]))*I;D+=(C.b=(w=h[v+2]))*I;S+=(C.a=(z=h[v+3]))*I;J+=m;O+=u;t+=w;q+=z;C=C.next;if(W<R){s+=a}}v=N;V=H;L=k;for(M=0;M<c;M++){T=v<<2;h[T+3]=z=(S*A)>>d;if(z>0){z=255/z;h[T]=((f*A)>>d)*z;h[T+1]=((g*A)>>d)*z;h[T+2]=((D*A)>>d)*z}else{h[T]=h[T+1]=h[T+2]=0}f-=r;g-=F;D-=B;S-=b;r-=V.r;F-=V.g;B-=V.b;b-=V.a;T=(N+(((T=M+l)<R?T:R)*a))<<2;f+=(J+=(V.r=h[T]));g+=(O+=(V.g=h[T+1]));D+=(t+=(V.b=h[T+2]));S+=(q+=(V.a=h[T+3]));V=V.next;r+=(m=L.r);F+=(u=L.g);B+=(w=L.b);b+=(z=L.a);J-=m;O-=u;t-=w;q-=z;L=L.next;v+=a}}Z.putImageData(U,G,E)}function stackBlurCanvasRGB(h,D,B,a,b,M){if(isNaN(M)||M<1){return}M|=0;var V=h.getContext("2d");var Q;try{try{Q=V.getImageData(D,B,a,b)}catch(U){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");Q=V.getImageData(D,B,a,b)}catch(U){throw new Error("unable to access local image data: "+U);return}}}catch(U){throw new Error("unable to access image data: "+U)}var g=Q.data;var K,J,S,P,q,t,m,d,f,A,n,C,w,G,L,r,l,s,u,F;var T=M+M+1;var H=a<<2;var o=a-1;var O=b-1;var k=M+1;var N=k*(k+1)/2;var E=new BlurStack();var z=E;for(S=1;S<T;S++){z=z.next=new BlurStack();if(S==k){var j=z}}z.next=E;var R=null;var I=null;m=t=0;var v=mul_table[M];var c=shg_table[M];for(J=0;J<b;J++){G=L=r=d=f=A=0;n=k*(l=g[t]);C=k*(s=g[t+1]);w=k*(u=g[t+2]);d+=N*l;f+=N*s;A+=N*u;z=E;for(S=0;S<k;S++){z.r=l;z.g=s;z.b=u;z=z.next}for(S=1;S<k;S++){P=t+((o<S?o:S)<<2);d+=(z.r=(l=g[P]))*(F=k-S);f+=(z.g=(s=g[P+1]))*F;A+=(z.b=(u=g[P+2]))*F;G+=l;L+=s;r+=u;z=z.next}R=E;I=j;for(K=0;K<a;K++){g[t]=(d*v)>>c;g[t+1]=(f*v)>>c;g[t+2]=(A*v)>>c;d-=n;f-=C;A-=w;n-=R.r;C-=R.g;w-=R.b;P=(m+((P=K+M+1)<o?P:o))<<2;G+=(R.r=g[P]);L+=(R.g=g[P+1]);r+=(R.b=g[P+2]);d+=G;f+=L;A+=r;R=R.next;n+=(l=I.r);C+=(s=I.g);w+=(u=I.b);G-=l;L-=s;r-=u;I=I.next;t+=4}m+=a}for(K=0;K<a;K++){L=r=G=f=A=d=0;t=K<<2;n=k*(l=g[t]);C=k*(s=g[t+1]);w=k*(u=g[t+2]);d+=N*l;f+=N*s;A+=N*u;z=E;for(S=0;S<k;S++){z.r=l;z.g=s;z.b=u;z=z.next}q=a;for(S=1;S<=M;S++){t=(q+K)<<2;d+=(z.r=(l=g[t]))*(F=k-S);f+=(z.g=(s=g[t+1]))*F;A+=(z.b=(u=g[t+2]))*F;G+=l;L+=s;r+=u;z=z.next;if(S<O){q+=a}}t=K;R=E;I=j;for(J=0;J<b;J++){P=t<<2;g[P]=(d*v)>>c;g[P+1]=(f*v)>>c;g[P+2]=(A*v)>>c;d-=n;f-=C;A-=w;n-=R.r;C-=R.g;w-=R.b;P=(K+(((P=J+k)<O?P:O)*a))<<2;d+=(G+=(R.r=g[P]));f+=(L+=(R.g=g[P+1]));A+=(r+=(R.b=g[P+2]));R=R.next;n+=(l=I.r);C+=(s=I.g);w+=(u=I.b);G-=l;L-=s;r-=u;I=I.next;t+=a}}V.putImageData(Q,D,B)}function BlurStack(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}Modernizr.addTest("positionfixed",function(){var f=document.createElement("div"),e=f.cloneNode(false),b=false,a=document.body||(function(){b=true;return document.documentElement.appendChild(document.createElement("body"))}());var d=a.style.cssText;a.style.cssText="padding:0;margin:0";f.style.cssText="position:fixed;top:42px";a.appendChild(f);a.appendChild(e);var c=f.offsetTop!==e.offsetTop;a.removeChild(f);a.removeChild(e);a.style.cssText=d;if(b){document.documentElement.removeChild(a)}return c});(function(c){var d=null,b={minScale:0.9,duration:300};function a(g){var f=c("<div>");c("body").addClass("has-fullscreen");f.addClass("fullscreen").html(g).appendTo("body").css("opacity",0).trigger("open").animate({opacity:1},b.duration,function(){f.trigger("opened")}).click(function(){c.fullscreen("close")}).find("nav a").click(function(h){c.fullscreen("close");h.preventDefault()}).end().find("h1").fitText(1.35,{minFontSize:"40px",maxFontSize:"68px"}).end().children().first().click(function(h){h.stopPropagation()}).css("transform","scale("+b.minScale+")").animate({transform:"scale(1)"},b.duration,"swing").end().end();d=f;return f}function e(){if(d!==null){d.trigger("close").animate({opacity:0},b.duration,function(){c(this).trigger("closed");c("body").removeClass("has-fullscreen");c(this).remove()}).children().first().animate({transform:"scale("+b.minScale+")"},b.duration)}d=null;return true}c.fullscreen=function(g,f){switch(g){case"open":return a(f);break;case"close":return e();break}return false}}(jQuery));(function(e){var d=null;e.pushState=function(f,h,g){if(!Modernizr.history){return false}document.title=h;history.pushState(f,h,g);return true};e.fn.bgAnimation=function(g,f){var h={frames:9,size:20,speed:35};f=e.extend({},h,f);return this.each(function(){if(g==="start"){var i=null,j=0;i=setInterval(e.proxy(function(){if(j===f.frames){j=0}e(this).css("background-position","0 "+(f.size*j*-1)+"px");j++},this),f.speed);e(this).data("bgAnimationInterval",i)}else{if(g==="stop"){clearInterval(e(this).data("bgAnimationInterval"))}}})};if(e("#work").length){e(window).bind("popstate",function(g){var h=location.pathname,f=h.split("/").slice(1);if(e(".fullscreen").length){e.fullscreen("close")}if(d!==null){d.abort()}switch(f[0]){case"work":if(f[1]!==undefined){c(f[1])}break}})}function a(){e("ol.grid.fixed").each(function(){if(e(this).width()===e(this).data("lastGridWidth")){return false}var f=e(this).find("li").not(":empty"),h=Math.floor(e(this).width()/f.first().width()),k=Math.ceil(f.length/h),j=k*h;if(h===1||e(this).find("li").length!==j){e(this).find("li:empty").remove()}for(var g=0;g<(j-f.length);g++){e("<li>").appendTo(this)}e(this).data("lastGridWidth",e(this).width())})}a();e(window).resize(a);e("#work .featured li:has(article)").each(function(){var h=e(this),g=e(this).find("img").first(),i=e(new Image()),f=g.closest("a"),j=document.createElement("canvas");g.remove();f.addClass("imageLoading").trigger("imageLoading");f.hide();i.load(function(){f.append(i).fadeIn().removeClass("imageLoading").trigger("imageLoad");e(j).width(i.width()).height(i.height()).insertAfter(i);stackBlurImage(i[0],j,6)}).attr({src:e(g).attr("src")});return true});e("#work .featured a").click(function(f){var h=e(this).data("id"),g=e(this).find("h1").text();if(!Modernizr.positionfixed){return}e.pushState({page:"work",id:h},g+" – michael hue",e(this).attr("href"));c(h);f.preventDefault()});function c(g){var f=e('#work a[data-id="'+g+'"]');if(d!==null){d.abort()}e('<div class="indicator"> </div>').hide().appendTo(f.find(".body")).bgAnimation("start").fadeIn();f.addClass("loading");d=e.ajax({type:"GET",url:f.attr("href"),complete:function(i,h){d=null;f.removeClass("loading").find(".indicator").bgAnimation("stop").remove()},success:function(h){f.addClass("active").removeClass("loading");e.fullscreen("open",h).bind("close",function(){e.pushState({page:"home"},"michael hue","/")}).bind("closed",function(){setTimeout(function(){f.removeClass("active")},120)});b()},error:function(){}})}function b(){if(e("article.work .images").length===0){return}e("article.work .images").cycle({timeout:5000,speed:800,pause:true,next:"article.work .images",fastOnEvent:500})}b()}(jQuery));
