/**
 * 
 * credits for this plugin go to brandonaaron.net
 * 	
 * unfortunately his site is down
 * 
 * @param {Object} up
 * @param {Object} down
 * @param {Object} preventDefault
 */
jQuery.fn.extend({mousewheel:function(a,c,b){return this.hover(function(){jQuery.event.mousewheel.giveFocus(this,a,c,b)},function(){jQuery.event.mousewheel.removeFocus(this)})},mousewheeldown:function(b,a){return this.mousewheel(function(){},b,a)},mousewheelup:function(b,a){return this.mousewheel(b,function(){},a)},unmousewheel:function(){return this.each(function(){jQuery(this).unmouseover().unmouseout();jQuery.event.mousewheel.removeFocus(this)})},unmousewheeldown:jQuery.fn.unmousewheel,unmousewheelup:jQuery.fn.unmousewheel});jQuery.event.mousewheel={giveFocus:function(c,a,d,b){if(c._handleMousewheel){jQuery(c).unmousewheel()}if(b==window.undefined&&d&&d.constructor!=Function){b=d;d=null}c._handleMousewheel=function(e){if(!e){e=window.event}if(b){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}}var f=0;if(e.wheelDelta){f=e.wheelDelta/120;if(window.opera){f=-f}}else{if(e.detail){f=-e.detail/3}}if(a&&(f>0||!d)){a.apply(c,[e,f])}else{if(d&&f<0){d.apply(c,[e,f])}}};if(window.addEventListener){window.addEventListener("DOMMouseScroll",c._handleMousewheel,false)}window.onmousewheel=document.onmousewheel=c._handleMousewheel},removeFocus:function(a){if(!a._handleMousewheel){return}if(window.removeEventListener){window.removeEventListener("DOMMouseScroll",a._handleMousewheel,false)}window.onmousewheel=document.onmousewheel=null;a._handleMousewheel=null}};
