
/***********************************************
* Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var delay = 6000; //set delay between message change (in miliseconds)
var maxsteps=50; // number of steps to take to change from start color to endcolor
var stepdelay=50; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(255,255,255); // start color (red, green, blue)
var endcolor=new Array(0,0,0); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div style="font: normal 16px Times; padding: 10px;  line-height: 1.15; color:#000066;">'; //set opening tag, such as font declarations
fcontent[0]="<em><img height=10 src=\"images/quote_open.gif\" width=14 align=left border=0>Mark communicates with the customer while service is taking place, and follows up to assure the customer is satisfied. I have refered other's to him and am thankful this service is available.<img height=10 src=\"images/quote_close.gif\" width=14 border=0></em><br><br><div align=right class=scroller>- Bill Ashbury <br>Carlsbad, CA</div>";
fcontent[1]="<em><img height=10 src=\"images/quote_open.gif\" width=14 align=left border=0>You were honest, knew just what to do to get the fix, and you did it quickly and efficiently. Thanks soooo much! The price is right, and the service is great, and I will recommend you to anyone...<img height=10 src=\"images/quote_close.gif\" width=14 border=0></em><br><br><div align=right class=scroller>- Paula Leanues <br>Ypsilanti, MI</div>";
fcontent[2]="<em><img height=10 src=\"images/quote_open.gif\" width=14 align=left border=0>On behalf of my mother and her 'sick' computer, thank you so much for your services today. We will be keeping your contact info on file and will be glad to refer your services when the opportunity arises.<img height=10 src=\"images/quote_close.gif\" width=14 border=0></b></em><br><br><div align=right class=scroller>- Jude Ockenfels<br>Design CAD & Graphic Services, LLC<br>Tucson, AZ</div>";
fcontent[3]="<em><img height=10 src=\"images/quote_open.gif\" width=14 align=left border=0>I can't tell you how impressed I am with your service! I called 3 different online services, including Geek Squad, and their quotes were 3 times your price... I was impressed by your patient, and kind customer service; your quick grasp of the problem and your immediate action.<img height=10 src=\"images/quote_close.gif\" width=14 border=0></em><br><br><div align=right class=scroller>- Virginia Pothier<br>Menomonee Falls, WI</div>";
fcontent[4]="<em><img height=10 src=\"images/quote_open.gif\" width=14 align=left border=0>I got a virus yesterday that totally took over my computer! I called Dell, McAfee, Best Buy and other computer companies... I was about to give up and reformat my hard drive when I came across Mark's company. He fixed my computer in a couple of hours... He is my hero!<img height=10 src=\"images/quote_close.gif\" width=14 border=0></em><br><br><div align=right class=scroller>- Ellen Westerdale<br>Coral Springs, FL</div>";
fcontent[5]="<em><img height=10 src=\"images/quote_open.gif\" width=14 align=left border=0>It was a pleasure to work with a man who is honest as well as competent. You analyzed and cleaned up my computer quickly and did so with a congenial and personal manner that made me very comfortable with you at all times. Thanks for the great job!!<img height=10 src=\"images/quote_close.gif\" width=14 border=0></em><br><br><div align=right class=scroller>- Burch Carr<br>Rock Hill, SC</div>";
fcontent[6]="<em><img height=10 src=\"images/quote_open.gif\" width=14 align=left border=0>Mark moved quickly. All steps were explained in a language I could understand. The computer is back up and in my grandson's hands. Thanks Mark!<img height=10 src=\"images/quote_close.gif\" width=14 border=0></em><br><br><div align=right class=scroller>- Ed Fuchs<br>Houston, TX</div>";
fcontent[7]="<em><img height=10 src=\"images/quote_open.gif\" width=14 align=left border=0>Thanks for tuning my computer. It looks like it's firing on all cylinders now. WOW!!!!!! GREAT JOB!!!<img height=10 src=\"images/quote_close.gif\" width=14 border=0></em><br><br><div align=right class=scroller>- Kevin Mahoney<br>Oldsmar,Fl</div>";
fcontent[8]="<em><img height=10 src=\"images/quote_open.gif\" width=14 align=left border=0>Simply put, Mark rocks!! He was able to dissect my issue in a very short period of time.<img height=10 src=\"images/quote_close.gif\" width=14 border=0></em><br><br><div align=right class=scroller>- Gary Madden<br>Cincinnati,OH</div>";
fcontent[9]="<em><img height=10 src=\"images/quote_open.gif\" width=14 align=left border=0>I had spent over 10 hours trying various fixes... Mark was able to access my computer, identify the problem, fix it and verify the success of the repair in about an hour. <img height=10 src=\"images/quote_close.gif\" width=14 border=0></em><br><br><div align=right class=scroller>- Frank S.<br>Tennessee</div>";
fcontent[10]="<em><img height=10 src=\"images/quote_open.gif\" width=14 align=left border=0>Thank You so much for helping me with my computer issues, You were fast in your response time in helping me and I am very impatient when it comes to computers.<img height=10 src=\"images/quote_close.gif\" width=14 border=0></em><br><br><div align=right class=scroller>- Barbara Preciado<br>Gilroy,CA</div>";
closetag='</div>';

var fwidth='190px'; //set scroller width
var fheight=''; //set scroller height

var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

///No need to edit below this line/////////////////


var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;


/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
  if (index>=fcontent.length)
    index=0
  if (DOM2){
    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    if (fadelinks)
      linkcolorchange(1);
    colorfade(1, 15);
  }
  else if (ie4)
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  index++
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange(step){
  var obj=document.getElementById("fscroller").getElementsByTagName("A");
  if (obj.length>0){
    for (i=0;i<obj.length;i++)
      obj[i].style.color=getstepcolor(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
  if(step<=maxsteps) {	
    document.getElementById("fscroller").style.color=getstepcolor(step);
    if (fadelinks)
      linkcolorchange(step);
    step++;
    fadecounter=setTimeout("colorfade("+step+")",stepdelay);
  }else{
    clearTimeout(fadecounter);
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    setTimeout("changecontent()", delay);
	
  }   
}

/*Rafael Raposo's new function*/
function getstepcolor(step) {
  var diff
  var newcolor=new Array(3);
  for(var i=0;i<3;i++) {
    diff = (startcolor[i]-endcolor[i]);
    if(diff > 0) {
      newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
    } else {
      newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
    }
  }
  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}

if (ie4||DOM2)
  document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+'"></div>');

if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent


