(function(a){a.fn.oSlider=function(b){var b=a.extend({},a.fn.oSlider.defaults,b);return this.each(function(){$wrapper=a('<div class="oslider wrap" />');$obj=a(this);$wrapper.css({width:$obj.width()+"px",height:$obj.height()+"px"});$obj.css({width:"15000px",position:"absolute"}).wrap($wrapper);setTimeout("$.fn.oSlider.nextImg($obj)",a.fn.oSlider.defaults.delay)})};a.fn.oSlider.defaults={duration:500,delay:3000};a.fn.oSlider.nextImg=function(b){$obj=a(b);$currImg=$obj.find("img:first");$obj.animate({left:"-"+$currImg.width()+"px"},{duration:a.fn.oSlider.defaults.duration,complete:function(){$obj.css("left","0");var c=$currImg.clone();c.appendTo($obj);$currImg.remove();setTimeout("$.fn.oSlider.nextImg($obj)",a.fn.oSlider.defaults.delay)}})}})(jQuery);
