﻿var titles = new Array();
var quotes = new Array();

titles[0] = "<i>HR Compliance Manager</i><br />Fortune 500 Energy Company";
quotes[0] = "“the Pension Live solution is the only solution that made our team go WOW!”";
titles[1] = "<i>Controller and Treasurer</i><br />Pension Investment Management Company";
quotes[1] = "“Everyone agrees that we really like the Pension Live solution significantly more than the one we are trying to install from our current actuary.  We just don't feel comfortable using their calculator after seeing your more robust tool.”";

var quoteNum = quotes.length;
var hidQuote = document.getElementById("hid_quoteBlock");
var goQ = 0;

function loadQuote() {
    swapQuote(0);
    setInterval("swapQuote()", 10000);
}

function swapQuote() {
    var quoteBlock = document.getElementById("quoteBlock");
    var random = Math.floor(Math.random() * (quoteNum));

    quoteBlock.innerHTML = quotes[goQ] + "<h3>" + titles[goQ] + "</h3>";

    goQ++;
   
    if (goQ >= quoteNum) {
        goQ = "0";
    }

    
}
