var quote_count;
var quote_interval;
var current_quote = 0;
var old_quote = 0;

	$(document).ready(function(){
  		quote_count = $("div.praise").size();
  			$("div.praise:eq(" + current_quote + ")").css('top','7px');
  
  			quote_interval = setInterval(quote_rotate,7000); //time in milliseconds
  			/*$('#scrollUp').hover(function() {
    			clearInterval(headline_interval);
  			},
  			
  			function() {
    		headline_interval = setInterval(headline_rotate,5000); //time in milliseconds
    		headline_rotate();
  				});*/
			});

			function quote_rotate() {
  				current_quote = (old_quote + 1) % quote_count;
  				$("div.praise:eq(" + old_quote + ")").animate({top: -30},"slow", function() {
    			$(this).css('top','30px');
   			 });
  			$("div.praise:eq(" + current_quote + ")").show().animate({top: 7},"slow");  
  			old_quote = current_quote;
			}