var msga=new Array()
msga[0]="<CENTER>...a distanza di un click</CENTER>";
msga[1]="<CENTER>www.grandecentrousato.it</CENTER>";


var colors11=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 colors21=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
higha=60;

//set the width of the display in pixels
widea=350;

//set the pixel coordinates for the upper left hand corner of the display
Xposa=0;
Yposa=0;

// move the display away from the edges of the background
pada=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.
pausea=4.5;


// Do not edit these values below!!!

icolora=0;
mcolora=1;
imsga=0;
spWidtha=widea-(2*pada);
totalitya=false;
glowinga=true;
var theMsga="";
var cellcontenta="";
pausea=pausea*1000;
//if(cellbg.length>4){cellbg=" background="+cellbg}
//else{cellbg="";}

function doPausea(){
   totalitya=false; t=setTimeout("changecolora()",pausea);
   }
function initiatea(){
   getContentColora();
   getMsga();
   getCellContenta();
   if(document.all){
  //msgbg.innerHTML=cellcontenta;
   //msgfade.innerHTML=theMsga;
  // msgbg.style.posLeft=Xposa;
  // msgbg.style.posTop=Yposa;
  // msgfade.style.posLeft=Xposa+pada;
  // msgfade.style.posTop=Yposa+pada;
   t=setTimeout("changecolora()",50);}
  
   }
function changecolora(){
   if(totalitya==true){doPausea();}
   else{
   getMsga();
   getContentColora();
   if(document.all){
   msgfadea.innerHTML=theMsga;
   t=setTimeout("changecolora()",50);}
  
   }
   }
function getFadeColora(){
   icolora=icolora-1;
   if(mcolora==1){contentcolor=colors11[icolora];}
   else{contentcolor=colors21[icolora];}
   }
function getGlowColora(){
   icolora=icolora+1;
   if(mcolora==1){contentcolor=colors11[icolora];}
   else{contentcolor=colors21[icolora];}
   }
function changemsga(){
   if(imsga==msga.length-1){imsga=0; mcolora=1;}
   else if(imsga != msga.lenght-1 && mcolora==1){imsga=imsga+1; mcolora=0;}
   else{imsga=imsga+1; mcolora=1;}
   }
function getContentColora(){
   if(icolora==colors11.length-1 && glowinga==true){
   getFadeColora(); glowinga=false; totalitya=true;}
   else if(icolora < colors11.length && glowinga==true){
   getGlowColora();}
   else if(icolora < 1 && glowinga==false){changemsga(); getGlowColora(); glowinga=true;}
   else{getFadeColora();}
   }
function getMsga() {
   theMsga="<span style='font-size:"+fntSize+"pt; font-family:"+fntFam+"; width:"+spWidtha+";'>"
   theMsga+="<font color="+contentcolor+">"+msga[imsga]+"</font> "
   theMsga+="</span>"
   
   }
function getCellContenta(){
   cellcontenta="<TABLE height="+higha+
   " width="+widea+" bgcolor="+bgcol+" cellpadding=0 cellspacing=0 border=10><TR><TD"+cellbg+"> </TD></TR></TABLE>"}
//  End -->

