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