function setupFadeLinks() {
  arrFadeLinks[0] = "javascript:openit('hr.html')";
  arrFadeTitles[0] = "\"WOW!!!\"";
  arrFadeLinks[1] = "javascript:openit('hr.html')";
  arrFadeTitles[1] = "\"Very enlightening! Has started some discussions around here!\"";
  arrFadeLinks[2] = "javascript:openit('hr.html')";
  arrFadeTitles[2] = "\"It opened a whole new door on the Holy Bible that I read and believe in\"";
  arrFadeLinks[3] = "javascript:openit('hr.html')";
  arrFadeTitles[2] = "\"This has changed my life\"";
  arrFadeLinks[3] = "javascript:openit('hr.html')";
  arrFadeTitles[3] = "\"I plan to use this DVD for teaching of Sunday school\"";
  arrFadeLinks[4] = "javascript:openit('hr.html')";
  arrFadeTitles[4] = "\"I was thoroughly blessed by this video and I want to be able to share it with others\"";
  arrFadeLinks[5] = "javascript:openit('hr.html')";
  arrFadeTitles[5] = "\"This is some of the info I been searching for...\"";
  arrFadeLinks[6] = "javascript:openit('hr.html')";
  arrFadeTitles[6] = "\I found this very informative and liberating, thank you.\"";
  arrFadeLinks[7] = "javascript:openit('hr.html')";
  arrFadeTitles[7] = "\"You have made the Holy Bible come to light in a wonderful new way for me.\"";
  arrFadeLinks[8] = "javascript:openit('hr.html')";
  arrFadeTitles[8] = "\"This information is so enlightening, I love it.  Thank you.\"";
  arrFadeLinks[9] = "javascript:openit('hr.html')";
  arrFadeTitles[9] = "\"WONDERFUL & scholarly RESEARCH\"";
  arrFadeLinks[10] = "javascript:openit('hr.html')";
  arrFadeTitles[10] = "\"Great study tool\"";
  arrFadeLinks[11] = "javascript:openit('hr.html')";
  arrFadeTitles[11] = "\"Awesome presentation\"";
  arrFadeLinks[12] = "javascript:openit('hr.html')";
  arrFadeTitles[12] = "\"It has been invaluable to us on our new walk.\"";
  arrFadeLinks[13] = "javascript:openit('hr.html')";
  arrFadeTitles[13] = "\"A wealth of information\"";
  arrFadeLinks[14] = "javascript:openit('hr.html')";
  arrFadeTitles[14] = "\"This is awesome!\"";
  arrFadeLinks[16] = "javascript:openit('hr.html')";
  arrFadeTitles[16] = "\"Excellent video that we need to share with others\"";
  arrFadeLinks[17] = "javascript:openit('hr.html')";
  arrFadeTitles[17] = "\"Very clearly explained\"";
  arrFadeLinks[18] = "javascript:openit('hr.html')";
  arrFadeTitles[18] = "\"Very good teaching. I will share this with friends.\"";
  arrFadeLinks[19] = "javascript:openit('hr.html')";
  arrFadeTitles[19] = "\"Insightful\"";
  arrFadeLinks[20] = "javascript:openit('hr.html')";
  arrFadeTitles[20] = "\"Been watching this and studying it with another family. Awesome!\"";
  arrFadeLinks[21] = "javascript:openit('hr.html')";
  arrFadeTitles[21] = "\"Very interesting and informative\"";
  arrFadeLinks[22] = "javascript:openit('hr.html')";
  arrFadeTitles[22] = "\"Very enlightening and well documented.\"";
  arrFadeLinks[23] = "javascript:openit('hr.html')";
  arrFadeTitles[23] = "\"When I saw this video I just could not stop watching it\"";
  arrFadeLinks[24] = "javascript:openit('hr.html')";
  arrFadeTitles[24] = "\"This is what I've been looking for. I want to know more\"";
  arrFadeLinks[25] = "javascript:openit('hr.html')";
  arrFadeTitles[25] = "\"Well done! HalleluYAH! Thank you so much for freely sharing the truth!\"";
  arrFadeLinks[26] = "javascript:openit('hr.html')";
  arrFadeTitles[26] = "\"Very Good Presentation.\"";
  arrFadeLinks[27] = "javascript:openit('hr.html')";
  arrFadeTitles[27] = "\"Excellent material.\"";
  arrFadeLinks[28] = "javascript:openit('hr.html')";
  arrFadeTitles[28] = "\"What I have heard is very amazing...\"";
  arrFadeLinks[29] = "javascript:openit('hr.html')";
  arrFadeTitles[29] = "\"Awesome and Amazing, Thank you for the truth from an almost obsessive truth seeker.\"";
  arrFadeLinks[30] = "javascript:openit('hr.html')";
  arrFadeTitles[30] = "\"Awesome information on your website. It has helped me out alot. Thank you!!\"";
  arrFadeLinks[31] = "javascript:openit('hr.html')";
  arrFadeTitles[31] = "\"This is the most comprehensive DVD that I've seen and I'm only half way through.\"";
  arrFadeLinks[32] = "javascript:openit('hr.html')";
  arrFadeTitles[32] = "\"I love it, and I would love to show my friends.\"";
  arrFadeLinks[33] = "javascript:openit('hr.html')";
  arrFadeTitles[33] = "\"Great Presentation and love it.\"";
  arrFadeLinks[34] = "javascript:openit('hr.html')";
  arrFadeTitles[34] = "\"I LOVE IT!!!!!!!!!!!!!!!!!!!!!! THE WORD!!!!!!!!!!!\"";
  arrFadeLinks[35] = "javascript:openit('hr.html')";
  arrFadeTitles[35] = "\"We love your Hebrew understandings and are trying to tell others.\"";
  arrFadeLinks[36] = "javascript:openit('hr.html')";
  arrFadeTitles[36] = "\"This opens my eyes to so much. Thank you.\"";
  arrFadeLinks[37] = "javascript:openit('hr.html')";
  arrFadeTitles[37] = "\"Want to be able to study it more. You express my life long feelings.\"";
  arrFadeLinks[38] = "javascript:openit('hr.html')";
  arrFadeTitles[38] = "\"Wow!  Greatly enjoyed!\"";
  arrFadeLinks[39] = "javascript:openit('hr.html')";
  arrFadeTitles[39] = "\"We viewed your DVD last night (loaned to us by a friend), and thought it was wonderful.\"";
  

  
}

// 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, 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)
  {
  }
}
