function setupFadeLinks() {
  arrFadeLinks[0] = "what_people_say.html";
  arrFadeTitles[0] = "We had engaged the services of Arvind Nanda from Growth Enablers for taking up the Policy Deployment initiatives at TVSICS for the Year 2010-11 and are extremely thankful for his efforts in streamlining the process. We had a very unstructured process, and thanks to Arvind’s efforts we could put a structure to the same and could see the value of systematically articulating and...<br><br>– <b>Vinay Agarwal.</b>";
  arrFadeLinks[1] = "what_people_say.html";
  arrFadeTitles[1] = "I have known Arvind, since the time he joined as a colleague at Anand in 2003. There have been opportunities since then not only to work closely with him as a member of the corporate team, but also to know him personally and socially. As the Head of Corporate Strategy deployment for the entire Group companies, and later as the COO of Gabriel India’s engine bearing business, Arvind...<br><br>– <b>Deepak Chopra</b>";
  arrFadeLinks[2] = "what_people_say.html";
  arrFadeTitles[2] = "When Arvind joined us as an engineer-trainee in 1976, Punjab Tractors were a young company manufacturing the 100% Indian Swaraj tractor based on its own design and production technology. Pitting against the best of global brand-names largely assembling CKD kits imported from their parent units was a formidable challenge. For an R&D led company, cut-throat competition posed new...<br><br>– <b>Chandra Mohan.</b>";
  arrFadeLinks[3] = "what_people_say.html";
  arrFadeTitles[3] = "Arvind and I have known each other since 1978.  We have stayed in regular touch even after he left Chandigarh in 1988.  As colleagues, we were close. To me, what has always stood out is Arvind’s sense of balance and value, patience in dealing with people and nurturing relationships, as well as keenness to learn and try new things. Last three years, we have again been in...<br><br>– <b>P. Sivaram.</b>";
  arrFadeLinks[4] = "what_people_say.html";
  arrFadeTitles[4] = "I have known Arvind for nearly three decades, having been a colleague in early eighties. Being one of the first techno- professional managers I came across early in my own career, I keenly followed the career path of Arvind and am glad to say I followed the right person. His progression as a professional par excellence is evident from the various challenging corporate roles he has played...<br><br>– <b>Rajinder Sharma.</b>";
  arrFadeLinks[5] = "what_people_say.html";
  arrFadeTitles[5] = "I have known Arvind for close to 6 years now, though much more closely in the recent years since the time he chose to move out of a single dedicated corporate role to being on his own as a Management Consultant. Given Arvind’s exceptional track record of having driven business excellence and leadership role in the various senior management positions he has been entrusted with, I personally...<br><br>– <b>Anupam Thareja.</b>";
}

var m_FadeOut = 255;
var m_FadeIn = 0;
var m_Fade = 0;
var m_FadeStep = 3;
var m_FadeWait = 3000;
var m_bFadeOut = false;

var m_iFadeInterval;

//window.onload = Fadewl; - called this on Index _Page load

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)
  {
  }
}
