current_offset = 0;

function start_animation(){
	var next_offset = current_offset + 1;
	var current_display_quote = jQuery('#quote_' + current_offset + ', #quoter_' + current_offset);
	var next_display_quote = jQuery('#quote_' + next_offset + ', #quoter_' + next_offset);
	if(next_display_quote.length == 0){
		next_offset = 0;
		next_display_quote = jQuery('#quote_0, #quoter_0');
	}
	
	current_display_quote.fadeOut('slow', function(){
			next_display_quote.fadeIn('slow');
		});
	
	current_offset = next_offset;
	//setTimeout("start_animation(" + next_offset + ")",1250);
}

window.onload = function(){
	setInterval("start_animation()",7000);
};
