(function($, $$){
	
	$$ = $.fn.rotate = function(options) {
		var index = 0,
			$items = $(this), 
			options = $.extend({},$$.options, options);
				
		function bang() {		
			$items.eq(index)
				.animate(options.hide, options.speed, function(){
					index = $items[index + 1] ? index + 1 : 0;
					$(this).hide();
					$items.eq(index)
						.show()
						.animate(options.show, options.speed, function(){
							setTimeout(bang, options.delay);
						})
					.end(); 
				})
			.end();
		}
		
		setTimeout(bang, options.delay);
		
		return this.css(options.hide).eq(0).css(options.show).end();
	};
	
	$$.options = {
		delay: 10000,
		speed: 1000,
		show: { opacity: 0.999 },
		hide: { opacity: 0.001 }
	}


})(jQuery);
