function setupFadeLinks() {
  arrFadeTitles[0] = "Air Knife Packaged System consists of Air Knife System Components like Air Knife, Blowers, Pipe & fittings and mounting stand.All these are mounted on a stand and preconnected. Mounting of Air Knife is so, that it allows positioning of Air Knife in all possible directions including angular adjustment. This will ensure Air Knife can be positioned properly for most profiles and sites of products. Stand and fittings can be made in M.S. With plating or painting or in 304 or 316 S.S. as per application demand.";
  arrFadeLinks[1] = "#";
  arrFadeTitles[1] = "<u>Salient Features of such systems are:</u> <br>1. Ready to use stand alone, preconnected and pre-mounted unit<br>2. Standard construction will meet requirements on most applications, If required, Custom made unit can be provided<br>3. Can be shifted to any production line on demand";
  arrFadeLinks[2] = "#";
  arrFadeTitles[2] = "4. Ease of Maintenance (on site or away from site) without down time or disturbance to production line.<br>5. No mountings or modifications required on existing conveyor or production lines.";
  
}

// You can also play with these variables to control fade speed, fade color, and how fast the colors jump.

var m_FadeOut = 5;
var m_FadeIn=0;
var m_Fade = 0;
var m_FadeStep = 3;
var m_FadeWait = 12000;
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)
  {
  }
}
