var Quotes = [
    "Really...is that all you're charging me?",
    "Please pass along a big thank you to your team.",
    "Your team really did a nice job of getting things up and running in a very short time span.",
    "Your team was much more responsive and easier to work with than a traditional panel company and was a welcome change from the norm.",
    "This is a miracle and why we like to work with you!",
    "I appreciate all of your help.",
    "I particularly wanted to mention that I really appreciate you guys going above and beyond for us on this one.",
    "Often we will hear from other partners that when they are out of sample that we are out of luck.",
    "I felt that your team really tried to find alternatives to help us finish finding those last few...we really appreciate that!",
    "Fantastic!",
    "Thank you so much!",
    "This is a load off my mind.",
    "Thank you for helping us with such enthusiasm.",
    "It is rare to see such pleasant and polite people like your team in the research world!",
    "I think you guys are a great fit for more and more jobs.",
    "I'm glad to see we're better able to meet our clients' needs by working with EMI."
];

var curQuoteIdx = Math.floor(Math.random() * Quotes.length); // Start the quote cycle at a random location

$(document).ready(function () {
    rotateQuote();
    $("#quoteCntnr").fadeIn();
    $("#quoteFooterCntnr").fadeIn();
    setInterval("rotateQuote()", 6000);
});

rotateQuote = function () {
    curQuoteIdx = (curQuoteIdx + 1) % Quotes.length;
    $("#quote").fadeOut(function () {
        $("#quote").text('"' + Quotes[curQuoteIdx] + '"');
        $("#quote").fadeIn();
    });
    $("#quoteFooter").fadeOut(function () {
        $("#quoteFooter").text('"' + Quotes[curQuoteIdx] + '"');
        $("#quoteFooter").fadeIn();
    });
}
