(function($){$.fn.jkick=function(options){var settings={vertical:false,duration:500};return $(this).each(function(){if(options){$.extend(settings,options);}var $this=$(this);var v=settings.vertical;var d=settings.duration;var $covers=$this.find(".mi-cover");var $content=$this.find(".mi-content");var vStyle=(v?"height":"width");var vSValue=(v?$covers.height():$covers.width());var vSValueMax=(v?$content.height():$content.width());var vSValueMin=vSValue-(vSValueMax-vSValue)/($covers.length-1);var aP={};var stopAnims=function(obj){$(obj).stop();$covers.not(obj).stop();};$covers.hover(function(){stopAnims(this);aP[""+vStyle]=vSValueMax;$(this).animate( aP,d);aP[""+vStyle]=vSValueMin;$covers.not(this).animate(aP, d);},function(){stopAnims(this);aP[""+vStyle]=vSValue;$(this).animate(aP,d);$covers.not(this).animate(aP, d);});});};})(jQuery);
