/***********************************************
* Fading Ticker Tape Script-  Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var speed=12000
var news=new Array()
news[0]="\"By the third, try I was a pro.\"<br><br>-Tammy R. -Student"
news[1]="\"I\'ve never seen a product that works this fast and gives such a precise smile line!\"<br><br>-Daria M. -Nail Tech."
news[2]="\"After seeing the video, I had to try it. I received it about 5 days later and I\'ve been doing the \'dip\' every week now. Thanks French Tip Dip!\"<br><br>-Missy L. -Mother of 2"
news[3]="\"I bought it. It works. I love it. By the third try, I was really getting the process down. I find it easier than trying it freehand, and I love the look.\"<br><br>-YouTube comments"
news[4]="\"The most simple French manicure I\'ve ever done, hands down.\"<br><br>-Aaliyah M. -Cosmetologist"
//expand or shorten this list of messages as desired
var fadescheme=1 //set 0 to fade bgcolor from (white to black), 1 for (black to white)
var hex=(fadescheme==0)? 255 : 255
var startcolor=(fadescheme==0)? "rgb(255,255,255)" : "rgb(255,255,255)"
var endcolor=(fadescheme==0)? "rgb(255,255,255)" : "rgb(255,255,255)"
var frame=20;
var ie=document.all
var ns6=document.getElementById
var ns4=document.layers
i=0
tickerobject=ie? subtickertape: ns6? document.getElementById("subtickertape") : document.tickertape.document
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",450)
}
function bgcolorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex=(fadescheme==0)? hex-12 : hex+12 // increase or decrease color value depd on fadescheme
tickerobject.style.backgroundColor="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("bgcolorfade()",20);	
}
else{
tickerobject.style.backgroundColor=endcolor;
frame=20;
hex=(fadescheme==0)? 255 : 0
}   
}
function updatecontent(){
if (ie||ns6)
bgcolorfade()
if (ns4){
tickerobject.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>')
tickerobject.subtickertape.document.close()
}
else 
tickerobject.innerHTML=news[i]

if (i<news.length-1)
i++
else
i=0
setTimeout("updatecontent()",speed)
}