!function(t){t.fn.hoverIntent=function(e,n){var o={sensitivity:7,interval:100,timeout:0};o=t.extend(o,n?{over:e,out:n}:e);var r,i,u,v,s=function(t){r=t.pageX,i=t.pageY},a=function(e,n){if(n.hoverIntent_t=clearTimeout(n.hoverIntent_t),Math.abs(u-r)+Math.abs(v-i)<o.sensitivity)return t(n).unbind("mousemove",s),n.hoverIntent_s=1,o.over.apply(n,[e]);u=r,v=i,n.hoverIntent_t=setTimeout(function(){a(e,n)},o.interval)},h=function(e){for(var n=("mouseover"==e.type?e.fromElement:e.toElement)||e.relatedTarget;n&&n!=this;)try{n=n.parentNode}catch(e){n=this}if(n==this)return!1;var r=jQuery.extend({},e),i=this;i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),"mouseover"==e.type?(u=r.pageX,v=r.pageY,t(i).bind("mousemove",s),1!=i.hoverIntent_s&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},o.interval))):(t(i).unbind("mousemove",s),1==i.hoverIntent_s&&(i.hoverIntent_t=setTimeout(function(){!function(t,e){e.hoverIntent_t=clearTimeout(e.hoverIntent_t),e.hoverIntent_s=0,o.out.apply(e,[t])}(r,i)},o.timeout)))};return this.mouseover(h).mouseout(h)}}(jQuery);