(function(e){e.fn.hoverIntent=function(f,l){var d={sensitivity:7,interval:100,timeout:0};d=e.extend(d,l?{over:f,out:l}:f);var g,h,i,j,k=function(c){g=c.pageX;h=c.pageY},m=function(c,a){a.hoverIntent_t=clearTimeout(a.hoverIntent_t);if(Math.abs(i-g)+Math.abs(j-h)<d.sensitivity){e(a).unbind("mousemove",k);a.hoverIntent_s=1;return d.over.apply(a,[c])}else{i=g;j=h;a.hoverIntent_t=setTimeout(function(){m(c,a)},d.interval)}},n=function(c,a){a.hoverIntent_t=clearTimeout(a.hoverIntent_t);a.hoverIntent_s=0;
return d.out.apply(a,[c])};f=function(c){var a=jQuery.extend({},c),b=this;if(b.hoverIntent_t)b.hoverIntent_t=clearTimeout(b.hoverIntent_t);if(c.type=="mouseenter"){i=a.pageX;j=a.pageY;e(b).bind("mousemove",k);if(b.hoverIntent_s!=1)b.hoverIntent_t=setTimeout(function(){m(a,b)},d.interval)}else{e(b).unbind("mousemove",k);if(b.hoverIntent_s==1)b.hoverIntent_t=setTimeout(function(){n(a,b)},d.timeout)}};return this.bind("mouseenter",f).bind("mouseleave",f)}})(jQuery);

