﻿var testnames = [
            "Ray Long",
            "Cassie Salinas",
            "Frank Pyles",
            "Debbie Fitcher",
            "Vinny Nguyen",
            "Doug Brown",
            "The Lestinas",
            "The Lopezi Family",
            "Annette Grunow",
            "Donna Roddy",
            "The Patenas",
            "Christine Baker",
            "John Feaster",
            "Rochele James",
        ];

var testlocations = [
            " ",
            " ",
            " ",
            " ",
            " ",
            " ",
            " ",
            " ",
            " ",
            " ",
            " ",
            " ",
            " ",
            " ",
        ];

var testquotes = [
            "&ldquo;I truly felt represented and not simply another customer. It is refreshing to know there are still people out there who provide customer service and take pride in their work.&rdquo;",
            "&ldquo;I just wanted to take a minute to thank you for your awesome service. I have never come across a lender who has been so informative and on top of their game.&rdquo;",
            "&ldquo;You have been incredible to work with! I appreciate not only your quick turnaround, but also your constant communication.&rdquo;",
            "&ldquo;You gave us the confidence and trust to know that we were being taken care of and that you had our best interest at heart.&rdquo;",
            "&ldquo;Your follow-up and constant updates were remarkable. For every question I asked, you had the answer. I am looking forward to doing business with you again soon.&rdquo;",
            "&ldquo;Thank you for watching out for us, and all of the hard work you did to make this happen. We couldn’t have accomplished this without you.&rdquo;",
            "&ldquo;What is usually a long drawn-out procedure was made quick and painless. Your timely updates and constant communication was outstanding.&rdquo;",
            "&ldquo;Thanks you for all of your help during the loan process. Your hard work and dedication paid off in the end and enabled us to get into our new home.&rdquo;",
            "&ldquo;There are really no words to adequately express how grateful I am. There were many hurdles to overcome, but you persisted and made my refinance possible.&rdquo;",
            "&ldquo;You went above and beyond to meet my needs. There are no words to express our gratitude and appreciation.&rdquo;",
            "&ldquo;Your willingness to accommodate our schedules and continuously keeping us informed of where we were in the process was outstanding.&rdquo;",
            "&ldquo;You have no idea what you have done for me, and my family. You are incredible people and I consider you more than just my lender; I consider you my friends.&rdquo;",
            "&ldquo;You did not make it seem like I was just a number or commission, but someone you were genuinely concerned to see get his first home.&rdquo;",
            "&ldquo;Thank you very much for all of your help with the closing of our Beautiful Home. We are so blessed we had you supporting us during this process. You are so awesome.&rdquo;",
        ];

var testindex = -1;

$(document).ready(function () {
    $("#testimonial").click(function (event) {
        $(this).fadeTo(2000, 0.0, function () {
            if (testindex < 13) { testindex++; } else { testindex = 0; }
            /*
            testimonial = [testnames[testindex], testlocations[testindex], testquotes[testindex]];
            $('#testimonialquote').html(testimonial[2]);
            $('#testimonialname').html(testimonial[0]);
            $('#testimoniallocation').html(testimonial[1]);*/

            
            $('#testimonialquote').html(testquotes[testindex]);
            $('#testimonialname').html(testnames[testindex]);
            $('#testimoniallocation').html(testlocations[testindex]);

        });
        $(this).fadeTo(2000, 1.0);
    });
});

var intervalID = window.setInterval(fadeTestimonial, 10000);
function fadeTestimonial() {
    $("#testimonial").click();
}

