(function($){
	$.fn.contentSlider = function(options){
		var defaults = {
				speed: 2000,
				duration: 6000
		};
		
		var config = $.extend(defaults, options);
		
		this.each(function() {
			
			var $this = $(this);
			
			var timer = window.setInterval(function(){
				$this.animate({left:"-400px"}, config.speed, function(){
					$this.css({left:"0px"}).children(":first").remove().appendTo($this);
				});
			}, config.duration);
		});
		
		return $this;
		
	};
})(jQuery);