function setupFadeLinks() {
  arrFadeLinks[0] = "";
  arrFadeTitles[0] = "<img src=quote3.jpg border=0 /> - Nancy<br />\"It's wonderful to work for someone who treats you with respect, kindness and appreciation. Oasis can really relate to the nurse, and that makes all the difference. I hope you take the opportunity to work for such a WONDERFUL employer.\"";
  arrFadeLinks[1] = "";
  arrFadeTitles[1] = "<img src=quote2.jpg border=0 /> - Anna<br />\"I have worked for dozens of agencies and I have never been treated so professionally. I got the best contract, the best wages and always an on-time and correct amount in my paycheck. I wouldn't work anywhere else!\"";
  arrFadeLinks[2] = "";
  arrFadeTitles[2] = "<img src=quote1.jpg border=0 />  - John<br />\"Oasis makes me feel as if we all work \'together\' as a team and that I have  control of my employment! That kind of freedom and flexibility is priceless with a small child. Professionally, the benefits provided are great!\"";
  arrFadeLinks[3] = "";
  arrFadeTitles[3] = "<img src=quote5.jpg border=0 /> - Sharon<br />\"I just wanted to send you a note to thank you for the great opportunity you have provided for me and other RN's! Also, to tell you how excited I am to be a part of Oasis Nurses!\"";
  arrFadeLinks[4] = "";
  arrFadeTitles[4] = "<img src=quote4.jpg border=0 /> - Jennifer<br />\"Working with you has made so many positive changes in my life. I truly feel appreciated and valued (haven't felt that in many years)! And, I love nursing again!\"";
}

// You can also play with these variables to control fade speed, fade color, and how fast the colors jump.

var m_FadeOut = 240;
var m_FadeIn= 0;
var m_Fade = 0;
var m_FadeStep = 0.6;
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, 10);
  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]; */ //creates links
}

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)
  {
  }
}
