﻿var valueStatements = ["<strong>Accountability</strong><br/><i>We are responsible for the outcome of our customer’s experience.</i>",
"<strong>Results Driven</strong><br/><i>We are determined to exceed our customer’s goals.</i>",
"<strong>Caring</strong><br/><i>We display kindness and respect to each person we serve.</i>",
"<strong>Integrity</strong><br/><i>We focus first on what’s right for our customers.</i>",
"<strong>Adaptability</strong><br/><i>We embrace change to be of better service to our customers.</i>"
];


var statementIndex = -1;
$(document).ready(function () {
    $("#spnValue").click(function (event) {
        $(this).fadeTo(2000, 0.0, function () {
            if (statementIndex < 5) { statementIndex++; } else { statementIndex = 0; }
            $('#spnValue').html(valueStatements[statementIndex]);

        });
        $(this).fadeTo(2000, 1.0);
    });
});

var intervalID = window.setInterval(fadeTestimonial, 8000);
function fadeTestimonial() {
    $("#spnValue").click();
}

