(function(a){a.fn.hoverIntent=function(k,l){var c={sensitivity:7,interval:100,timeout:500};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);
/*
 * jQuery outside events - v1.1 - 3/16/2010
 * http://benalman.com/projects/jquery-outside-events-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function(c,a,b){c.map("click dblclick mousemove mousedown mouseup mouseover mouseout change select submit keydown keypress keyup".split(" "),function(e){d(e)});d("focusin","focus"+b);d("focusout","blur"+b);c.addOutsideEvent=d;function d(h,g){g=g||h+b;var i=c(),e=h+"."+g+"-special-event";c.event.special[g]={setup:function(){i=i.add(this);if(i.length===1){c(a).bind(e,f)}},teardown:function(){i=i.not(this);if(i.length===0){c(a).unbind(e)}},add:function(j){var k=j.handler;j.handler=function(m,l){m.target=l;k.apply(this,arguments)}}};function f(j){c(i).each(function(){var k=c(this);if(this!==j.target&&!k.has(j.target).length){k.triggerHandler(g,[j.target])}})}}})(jQuery,document,"outside");
