//jquery.textscroll.js
//author: necudeco@necudeco.com
//Web : http://necudeco.com

jQuery.fn.textscroll = function(text_options)
{	
	text_default = {
		every:5000,
		child:"li"
	}
	text_options = jQuery.extend(text_default , text_options);
	container = this;
	text_current=0;
	text_old=0;
	text_count	 = $(text_options.child,container).size();
	text_rotate = function()
	{
		text_current = (text_old + 1) % text_count;
		$(text_options.child+":eq(" + text_old + ")",container).hide("slow");
		$(text_options.child+":eq(" + text_current + ")",container).show("slow");
		text_old = text_current;
	}
	$(text_options.child,container).hide();
	text_rotate();
	interval = setInterval(text_rotate,text_options.every);
};