
var delayImg=4000 //set delayImg between message change (in miliseconds)
var fcontentImg=new Array()

begintag='<font face="verdana" size=2>' //set opening tag, such as font declarations

//FIRST NEWS ITEM
fcontentImg[0]="<table cellspacing=10 cellpadding=10><tr><td>"
+"<strong>Welcome Dr. Sackrider</strong><br>Tanya K. Sackrider DDS"
+"</td></tr></table>"

//SECOND NEWS ITEM
fcontentImg[1]="<table cellspacing=10 cellpadding=10><tr><td>"
+"<strong></strong><BR>Affordable Dentistry For The Whole Family"
+"</td></tr></table>"

//THIRD NEWS ITEM
fcontentImg[2]="<table cellspacing=10 cellpadding=10><tr>"
+"<td colspan='2'><strong><BR>Services Offered</strong></td>"
+"</tr><tr>"
+"<td>Crowns</td>"
+"<td>Bridges</td>"
+"</tr><tr>"
+"<td>Fillings</td>"
+"<td>Whitening</td>"
+"</tr><tr>"
+"<td>Nitrous Oxide</td>"
+"<td>Deep Cleaning</td>"
+"</tr></table>"

closetag='</font>'

var fwidthImg=550 //set scroller width
var fheightImg=500 //set scroller height

///No need to edit below this line/////////////////

var ie4Img=document.all&&!document.getElementById
var ns4Img=document.layers
var DOM2Img=document.getElementById
var faderDelayImg=0
var Indeximg=0

if (DOM2Img)
faderDelayImgImg=4000

//function to change content
function ChangeContentImg(){
if (Indeximg>=fcontentImg.length)
Indeximg=0
if (DOM2Img){
document.getElementById("fscroller").style.color="rgb(255,255,255)"
document.getElementById("fscroller").innerHTML=begintag+fcontentImg[Indeximg]+closetag
colorFadeImg()
}
else if (ie4Img)
document.all.fscroller.innerHTML=begintag+fcontentImg[Indeximg]+closetag
else if (ns4Img){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontentImg[Indeximg]+closetag)
document.fscrollerns.document.fscrollerns_sub.document.close()
}

Indeximg++
setTimeout("ChangeContentImg()",delayImg+faderDelayImg)
}

// colorFadeImg() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

frame=20;
hex=255  // Initial color value.

function colorFadeImg() {	         	
// 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("colorFadeImg()",20);	
}
else{
document.getElementById("fscroller").style.color="rgb(0,0,0)";
frame=20;
hex=255
}   
}

if (ie4Img||DOM2Img)
document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidthImg+';height:'+fheightImg+';padding:2px"></div>')

window.onload=ChangeContentImg