(function(a){a.extend({ahover:{version:1,defaults:{toggleSpeed:75,toggleEffect:"both",hoverEffect:null,moveSpeed:250,easing:"swing",className:"ahover"},effects:{width:{width:0},height:{height:0},both:{width:0,height:0}}}});a.fn.extend({ahover:function(b){var b=a.extend({},a.ahover.defaults,b);var d=((typeof b.toggleEffect=="string")?a.ahover.effects[b.toggleEffect]:b.toggleEffect);var c=this.offsetParent();return this.hover(function(j){var k=a(this);var i={width:k.outerWidth(),height:k.outerHeight()};var n=k.offset();var f=c.offset();var l=a("div."+b.className,c).stop();var h=(l.length==0);if(h){l=a("<div>&nbsp;</div>").addClass(b.className).appendTo(c).css(i)}var g={left:n.left-f.left-(l.outerWidth()-l.width())/2,top:n.top-f.top-(l.outerHeight()-l.height())/2};if(h){l.css(g).css(d).animate(i,{queue:false,duration:b.toggleSpeed,easing:b.easing})}else{var m=a.extend({},i,g);l.animate(m,{queue:false,duration:b.moveSpeed,easing:b.easing})}if(a.isFunction(b.hoverEffect)){l.queue(b.hoverEffect)}},function(f){a("div."+b.className,c).animate(d,{queue:false,duration:b.toggleSpeed,easing:b.easing,complete:function(){a(this).remove()}})})}})})(jQuery);