/*
Fading Scroller- By DynamicDrive.com
For full source code, 100's more DHTML scripts, and TOS,
visit http://www.dynamicdrive.com
*/

var delay=6000 //set delay between message change (in miliseconds)
var fcontent=new Array()
begintag='<font face="verdana" size=2>' //set opening tag, such as font declarations
fcontent[0]="I cannot say enough about your product and the drastic change it made to my vehicle; which is also the same reason I am purchasing it again. <br /><br /><strong>- <em>Jon Krajci</em></strong>"
fcontent[1]="Again thank you for making such a wonderful product, I followed the instructions that it came with and it worked like a charm. <br /><br /><strong>- <em>Jon Krajci</em></strong>"
fcontent[2]="The kit you guys have is remarkable! I love it. The calipers stand out and look AWESOME! <br /><br /><strong>- <em>Ben Lewis</em></strong>"
fcontent[3]="the color was so vivid, shiny and smooth. I didn't want to put my wheels back on!!! <br /><br /><strong>- <em>Pat N Colagreco</em></strong>"
fcontent[4]="I just used your G2 Red Caliper Paint Kit on my 2001 Porsche Boxster, and <strong>love the results!</strong><br /><br /> Your paint kit makes my calipers look just as good or <strong>BETTER</strong> than the factory Porsche red brakes! <br /><br />This is a terrific product. <strong>Thanks guys!</strong><br /><br /><strong>- <em>Rich Dalanayac</em></strong>"
fcontent[5]="I really love your paint system.<br /><br /> I have used it twice now on my <strong>2001 Lexus ES300</strong> and on my <strong>2001 Lexus GS300</strong>.<br /><br />It really does give the most professional look and lasts through winters and everything.<br /><br /><strong>- <em>Tim Woods</em></strong>"
fcontent[6]="I used the <strong>red G2 Paint</strong> to do my <strong>2008 Chevrolet Cobalt SS Brembo calipers</strong>.<br /><br /> It was a breeze to use the kit and they look <strong>great!</strong><br /><br /><strong>- <em>Trevor Moore</em></strong>"
fcontent[7]="I want to thank you for such a fantastic product.<br /><br /> I purchased a <strong>purple G2 Caliper paint kit</strong> for my <strong>Silverado 4x4</strong>.<br /><br />It went on easy and looks awesome. <strong>Keep up the good work.</strong><br /><br /><strong>- <em>Clay Wagley</em></strong>"
fcontent[8]="I received the paint last week. Thanks <strong>HUGE!</strong><br /><br /> Your customer service is awesome!<br /><br /><strong>- <em>Mike Wilson RMT</em></strong>"
fcontent[9]="I will recommend you to all my friends.<br /><br /> Its a <strong>great product</strong> and a <strong>great company</strong>.<br /><br /><strong>- <em>Chester Sackowski</em></strong>"
closetag='</font>'

var fwidth=150 //set scroller width
var fheight=150 //set scroller height

///No need to edit below this line/////////////////

var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0

if (DOM2)
faderdelay=2000

//function to change content
function changecontent(){
if (index>=fcontent.length)
index=0
if (DOM2){
document.getElementById("fscroller").style.color="rgb(255,255,255)"
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
colorfade()
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag)
document.fscrollerns.document.fscrollerns_sub.document.close()
}

index++
setTimeout("changecontent()",delay+faderdelay)
}

// 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("fscroller").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("colorfade()",20);	
}
else{
document.getElementById("fscroller").style.color="rgb(0,0,0)";
frame=20;
hex=255
}   
}

if (ie4||DOM2)
document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+';padding:2px"></div>')

window.onload=changecontent
