function robFacts() {
  arrFadeSongs[0] = " Rob will answer to Robbie, Robert, Bob, Bobby boy, and usually Hey You.";
  arrFadeSongs[1] = " Rob has met a few super stars in his day. For example <a href='http://www.rickspringfield.com/'>Mr. Rick Springfield</a> and <a href='http://www.extreme-band.com'>Nuno Bettencourt</a>. ";
  arrFadeSongs[2] = " Nobody puts Rob in the corner. "
  arrFadeSongs[3] = " Unlike a certain Beatle, Rob isn't afraid of the number 9. As long as a 6 is in front of it anyway. "
  arrFadeSongs[4] = "Favorite disney character:  LPeter Pan (It's OK peter, I still don't know what I want to be when I grow up either). "
  arrFadeSongs[5] = "Favorite movie:  Princess Bride. "
  arrFadeSongs[6] = "Favorite Quote: Miracle Max - 'Sonny, true love is the greatest thing, in the world-except for a nice MLT - mutton, lettuce and tomato sandwich, where the mutton is lean and the tomato is ripe [smacks his lips] they're so perky, I love that.'"
  arrFadeSongs[7] = "Another Favorite Quote: Dread Pirate Roberts:  'Good night, Westley. Good work. Sleep well. I'll most likely kill you in the morning.''"
}

// 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 = 2600;
var m_bFadeOut = true;

var m_iFadeInterval;

window.onload = Fadewl;

var arrFadeSongs;
var arrFadeCursor = 0;
var arrFadeMax;

function Fadewl() {
  m_iFadeInterval = setInterval(fade_ontimer, 20);
  arrFadeSongs = new Array();
  robFacts();
  arrFadeMax = arrFadeSongs.length-1;
  setFadeLink();
}

function setFadeLink() {
  var ilink = document.getElementById("fade_song");
  ilink.innerHTML = arrFadeSongs[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_song");
  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)
  {
  }
}


