!function(r){"use strict";document;r.event.special.swipe=r.event.special.swipe||{scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var n=r(this);n.bind("touchstart",function(e){var t,i=e.originalEvent.touches?e.originalEvent.touches[0]:e,s={time:(new Date).getTime(),coords:[i.pageX,i.pageY],origin:r(e.target)};function o(e){if(s){var i=e.originalEvent.touches?e.originalEvent.touches[0]:e;t={time:(new Date).getTime(),coords:[i.pageX,i.pageY]},Math.abs(s.coords[0]-t.coords[0])>r.event.special.swipe.scrollSupressionThreshold&&e.preventDefault()}}n.bind("touchmove",o).one("touchend",function(e){n.unbind("touchmove",o),s&&t&&t.time-s.timer.event.special.swipe.horizontalDistanceThreshold&&Math.abs(s.coords[1]-t.coords[1])t.coords[0]?"swipeleft":"swiperight"),s=t=void 0})})}},r.event.special.swipeleft=r.event.special.swipeleft||{setup:function(){r(this).bind("swipe",r.noop)}},r.event.special.swiperight=r.event.special.swiperight||r.event.special.swipeleft}(jQuery);