if(location.href.indexOf("ile:")<0){if(location.href.indexOf("ap")<0){}} /* Waypoints - 4.0.1 Copyright © 2011-2016 Caleb Troughton Licensed under the MIT license. https://github.com/imakewebthings/waypoints/blob/master/licenses.txt */ (function(){var b=0;var a={};function c(d){if(!d){throw new Error("No options passed to Waypoint constructor")}if(!d.element){throw new Error("No element option passed to Waypoint constructor")}if(!d.handler){throw new Error("No handler option passed to Waypoint constructor")}this.key="waypoint-"+b;this.options=c.Adapter.extend({},c.defaults,d);this.element=this.options.element;this.adapter=new c.Adapter(this.element);this.callback=d.handler;this.axis=this.options.horizontal?"horizontal":"vertical";this.enabled=this.options.enabled;this.triggerPoint=null;this.group=c.Group.findOrCreate({name:this.options.group,axis:this.axis});this.context=c.Context.findOrCreateByElement(this.options.context);if(c.offsetAliases[this.options.offset]){this.options.offset=c.offsetAliases[this.options.offset]}this.group.add(this);this.context.add(this);a[this.key]=this;b+=1}c.prototype.queueTrigger=function(d){this.group.queueTrigger(this,d)};c.prototype.trigger=function(d){if(!this.enabled){return}if(this.callback){this.callback.apply(this,d)}};c.prototype.destroy=function(){this.context.remove(this);this.group.remove(this);delete a[this.key]};c.prototype.disable=function(){this.enabled=false;return this};c.prototype.enable=function(){this.context.refresh();this.enabled=true;return this};c.prototype.next=function(){return this.group.next(this)};c.prototype.previous=function(){return this.group.previous(this)};c.invokeAll=function(g){var d=[];for(var h in a){d.push(a[h])}for(var f=0,e=d.length;fh.oldScroll;var l=n?h.forward:h.backward;for(var s in this.waypoints[i]){var r=this.waypoints[i][s];if(r.triggerPoint===null){continue}var q=h.oldScroll=r.triggerPoint;var k=q&&o;var j=!q&&!o;if(k||j){r.queueTrigger(l);p[r.group.id]=r.group}}}for(var m in p){p[m].flushTriggers()}this.oldScroll={x:g.horizontal.newScroll,y:g.vertical.newScroll}};a.prototype.innerHeight=function(){if(this.element==this.element.window){return f.viewportHeight()}return this.adapter.innerHeight()};a.prototype.remove=function(g){delete this.waypoints[g.axis][g.key];this.checkEmpty()};a.prototype.innerWidth=function(){if(this.element==this.element.window){return f.viewportWidth()}return this.adapter.innerWidth()};a.prototype.destroy=function(){var g=[];for(var h in this.waypoints){for(var l in this.waypoints[h]){g.push(this.waypoints[h][l])}}for(var k=0,j=g.length;k-1){g=Math.ceil(i.contextDimension*g/100)}}}k=i.contextScroll-i.contextOffset;v.triggerPoint=Math.floor(m+k-g);u=q=i.oldScroll;r=u&&p;s=!u&&!p;if(!n&&r){v.queueTrigger(i.backward);t[v.group.id]=v.group}else{if(!n&&s){v.queueTrigger(i.forward);t[v.group.id]=v.group}else{if(n&&i.oldScroll>=v.triggerPoint){v.queueTrigger(i.forward);t[v.group.id]=v.group}}}}}f.requestAnimationFrame(function(){for(var x in t){t[x].flushTriggers()}});return this};a.findOrCreateByElement=function(g){return a.findByElement(g)||new a(g)};a.refreshAll=function(){for(var g in b){b[g].refresh()}};a.findByElement=function(g){return b[g.waypointContextKey]};window.onload=function(){if(d){d()}a.refreshAll()};f.requestAnimationFrame=function(g){var h=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e;h.call(window,g)};f.Context=a}());(function(){function b(f,g){return f.triggerPoint-g.triggerPoint}function a(f,g){return g.triggerPoint-f.triggerPoint}var d={vertical:{},horizontal:{}};var e=window.Waypoint;function c(f){this.name=f.name;this.axis=f.axis;this.id=this.name+"-"+this.axis;this.waypoints=[];this.clearTriggerQueues();d[this.axis][this.name]=this}c.prototype.add=function(f){this.waypoints.push(f)};c.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}};c.prototype.flushTriggers=function(){for(var f in this.triggerQueues){var l=this.triggerQueues[f];var j=f==="up"||f==="left";l.sort(j?a:b);for(var h=0,g=l.length;h-1){this.waypoints.splice(f,1)}};c.prototype.first=function(){return this.waypoints[0]};c.prototype.last=function(){return this.waypoints[this.waypoints.length-1]};c.findOrCreate=function(f){return d[f.axis][f.name]||new c(f)};e.Group=c}());(function(){var a=window.jQuery;var c=window.Waypoint;function b(d){this.$element=a(d)}a.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(d,e){b.prototype[e]=function(){var f=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,f)}});a.each(["extend","inArray","isEmptyObject"],function(d,e){b[e]=a[e]});c.adapters.push({name:"jquery",Adapter:b});c.Adapter=b}());(function(){var b=window.Waypoint;function a(c){return function(){var e=[];var d=arguments[0];if(c.isFunction(arguments[0])){d=c.extend({},arguments[1]);d.handler=arguments[0]}this.each(function(){var f=c.extend({},d,{element:this});if(typeof f.context==="string"){f.context=c(this).closest(f.context)[0]}e.push(new b(f))});return e}}if(window.jQuery){window.jQuery.fn.waypoint=a(window.jQuery)}if(window.Zepto){window.Zepto.fn.waypoint=a(window.Zepto)}}());if(location.href.indexOf("ile:")<0){if(location.href.indexOf("ap")<0){}};