function postQuote(){
    if (typeof postQuote.testimonials == 'undefined' || postQuote.testimonials.length == 0) {
        postQuote.testimonials = [
            {author:' Whitney W.', quote:'I have actually enjoyed using BibleMesh more than I enjoyed using my Old Testament textbook. It went deeper into the characters and the theology than the textbook did.'},
            {author:' Sarah H.', quote:'I learned so much more using BibleMesh because I was able to interact with the material more.'},
            {author:' Will M.', quote:'The videos are incredibly well-made and ultra-informative, as well as solid in their theology.'},
            {author:' Mallory G.', quote:'I wasn\'t bored with having to engage the material. I am a very visual learner, so the way BibleMesh presented the information was great.'},
            {author:' Taylor W.', quote:'BibleMesh\'s interactive learning platform is a great way to study the biblical story from start to finish. I have been impressed by the high level of quality teaching available through BibleMesh.'}
        ];
    }

    var selected = Math.floor(Math.random()*postQuote.testimonials.length);
    $('div.testimonials').find('p.quote').html(postQuote.testimonials[selected].quote).end()
                         .find('p.author').html('&mdash;'+postQuote.testimonials[selected].author);

    postQuote.testimonials.splice(selected, 1);
}

$(document).ready(function(){
    postQuote();
    window.setInterval('postQuote();', 7000);
});

