var bind=function(t,e){return function(){return t.apply(e,arguments)}};!function(t,e,n,i){var s;return s=function(){function n(e,n){this.changeTo=bind(this.changeTo,this),this.addClickEvents=bind(this.addClickEvents,this),this.options=t.extend({},this.defaults,n),this.$el=t(e),this.current=this.options.current,this.items=this.$el.find(this.options.items),this.thumbs=this.$el.find(this.options.thumbs),this.thumbs.eq(this.current).addClass(this.options.selected),this.options.onSwitch.call(void 0,this.items.eq(this.current)),this.addClickEvents()}return n.prototype.defaults={thumbs:".thumbs",attr:"n",current:0,items:".items",next:".next",prev:".prev",speed:1,selected:"selected",directional:!0,onStart:function(){},onSwitch:function(){},onEnd:function(){}},n.prototype.addClickEvents=function(){return this.thumbs.click(function(e){return function(n){var i,s;return s=Number(t(n.target).attr(e.options.attr)),s!==e.current?(i=s>e.current?1:-1,e.changeTo(s,i)):void 0}}(this)),this.$el.find(this.options.next).click(function(t){return function(e){var n;return n=t.current,n++,n===t.items.length&&(n=0),t.changeTo(n,1)}}(this)),this.$el.find(this.options.prev).click(function(t){return function(e){var n;return n=t.current,n--,0>n&&(n=t.items.length-1),t.changeTo(n,-1)}}(this)),this.items.swipe({swipeLeft:function(t){return function(){return t.$el.find(t.options.next).trigger("click")}}(this),swipeRight:function(t){return function(){return t.$el.find(t.options.prev).trigger("click")}}(this)})},n.prototype.changeTo=function(t,n){var i,s;return 1!==n&&this.options.directional?(s="200%",i="-100%"):(s="-100%",i="200%"),this.options.onStart.call(void 0,this.items.eq(this.current)),e.to(this.items.eq(this.current),this.options.speed,{left:s,onComplete:function(n){return function(){return n.items.eq(n.current).attr("style","").hide(),n.thumbs.eq(n.current).removeClass(n.options.selected),n.current=t,n.thumbs.eq(n.current).addClass(n.options.selected),n.options.onSwitch.call(void 0,n.items.eq(n.current)),e.from(n.items.eq(n.current),n.options.speed,{left:i,onComplete:function(){return n.options.onEnd.call(void 0,n.items.eq(n.current)),n.items.eq(n.current).attr("style","").show()}}),n.items.eq(n.current).show()}}(this)})},n}(),t.fn.extend({PressKitSlideShow:function(e){return this.each(function(){return t(this).data("PressKitSlideShow",new s(this,e))})}})}(jQuery,TweenLite,window,document);