(function($) {
	$.fn.superCycle = function(options) {
	  var defaults = {
	    tag: 'p',
	    length:4000
	  };
	  // Extend our default options with those provided.
	  var opts = $.extend(defaults, options);

	  // Get a list of supplied tags
	  return this.each(function(){

	  	var tags = $(opts.tag,this);
		var len  = tags.size();
		var current = 0;

		// Hide all tags
		tags.hide();

		function fade()
		{
			tags.eq(current).fadeIn(opts.length/4);
			tags.eq(current).animate({opacity: 1.0}, opts.length/2);
 			tags.eq(current).fadeOut(opts.length/4);

 			current++;

 			if(current == len)
 			{
 				current = 0;
 			}

 			setTimeout(fade,opts.length);

		}

		fade();

	  });

	};
})(jQuery);