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