function setupFadeLinks() {
  arrFadeLinks[0] = "";
  arrFadeTitles[0] = "Rhonda, thank you for your kind words... You always make my heart smile. I am so glad you moved to AZ... Lucky me and hundreds of others.  Peace";
  arrFadeLinks[1] = "";
  arrFadeTitles[1] = "I just wanted to let you know, that my daughter is REALLY in love with you.  She talks about you all the time.  Because she talks so highly of you, my son has fallen in love with you as well.  Desperately wants to get old enough to come to your classes!  Thanks";
  arrFadeLinks[2] = "";
  arrFadeTitles[2] = "Rhonda, my daughter did amazing tonight.  She’s come so far with your help and guidance.  I was so proud of her. Thanks for being such a great teacher – she absolutely adores you!";
  arrFadeLinks[3] = "";
  arrFadeTitles[3] = "Hello! First of all...Haley loves you!  She's so excited about everything!  We would like to do more private lessons. HillaRY";
  arrFadeLinks[4] = "";
  arrFadeTitles[4] = "Hello! We took my brother & nephew  & my mom & her husband out to eat  last nite.  Ty started getting antsy after he got bored w/ his mac & cheese.  I tapped my fork on his metal plate to the quarter/1/2 note/whole note song & he calmed right down; took his fork & started tapping away (it gave us another 5 'good' minutes ;) Erin";
  arrFadeLinks[5] = "";
  arrFadeTitles[5] = "Hello! Carina has absolutely LOVED your music class!!  I would like to continue classes with you. Carina has been walking around singing 'whole note, whole note'  It is amazing!! Marg";
  arrFadeLinks[6] = "";
  arrFadeTitles[6] = "Hi Rhonda! Here is the payment for my 2 year old's music class. Thanks for teaching the kids the love of music in such a fun way! Nann";
}

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

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

var m_iFadeInterval;

window.onload = Fadewl;

var arrFadeLinks;
var arrFadeTitles;
var arrFadeCursor = 0;
var arrFadeMax;

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

function setFadeLink() {
  var ilink = document.getElementById("fade_link");
  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 ((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)
  {
  }
}
