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