
function setupFadeLinks() {
  arrFadeLinks[0] = "#";
  arrFadeTitles[0] = "In the beginning God created the heavens and the earth.  The earth was without form, and void; and darkness was on the face of the deep. And the Spirit of God was hovering over the face of the waters.<br><strong>Genesis 1:1-2</strong>";

  arrFadeLinks[1] = "#";
  arrFadeTitles[1] = "In the beginning was the Word, and the Word was with God, and the Word was God. He was in the beginning with God. All things were made through Him, and without Him nothing was made that was made.<br><strong>John 1:1-5</strong>";

  arrFadeLinks[2] = "#";
  arrFadeTitles[2] = "For when the Gentiles, which have not the law, do by nature the things contained in the law, these, having not the law, are a law unto themselves which shew the work of the law written in their hearts, their conscience also bearing witness, and their thoughts the mean while accusing or else excusing one another; because that which may be known of God is manifest in them; for God hath shewed it unto them. For the invisible things of him from the creation of the world are clearly seen, being understood by the things that are made, even his eternal power and Godhead; so that they are without excuse.<br><strong>Romans 2:14-20</strong>";

  arrFadeLinks[3] = "#";
  arrFadeTitles[3] = "The heavens declare the glory of God; and the firmament sheweth his handiwork. Day unto day uttereth speech, and night unto night sheweth knowledge. There is no speech nor language, where their voice is not heard.<br><strong>Psalm 19:1-3</strong>";

  arrFadeLinks[4] = "#";
  arrFadeTitles[4] = "Who knowing the judgment of God, that they which commit such things are worthy of death, not only do the same, but have pleasure in them that do them. Therefore thou art inexcusable, O man, whosoever thou art that judgest: for wherein thou judgest another, thou condemnest thyself; for thou that judgest doest the same things.<br><strong>Romans 1:32-2:1</strong>";

  arrFadeLinks[5] = "#";
  arrFadeTitles[5] = "For after that in the wisdom of God the world by wisdom knew not God, it pleased God by the foolishness of preaching to save them that believe. Which things also we speak, not in the words which man's wisdom teacheth, but which the Holy Ghost teacheth; comparing spiritual things with spiritual. But the natural man receiveth not the things of the Spirit of God: for they are foolishness unto him: neither can he know them, because they are spiritually discerned.<br><strong>1 Corinthians 1:21; 2:13-14</strong>";

  arrFadeLinks[6] = "#";
  arrFadeTitles[6] = "For whatsoever things were written aforetime were written for our learning, that we through patience and comfort of the scriptures might have hope.<br><strong>Romans 15:4</strong>";

  arrFadeLinks[7] = "#";
  arrFadeTitles[7] = "And that from a child thou hast known the holy scriptures, which are able to make thee wise unto salvation through faith which is in Christ Jesus.<br><strong>2 Timothy 3:15</strong>";

  arrFadeLinks[8] = "#";
  arrFadeTitles[8] = "God, who at sundry times and in divers manners spake in time past unto the fathers by the prophets, Hath in these last days spoken unto us by his Son, whom he hath appointed heir of all things, by whom also he made the worlds.<br><strong>Hebrews 1:1-2</strong></strong>";

  arrFadeLinks[9] = "#";
  arrFadeTitles[9] = "For I testify unto every man that heareth the words of the prophecy of this book, If any man shall add unto these things, God shall add unto him the plagues that are written in this book: And if any man shall take away from the words of the book of this prophecy, God shall take away his part out of the book of life, and out of the holy city, and from the things which are written in this book.<br><strong>Revelation 22:18-19</strong>";

  arrFadeLinks[10] = "#";
  arrFadeTitles[10] = "All scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness.<br><strong>2Timothy 3:16</strong>";

  arrFadeLinks[11] = "#";
  arrFadeTitles[11] = "For this cause also thank we God without ceasing, because, when ye received the word of God which ye heard of us, ye received it not as the word of men, but as it is in truth, the word of God, which effectually worketh also in you that believe.<br><strong>1 Timothy 2:13</strong>";








}

// You can also play with these variables to control fade speed, fade color, and how fast the colors jump.

var m_FadeOut = 225;
var m_FadeIn=0;
var m_Fade = 0;
var m_FadeStep = 1;
var m_FadeWait = 21600;
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, 40);
  arrFadeLinks = new Array();
  arrFadeTitles = new Array();
  setupFadeLinks();
  arrFadeMax = arrFadeLinks.length-1;
  setFadeLink();
}

function setFadeLink() {
  var ilink = document.getElementById("fade_link");
  ilink.innerHTML = arrFadeTitles[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)
  {
  }
}


