function johnFacts() {
  arrFadeSongs[0] = " Elise once dropped her chocolate into John's peanut butter on stage. What a mess.";
  arrFadeSongs[1] = " John isn't actually a member of the Cukes. But he such a nice guy we never had the nerve to tell him so.";
  arrFadeSongs[2] = "F Nobody puts John in the corner. "
  arrFadeSongs[3] = "F John is too sexy for his shirt, but he still wears it to give the rest of us a fighting chance."
  arrFadeSongs[4] = "Favorite Sesame Street Character:  Snuffalupagus"
  arrFadeSongs[5] = "Mary Ann or Ginger?  My wife (Webmaster Note: 'Did anyone else hear the sound of a whip cracking?') "
  arrFadeSongs[6] = "Favorite Movie Line:  (Napoleon Dynamite) - Last week, Japanese scientists explaced... placed explosive detonators at the bottom of Lake Loch Ness to blow Nessie out of the water. Sir Godfrey of the Nessie Alliance summoned the help of Scotland's local wizards to cast a protective spell over the lake and its local residents and all those who seek for the peaceful existence of our underwater ally."
  arrFadeSongs[7] = "Favorite Pakuni (chimpanzee-like cavemen):  Ta... No Sa. Wait I know Cha-Ka. "
}

// 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 = 3600;
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();
  johnFacts();
  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)
  {
  }
}


