function setupFadeLinks() {
  arrFadeLinks[0] = "";
  arrFadeTitles[0] = "\"I appreciate so much your help last Friday! The appraisal was taken care of and it is in my dashboard!! WOW!!!<br><br>Thank you for staying late and for expediting that whole encounter! We couldn't have done it without you! You're the best!\"<br><br>Lila - PRMI";
  arrFadeLinks[1] = "";
  arrFadeTitles[1] = "\"You are amazing. Thanks so much!\"<br><br>Milika-- Envision Lending Group";
  arrFadeLinks[2] = "";
  arrFadeTitles[2] = "\"GREAT SERVICE!!!\"<br><br>Brian-Castle & Cooke";
  arrFadeLinks[3] = "";
  arrFadeTitles[3] = "\"Thank you both so much for being so quick and efficient!  This is our first file with you and we are very impressed with your customer service and want to send a lot more files to you!<br><br>Thanks again!\"<br><br>Erin-Front Range Mortgage";
  arrFadeLinks[4] = "";
  arrFadeTitles[4] = "\"I greatly appreciate all your help.  It makes all the difference.\"<br><br>Jim Z";
  arrFadeLinks[5] = "";
  arrFadeTitles[5] = "\"Your company is AWESOME. Thanks for the quick response.\"<br><br>Daniel Zlockie";
  arrFadeLinks[6] = "";
  arrFadeTitles[6] = "\"Great work. We got the report back in less than 24hours. \"<br><br>Devin T. Brown";
  arrFadeLinks[7] = "";
  arrFadeTitles[7] = "\"..thanks for awesome response..great job!!!\"<br><br>S. Jensen";
  arrFadeLinks[8] = "";
  arrFadeTitles[8] = "\"Your firm is the best I have dealt with and you appear to want quality appraisals/appraisers which I personally believe will set your company as one of the best.\"<br><br>D. Meyer";
arrFadeLinks[9] = "";
  arrFadeTitles[9] = "\"I love the way your system is organized... I love that I can get pretty much as many orders as I can handle. You guys are grrreat!\" <br><br>Appraiser- R. Fish";
  arrFadeLinks[10] = "";
  arrFadeTitles[10] = "\"You guys are the best. Thank you\" <br><br>K.G.";
  arrFadeLinks[11] = "";
  arrFadeTitles[11] = "\"Thanks...!!!! For the speedy turnaround...much regards...\" <br><br>Tony C";
  arrFadeLinks[12] = "";
  arrFadeTitles[12] = "\"Wanted to let you know ... Debby stayed late last night to help us with an urgent situation.  The final 1004D was not quite right.  She contacted the appraiser and resolved it before she left. Because of her help we were able to get a loan funded this morning that desperately needed to be funded (house was going to auction at 11 a.m. today).  We really appreciate that kind of service!!!\" <br><br>T. Evans";
  arrFadeLinks[13] = "";
  arrFadeTitles[13] = "\"AMC Links...you are by far the best AMC out there.\" <br><br>W. Terry - Certified Appraiser";
  arrFadeLinks[14] = "";
  arrFadeTitles[14] = "\"...I am pleased to work for a company that takes communication and hard work seriously. It has been a pleasure working with all of you at AMCLINKS and I hope to continue the relationship we have formed for as long as possible.\" <br><br>Appraiser D. Demuro";
  arrFadeLinks[15] = "";
  arrFadeTitles[15] = "\"You displayed amazing customer service. You answered all my messages immediately - I can't tell you how much I appreciate that. Thank you for keeping our BORROWER at the forefront in helping me get this done & consequently CLOSED! You did a great job for me! Thanks!\" <br><br>Andrea O";
   arrFadeLinks[16] = "";
  arrFadeTitles[16] = "\"AmcLinks is a wonderful company to work with.  Thank you for the continued business and the wonderful praises.\" <br><br>David D";

   arrFadeLinks[17] = "";
  arrFadeTitles[17] = "\"I have had very good customer relations experience with your group and appreciate working with you guys.\" <br><br>John H";
   arrFadeLinks[18] = "";
  arrFadeTitles[18] = "\"I am one of your appraisers in Ga. I just want to take a minute to tell you that after working for other AMC'S, your company is the very best. If you ever need a reference please send them to me. I am thankful for your company and proud to be one of your appraisers. Keep up the good work!\" <br><br>Greg W";
   arrFadeLinks[19] = "";
  arrFadeTitles[19] = "\"By the way, you are the most professional AMC I have ever worked with.  This experience so far has been incredible.  I usually don't like this way of doing business, but if more companies like yours were out there this would not be so hard on all of us (appraisers) who were use to working on their own. You have not pressured me in any way and I love that and have given me the time I need to produce a credible report. I hope to work with you again soon.\" <br><br>D. Pollack - Appraiser";
}

// You can also play with these variables to control fade speed, fade color, and how fast the colors jump.

var m_FadeOut = 0;
var m_FadeIn=255;
var m_Fade = 0;
var m_FadeStep = 3;
var m_FadeWait = 11000;
var m_bFadeOut = true;

var m_iFadeInterval;

window.onload = Fadewl;

var arrFadeLinks;
var arrFadeTitles;
var arrFadeCursor =Math.floor(Math.random()*19);
var arrFadeMax;

function Fadewl() {
  m_iFadeInterval = setInterval(fade_ontimer, 10);
  arrFadeLinks = new Array();
  arrFadeTitles = new Array();
  setupFadeLinks();
  arrFadeMax = arrFadeLinks.length-1;
  setFadeLink();
}

function setFadeLink() {
  var ilink = document.getElementById("fade_link");
  if (ilink!=null)
  {
  ilink.innerHTML = arrFadeTitles[arrFadeCursor];
  ilink.href = arrFadeLinks[arrFadeCursor];
}
}

function fade_ontimer() {
  if (m_bFadeOut) {
    m_Fade-=m_FadeStep;
    if (m_Fade<m_FadeOut) {
      arrFadeCursor++;
      if (arrFadeCursor>arrFadeMax)
        arrFadeCursor=0;
      setFadeLink();
      m_bFadeOut = false;
    }
  } else {
    m_Fade+=m_FadeStep;
    if (m_Fade>m_FadeIn) {
      clearInterval(m_iFadeInterval);
      setTimeout(Faderesume, m_FadeWait);
      m_bFadeOut=true;
    }
  }
  var ilink = document.getElementById("fade_link");
  if (ilink!=null)
  {
  if ((m_Fade>m_FadeOut)&&(m_Fade<m_FadeIn))
    ilink.style.color = "#" + ToHex(m_Fade);
}
}

function Faderesume() {
  m_iFadeInterval = setInterval(fade_ontimer, 10);
}

function ToHex(strValue) {
  try {
    var result= (parseInt(strValue).toString(16));

    while (result.length !=2)
            result= ("0" +result);
    result = result + result + result;
    return result.toUpperCase();
  }
  catch(e)
  {
  }
}




