(function(e){e.fn.hoverIntent=function(l,m){var d={sensitivity:7,interval:100,timeout:0};d=e.extend(d,m?{over:l,out:m}:l);var g,h,i,j;function k(b){g=b.pageX;h=b.pageY}function n(b,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,[b])}else{i=g;j=h;a.hoverIntent_t=setTimeout(function(){n(b,a)},d.interval)}}function p(b,a){a.hoverIntent_t=clearTimeout(a.hoverIntent_t);a.hoverIntent_s=0;return d.out.apply(a,
[b])}function o(b){for(var a=(b.type=="mouseover"?b.fromElement:b.toElement)||b.relatedTarget;a&&a!=this;)try{a=a.parentNode}catch(q){a=this}if(a==this)return false;var f=jQuery.extend({},b),c=this;if(c.hoverIntent_t)c.hoverIntent_t=clearTimeout(c.hoverIntent_t);if(b.type=="mouseover"){i=f.pageX;j=f.pageY;e(c).bind("mousemove",k);if(c.hoverIntent_s!=1)c.hoverIntent_t=setTimeout(function(){n(f,c)},d.interval)}else{e(c).unbind("mousemove",k);if(c.hoverIntent_s==1)c.hoverIntent_t=setTimeout(function(){p(f,
c)},d.timeout)}}return this.mouseover(o).mouseout(o)}})(jQuery);
