(function($) {
	$.fn.rotate = function(time) {
		var container = $(this);
		var total = container.find("div").size();
		var current = Math.round(Math.random() * (total - 1));
		var i = setInterval(function() {
			if (current >= total) current = 0;
			container.find("div").filter(":eq("+current+")").fadeIn("slow").end().not(":eq("+current+")").fadeOut("slow");
			current++;
		}, time);
		return container;
	};
})(jQuery);

