/*----------------------------------------------------------------------------*\ mpc globals \*----------------------------------------------------------------------------*/ if ( _mpc_vars == undefined ) { var _mpc_vars = {}; } if ( typeof _mpc_ajax != 'undefined' ) { _mpc_vars.ajax_url = _mpc_ajax; } if ( typeof _mpc_animations != 'undefined' ) { _mpc_vars.animations = _mpc_animations === '1'; } else { _mpc_vars.animations = false; } if ( typeof _mpc_parallax != 'undefined' ) { _mpc_vars.parallax = _mpc_parallax === '1'; } else { _mpc_vars.parallax = false; } _mpc_vars.$window = jquery( window ); _mpc_vars.$body = jquery( 'body' ); _mpc_vars.$document = jquery( document ); _mpc_vars.breakpoints = { 'huge': window.matchmedia( '(min-width: 1200px)' ).matches, 'large': window.matchmedia( '(max-width: 1199px) and (min-width: 993px)' ).matches, 'medium': window.matchmedia( '(max-width: 992px) and (min-width: 769px)' ).matches, 'small': window.matchmedia( '(max-width: 768px) and (min-width: 481px)' ).matches, 'tiny': window.matchmedia( '(max-width: 480px)' ).matches, 'custom': function( _media_query ) { if( _media_query != '' ) { return window.matchmedia( _media_query ).matches } else { return null; } } }; _mpc_vars.carousel_breakpoints = function( $carousel ) { var _slick = $carousel.data( 'mpcslick' ), _slides = $carousel.children().length, _toshow = 0, _toscroll = 0, _unslick = false, _is_odd = _slick.slidestoshow % 2 == 0 ? 0 : 1, _breakpoints = []; if ( typeof _slick == 'undefined' ) { return _breakpoints; } _unslick =_slides <= _slick.slidestoshow; _breakpoints.push( { breakpoint: 9999, settings: _unslick ? 'unslick' : { slidestoshow: _slick.slidestoshow, slidestoscroll: _slick.slidestoscroll } } ); _toshow = math.max( 1, ( math.ceil( _slick.slidestoshow * 0.75 ) - _is_odd ) ); _toscroll = math.min( _slick.slidestoscroll, _toshow ); _unslick =_slides <= _toshow; _breakpoints.push( { breakpoint: 993, settings: _unslick ? 'unslick' : { slidestoshow: _toshow, slidestoscroll: _toscroll } } ); _toshow = math.max( 1, ( math.ceil( _slick.slidestoshow * 0.5 ) - _is_odd ) ); _toscroll = math.min( _slick.slidestoscroll, _toshow ); _unslick =_slides <= _toshow; _breakpoints.push( { breakpoint: 768, settings: _unslick ? 'unslick' : { slidestoshow: _toshow, slidestoscroll: _toscroll } } ); _toshow = math.max( 1, ( math.ceil( _slick.slidestoshow * 0.25 ) - _is_odd ) ); _toscroll = math.min( _slick.slidestoscroll, _toshow ); _unslick =_slides <= _toshow; _breakpoints.push( { breakpoint: 480, settings: _unslick ? 'unslick' : { slidestoshow: _toshow, slidestoscroll: _toscroll } } ); return _breakpoints; }; _mpc_vars.rtl = { 'el': function( _el ) { var _dir; _el = _el[ 0 ]; if ( _el.currentstyle ) { _dir = _el.currentstyle[ 'direction' ]; } else if ( window.getcomputedstyle ) { _dir = window.getcomputedstyle( _el, null ).getpropertyvalue( 'direction' ); } return _dir == 'rtl'; }, 'global': function() { var _el = document.getelementsbytagname( 'html' )[ 0 ], _dir; if ( _el.currentstyle ) { _dir = _el.currentstyle[ 'direction' ]; } else if ( window.getcomputedstyle ) { _dir = window.getcomputedstyle( _el, null ).getpropertyvalue( 'direction' ); } return _dir == 'rtl'; } }; /*! * imagesloaded packaged v3.1.8 * javascript is all like "you images are done yet or what?" * mit license */ (function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.eventemitter;i.getlisteners=function(e){var t,n,i=this._getevents();if("object"==typeof e){t={};for(n in i)i.hasownproperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenlisteners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getlistenersasobject=function(e){var t,n=this.getlisteners(e);return n instanceof array&&(t={},t[e]=n),t||n},i.addlistener=function(e,n){var i,r=this.getlistenersasobject(e),o="object"==typeof n;for(i in r)r.hasownproperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addlistener"),i.addoncelistener=function(e,t){return this.addlistener(e,{listener:t,once:!0})},i.once=n("addoncelistener"),i.defineevent=function(e){return this.getlisteners(e),this},i.defineevents=function(e){for(var t=0;e.length>t;t+=1)this.defineevent(e[t]);return this},i.removelistener=function(e,n){var i,r,o=this.getlistenersasobject(e);for(r in o)o.hasownproperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removelistener"),i.addlisteners=function(e,t){return this.manipulatelisteners(!1,e,t)},i.removelisteners=function(e,t){return this.manipulatelisteners(!0,e,t)},i.manipulatelisteners=function(e,t,n){var i,r,o=e?this.removelistener:this.addlistener,s=e?this.removelisteners:this.addlisteners;if("object"!=typeof t||t instanceof regexp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasownproperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeevent=function(e){var t,n=typeof e,i=this._getevents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasownproperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removealllisteners=n("removeevent"),i.emitevent=function(e,t){var n,i,r,o,s=this.getlistenersasobject(e);for(r in s)if(s.hasownproperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removelistener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getoncereturnvalue()&&this.removelistener(e,n.listener);return this},i.trigger=n("emitevent"),i.emit=function(e){var t=array.prototype.slice.call(arguments,1);return this.emitevent(e,t)},i.setoncereturnvalue=function(e){return this._oncereturnvalue=e,this},i._getoncereturnvalue=function(){return this.hasownproperty("_oncereturnvalue")?this._oncereturnvalue:!0},i._getevents=function(){return this._events||(this._events={})},e.noconflict=function(){return r.eventemitter=o,e},"function"==typeof define&&define.amd?define("eventemitter/eventemitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.eventemitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcelement||t,n}var n=document.documentelement,i=function(){};n.addeventlistener?i=function(e,t,n){e.addeventlistener(t,n,!1)}:n.attachevent&&(i=function(e,n,i){e[n+i]=i.handleevent?function(){var n=t(e);i.handleevent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachevent("on"+n,e[n+i])});var r=function(){};n.removeeventlistener?r=function(e,t,n){e.removeeventlistener(t,n,!1)}:n.detachevent&&(r=function(e,t,n){e.detachevent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventemitter/eventemitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesloaded=t(e,e.eventemitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.queryselectorall(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getimages(),a&&(this.jqdeferred=new a.deferred);var r=this;settimeout(function(){r.check()})}function f(e){this.img=e}function c(e){this.src=e,v[e]=this}var a=e.jquery,u=e.console,h=u!==void 0,d=object.prototype.tostring;s.prototype=new t,s.prototype.options={},s.prototype.getimages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"img"===n.nodename&&this.addimage(n);var i=n.nodetype;if(i&&(1===i||9===i||11===i))for(var r=n.queryselectorall("img"),o=0,s=r.length;s>o;o++){var f=r[o];this.addimage(f)}}},s.prototype.addimage=function(e){var t=new f(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasanybroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasanybroken=this.hasanybroken||!e.isloaded;var t=this;settimeout(function(){t.emit("progress",t,e),t.jqdeferred&&t.jqdeferred.notify&&t.jqdeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasanybroken?"fail":"done";this.iscomplete=!0;var t=this;settimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqdeferred){var n=t.hasanybroken?"reject":"resolve";t.jqdeferred[n](t)}})},a&&(a.fn.imagesloaded=function(e,t){var n=new s(this,e,t);return n.jqdeferred.promise(a(this))}),f.prototype=new t,f.prototype.check=function(){var e=v[this.img.src]||new c(this.img.src);if(e.isconfirmed)return this.confirm(e.isloaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalwidth)return this.confirm(0!==this.img.naturalwidth,"naturalwidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isloaded,n),!0}),e.check()},f.prototype.confirm=function(e,t){this.isloaded=e,this.emit("confirm",this,t)};var v={};return c.prototype=new t,c.prototype.check=function(){if(!this.ischecked){var e=new image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.ischecked=!0}},c.prototype.handleevent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindproxyevents(e)},c.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindproxyevents(e)},c.prototype.confirm=function(e,t){this.isconfirmed=!0,this.isloaded=e,this.emit("confirm",this,t)},c.prototype.unbindproxyevents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}); /*! skrollr 0.6.30 (2015-08-12) | alexander prinzhorn - https://github.com/prinzhorn/skrollr | free to use under terms of mit license */ !function(a,b,c){"use strict";function d(c){if(e=b.documentelement,f=b.body,t(),ha=this,c=c||{},ma=c.constants||{},c.easing)for(var d in c.easing)w[d]=c.easing[d];ta=c.edgestrategy||"set",ka={beforerender:c.beforerender,render:c.render,keyframe:c.keyframe},la=c.forceheight!==!1,la&&(ka=c.scale||1),na=c.mobiledeceleration||y,pa=c.smoothscrolling!==!1,qa=c.smoothscrollingduration||a,ra={targettop:ha.getscrolltop()},sa=(c.mobilecheck||function(){return/android|iphone|ipad|ipod|blackberry/i.test(navigator.useragent||navigator.vendor||a.opera)})(),sa?(ja=b.getelementbyid(c.skrollrbody||z),ja&&ga(),x(),ea(e,[s,v],[t])):ea(e,[s,u],[t]),ha.refresh(),wa(a,"resize orientationchange",function(){var a=e.clientwidth,b=e.clientheight;(b!==pa||a!==oa)&&(pa=b,oa=a,qa=!0)});var g=u();return function h(){$(),va=g(h)}(),ha}var e,f,g={get:function(){return ha},init:function(a){return ha||new d(a)},version:"0.6.30"},h=object.prototype.hasownproperty,i=a.math,j=a.getcomputedstyle,k="touchstart",l="touchmove",m="touchcancel",n="touchend",o="skrollable",p=o+"-before",q=o+"-between",r=o+"-after",s="skrollr",t="no-"+s,u=s+"-desktop",v=s+"-mobile",w="linear",x=1e3,y=.004,z="skrollr-body",a=200,b="start",c="end",d="center",e="bottom",f="___skrollable_id",g=/^(?:input|textarea|button|select)$/i,h=/^\s+|\s+$/g,i=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,j=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,k=/^(@?[a-z\-]+)\[(\w+)\]$/,l=/-([a-z0-9_])/g,m=function(a,b){return b.touppercase()},n=/[\-+]?[\d]*\.?[\d]+/g,o=/\{\?\}/g,p=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,q=/[a-z\-]+-gradient/g,r="",s="",t=function(){var a=/^(?:o|moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(j){var b=j(f,null);for(var c in b)if(r=c.match(a)||+c==c&&b[c].match(a))break;if(!r)return void(r=s="");r=r[0],"-"===r.slice(0,1)?(s=r,r={"-webkit-":"webkit","-moz-":"moz","-ms-":"ms","-o-":"o"}[r]):s="-"+r.tolowercase()+"-"}},u=function(){var b=a.requestanimationframe||a[r.tolowercase()+"requestanimationframe"],c=ha();return(sa||!b)&&(b=function(b){var d=ha()-c,e=i.max(0,1e3/60-d);return a.settimeout(function(){c=ha(),b()},e)}),b},v=function(){var b=a.cancelanimationframe||a[r.tolowercase()+"cancelanimationframe"];return(sa||!b)&&(b=function(b){return a.cleartimeout(b)}),b},w={begin:function(){return 0},end:function(){return 1},linear:function(a){return a},quadratic:function(a){return a*a},cubic:function(a){return a*a*a},swing:function(a){return-i.cos(a*i.pi)/2+.5},sqrt:function(a){return i.sqrt(a)},outcubic:function(a){return i.pow(a-1,3)+1},bounce:function(a){var b;if(.5083>=a)b=3;else if(.8489>=a)b=9;else if(.96208>=a)b=27;else{if(!(.99981>=a))return 1;b=91}return 1-i.abs(3*i.cos(a*b*1.028)/b)}};d.prototype.refresh=function(a){var d,e,f=!1;for(a===c?(f=!0,ia=[],ra=0,a=b.getelementsbytagname("*")):a.length===c&&(a=[a]),d=0,e=a.length;e>d;d++){var g=a[d],h=g,i=[],j=pa,k=ta,l=!1;if(f&&f in g&&delete g[f],g.attributes){for(var m=0,n=g.attributes.length;n>m;m++){var p=g.attributes[m];if("data-anchor-target"!==p.name)if("data-smooth-scrolling"!==p.name)if("data-edge-strategy"!==p.name)if("data-emit-events"!==p.name){var q=p.name.match(i);if(null!==q){var r={props:p.value,element:g,eventtype:p.name.replace(l,m)};i.push(r);var s=q[1];s&&(r.constant=s.substr(1));var t=q[2];/p$/.test(t)?(r.ispercentage=!0,r.offset=(0|t.slice(0,-1))/100):r.offset=0|t;var u=q[3],v=q[4]||u;u&&u!==b&&u!==c?(r.mode="relative",r.anchors=[u,v]):(r.mode="absolute",u===c?r.isend=!0:r.ispercentage||(r.offset=r.offset*ka))}}else l=!0;else k=p.value;else j="off"!==p.value;else if(h=b.queryselector(p.value),null===h)throw'unable to find anchor target "'+p.value+'"'}if(i.length){var w,x,y;!f&&f in g?(y=g[f],w=ia[y].styleattr,x=ia[y].classattr):(y=g[f]=ra++,w=g.style.csstext,x=da(g)),ia[y]={element:g,styleattr:w,classattr:x,anchortarget:h,keyframes:i,smoothscrolling:j,edgestrategy:k,emitevents:l,lastframeindex:-1},ea(g,[o],[])}}}for(aa(),d=0,e=a.length;e>d;d++){var z=ia[a[d][f]];z!==c&&(_(z),ba(z))}return ha},d.prototype.relativetoabsolute=function(a,b,c){var d=e.clientheight,f=a.getboundingclientrect(),g=f.top,h=f.bottom-f.top;return b===e?g-=d:b===d&&(g-=d/2),c===e?g+=h:c===d&&(g+=h/2),g+=ha.getscrolltop(),g+.5|0},d.prototype.animateto=function(a,b){b=b||{};var d=ha(),e=ha.getscrolltop(),f=b.duration===c?x:b.duration;return oa={starttop:e,topdiff:a-e,targettop:a,duration:f,starttime:d,endtime:d+f,easing:w[b.easing||w],done:b.done},oa.topdiff||(oa.done&&oa.done.call(ha,!1),oa=c),ha},d.prototype.stopanimateto=function(){oa&&oa.done&&oa.done.call(ha,!0),oa=c},d.prototype.isanimatingto=function(){return!!oa},d.prototype.ismobile=function(){return sa},d.prototype.setscrolltop=function(b,c){return sa=c===!0,sa?ta=i.min(i.max(b,0),ja):a.scrollto(0,b),ha},d.prototype.getscrolltop=function(){return sa?ta:a.pageyoffset||e.scrolltop||f.scrolltop||0},d.prototype.getmaxscrolltop=function(){return ja},d.prototype.on=function(a,b){return ka[a]=b,ha},d.prototype.off=function(a){return delete ka[a],ha},d.prototype.destroy=function(){var a=v();a(va),ya(),ea(e,[t],[s,u,v]);for(var b=0,d=ia.length;d>b;b++)fa(ia[b].element);e.style.overflow=f.style.overflow="",e.style.height=f.style.height="",ja&&g.setstyle(ja,"transform","none"),ha=c,ja=c,ka=c,la=c,ja=0,ka=1,ma=c,na=c,la="down",ma=-1,oa=0,pa=0,qa=!1,oa=c,pa=c,qa=c,ra=c,sa=c,ra=0,ta=c,sa=!1,ta=0,ua=c};var x=function(){var d,g,h,j,o,p,q,r,s,t,u,v;wa(e,[k,l,m,n].join(" "),function(a){var e=a.changedtouches[0];for(j=a.target;3===j.nodetype;)j=j.parentnode;switch(o=e.clienty,p=e.clientx,t=a.timestamp,g.test(j.tagname)||a.preventdefault(),a.type){case k:d&&d.blur(),ha.stopanimateto(),d=j,g=q=o,h=p,s=t;break;case l:g.test(j.tagname)&&b.activeelement!==j&&a.preventdefault(),r=o-q,v=t-u,ha.setscrolltop(ta-r,!0),q=o,u=t;break;default:case m:case n:var f=g-o,w=h-p,x=w*w+f*f;if(49>x){if(!g.test(d.tagname)){d.focus();var y=b.createevent("mouseevents");y.initmouseevent("click",!0,!0,a.view,1,e.screenx,e.screeny,e.clientx,e.clienty,a.ctrlkey,a.altkey,a.shiftkey,a.metakey,0,null),d.dispatchevent(y)}return}d=c;var z=r/v;z=i.max(i.min(z,3),-3);var a=i.abs(z/na),b=z*a+.5*na*a*a,c=ha.getscrolltop()-b,d=0;c>ja?(d=(ja-c)/b,c=ja):0>c&&(d=-c/b,c=0),a*=1-d,ha.animateto(c+.5|0,{easing:"outcubic",duration:a})}}),a.scrollto(0,0),e.style.overflow=f.style.overflow="hidden"},y=function(){var a,b,c,d,f,g,h,j,k,l,m,n=e.clientheight,o=ba();for(j=0,k=ia.length;k>j;j++)for(a=ia[j],b=a.element,c=a.anchortarget,d=a.keyframes,f=0,g=d.length;g>f;f++)h=d[f],l=h.offset,m=o[h.constant]||0,h.frame=l,h.ispercentage&&(l*=n,h.frame=l),"relative"===h.mode&&(fa(b),h.frame=ha.relativetoabsolute(c,h.anchors[0],h.anchors[1])-l,fa(b,!0)),h.frame+=m,la&&!h.isend&&h.frame>ja&&(ja=h.frame);for(ja=i.max(ja,ca()),j=0,k=ia.length;k>j;j++){for(a=ia[j],d=a.keyframes,f=0,g=d.length;g>f;f++)h=d[f],m=o[h.constant]||0,h.isend&&(h.frame=ja-h.offset+m);a.keyframes.sort(ia)}},z=function(a,b){for(var c=0,d=ia.length;d>c;c++){var e,f,i=ia[c],j=i.element,k=i.smoothscrolling?a:b,l=i.keyframes,m=l.length,n=l[0],s=l[l.length-1],t=ks.frame,v=t?n:s,w=i.emitevents,x=i.lastframeindex;if(t||u){if(t&&-1===i.edge||u&&1===i.edge)continue;switch(t?(ea(j,[p],[r,q]),w&&x>-1&&(za(j,n.eventtype,la),i.lastframeindex=-1)):(ea(j,[r],[p,q]),w&&m>x&&(za(j,s.eventtype,la),i.lastframeindex=m)),i.edge=t?-1:1,i.edgestrategy){case"reset":fa(j);continue;case"ease":k=v.frame;break;default:case"set":var y=v.props;for(e in y)h.call(y,e)&&(f=ea(y[e].value),0===e.indexof("@")?j.setattribute(e.substr(1),f):g.setstyle(j,e,f));continue}}else 0!==i.edge&&(ea(j,[o,q],[p,r]),i.edge=0);for(var z=0;m-1>z;z++)if(k>=l[z].frame&&k<=l[z+1].frame){var a=l[z],b=l[z+1];for(e in a.props)if(h.call(a.props,e)){var c=(k-a.frame)/(b.frame-a.frame);c=a.props[e].easing(c),f=da(a.props[e].value,b.props[e].value,c),f=ea(f),0===e.indexof("@")?j.setattribute(e.substr(1),f):g.setstyle(j,e,f)}w&&x!==z&&("down"===la?za(j,a.eventtype,la):za(j,b.eventtype,la),i.lastframeindex=z);break}}},$=function(){qa&&(qa=!1,aa());var a,b,d=ha.getscrolltop(),e=ha();if(oa)e>=oa.endtime?(d=oa.targettop,a=oa.done,oa=c):(b=oa.easing((e-oa.starttime)/oa.duration),d=oa.starttop+b*oa.topdiff|0),ha.setscrolltop(d,!0);else if(!sa){var f=ra.targettop-d;f&&(ra={starttop:ma,topdiff:d-ma,targettop:d,starttime:na,endtime:na+qa}),e<=ra.endtime&&(b=w.sqrt((e-ra.starttime)/qa),d=ra.starttop+b*ra.topdiff|0)}if(sa||ma!==d){la=d>ma?"down":ma>d?"up":la,sa=!1;var h={curtop:d,lasttop:ma,maxtop:ja,direction:la},i=ka.beforerender&&ka.beforerender.call(ha,h);i!==!1&&(z(d,ha.getscrolltop()),sa&&ja&&g.setstyle(ja,"transform","translate(0, "+-ta+"px) "+ua),ma=d,ka.render&&ka.render.call(ha,h)),a&&a.call(ha,!1)}na=e},_=function(a){for(var b=0,c=a.keyframes.length;c>b;b++){for(var d,e,f,g,h=a.keyframes[b],i={};null!==(g=j.exec(h.props));)f=g[1],e=g[2],d=f.match(k),null!==d?(f=d[1],d=d[2]):d=w,e=e.indexof("!")?aa(e):[e.slice(1)],i[f]={value:e,easing:w[d]};h.props=i}},aa=function(a){var b=[];return p.lastindex=0,a=a.replace(p,function(a){return a.replace(n,function(a){return a/255*100+"%"})}),s&&(q.lastindex=0,a=a.replace(q,function(a){return s+a})),a=a.replace(n,function(a){return b.push(+a),"{?}"}),b.unshift(a),b},ba=function(a){var b,c,d={};for(b=0,c=a.keyframes.length;c>b;b++)ca(a.keyframes[b],d);for(d={},b=a.keyframes.length-1;b>=0;b--)ca(a.keyframes[b],d)},ca=function(a,b){var c;for(c in b)h.call(a.props,c)||(a.props[c]=b[c]);for(c in a.props)b[c]=a.props[c]},da=function(a,b,c){var d,e=a.length;if(e!==b.length)throw"can't interpolate between \""+a[0]+'" and "'+b[0]+'"';var f=[a[0]];for(d=1;e>d;d++)f[d]=a[d]+(b[d]-a[d])*c;return f},ea=function(a){var b=1;return o.lastindex=0,a[0].replace(o,function(){return a[b++]})},fa=function(a,b){a=[].concat(a);for(var c,d,e=0,f=a.length;f>e;e++)d=a[e],c=ia[d[f]],c&&(b?(d.style.csstext=c.dirtystyleattr,ea(d,c.dirtyclassattr)):(c.dirtystyleattr=d.style.csstext,c.dirtyclassattr=da(d),d.style.csstext=c.styleattr,ea(d,c.classattr)))},ga=function(){ua="translatez(0)",g.setstyle(ja,"transform",ua);var a=j(ja),b=a.getpropertyvalue("transform"),c=a.getpropertyvalue(s+"transform"),d=b&&"none"!==b||c&&"none"!==c;d||(ua="")};g.setstyle=function(a,b,c){var d=a.style;if(b=b.replace(l,m).replace("-",""),"zindex"===b)isnan(c)?d[b]=c:d[b]=""+(0|c);else if("float"===b)d.stylefloat=d.cssfloat=c;else try{r&&(d[r+b.slice(0,1).touppercase()+b.slice(1)]=c),d[b]=c}catch(e){}};var ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa=g.addevent=function(b,c,d){var e=function(b){return b=b||a.event,b.target||(b.target=b.srcelement),b.preventdefault||(b.preventdefault=function(){b.returnvalue=!1,b.defaultprevented=!0}),d.call(this,b)};c=c.split(" ");for(var f,g=0,h=c.length;h>g;g++)f=c[g],b.addeventlistener?b.addeventlistener(f,d,!1):b.attachevent("on"+f,e),ua.push({element:b,name:f,listener:d})},xa=g.removeevent=function(a,b,c){b=b.split(" ");for(var d=0,e=b.length;e>d;d++)a.removeeventlistener?a.removeeventlistener(b[d],c,!1):a.detachevent("on"+b[d],c)},ya=function(){for(var a,b=0,c=ua.length;c>b;b++)a=ua[b],xa(a.element,a.name,a.listener);ua=[]},za=function(a,b,c){ka.keyframe&&ka.keyframe.call(ha,a,b,c)},aa=function(){var a=ha.getscrolltop();ja=0,la&&!sa&&(f.style.height=""),y(),la&&!sa&&(f.style.height=ja+e.clientheight+"px"),sa?ha.setscrolltop(i.min(ha.getscrolltop(),ja)):ha.setscrolltop(a,!0),sa=!0},ba=function(){var a,b,c=e.clientheight,d={};for(a in ma)b=ma[a],"function"==typeof b?b=b.call(ha):/p$/.test(b)&&(b=b.slice(0,-1)/100*c),d[a]=b;return d},ca=function(){var a,b=0;return ja&&(b=i.max(ja.offsetheight,ja.scrollheight)),a=i.max(b,f.scrollheight,f.offsetheight,e.scrollheight,e.offsetheight,e.clientheight),a-e.clientheight},da=function(b){var c="classname";return a.svgelement&&b instanceof a.svgelement&&(b=b[c],c="baseval"),b[c]},ea=function(b,d,e){var f="classname";if(a.svgelement&&b instanceof a.svgelement&&(b=b[f],f="baseval"),e===c)return void(b[f]=d);for(var g=b[f],h=0,i=e.length;i>h;h++)g=ga(g).replace(ga(e[h])," ");g=fa(g);for(var j=0,k=d.length;k>j;j++)-1===ga(g).indexof(ga(d[j]))&&(g+=" "+d[j]);b[f]=fa(g)},fa=function(a){return a.replace(h,"")},ga=function(a){return" "+a+" "},ha=date.now||function(){return+new date},ia=function(a,b){return a.frame-b.frame},ja=0,ka=1,la="down",ma=-1,na=ha(),oa=0,pa=0,qa=!1,ra=0,sa=!1,ta=0,ua=[];"function"==typeof define&&define.amd?define([],function(){return g}):"undefined"!=typeof module&&module.exports?module.exports=g:a.skrollr=g}(window,document); /*! velocityjs.org (1.2.2). (c) 2014 julian shapiro. mit @license: en.wikipedia.org/wiki/mit_license */ /*! velocityjs.org jquery shim (1.0.1). (c) 2014 the jquery foundation. mit @license: en.wikipedia.org/wiki/mit_license. */ !function(e){function t(e){var t=e.length,r=$.type(e);return"function"===r||$.iswindow(e)?!1:1===e.nodetype&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e}if(!e.jquery){var $=function(e,t){return new $.fn.init(e,t)};$.iswindow=function(e){return null!=e&&e==e.window},$.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?a[o.call(e)]||"object":typeof e},$.isarray=array.isarray||function(e){return"array"===$.type(e)},$.isplainobject=function(e){var t;if(!e||"object"!==$.type(e)||e.nodetype||$.iswindow(e))return!1;try{if(e.constructor&&!n.call(e,"constructor")&&!n.call(e.constructor.prototype,"isprototypeof"))return!1}catch(r){return!1}for(t in e);return void 0===t||n.call(e,t)},$.each=function(e,r,a){var n,o=0,i=e.length,s=t(e);if(a){if(s)for(;i>o&&(n=r.apply(e[o],a),n!==!1);o++);else for(o in e)if(n=r.apply(e[o],a),n===!1)break}else if(s)for(;i>o&&(n=r.call(e[o],o,e[o]),n!==!1);o++);else for(o in e)if(n=r.call(e[o],o,e[o]),n===!1)break;return e},$.data=function(e,t,a){if(void 0===a){var n=e[$.expando],o=n&&r[n];if(void 0===t)return o;if(o&&t in o)return o[t]}else if(void 0!==t){var n=e[$.expando]||(e[$.expando]=++$.uuid);return r[n]=r[n]||{},r[n][t]=a,a}},$.removedata=function(e,t){var a=e[$.expando],n=a&&r[a];n&&$.each(t,function(e,t){delete n[t]})},$.extend=function(){var e,t,r,a,n,o,i=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof i&&(u=i,i=arguments[s]||{},s++),"object"!=typeof i&&"function"!==$.type(i)&&(i={}),s===l&&(i=this,s--);l>s;s++)if(null!=(n=arguments[s]))for(a in n)e=i[a],r=n[a],i!==r&&(u&&r&&($.isplainobject(r)||(t=$.isarray(r)))?(t?(t=!1,o=e&&$.isarray(e)?e:[]):o=e&&$.isplainobject(e)?e:{},i[a]=$.extend(u,o,r)):void 0!==r&&(i[a]=r));return i},$.queue=function(e,r,a){function n(e,r){var a=r||[];return null!=e&&(t(object(e))?!function(e,t){for(var r=+t.length,a=0,n=e.length;r>a;)e[n++]=t[a++];if(r!==r)for(;void 0!==t[a];)e[n++]=t[a++];return e.length=n,e}(a,"string"==typeof e?[e]:e):[].push.call(a,e)),a}if(e){r=(r||"fx")+"queue";var o=$.data(e,r);return a?(!o||$.isarray(a)?o=$.data(e,r,n(a)):o.push(a),o):o||[]}},$.dequeue=function(e,t){$.each(e.nodetype?[e]:e,function(e,r){t=t||"fx";var a=$.queue(r,t),n=a.shift();"inprogress"===n&&(n=a.shift()),n&&("fx"===t&&a.unshift("inprogress"),n.call(r,function(){$.dequeue(r,t)}))})},$.fn=$.prototype={init:function(e){if(e.nodetype)return this[0]=e,this;throw new error("not a dom node.")},offset:function(){var t=this[0].getboundingclientrect?this[0].getboundingclientrect():{top:0,left:0};return{top:t.top+(e.pageyoffset||document.scrolltop||0)-(document.clienttop||0),left:t.left+(e.pagexoffset||document.scrollleft||0)-(document.clientleft||0)}},position:function(){function e(){for(var e=this.offsetparent||document;e&&"html"===!e.nodetype.tolowercase&&"static"===e.style.position;)e=e.offsetparent;return e||document}var t=this[0],e=e.apply(t),r=this.offset(),a=/^(?:body|html)$/i.test(e.nodename)?{top:0,left:0}:$(e).offset();return r.top-=parsefloat(t.style.margintop)||0,r.left-=parsefloat(t.style.marginleft)||0,e.style&&(a.top+=parsefloat(e.style.bordertopwidth)||0,a.left+=parsefloat(e.style.borderleftwidth)||0),{top:r.top-a.top,left:r.left-a.left}}};var r={};$.expando="velocity"+(new date).gettime(),$.uuid=0;for(var a={},n=a.hasownproperty,o=a.tostring,i="boolean number string function array date regexp object error".split(" "),s=0;sn;++n){var o=u(r,e,a);if(0===o)return r;var i=l(r,e,a)-t;r-=i/o}return r}function p(){for(var t=0;b>t;++t)w[t]=l(t*x,e,a)}function f(t,r,n){var o,i,s=0;do i=r+(n-r)/2,o=l(i,e,a)-t,o>0?n=i:r=i;while(math.abs(o)>h&&++s=y?c(t,s):0==l?s:f(t,r,r+x)}function g(){v=!0,(e!=r||a!=n)&&p()}var m=4,y=.001,h=1e-7,v=10,b=11,x=1/(b-1),s="float32array"in t;if(4!==arguments.length)return!1;for(var p=0;4>p;++p)if("number"!=typeof arguments[p]||isnan(arguments[p])||!isfinite(arguments[p]))return!1;e=math.min(e,1),a=math.min(a,1),e=math.max(e,0),a=math.max(a,0);var w=s?new float32array(b):new array(b),v=!1,c=function(t){return v||g(),e===r&&a===n?t:0===t?0:1===t?1:l(d(t),r,n)};c.getcontrolpoints=function(){return[{x:e,y:r},{x:a,y:n}]};var t="generatebezier("+[e,r,a,n]+")";return c.tostring=function(){return t},c}function u(e,t){var r=e;return g.isstring(e)?v.easings[e]||(r=!1):r=g.isarray(e)&&1===e.length?s.apply(null,e):g.isarray(e)&&2===e.length?b.apply(null,e.concat([t])):g.isarray(e)&&4===e.length?l.apply(null,e):!1,r===!1&&(r=v.easings[v.defaults.easing]?v.defaults.easing:h),r}function c(e){if(e){var t=(new date).gettime(),r=v.state.calls.length;r>1e4&&(v.state.calls=n(v.state.calls));for(var o=0;r>o;o++)if(v.state.calls[o]){var s=v.state.calls[o],l=s[0],u=s[2],f=s[3],d=!!f,m=null;f||(f=v.state.calls[o][3]=t-16);for(var y=math.min((t-f)/u.duration,1),h=0,b=l.length;b>h;h++){var s=l[h],w=s.element;if(i(w)){var v=!1;if(u.display!==a&&null!==u.display&&"none"!==u.display){if("flex"===u.display){var c=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];$.each(c,function(e,t){x.setpropertyvalue(w,"display",t)})}x.setpropertyvalue(w,"display",u.display)}u.visibility!==a&&"hidden"!==u.visibility&&x.setpropertyvalue(w,"visibility",u.visibility);for(var t in s)if("element"!==t){var k=s[t],a,f=g.isstring(k.easing)?v.easings[k.easing]:k.easing;if(1===y)a=k.endvalue;else{var e=k.endvalue-k.startvalue;if(a=k.startvalue+e*f(y,u,e),!d&&a===k.currentvalue)continue}if(k.currentvalue=a,"tween"===t)m=a;else{if(x.hooks.registered[t]){var j=x.hooks.getroot(t),h=i(w).rootpropertyvaluecache[j];h&&(k.rootpropertyvalue=h)}var n=x.setpropertyvalue(w,t,k.currentvalue+(0===parsefloat(a)?"":k.unittype),k.rootpropertyvalue,k.scrolldata);x.hooks.registered[t]&&(i(w).rootpropertyvaluecache[j]=x.normalizations.registered[j]?x.normalizations.registered[j]("extract",null,n[1]):n[1]),"transform"===n[0]&&(v=!0)}}u.mobileha&&i(w).transformcache.translate3d===a&&(i(w).transformcache.translate3d="(0px, 0px, 0px)",v=!0),v&&x.flushtransformcache(w)}}u.display!==a&&"none"!==u.display&&(v.state.calls[o][2].display=!1),u.visibility!==a&&"hidden"!==u.visibility&&(v.state.calls[o][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],y,math.max(0,f+u.duration-t),f,m),1===y&&p(o)}}v.state.isticking&&p(c)}function p(e,t){if(!v.state.calls[e])return!1;for(var r=v.state.calls[e][0],n=v.state.calls[e][1],o=v.state.calls[e][2],s=v.state.calls[e][4],l=!1,u=0,c=r.length;c>u;u++){var p=r[u].element;if(t||o.loop||("none"===o.display&&x.setpropertyvalue(p,"display",o.display),"hidden"===o.visibility&&x.setpropertyvalue(p,"visibility",o.visibility)),o.loop!==!0&&($.queue(p)[1]===a||!/\.velocityqueueentryflag/i.test($.queue(p)[1]))&&i(p)){i(p).isanimating=!1,i(p).rootpropertyvaluecache={};var f=!1;$.each(x.lists.transforms3d,function(e,t){var r=/^scale/.test(t)?1:0,n=i(p).transformcache[t];i(p).transformcache[t]!==a&&new regexp("^\\("+r+"[^.]").test(n)&&(f=!0,delete i(p).transformcache[t])}),o.mobileha&&(f=!0,delete i(p).transformcache.translate3d),f&&x.flushtransformcache(p),x.values.removeclass(p,"velocity-animating")}if(!t&&o.complete&&!o.loop&&u===c-1)try{o.complete.call(n,n)}catch(d){settimeout(function(){throw d},1)}s&&o.loop!==!0&&s(n),i(p)&&o.loop===!0&&!t&&($.each(i(p).tweenscontainer,function(e,t){/^rotate/.test(e)&&360===parsefloat(t.endvalue)&&(t.endvalue=0,t.startvalue=360),/^backgroundposition/.test(e)&&100===parsefloat(t.endvalue)&&"%"===t.unittype&&(t.endvalue=0,t.startvalue=100)}),v(p,"reverse",{loop:!0,delay:o.delay})),o.queue!==!1&&$.dequeue(p,o.queue)}v.state.calls[e]=!1;for(var g=0,m=v.state.calls.length;m>g;g++)if(v.state.calls[g]!==!1){l=!0;break}l===!1&&(v.state.isticking=!1,delete v.state.calls,v.state.calls=[])}var f=function(){if(r.documentmode)return r.documentmode;for(var e=7;e>4;e--){var t=r.createelement("div");if(t.innerhtml="",t.getelementsbytagname("span").length)return t=null,e}return a}(),d=function(){var e=0;return t.webkitrequestanimationframe||t.mozrequestanimationframe||function(t){var r=(new date).gettime(),a;return a=math.max(0,16-(r-e)),e=r+a,settimeout(function(){t(r+a)},a)}}(),g={isstring:function(e){return"string"==typeof e},isarray:array.isarray||function(e){return"[object array]"===object.prototype.tostring.call(e)},isfunction:function(e){return"[object function]"===object.prototype.tostring.call(e)},isnode:function(e){return e&&e.nodetype},isnodelist:function(e){return"object"==typeof e&&/^\[object (htmlcollection|nodelist|object)\]$/.test(object.prototype.tostring.call(e))&&e.length!==a&&(0===e.length||"object"==typeof e[0]&&e[0].nodetype>0)},iswrapped:function(e){return e&&(e.jquery||t.zepto&&t.zepto.zepto.isz(e))},issvg:function(e){return t.svgelement&&e instanceof t.svgelement},isemptyobject:function(e){for(var t in e)return!1;return!0}},$,m=!1;if(e.fn&&e.fn.jquery?($=e,m=!0):$=t.velocity.utilities,8>=f&&!m)throw new error("velocity: ie8 and below require jquery to be loaded before velocity.");if(7>=f)return void(jquery.fn.velocity=jquery.fn.animate);var y=400,h="swing",v={state:{ismobile:/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.useragent),isandroid:/android/i.test(navigator.useragent),isgingerbread:/android 2\.3\.[3-7]/i.test(navigator.useragent),ischrome:t.chrome,isfirefox:/firefox/i.test(navigator.useragent),prefixelement:r.createelement("div"),prefixmatches:{},scrollanchor:null,scrollpropertyleft:null,scrollpropertytop:null,isticking:!1,calls:[]},css:{},utilities:$,redirects:{},easings:{},promise:t.promise,defaults:{queue:"",duration:y,easing:h,begin:a,complete:a,progress:a,display:a,visibility:a,loop:!1,delay:!1,mobileha:!0,_cachevalues:!0},init:function(e){$.data(e,"velocity",{issvg:g.issvg(e),isanimating:!1,computedstyle:null,tweenscontainer:null,rootpropertyvaluecache:{},transformcache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};t.pageyoffset!==a?(v.state.scrollanchor=t,v.state.scrollpropertyleft="pagexoffset",v.state.scrollpropertytop="pageyoffset"):(v.state.scrollanchor=r.documentelement||r.body.parentnode||r.body,v.state.scrollpropertyleft="scrollleft",v.state.scrollpropertytop="scrolltop");var b=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,r,a){var n={x:t.x+a.dx*r,v:t.v+a.dv*r,tension:t.tension,friction:t.friction};return{dx:n.v,dv:e(n)}}function r(r,a){var n={dx:r.v,dv:e(r)},o=t(r,.5*a,n),i=t(r,.5*a,o),s=t(r,a,i),l=1/6*(n.dx+2*(o.dx+i.dx)+s.dx),u=1/6*(n.dv+2*(o.dv+i.dv)+s.dv);return r.x=r.x+l*a,r.v=r.v+u*a,r}return function a(e,t,n){var o={x:-1,v:0,tension:null,friction:null},i=[0],s=0,l=1e-4,u=.016,c,p,f;for(e=parsefloat(e)||500,t=parsefloat(t)||20,n=n||null,o.tension=e,o.friction=t,c=null!==n,c?(s=a(e,t),p=s/n*u):p=u;;)if(f=r(f||o,p),i.push(1+f.x),s+=16,!(math.abs(f.x)>l&&math.abs(f.v)>l))break;return c?function(e){return i[e*(i.length-1)|0]}:s}}();v.easings={linear:function(e){return e},swing:function(e){return.5-math.cos(e*math.pi)/2},spring:function(e){return 1-math.cos(4.5*e*math.pi)*math.exp(6*-e)}},$.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeinsine",[.47,0,.745,.715]],["easeoutsine",[.39,.575,.565,1]],["easeinoutsine",[.445,.05,.55,.95]],["easeinquad",[.55,.085,.68,.53]],["easeoutquad",[.25,.46,.45,.94]],["easeinoutquad",[.455,.03,.515,.955]],["easeincubic",[.55,.055,.675,.19]],["easeoutcubic",[.215,.61,.355,1]],["easeinoutcubic",[.645,.045,.355,1]],["easeinquart",[.895,.03,.685,.22]],["easeoutquart",[.165,.84,.44,1]],["easeinoutquart",[.77,0,.175,1]],["easeinquint",[.755,.05,.855,.06]],["easeoutquint",[.23,1,.32,1]],["easeinoutquint",[.86,0,.07,1]],["easeinexpo",[.95,.05,.795,.035]],["easeoutexpo",[.19,1,.22,1]],["easeinoutexpo",[1,0,0,1]],["easeincirc",[.6,.04,.98,.335]],["easeoutcirc",[.075,.82,.165,1]],["easeinoutcirc",[.785,.135,.15,.86]]],function(e,t){v.easings[t[0]]=l.apply(null,t[1])});var x=v.css={regex:{ishex:/^#([a-f\d]{3}){1,2}$/i,valueunwrap:/^[a-z]+\((.*)\)$/i,wrappedvaluealreadyextracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valuesplit:/([a-z]+\(.+\))|(([a-z0-9#-.]+?)(?=\s|$))/gi},lists:{colors:["fill","stroke","stopcolor","color","backgroundcolor","bordercolor","bordertopcolor","borderrightcolor","borderbottomcolor","borderleftcolor","outlinecolor"],transformsbase:["translatex","translatey","scale","scalex","scaley","skewx","skewy","rotatez"],transforms3d:["transformperspective","translatez","scalez","rotatex","rotatey"]},hooks:{templates:{textshadow:["color x y blur","black 0px 0px 0px"],boxshadow:["color x y blur spread","black 0px 0px 0px 0px"],clip:["top right bottom left","0px 0px 0px 0px"],backgroundposition:["x y","0% 0%"],transformorigin:["x y z","50% 50% 0px"],perspectiveorigin:["x y","50% 50%"]},registered:{},register:function(){for(var e=0;e=f)switch(e){case"name":return"filter";case"extract":var a=r.tostring().match(/alpha\(opacity=(.*)\)/i);return r=a?a[1]/100:1;case"inject":return t.style.zoom=1,parsefloat(r)>=1?"":"alpha(opacity="+parseint(100*parsefloat(r),10)+")"}else switch(e){case"name":return"opacity";case"extract":return r;case"inject":return r}}},register:function(){9>=f||v.state.isgingerbread||(x.lists.transformsbase=x.lists.transformsbase.concat(x.lists.transforms3d));for(var e=0;en&&(n=1),o=!/(\d)$/i.test(n);break;case"skew":o=!/(deg|\d)$/i.test(n);break;case"rotate":o=!/(deg|\d)$/i.test(n)}return o||(i(r).transformcache[t]="("+n+")"),i(r).transformcache[t]}}}();for(var e=0;e=f||3!==o.split(" ").length||(o+=" 1"),o;case"inject":return 8>=f?4===n.split(" ").length&&(n=n.split(/\s+/).slice(0,3).join(" ")):3===n.split(" ").length&&(n+=" 1"),(8>=f?"rgb":"rgba")+"("+n.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},names:{camelcase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.touppercase()})},svgattribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(f||v.state.isandroid&&!v.state.ischrome)&&(t+="|transform"),new regexp("^("+t+")$","i").test(e)},prefixcheck:function(e){if(v.state.prefixmatches[e])return[v.state.prefixmatches[e],!0];for(var t=["","webkit","moz","ms","o"],r=0,a=t.length;a>r;r++){var n;if(n=0===r?e:t[r]+e.replace(/^\w/,function(e){return e.touppercase()}),g.isstring(v.state.prefixelement.style[n]))return v.state.prefixmatches[e]=n,[n,!0]}return[e,!1]}},values:{hextorgb:function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,a;return e=e.replace(t,function(e,t,r,a){return t+t+r+r+a+a}),a=r.exec(e),a?[parseint(a[1],16),parseint(a[2],16),parseint(a[3],16)]:[0,0,0]},iscssnullvalue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getunittype:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scalex|scaley|scalez|alpha|flexgrow|flexheight|zindex|fontweight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getdisplaytype:function(e){var t=e&&e.tagname.tostring().tolowercase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addclass:function(e,t){e.classlist?e.classlist.add(t):e.classname+=(e.classname.length?" ":"")+t},removeclass:function(e,t){e.classlist?e.classlist.remove(t):e.classname=e.classname.tostring().replace(new regexp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getpropertyvalue:function(e,r,n,o){function s(e,r){function n(){u&&x.setpropertyvalue(e,"display","none")}var l=0;if(8>=f)l=$.css(e,r);else{var u=!1;if(/^(width|height)$/.test(r)&&0===x.getpropertyvalue(e,"display")&&(u=!0,x.setpropertyvalue(e,"display",x.values.getdisplaytype(e))),!o){if("height"===r&&"border-box"!==x.getpropertyvalue(e,"boxsizing").tostring().tolowercase()){var c=e.offsetheight-(parsefloat(x.getpropertyvalue(e,"bordertopwidth"))||0)-(parsefloat(x.getpropertyvalue(e,"borderbottomwidth"))||0)-(parsefloat(x.getpropertyvalue(e,"paddingtop"))||0)-(parsefloat(x.getpropertyvalue(e,"paddingbottom"))||0);return n(),c}if("width"===r&&"border-box"!==x.getpropertyvalue(e,"boxsizing").tostring().tolowercase()){var p=e.offsetwidth-(parsefloat(x.getpropertyvalue(e,"borderleftwidth"))||0)-(parsefloat(x.getpropertyvalue(e,"borderrightwidth"))||0)-(parsefloat(x.getpropertyvalue(e,"paddingleft"))||0)-(parsefloat(x.getpropertyvalue(e,"paddingright"))||0);return n(),p}}var d;d=i(e)===a?t.getcomputedstyle(e,null):i(e).computedstyle?i(e).computedstyle:i(e).computedstyle=t.getcomputedstyle(e,null),"bordercolor"===r&&(r="bordertopcolor"),l=9===f&&"filter"===r?d.getpropertyvalue(r):d[r],(""===l||null===l)&&(l=e.style[r]),n()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(r)){var g=s(e,"position");("fixed"===g||"absolute"===g&&/top|left/i.test(r))&&(l=$(e).position()[r]+"px")}return l}var l;if(x.hooks.registered[r]){var u=r,c=x.hooks.getroot(u);n===a&&(n=x.getpropertyvalue(e,x.names.prefixcheck(c)[0])),x.normalizations.registered[c]&&(n=x.normalizations.registered[c]("extract",e,n)),l=x.hooks.extractvalue(u,n)}else if(x.normalizations.registered[r]){var p,d;p=x.normalizations.registered[r]("name",e),"transform"!==p&&(d=s(e,x.names.prefixcheck(p)[0]),x.values.iscssnullvalue(d)&&x.hooks.templates[r]&&(d=x.hooks.templates[r][1])),l=x.normalizations.registered[r]("extract",e,d)}if(!/^[\d-]/.test(l))if(i(e)&&i(e).issvg&&x.names.svgattribute(r))if(/^(height|width)$/i.test(r))try{l=e.getbbox()[r]}catch(g){l=0}else l=e.getattribute(r);else l=s(e,x.names.prefixcheck(r)[0]);return x.values.iscssnullvalue(l)&&(l=0),v.debug>=2&&console.log("get "+r+": "+l),l},setpropertyvalue:function(e,r,a,n,o){var s=r;if("scroll"===r)o.container?o.container["scroll"+o.direction]=a:"left"===o.direction?t.scrollto(a,o.alternatevalue):t.scrollto(o.alternatevalue,a);else if(x.normalizations.registered[r]&&"transform"===x.normalizations.registered[r]("name",e))x.normalizations.registered[r]("inject",e,a),s="transform",a=i(e).transformcache[r];else{if(x.hooks.registered[r]){var l=r,u=x.hooks.getroot(r);n=n||x.getpropertyvalue(e,u),a=x.hooks.injectvalue(l,a,n),r=u}if(x.normalizations.registered[r]&&(a=x.normalizations.registered[r]("inject",e,a),r=x.normalizations.registered[r]("name",e)),s=x.names.prefixcheck(r)[0],8>=f)try{e.style[s]=a}catch(c){v.debug&&console.log("browser does not support ["+a+"] for ["+s+"]")}else i(e)&&i(e).issvg&&x.names.svgattribute(r)?e.setattribute(r,a):e.style[s]=a;v.debug>=2&&console.log("set "+r+" ("+s+"): "+a)}return[s,a]},flushtransformcache:function(e){function t(t){return parsefloat(x.getpropertyvalue(e,t))}var r="";if((f||v.state.isandroid&&!v.state.ischrome)&&i(e).issvg){var a={translate:[t("translatex"),t("translatey")],skewx:[t("skewx")],skewy:[t("skewy")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scalex"),t("scaley")],rotate:[t("rotatez"),0,0]};$.each(i(e).transformcache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),a[e]&&(r+=e+"("+a[e].join(" ")+") ",delete a[e])})}else{var n,o;$.each(i(e).transformcache,function(t){return n=i(e).transformcache[t],"transformperspective"===t?(o=n,!0):(9===f&&"rotatez"===t&&(t="rotate"),void(r+=t+n+" "))}),o&&(r="perspective"+o+" "+r)}x.setpropertyvalue(e,"transform",r)}};x.hooks.register(),x.normalizations.register(),v.hook=function(e,t,r){var n=a;return e=o(e),$.each(e,function(e,o){if(i(o)===a&&v.init(o),r===a)n===a&&(n=v.css.getpropertyvalue(o,t));else{var s=v.css.setpropertyvalue(o,t,r);"transform"===s[0]&&v.css.flushtransformcache(o),n=s}}),n};var s=function(){function e(){return l?t.promise||null:f}function n(){function e(e){function p(e,t){var r=a,i=a,s=a;return g.isarray(e)?(r=e[0],!g.isarray(e[1])&&/^[\d-]/.test(e[1])||g.isfunction(e[1])||x.regex.ishex.test(e[1])?s=e[1]:(g.isstring(e[1])&&!x.regex.ishex.test(e[1])||g.isarray(e[1]))&&(i=t?e[1]:u(e[1],o.duration),e[2]!==a&&(s=e[2]))):r=e,t||(i=i||o.easing),g.isfunction(r)&&(r=r.call(n,w,p)),g.isfunction(s)&&(s=s.call(n,w,p)),[r||0,i,s]}function f(e,t){var r,a;return a=(t||"0").tostring().tolowercase().replace(/[%a-z]+$/,function(e){return r=e,""}),r||(r=x.values.getunittype(e)),[a,r]}function d(){var e={myparent:n.parentnode||r.body,position:x.getpropertyvalue(n,"position"),fontsize:x.getpropertyvalue(n,"fontsize")},a=e.position===n.lastposition&&e.myparent===n.lastparent,o=e.fontsize===n.lastfontsize;n.lastparent=e.myparent,n.lastposition=e.position,n.lastfontsize=e.fontsize;var s=100,l={};if(o&&a)l.emtopx=n.lastemtopx,l.percenttopxwidth=n.lastpercenttopxwidth,l.percenttopxheight=n.lastpercenttopxheight;else{var u=i(n).issvg?r.createelementns("http://www.w3.org/2000/svg","rect"):r.createelement("div");v.init(u),e.myparent.appendchild(u),$.each(["overflow","overflowx","overflowy"],function(e,t){v.css.setpropertyvalue(u,t,"hidden")}),v.css.setpropertyvalue(u,"position",e.position),v.css.setpropertyvalue(u,"fontsize",e.fontsize),v.css.setpropertyvalue(u,"boxsizing","content-box"),$.each(["minwidth","maxwidth","width","minheight","maxheight","height"],function(e,t){v.css.setpropertyvalue(u,t,s+"%")}),v.css.setpropertyvalue(u,"paddingleft",s+"em"),l.percenttopxwidth=n.lastpercenttopxwidth=(parsefloat(x.getpropertyvalue(u,"width",null,!0))||1)/s,l.percenttopxheight=n.lastpercenttopxheight=(parsefloat(x.getpropertyvalue(u,"height",null,!0))||1)/s,l.emtopx=n.lastemtopx=(parsefloat(x.getpropertyvalue(u,"paddingleft"))||1)/s,e.myparent.removechild(u)}return null===n.remtopx&&(n.remtopx=parsefloat(x.getpropertyvalue(r.body,"fontsize"))||16),null===n.vwtopx&&(n.vwtopx=parsefloat(t.innerwidth)/100,n.vhtopx=parsefloat(t.innerheight)/100),l.remtopx=n.remtopx,l.vwtopx=n.vwtopx,l.vhtopx=n.vhtopx,v.debug>=1&&console.log("unit ratios: "+json.stringify(l),n),l}if(o.begin&&0===w)try{o.begin.call(m,m)}catch(y){settimeout(function(){throw y},1)}if("scroll"===k){var s=/^x$/i.test(o.axis)?"left":"top",v=parsefloat(o.offset)||0,c,a,f;o.container?g.iswrapped(o.container)||g.isnode(o.container)?(o.container=o.container[0]||o.container,c=o.container["scroll"+s],f=c+$(n).position()[s.tolowercase()]+v):o.container=null:(c=v.state.scrollanchor[v.state["scrollproperty"+s]],a=v.state.scrollanchor[v.state["scrollproperty"+("left"===s?"top":"left")]],f=$(n).offset()[s.tolowercase()]+v),s={scroll:{rootpropertyvalue:!1,startvalue:c,currentvalue:c,endvalue:f,unittype:"",easing:o.easing,scrolldata:{container:o.container,direction:s,alternatevalue:a}},element:n},v.debug&&console.log("tweenscontainer (scroll): ",s.scroll,n)}else if("reverse"===k){if(!i(n).tweenscontainer)return void $.dequeue(n,o.queue);"none"===i(n).opts.display&&(i(n).opts.display="auto"),"hidden"===i(n).opts.visibility&&(i(n).opts.visibility="visible"),i(n).opts.loop=!1,i(n).opts.begin=null,i(n).opts.complete=null,b.easing||delete o.easing,b.duration||delete o.duration,o=$.extend({},i(n).opts,o);var e=$.extend(!0,{},i(n).tweenscontainer);for(var j in e)if("element"!==j){var h=e[j].startvalue;e[j].startvalue=e[j].currentvalue=e[j].endvalue,e[j].endvalue=h,g.isemptyobject(b)||(e[j].easing=o.easing),v.debug&&console.log("reverse tweenscontainer ("+j+"): "+json.stringify(e[j]),n)}s=e}else if("start"===k){var e;i(n).tweenscontainer&&i(n).isanimating===!0&&(e=i(n).tweenscontainer),$.each(h,function(e,t){if(regexp("^"+x.lists.colors.join("$|^")+"$").test(e)){var r=p(t,!0),n=r[0],o=r[1],i=r[2];if(x.regex.ishex.test(n)){for(var s=["red","green","blue"],l=x.values.hextorgb(n),u=i?x.values.hextorgb(i):a,c=0;co;o++){var z={delay:f.delay,progress:f.progress};o===r-1&&(z.display=f.display,z.visibility=f.visibility,z.complete=f.complete),s(m,"reverse",z)}return e()}};v=$.extend(s,v),v.animate=s;var p=t.requestanimationframe||d;return v.state.ismobile||r.hidden===a||r.addeventlistener("visibilitychange",function(){r.hidden?(p=function(e){return settimeout(function(){e(!0)},16)},c()):p=t.requestanimationframe||d}),e.velocity=v,e!==t&&(e.fn.velocity=s,e.fn.velocity.defaults=v.defaults),$.each(["down","up"],function(e,t){v.redirects["slide"+t]=function(e,r,n,o,i,s){var l=$.extend({},r),u=l.begin,c=l.complete,p={height:"",margintop:"",marginbottom:"",paddingtop:"",paddingbottom:""},f={};l.display===a&&(l.display="down"===t?"inline"===v.css.values.getdisplaytype(e)?"inline-block":"block":"none"),l.begin=function(){u&&u.call(i,i);for(var r in p){f[r]=e.style[r];var a=v.css.getpropertyvalue(e,r);p[r]="down"===t?[a,0]:[0,a]}f.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in f)e.style[t]=f[t];c&&c.call(i,i),s&&s.resolver(i)},v(e,p,l)}}),$.each(["in","out"],function(e,t){v.redirects["fade"+t]=function(e,r,n,o,i,s){var l=$.extend({},r),u={opacity:"in"===t?1:0},c=l.complete;l.complete=n!==o-1?l.begin=null:function(){c&&c.call(i,i),s&&s.resolver(i)},l.display===a&&(l.display="in"===t?"auto":"none"),v(this,u,l)}}),v}(window.jquery||window.zepto||window,window,document)}); /* velocityjs.org ui pack (5.0.4). (c) 2014 julian shapiro. mit @license: en.wikipedia.org/wiki/mit_license. portions copyright daniel eden, christian pucci. */ !function(t){"function"==typeof require&&"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(["velocity"],t):t()}(function(){return function(t,a,e,r){function n(t,a){var e=[];return t&&a?($.each([t,a],function(t,a){var r=[];$.each(a,function(t,a){for(;a.tostring().length<5;)a="0"+a;r.push(a)}),e.push(r.join(""))}),parsefloat(e[0])>parsefloat(e[1])):!1}if(!t.velocity||!t.velocity.utilities)return void(a.console&&console.log("velocity ui pack: velocity must be loaded first. aborting."));var i=t.velocity,$=i.utilities,s=i.version,o={major:1,minor:1,patch:0};if(n(o,s)){var l="velocity ui pack: you need to update velocity (jquery.velocity.js) to a newer version. visit http://github.com/julianshapiro/velocity.";throw alert(l),new error(l)}i.registereffect=i.registerui=function(t,a){function e(t,a,e,r){var n=0,s;$.each(t.nodetype?[t]:t,function(t,a){r&&(e+=t*r),s=a.parentnode,$.each(["height","paddingtop","paddingbottom","margintop","marginbottom"],function(t,e){n+=parsefloat(i.css.getpropertyvalue(a,e))})}),i.animate(s,{height:("in"===a?"+":"-")+"="+n},{queue:!1,easing:"ease-in-out",duration:e*("in"===a?.6:1)})}return i.redirects[t]=function(n,s,o,l,c,u){function f(){s.display!==r&&"none"!==s.display||!/out$/.test(t)||$.each(c.nodetype?[c]:c,function(t,a){i.css.setpropertyvalue(a,"display","none")}),s.complete&&s.complete.call(c,c),u&&u.resolver(c||n)}var p=o===l-1;a.defaultduration="function"==typeof a.defaultduration?a.defaultduration.call(c,c):parsefloat(a.defaultduration);for(var d=0;d1&&($.each(a.reverse(),function(t,e){var r=a[t+1];if(r){var n=e.o||e.options,s=r.o||r.options,o=n&&n.sequencequeue===!1?"begin":"complete",l=s&&s[o],c={};c[o]=function(){var t=r.e||r.elements,a=t.nodetype?[t]:t;l&&l.call(a,a),i(e)},r.o?r.o=$.extend({},s,c):r.options=$.extend({},s,c)}}),a.reverse()),i(a[0])}}(window.jquery||window.zepto||window,window,document)}); /*! mpcwaypoints - 4.0.0 copyright © 2011-2015 caleb troughton licensed under the mit license. https://github.com/imakewebthings/mpcwaypoints/blog/master/licenses.txt */ !function(){"use strict";function t(o){if(!o)throw new error("no options passed to mpcwaypoint constructor");if(!o.element)throw new error("no element option passed to mpcwaypoint constructor");if(!o.handler)throw new error("no handler option passed to mpcwaypoint constructor");this.key="mpcwaypoint-"+e,this.options=t.adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerpoint=null,this.group=t.group.findorcreate({name:this.options.group,axis:this.axis}),this.context=t.context.findorcreatebyelement(this.options.context),t.offsetaliases[this.options.offset]&&(this.options.offset=t.offsetaliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queuetrigger=function(t){this.group.queuetrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeall=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyall=function(){t.invokeall("destroy")},t.disableall=function(){t.invokeall("disable")},t.enableall=function(){t.invokeall("enable")},t.refreshall=function(){t.context.refreshall()},t.viewportheight=function(){return window.innerheight||document.documentelement.clientheight},t.viewportwidth=function(){return document.documentelement.clientwidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetaliases={"bottom-in-view":function(){return this.context.innerheight()-this.adapter.outerheight()},"right-in-view":function(){return this.context.innerwidth()-this.adapter.outerwidth()}},window.mpcwaypoint=t}(),function(){"use strict";function t(t){window.settimeout(t,1e3/60)}function e(t){this.element=t,this.adapter=n.adapter,this.adapter=new this.adapter(t),this.key="mpcwaypoint-context-"+i,this.didscroll=!1,this.didresize=!1,this.oldscroll={x:this.adapter.scrollleft(),y:this.adapter.scrolltop()},this.mpcwaypoints={vertical:{},horizontal:{}},t.mpcwaypointcontextkey=this.key,o[t.mpcwaypointcontextkey]=this,i+=1,this.createthrottledscrollhandler(),this.createthrottledresizehandler()}var i=0,o={},n=window.mpcwaypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.mpcwaypoints[e][t.key]=t,this.refresh()},e.prototype.checkempty=function(){var t=this.adapter.isemptyobject(this.mpcwaypoints.horizontal),e=this.adapter.isemptyobject(this.mpcwaypoints.vertical);t&&e&&(this.adapter.off(".mpcwaypoints"),delete o[this.key])},e.prototype.createthrottledresizehandler=function(){function t(){e.handleresize(),e.didresize=!1}var e=this;this.adapter.on("resize.mpcwaypoints",function(){e.didresize||(e.didresize=!0,n.requestanimationframe(t))})},e.prototype.createthrottledscrollhandler=function(){function t(){e.handlescroll(),e.didscroll=!1}var e=this;this.adapter.on("scroll.mpcwaypoints",function(){(!e.didscroll||n.istouch)&&(e.didscroll=!0,n.requestanimationframe(t))})},e.prototype.handleresize=function(){n.context.refreshall()},e.prototype.handlescroll=function(){var t={},e={horizontal:{newscroll:this.adapter.scrollleft(),oldscroll:this.oldscroll.x,forward:"right",backward:"left"},vertical:{newscroll:this.adapter.scrolltop(),oldscroll:this.oldscroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newscroll>o.oldscroll,r=n?o.forward:o.backward;for(var s in this.mpcwaypoints[i]){var a=this.mpcwaypoints[i][s],l=o.oldscroll=a.triggerpoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queuetrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushtriggers();this.oldscroll={x:e.horizontal.newscroll,y:e.vertical.newscroll}},e.prototype.innerheight=function(){return this.element==this.element.window?n.viewportheight():this.adapter.innerheight()},e.prototype.remove=function(t){delete this.mpcwaypoints[t.axis][t.key],this.checkempty()},e.prototype.innerwidth=function(){return this.element==this.element.window?n.viewportwidth():this.adapter.innerwidth()},e.prototype.destroy=function(){var t=[];for(var e in this.mpcwaypoints)for(var i in this.mpcwaypoints[e])t.push(this.mpcwaypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handlescroll(),t={horizontal:{contextoffset:e?0:i.left,contextscroll:e?0:this.oldscroll.x,contextdimension:this.innerwidth(),oldscroll:this.oldscroll.x,forward:"right",backward:"left",offsetprop:"left"},vertical:{contextoffset:e?0:i.top,contextscroll:e?0:this.oldscroll.y,contextdimension:this.innerheight(),oldscroll:this.oldscroll.y,forward:"down",backward:"up",offsetprop:"top"}};for(var r in t){var s=t[r];for(var a in this.mpcwaypoints[r]){var l,h,p,u,c,d=this.mpcwaypoints[r][a],f=d.options.offset,w=d.triggerpoint,y=0,g=null==w;d.element!==d.element.window&&(y=d.adapter.offset()[s.offsetprop]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parsefloat(f),d.options.offset.indexof("%")>-1&&(f=math.ceil(s.contextdimension*f/100))),l=s.contextscroll-s.contextoffset,d.triggerpoint=y+l-f,h=w=s.oldscroll,u=h&&p,c=!h&&!p,!g&&u?(d.queuetrigger(s.backward),o[d.group.id]=d.group):!g&&c?(d.queuetrigger(s.forward),o[d.group.id]=d.group):g&&s.oldscroll>=d.triggerpoint&&(d.queuetrigger(s.forward),o[d.group.id]=d.group)}}return n.requestanimationframe(function(){for(var t in o)o[t].flushtriggers()}),this},e.findorcreatebyelement=function(t){return e.findbyelement(t)||new e(t)},e.refreshall=function(){for(var t in o)o[t].refresh()},e.findbyelement=function(t){return o[t.mpcwaypointcontextkey]},window.onload=function(){r&&r(),e.refreshall()},n.requestanimationframe=function(e){var i=window.requestanimationframe||window.mozrequestanimationframe||window.webkitrequestanimationframe||t;i.call(window,e)},n.context=e}(),function(){"use strict";function t(t,e){return t.triggerpoint-e.triggerpoint}function e(t,e){return e.triggerpoint-t.triggerpoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.mpcwaypoints=[],this.cleartriggerqueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.mpcwaypoint;i.prototype.add=function(t){this.mpcwaypoints.push(t)},i.prototype.cleartriggerqueues=function(){this.triggerqueues={up:[],down:[],left:[],right:[]}},i.prototype.flushtriggers=function(){for(var i in this.triggerqueues){var o=this.triggerqueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.cleartriggerqueues()},i.prototype.next=function(e){this.mpcwaypoints.sort(t);var i=n.adapter.inarray(e,this.mpcwaypoints),o=i===this.mpcwaypoints.length-1;return o?null:this.mpcwaypoints[i+1]},i.prototype.previous=function(e){this.mpcwaypoints.sort(t);var i=n.adapter.inarray(e,this.mpcwaypoints);return i?this.mpcwaypoints[i-1]:null},i.prototype.queuetrigger=function(t,e){this.triggerqueues[e].push(t)},i.prototype.remove=function(t){var e=n.adapter.inarray(t,this.mpcwaypoints);e>-1&&this.mpcwaypoints.splice(e,1)},i.prototype.first=function(){return this.mpcwaypoints[0]},i.prototype.last=function(){return this.mpcwaypoints[this.mpcwaypoints.length-1]},i.findorcreate=function(t){return o[t.axis][t.name]||new i(t)},n.group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jquery,i=window.mpcwaypoint;e.each(["innerheight","innerwidth","off","offset","on","outerheight","outerwidth","scrollleft","scrolltop"],function(e,i){t.prototype[i]=function(){var t=array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inarray","isemptyobject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",adapter:t}),i.adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isfunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.mpcwaypoint;window.jquery&&(window.jquery.fn.mpcwaypoint=t(window.jquery)),window.zepto&&(window.zepto.fn.mpcwaypoint=t(window.zepto))}(); /*! mpcwaypoints inview shortcut - 4.0.0 copyright © 2011-2015 caleb troughton licensed under the mit license. https://github.com/imakewebthings/mpcwaypoints/blog/master/licenses.txt */ !function(){"use strict";function t(){}function e(t){this.options=i.adapter.extend({},e.defaults,t),this.axis=this.options.horizontal?"horizontal":"vertical",this.mpcwaypoints=[],this.element=this.options.element,this.creatempcwaypoints()}var i=window.mpcwaypoint;e.prototype.creatempcwaypoints=function(){for(var t={vertical:[{down:"enter",up:"exited",offset:"100%"},{down:"entered",up:"exit",offset:"bottom-in-view"},{down:"exit",up:"entered",offset:0},{down:"exited",up:"enter",offset:function(){return-this.adapter.outerheight()}}],horizontal:[{right:"enter",left:"exited",offset:"100%"},{right:"entered",left:"exit",offset:"right-in-view"},{right:"exit",left:"entered",offset:0},{right:"exited",left:"enter",offset:function(){return-this.adapter.outerwidth()}}]},e=0,i=t[this.axis].length;i>e;e++){var n=t[this.axis][e];this.creatempcwaypoint(n)}},e.prototype.creatempcwaypoint=function(t){var e=this;this.mpcwaypoints.push(new i({context:this.options.context,element:this.options.element,enabled:this.options.enabled,handler:function(t){return function(i){e.options[t[i]].call(e,i)}}(t),offset:t.offset,horizontal:this.options.horizontal}))},e.prototype.destroy=function(){for(var t=0,e=this.mpcwaypoints.length;e>t;t++)this.mpcwaypoints[t].destroy();this.mpcwaypoints=[]},e.prototype.disable=function(){for(var t=0,e=this.mpcwaypoints.length;e>t;t++)this.mpcwaypoints[t].disable()},e.prototype.enable=function(){for(var t=0,e=this.mpcwaypoints.length;e>t;t++)this.mpcwaypoints[t].enable()},e.defaults={context:window,enabled:!0,enter:t,entered:t,exit:t,exited:t},i.inview=e}();