(function($){
	$.fn.contentSlider = function(options){
		var defaults ={
			speed: 300,
			duration: 10000
		};
	var config = $.extend(defaults, options);
	
	this.each(function(){
					   	
			var $this = $(this);

			$this.wrap("<div class='slider'></div>");

			var timer = window.setInterval(function(){
				$this.animate({left: "-940px"}, config.speed, function(){
						$this.css({left:"0px"}).children(":first").remove().appendTo($this);
				});
			}, config.duration);
		});
		return this;		
	};
})(jQuery);