
<!-- Paste this code into an external JavaScript file named: marquee.js  -->

function setupFadeLinks() {
  arrFadeTitles[0] = "<em>\"Dragonfly repeatedly delivers top quality both 2D/3D illustrations, to specification, on time, no fuzz\"</em><br/>Еivind Nаg, <a id=\"testimonials_div_href\" href=\"http://384293.notlong.com/\">АDsign Rеklаmеbyr&aring; AS</a>";
  arrFadeTitles[1] = "<em>\"Saber has been working with Dragon-Fly for over 3 years now. Whenever we need game artwork  done quickly and reliably we can always count on Dragon-Fly to deliver.     Their expertise in both 3d and 2d art for next generation games have made them one of Saber's most reliable and professional outsourcing partners.\"</em><br/>Matthew Karch, CEO of <a id=\"testimonials_div_href\" href=\"http://www.saber3d.com/\">Saber Interactive</a>";
  arrFadeTitles[2] = "<em>\"Great job, really, really fantastic. The level you raised the quality to on the rougher pencilled pages has been phenomenal, the colouring work for every page outstanding, and I'm really glad to have had the opportunity to work with you.\"</em><br/>Matt Jones, Project manager of <a id=\"testimonials_div_href\" href=\"http://www.silkwormstudio.com.au\">Silkworm Studio</a>";
  arrFadeTitles[3] = "<em>\"Dragon-Fly has been instrumental to the development of Orb Runner. In addition to on-time delivery of high-quality concept art and final assets, they have provided needed guidance of the artistic vision of Orb Runner. Dragon-Fly obviously takes pride in a job well done putting them above and beyond the average contractor.\"</em><br/><div id=\"testimonials_div_href\">Ernest Woo, Founder of WooGames</div>";

}

// 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 = 10000;
var m_bFadeOut = true;

var m_iFadeInterval;

window.onload = Fadewl;

var arrFadeTitles;
var arrFadeCursor = 0;
var arrFadeMax;

function Fadewl() {
  m_iFadeInterval = setInterval(fade_ontimer, 10);
  arrFadeTitles = new Array();
  setupFadeLinks();
  arrFadeMax = arrFadeTitles.length-1;
  setFadeLink();
}

function setFadeLink() {
  var ilink = document.getElementById("testimonials_div");
  ilink.innerHTML = arrFadeTitles[arrFadeCursor];
  var ilink2 = document.getElementById("testimonials_div_href");
  ilink2.style.color = "#" + ToHex(255);
}

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("testimonials_div");
  var ilink2 = document.getElementById("testimonials_div_href");
  if ((m_Fade<m_FadeOut)&&(m_Fade>m_FadeIn)) {
    ilink.style.color = "#" + ToHex(m_Fade);
    ilink2.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)
  {
  }
}

