/*
Fading Scroller - By Allchorn Design
http://www.adesign.co.za/
*/

var arrContent = new Array(3);

for (i=0; i < 3; i++){
  arrContent[i] = new Array(3);
}

arrContent[0][0] = "'Vince, you are a wizard with words.  The pen is in your hand and you write my story'";
arrContent[0][1] = "Dilana Howell<br />Going4Gold Wealth Creation";
arrContent[0][2] = 5;

arrContent[1][0] = "'Vince has an insight that makes him write the quality copy that we, and our clients, demand.  He not only listens and understands, he really <q>gets</q> what we want. I'd happily recommend Vince to anyone.'";
arrContent[1][1] = "Willem van Ryswyk<br />Calligraph Design";
arrContent[1][2] = 10;

arrContent[2][0] = "'<b>Vince has been an absolute pleasure to work with</b>, his enthusiasm and professional input has been of real value to my business.  It is evident that copywriting and out-the-box thinking is Vince’s core competency, which results in optimized content and increased sales.'";
arrContent[2][1] = "Moshe Adir<br />Clickology Interactive";
arrContent[2][2] = 10;

var index = 0;
var arrLength = arrContent.length - 1;
var sText;
var sName;
var sDelay;

function initVars(){
  sText = arrContent[index][0];
  sName = arrContent[index][1];
  sDelay = arrContent[index][2];
}

function startClock(){ 
   
  if(sDelay > 0){
    sDelay = sDelay - 1;
    document.getElementById("testText").innerHTML = sText;
    document.getElementById("testName").innerHTML = "<b>" + sName + "</b>";

    setTimeout("startClock()", 1000);
  }
  else{   
    if(index == arrLength){
      colorfade();
      index = 0;
      initVars();
      startClock();
    }
    else{
      colorfade();
      index++;
      initVars();
      startClock();
    }
  }
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

frame=20;
hex=255  // Initial color value.

function colorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex-=12; // increase color value
document.getElementById("testText").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
document.getElementById("testName").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("colorfade()",20);	
}
else{
document.getElementById("testText").style.color="rgb(0,0,0)";
document.getElementById("testName").style.color="rgb(0,0,0)";
frame=20;
hex=255
}   
}