
<!-- 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 setupFadeTitles() {
  arrFadeTitles[0] = "...very patient, understanding, so considerate and not pushing...";
  arrFadeTitles[1] = "...It was a great pleasure working with you...";
  arrFadeTitles[2] = "...looking forward to working with you in a future time..., Elly of Cedar Grove";
  arrFadeTitles[3] = "...Thank you so much for helping us sell our old house...";
  arrFadeTitles[4] = "...You get an A+ for a job well done...";
  arrFadeTitles[5] = "...We feel that you are a part of our family..., Laura and Leigh of Little Falls";
  arrFadeTitles[6] = "...Steve has all the qualities one wants in an agent...";
  arrFadeTitles[7] = "...constantly made us feel that our needs and comfort were his top priority...";
  arrFadeTitles[8] = "...we never had any difficulty in getting in touch with him...";
  arrFadeTitles[9] = "...always very accessible and willing to talk to us..., Carolyn of West Paterson";
  arrFadeTitles[10]= "...Steve went to great lengths to answer all of our questions...";
  arrFadeTitles[11]= "...went above and beyond to make sure that we were comfortable...";
  arrFadeTitles[12]= "...and understood everything at every step...";
  arrFadeTitles[13]= "...Throughout our association, he remained pleasant and professional..."
  arrFadeTitles[14]= "...had an energetic enthusiasm for our property..., Carolyn of West Paterson";
  arrFadeTitles[15]= "...His effectiveness as a salesman is unquestionable...";
  arrFadeTitles[16]= "...He was able to sell our property within a week of listing with him!...";
  arrFadeTitles[17]= "...We would not hesitate at all to recommend Steve's services..., Carolyn of West Paterson";
  arrFadeTitles[18]= "...Thanks for doing such a terriffic job and doing so much on our behalf..., Fernando of North Hawthorne";
  arrFadeTitles[19]= "...We just wanted to tell you what a pleasure it's been working with you...";
  arrFadeTitles[20]= "...We really appreciate you being with us every step of the way during this experience...";
  arrFadeTitles[21]= "...[We] would certainly not hesitate to recommend you fully to anyone..., Steve and Stacey of Haledon";
  arrFadeTitles[22]= "...thank you for all of your efforts in helping us find our dream home!... ";
  arrFadeTitles[23]= "...You really did go the extra mile for us, even after we moved in and needed your assistance,... ";
  arrFadeTitles[24]= "...Thanks to you, our transition into our new home was a smooth and easy one...";
  arrFadeTitles[25]= "...A+ for a job well done...";
  arrFadeTitles[26]= "...highly recommend you to all family and friends!!, Kash and Jabeen, Montville";
}

// 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 = 3000;
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();
  setupFadeTitles();
  arrFadeMax = arrFadeTitles.length-1;
  setFadeTitle();
}

function setFadeTitle() {
  var ilink = document.getElementById("fade_title");
  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;
      setFadeTitle();
      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_title");
  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)
  {
  }
}

