jQuery(document).ready(function(){
	active = $('#streamer_jquery div.streamer_jquery_item:first'); // Initiate the 'showing' variable as the first rotating_item
	active.siblings('div.streamer_jquery_item').hide(); // Hide all other rotating_items

	setTimeout("show_next_rotating_item(active)", 5000); // Set the rotate time to 5 seconds

});

// The below function repeatedly gets called, to do the rotating
function show_next_rotating_item(active){
	
	$('#streamer_jquery div.streamer_jquery_item:visible').fadeOut('slow');                     

	var next_rotating_item = $('#streamer_jquery div.streamer_jquery_item:visible').next();
		new_index = $('#streamer_jquery div.streamer_jquery_item').index($('#streamer_jquery div.streamer_jquery_item:visible').next());

		if(!next_rotating_item.attr('class'))
			next_rotating_item = $('#streamer_jquery div.streamer_jquery_item:first');
	
	next_rotating_item.fadeIn(1600);
	
	active = next_rotating_item;  
		
	current_index = new_index;       
	
	setTimeout("show_next_rotating_item(active)", 5000); // Set the rotate time to 5 seconds
}
