/*! skrollr 0.5.14 (2013-04-04) | Alexander Prinzhorn - https://github.com/Prinzhorn/skrollr | Free to use under terms of MIT license */ (function(e,t,r){"use strict";function n(r){if(o=t.documentElement,a=t.body,O(),j=this,r=r||{},K=r.constants||{},r.easing)for(var n in r.easing)V[n]=r.easing[n];if(Y={beforerender:r.beforerender,render:r.render},J=r.forceHeight!==!1,X=r.smoothScrolling!==!1,Z={targetTop:j.getScrollTop()},J&&(ct=r.scale||1),ot(o,[u],[p]),J){var i=t.getElementById("skrollr-body")||t.createElement("div"),s=i.style;s.minWidth="1px",s.position="absolute",s.top=s.zIndex="0",i.id||(s.width="1px",s.right="0",a.appendChild(i)),function(e){tt=function(){e.apply(this,arguments),s.height=ft+o.clientHeight+"px"}}(tt)}return j.refresh(),l.addEvent(e,"resize",tt),function f(){S(f),N()}(),j}var o,a,l=e.skrollr={get:function(){return j},init:function(e){return j||new n(e)},VERSION:"0.5.14"},i=Object.prototype.hasOwnProperty,s="rendered",f="un"+s,c="skrollable",u="skrollr",p="no-"+u,m="linear",d=1e3,g=200,h="start",v="end",T="center",y="bottom",b="___has_rendered_class",k="___skrollable_id",S=e.requestAnimationFrame;(function(){var t,r=["ms","moz","webkit","o"];for(t=0;r.length>t&&!S;t++)S=e[r[t]+"RequestAnimationFrame"];var n=0;S||(S=function(t){var r=it(),o=Math.max(0,30-(r-n));e.setTimeout(function(){t(r+o)},o),n=r+o})})();var w,x,E=/^\s+|\s+$/g,F=/^data(?:-(_\w+))?(?:-?(-?\d+))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,z=/\s*([a-z\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,A=/^([a-z\-]+)\[(\w+)\]$/,M=/-([a-z])/g,_=function(e,t){return t.toUpperCase()},D=/[\-+]?[\d]*\.?[\d]+/g,H=/\{\?\}/g,C=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,I=/[a-z\-]+-gradient/g,O=function(){var t=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(e.getComputedStyle){var r=e.getComputedStyle(a,null);for(var n in r)if(w=n.match(t)||+n==n&&r[n].match(t))break;w&&(w=w[0],"-"===w.slice(0,1)?(x=w,w={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[w]):x="-"+w.toLowerCase()+"-")}},V={begin:function(){return 0},end:function(){return 1},linear:function(e){return e},quadratic:function(e){return e*e},cubic:function(e){return e*e*e},swing:function(e){return-Math.cos(e*Math.PI)/2+.5},sqrt:function(e){return Math.sqrt(e)},bounce:function(e){var t;if(.5083>=e)t=3;else if(.8489>=e)t=9;else if(.96208>=e)t=27;else{if(!(.99981>=e))return 1;t=91}return 1-Math.abs(3*Math.cos(1.028*e*t)/t)}};n.prototype.refresh=function(e){var n,o=!1;for(e===r?(o=!0,W=[],dt=0,e=t.getElementsByTagName("*")):e=[].concat(e),n=0;e.length>n;n++){var a=e[n],l=a,i=[],u=X;if(a.attributes){for(var p=0;a.attributes.length>p;p++){var m=a.attributes[p];if("data-anchor-target"!==m.name)if("data-smooth-scrolling"!==m.name){var d=m.name.match(F);if(null!==d){var g=d[1];g=g&&K[g.substr(1)]||0;var T=(0|d[2])+g,y=d[3],S=d[4]||y,w={offset:T,props:m.value,element:a};i.push(w),y&&y!==h&&y!==v?(w.mode="relative",w.anchors=[y,S]):(w.mode="absolute",y===v?w.isEnd=!0:(w.frame=T*ct,delete w.offset))}}else u="off"!==m.value;else if(l=t.querySelector(m.value),null===l)throw'Unable to find anchor target "'+m.value+'"'}if(i.length){var x,E,z;!o&&k in a?(z=a[k],x=W[z].styleAttr,E=W[z].classAttr):(z=a[k]=dt++,x=a.style.cssText,E=nt(a));var A=W[z]={element:a,styleAttr:x,classAttr:E,anchorTarget:l,keyFrames:i,smoothScrolling:u};ot(a,[c,s],[f]),A[b]=!0}}}for(tt(),n=0;e.length>n;n++){var M=W[e[n][k]];M!==r&&(M.keyFrames.sort(st),$(M),L(M))}return j},n.prototype.relativeToAbsolute=function(e,t,r){var n=o.clientHeight,a=e.getBoundingClientRect(),l=a.top,i=a.bottom-a.top;return t===y?l-=n:t===T&&(l-=n/2),r===y?l+=i:r===T&&(l+=i/2),l+=j.getScrollTop(),0|l+.5},n.prototype.animateTo=function(e,t){t=t||{};var n=it(),o=j.getScrollTop();return Q={startTop:o,topDiff:e-o,targetTop:e,duration:t.duration||d,startTime:n,endTime:n+(t.duration||d),e