(function(a){a.fn.jKwick=function(b){b=a.extend({min:0,max:0,mid:0,speed:150,easing:"linear"},b||{});var c=a("ul",this),d=a("li",c),e=d.length,f=null,g=null,h=true,i=false,j=function(){};d.hover(function(){if(!i){i=true;g=a(this);if(h){g.animate({width:b.max},b.speed);d.not(this).animate({width:b.min},b.speed,function(){f=g;h=i=false})}else{var c=g.width(),e=f.width();g.animate({width:b.max},{duration:b.speed,easing:b.easing,step:function(a){f.width(Math.ceil(e-(a-c)))},complete:function(){f=g;i=false}})}}},j);c.hover(j,function(){})}})(jQuery)
