
function setupFadeLinks() {
  arrFadeLinks[0] = "http://www.printnw.net";
  arrFadeTitles[0] = "&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>";
  arrFadeLinks[1] = "http://www.printnw.net";
  arrFadeTitles[1] = "Print NW is  always looking for ways to deliver the expert quality<br>and creative solutions I need to run my business.<br><i>Maurice Searles, Print NW Customer</i><br>&nbsp;<br>";
  arrFadeLinks[2] = "http://www.printnw.net";
  arrFadeTitles[2] = "Print NW is always so helpful and great to work with, especially with all of my short turn projects. They always some through! They make it easy for me and I really appreciate it.<br><i>Heather Prenevost, Print NW Customer</i><br>&nbsp;<br>";
  arrFadeLinks[3] = "http://www.printnw.net";
  arrFadeTitles[3] = "I can discuss my job with my rep and receive recommendations on paper<br>as well as ideas on how to improve it. Love, love, LOVE PrintNW!<br><i>Nicole Polen, Print NW Customer</i><br>&nbsp;<br>";
  arrFadeLinks[4] = "http://www.printnw.net";
  arrFadeTitles[4] = "Our Annual Report is a 4-color document using different papers - our primary marketing tool - we need it to look its best and PrintNW provides what we need to make it a success.<br><i>Wendy Reed, Print NW Customer</i><br>&nbsp;<br>";
  arrFadeLinks[5] = "http://www.printnw.net";
  arrFadeTitles[5] = "Print NW is very professional. If they quote a price, they stay with it. If they promise a date, they deliver. Quality is reliable, communications are sensible. They're great.<br><i>Maggie Keech, Print NW Customer</i><br>&nbsp;<br>";
  arrFadeLinks[6] = "http://www.printnw.net";
  arrFadeTitles[6] = "Print NW provides us with personal, fast, efficient service<br>on each and every project.<br><i>Stacy Bush, Print NW Customer<br>&nbsp;<br></i>";
  arrFadeLinks[7] = "http://www.printnw.net";
  arrFadeTitles[7] = "PrintNW has provided excellent service for a variety of Tacoma Goodwill needs.<br>We look forward to working with PrintNW on other projects.<br><i>Wendy Reed, Print NW Customer</i><br>&nbsp;<br>";
  arrFadeLinks[8] = "http://www.printnw.net";
  arrFadeTitles[8] = "Print NW provides high quality work and fantastic customer service. They've helped with a variety of printing needs including last minute orders. They're a company that I count on!<br><i>Carol Reid, Print NW Customer</i><br>&nbsp;<br>";
  arrFadeLinks[9] = "http://www.printnw.net";
  arrFadeTitles[9] = "PrintNW has been fantastic to work with. Not only do they print the highest quality, the turn time is exceptional. The service is with a smile and you feel like the most important client.<br><i>Nicole Polen, Print NW Customer</i><br>&nbsp;<br>";
  arrFadeLinks[10] = "http://www.printnw.net";
  arrFadeTitles[10] = "PrintNW has provided excellent service for a variety of Tacoma Goodwill needs.<br>They've been there with reasonable prices and excellent customer service.<br><i>Wendy Reed, Print NW Customer</i><br>&nbsp;<br>";
}

// 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 = 8000;
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];
}

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)
  {
  }
}


