(function($){
	$.fn.extend({
		minusAutoSlide : function(options){
			
			/*
			
			minus99.com - 2011
			
			*/
			
			var defaults = {
				speed : 600,
				pause: 5,
				width: 400
			};
			
			var options = $.extend(defaults, options);
			
			return this.each(function(){
				var o = options,
				obj = $(this),
				speed = o.speed,
				pause = o.pause,
				width = o.width;
				
				obj.append('<div class="floatFixer"></div><div class="timer"><div class="proceed"></div></div>');
				
				var bar = $('.proceed', obj), on = 0;
					
				function autoslide(){
					var next = Math.abs(on-1);
						
					obj.children('ul:eq('+on+')').animate({left: (-width)+'px'}, speed, function(){ obj.children('ul:eq('+on+')').css('left', width+'px'); on = next; });
					
					obj.children('ul:eq('+next+')').animate({left: '0px'}, speed, function(){ setTimeout(function(){autoslide();}, pause*1000); bar.animate({width:(bar.parent().width())+'px'}, pause*1000, function(){ bar.css('width', '1px'); }); });
				}
				autoslide();
			});
		}
	});
})(jQuery);
