var msg=new Array()
msg[0]="<CENTER>...un immenso autosalone</CENTER>";
msg[1]="<CENTER>...direttamente a casa vostra</CENTER>";
//msg[2]="<CENTER>Just type in \"<A href='http://javascript.internet.com/'>javascript.internet.com</A>\"</CENTER>";
//msg[3]="<CENTER>Your computer can handle the rest.</CENTER>";

var colors1=new Array(
"0099ff",
"0099ff",
"003063",
"00306B",
"003873",
"08417B",
"08417B",
"08498C",
"10498C",
"084994",
"08519C",
"1059A5",
"1059AD",
"1059AD",
"1861B5",
"1869BD",
"1869C6",
"1869C6",
"1871CE",
"2179D6",
"0099ff")

//set your second set of colors
// *** must have exactly the same number of colors as the array above ***
var colors2=new Array(
"0099ff",
"E70808",
"E70810",
"D60818",
"CE1021",
"C62031",
"B52842",
"AD284A",
"9C3052",
"943863",
"84386B",
"7B4173",
"6B4184",
"63498C",
"5A599C",
"4A59A5",
"4261B5",
"3969BD",
"2969C6",
"2171D6",
"0099ff"
)

//set the height of the display in pixels
high=60;

//set the width of the display in pixels
wide=350;

//set the pixel coordinates for the upper left hand corner of the display
Xpos=0;
Ypos=0;

// move the display away from the edges of the background
pad=0;

// set the background color of the display
bgcol="ffffff";

//add a background image if you want.
// *** for no image, just leave empty quotes (ex. cellbg=""; ) ***
cellbg="";

// set the font
fntFam="verdana,helvetica,arial";
fntSize=14;

// set how how many seconds you want the message to stay remain at totality.
pause=3.5;


// Do not edit these values below!!!

icolor=0;
mcolor=1;
imsg=0;
spWidth=wide-(2*pad);
totality=false;
glowing=true;
var theMsg="";
var cellcontent="";
pause=pause*1000;
//if(cellbg.length>4){cellbg=" background="+cellbg}
//else{cellbg="";}

function doPause(){
   totality=false; t=setTimeout("changecolor()",pause);
   }
function initiate(){
   getContentColor();
   getMsg();
   getCellContent();
   if(document.all){
  //msgbg.innerHTML=cellcontent;
   //msgfade.innerHTML=theMsg;
  // msgbg.style.posLeft=Xpos;
  // msgbg.style.posTop=Ypos;
  // msgfade.style.posLeft=Xpos+pad;
  // msgfade.style.posTop=Ypos+pad;
   t=setTimeout("changecolor()",50);}
  
   }
function changecolor(){
   if(totality==true){doPause();}
   else{
   getMsg();
   getContentColor();
   if(document.all){
   msgfade.innerHTML=theMsg;
   t=setTimeout("changecolor()",50);}
  
   }
   }
function getFadeColor(){
   icolor=icolor-1;
   if(mcolor==1){contentcolor=colors1[icolor];}
   else{contentcolor=colors2[icolor];}
   }
function getGlowColor(){
   icolor=icolor+1;
   if(mcolor==1){contentcolor=colors1[icolor];}
   else{contentcolor=colors2[icolor];}
   }
function changemsg(){
   if(imsg==msg.length-1){imsg=0; mcolor=1;}
   else if(imsg != msg.lenght-1 && mcolor==1){imsg=imsg+1; mcolor=0;}
   else{imsg=imsg+1; mcolor=1;}
   }
function getContentColor(){
   if(icolor==colors1.length-1 && glowing==true){
   getFadeColor(); glowing=false; totality=true;}
   else if(icolor < colors1.length && glowing==true){
   getGlowColor();}
   else if(icolor < 1 && glowing==false){changemsg(); getGlowColor(); glowing=true;}
   else{getFadeColor();}
   }
function getMsg() {
   theMsg="<span style='font-size:"+fntSize+"pt; font-family:"+fntFam+"; width:"+spWidth+";'>"
   theMsg+="<font color="+contentcolor+">"+msg[imsg]+"</font> "
   theMsg+="</span>"
   
   }
function getCellContent(){
   cellcontent="<TABLE height="+high+
   " width="+wide+" bgcolor="+bgcol+" cellpadding=0 cellspacing=0 border=10><TR><TD"+cellbg+"> </TD></TR></TABLE>"}
//  End -->

