!function(a){function b(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=0,g=0;return b=a.event.fix(c),b.type="mousewheel",c.wheeldelta&&(e=c.wheeldelta/120),c.detail&&(e=-c.detail/3),g=e,void 0!==c.axis&&c.axis===c.horizontal_axis&&(g=0,f=-1*e),void 0!==c.wheeldeltay&&(g=c.wheeldeltay/120),void 0!==c.wheeldeltax&&(f=-1*c.wheeldeltax/120),d.unshift(b,e,f,g),(a.event.dispatch||a.event.handle).apply(this,d)}var c=["dommousescroll","mousewheel"];if(a.event.fixhooks)for(var d=c.length;d;)a.event.fixhooks[c[--d]]=a.event.mousehooks;a.event.special.mousewheel={setup:function(){if(this.addeventlistener)for(var a=c.length;a;)this.addeventlistener(c[--a],b,!1);else this.onmousewheel=b},teardown:function(){if(this.removeeventlistener)for(var a=c.length;a;)this.removeeventlistener(c[--a],b,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}(jquery);