
<!-- Paste this code into an external JavaScript file named: marquee.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Mike Hudson :: http://www.afrozeus.com */

function setupFadeLinks() {
	
  arrFadeLinks[0] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[0] = "&quot;an excellent job ... we are very happy and impressed with the quality of the work.&quot;";
  
  arrFadeLinks[1] = " http://www.cumberlandellis.com";
  
  arrFadeTitles[1] = "&quot;our requirements were listened to and the documentation drafted accordingly ... No time was wasted&quot;";
  
  arrFadeLinks[2] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[2] = "&quot;We only needed to say things once and the job would be done and done well.&quot;";
  
  arrFadeLinks[3] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[3] = " &quot;We felt Cumberland Ellis was part of our team during the process ... always available to discuss matters with and to support us.&quot;";
  
  arrFadeLinks[4] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[4] = "&quot;always in control of the agenda ... I was particularly reassured by the wide ranging knowledge and skills and willingness to fill in for my lack of resources.&quot;";
  
    arrFadeLinks[5] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[5] = "&quot;Your advice has again proved to be of great value.&quot;";
  
    arrFadeLinks[6] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[6] = "&quot;Thank you very much for your help and support with this one.  Top result&quot;";
  
    arrFadeLinks[7] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[7] = "&quot;We are very grateful for your effective action which produced such swift results&quot;";
  
    arrFadeLinks[8] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[8] = "&quot;I must compliment your tenacity and that of the team you assigned the transaction ... I felt valued as an individual all through the process and certainly &quot;looked-out for&quot;";
  
    arrFadeLinks[9] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[9] = "&quot;A thoroughly professional approach to a double transaction that was by no means straightforward.&quot;";
  
    arrFadeLinks[10] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[10] = "&quot;you richly deserve tremendous applause ... I don&quot;t think we&quot;d be here now if we hadn&quot;t had such a formidable team with us.&quot;";
  
      arrFadeLinks[11] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[11] = "&quot;It has been quite an experience, which you have helped to make bearable, but also a pleasure to work with you...&quot;";
  
      arrFadeLinks[12] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[12] = "&quot;I feel vindicated for the first time in a few years.  Wonderful feeling!&quot;";
  
      arrFadeLinks[13] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[13] = "&quot;Thank you for your support and wise counsel.&quot;";
  
      arrFadeLinks[14] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[14] = "&quot;Thank you for your support and advice at this difficult time&quot;";
  
      arrFadeLinks[15] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[15] = "&quot;Your advice has been invaluable to our family and for our future&quot;";
  
  arrFadeLinks[16] = "http://www.cumberlandellis.com";
  
  arrFadeTitles[16] = "&quot;Cumberland Ellis advised us in the most professional manner ... they are very client focused and able to respond speedily when addressing complex matters of law&quot;";
  

}

// 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 = 1;
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)
  {
  }
}
