<!--
var word=" STUDIO ODONTOIATRICO Dott. AGATINO DI STEFANO-mappa del sito. "
//var 
display=""
var nextcol=0
var nextchar=0
var speedout=100
var speedin=1
var 
pause=1000

col= new Array()
col[col.length]="#993300"
col[col.length]="#993300"
col[col.length]="#993300"
col[col.length]="#993300"


function type(){
my_display=document.getElementById("display")
my_display.style.color=col[nextcol]
my_display.innerHTML=my_display.innerHTML+word.charAt(nextchar)
nextchar++
timerT=setTimeout("type()",speedout)

if(nextcol==col.length){
nextcol=0;}

if(nextchar==word.length){
clearTimeout(timerT)
nextchar=0
setTimeout("type2()",pause)}
}


function type2(){
my_display.innerHTML=my_display.innerHTML.substring(0,my_display.innerHTML.length-1)
timerT2=setTimeout("type2()",speedin)

if(my_display.innerHTML.length==6){ // should be 0 but 6 because of &nbsp; in div
nextcol++
clearTimeout(timerT2)
count=word.length
my_display.innerHTML=""
setTimeout("type()",2000)}
}
setTimeout("type()",2000)
// -->
