(function($) {

$.fn.newsScroll = function(options) {
	
	return this.each(function() {	
	
		var
			$this = $(this), 
		  
			defaults = {
		  		speed: 400, 
		  		delay: 3000, 
		  		list_item_height: $this.children('div').outerHeight() 
	     	},
	     
			settings = $.extend({}, defaults, options); 
		 
		 
		 
			setInterval(function() {
	  	    	$this.children('div:first')
	  	    		.animate({ 
	  	    			marginTop : '-' + settings.list_item_height
	  	    		  	},
	  	    		   
	  	    		  	settings.speed,

	  	  				function() {
	  	 					$this
	  	 					  .children('div:first')
	  	 					  .appendTo($this)
	  	 					  .css('marginTop', 0) 
	  	 					  .fadeIn(300); 
	  	 					
  		 				}
 	 				); // end animate
			}, settings.delay); // end setInterval
	});
}

})(jQuery);
