
var headline_count;
var headline_interval;
var current_headline = 0;
var old_headline = -1;

$(document).ready(function() {
    headline_count = $('#reviews-list li').size();
    $('#quote0').css('display', 'block');
    headline_rotate();
    headline_interval = setInterval(headline_rotate,4000);
    $('#reviews-first').css('display', 'block');
});

function headline_rotate() {
    current_headline = (old_headline + 1) % headline_count;
    $('#quote' + old_headline ).fadeIn("slow", function() {
    $(this).css('display', 'none');
    });
    $('#quote' + current_headline ).fadeIn("slow");
    old_headline = current_headline;
    
}
