﻿var quotes = new Array(
    '"Great Northern Services, Inc. consultants were very knowledgeable and had a good idea of the source of the problem when I first contacted them."',
    '"The services provided were excellent, and the consultants were very dedicated to the project at hand and efficiently worked to solve the problem."',
    '"Without Great Northern Services, Inc.\'s support, I would NOT be able to maintain the level of efficiency and reliability that I presently enjoy and this would not fare well with my customers and managers."',
    '"The service and follow up provided exceeded my expectations and response was quick and courteous."',
    '"They were responsive to our needs, understood the critical nature of our system, documented observations before, during and after the project, and communicated the progress of the project as it was implemented, all in the time frame I expected."',
    '"When your technology needs call for comprehensive planning, implementation, and support that gets the job done right the first time, I recommend that you call on Great Northern Services."',
    '"We do not accept anything less than excellence; Great Northern Services, Inc. has demonstrated their commitment to excellence."');

var sources = new Array(
    '-Carmen Sminesvik, Great Lakes Aquarium',
    '-Cloquet Public Schools',
    '-Martin Garofalo, Kimberly-Clark Corporation',
    '-Greg Parish, Reinhart Food Services',
    '-Marv Bodie, St. Louis County',
    '-Mike Liikala, Western Lake Superior Sanitary District',
    '-Clark Averill, St. Lukes Hospital');

var t1 = 0xEB;
var t2 = 0xE9;
var t3 = 0xC1;

function rotatequote() {
    thequote = quotes.shift();
    thesource = sources.shift();
    quotes.push(thequote);
    sources.push(thesource);

    document.getElementById('quotetext').innerHTML = thequote;
    document.getElementById('quotesource').innerHTML = thesource;

}

function fadeOut() {

    if (t1 > 0x39 || t2 > 0x33 || t3 > 0x9B) {
        if (t1 > 0x39) t1--;
        if (t2 > 0x33) t2--;
        if (t3 > 0x9B) t3--;

        document.getElementById('quote').style.color = "rgb(" + t1 + "," + t2 + "," + t3 + ")";
        setTimeout("fadeOut()", 20);
    }
    else {
        rotatequote();
        fadeIn();
    }

}

function fadeIn() {

    if (t1 < 0xEB || t2 < 0xE9 || t3 < 0xC1) {
        if (t1 < 0xEB) t1++;
        if (t2 < 0xE9) t2++;
        if (t3 < 0xC1) t3++;

        document.getElementById('quote').style.color = "rgb(" + t1 + "," + t2 + "," + t3 + ")";
        t = setTimeout("fadeIn()", 20);
    }
    else setTimeout("fadeOut()", 20000);

}
