﻿jQuery(document).ready(function() {
    var Questions = ["Looking to Relocate?", "Finished your Residency?"];
    // These are for the flashing questions
    jQuery("#flashingQuestions").text(Questions[Math.floor(Math.random() * Questions.length)]);

    recursiveQuestions();

    function recursiveQuestions() {
        jQuery("#flashingQuestions").fadeTo(1000, 0.01, function() {
            jQuery(this).text(Questions[Math.floor(Math.random() * Questions.length)]);
            jQuery(this).fadeTo(1000, 1, recursiveQuestions()).pause(3000);
        });
    }

});