var myquotes = new Array(
        '&ldquo;Quite hilarious and true! Anyone struggling with a diet should read it.&rdquo; <span>Robin C. from NJ</span>',
        '&ldquo;Irresistible!&rdquo; <span>Ellen A. from NJ</span>',
        '&ldquo;I loved it!&rdquo; <span>Gloria S. from NJ</span>',
        '&ldquo;Comic relief in your quest to weigh less.&rdquo; <span>Diet-blog.com</span>',
        '&ldquo;True and funny, I could swear the book was based on my life!&rdquo; <span>Susan G. from NY</span>',
        '&ldquo;If you&lsquo;re looking to put down your calorie counter or your latest diet book...&rdquo; <span>Dietsinreview.com</span>'
        // Leave the last quote without a comma at the end
        );
 
function rotatequote()
{
        thequote = myquotes.shift(); //Pull the top one
        myquotes.push(thequote); //And add it back to the end
       
        document.getElementById('quotetext').innerHTML = thequote;
        // This rotates the quote every X seconds.
        // (the number of seconds you want) * 1000
        t=setTimeout("rotatequote()",5000);
}
 

