layerRef="document.all";
var bottone1= new Image();
bottone1.src="Gif/bottone.GIF"
var bottone2= new Image();
bottone2.src="Gif/bottone2.gif"


function cambia(pulsante){
 document[pulsante].src=eval('bottone2.src');

}


function ritorna(pulsante)
{document[pulsante].src=eval('bottone1.src');
}

function apri(name,str,x,y)
{
 popup = window.open(str,name,'scrollbars=no,resizable=yes,width='+ x +',height='+ y +',status=no,location=no,toolbar=no,left=100,top=10');
 popup.focus();}

	function init(){

       	  if (navigator.appName == "Netscape") {

		    layerStyleRef="layer.";

 			layerRef="document.layers";

			styleSwitch="";
			apri('netscape.htm',300,300);
			}else{

 			layerStyleRef="layer.style.";

			layerRef="document.all";

 			styleSwitch=".style";

			} 	}
			
			
 function attivamenu(nome)
 { eval(layerRef+'["'+nome+'"].bgColor="#00CC66"');}
 
 function disattivamenu(nome)
 { eval(layerRef+'["'+nome+'"].bgColor="#000080"');}
 
 var scrtxt="Zucchero Filato Animazione e Spettacolo........";
 var lentxt=scrtxt.length;
 var width=100;
 var pos=1-width;
 
 function scorrevole() {
   pos++;
   var scroller="";
   if (pos==lentxt) {
     pos=1-width;
   }
   if (pos<0) {
     for (var i=1; i<=Math.abs(pos); i++) {
       scroller=scroller+" ";}
     scroller=scroller+scrtxt.substring(0,width-i+1);
   }
   else {
     scroller=scroller+scrtxt.substring(pos,width+pos);
   }
   window.status = scroller;
   setTimeout("scorrevole()",50);
  }
  
  
  var divs = new Array();
  var da = document.all;
  var start;
  
  //velocità di pulsazione
  var speed = 50;
  
  function initVars(){
  
  if (!document.all)
  return
  
  //Qui si può personalizzare ciascun messaggio togliendo o aggiungendo nuovi elementi.
  //Basta inserire una stringa per ciascun messaggio in questa forma addDiv(1,"2",3,4); sapendo che:
  //1)'identificativo' del divisorio
  //2)colore dell'alone(nome in inglese o in formato esadecimale)
  //3)valore minimo della pulsazione
  //4)valore massimo della pulsazione
  
  addDiv(msg3,"yellow",6,9);
  
  //QUI SOTTO LASCIATE INVARIATO!!!!!!
  
  
  
  startGlow();
  }
  
  function addDiv(id,color,min,max)
  {
  var j = divs.length;
  divs[j] = new Array(5);
  divs[j][0] = id;
  divs[j][1] = color;
  divs[j][2] = min;
  divs[j][3] = max;
  divs[j][4] = true;
  }
  
  function startGlow()
  {
  	if (!document.all)
  		return 0;
  
  	for(var i=0;i<divs.length;i++)
  	{
  		divs[i][0].style.filter = "Glow(Color=" + divs[i][1] + ", Strength=" + divs[i][2] + ")";
  		divs[i][0].style.width = "100%";
  	}
  
  	start = setInterval('update()',speed);
  }
  
  function update()
  {
  	for (var i=0;i<divs.length;i++)
  	{
  		if (divs[i][4])
  		{
  			divs[i][0].filters.Glow.Strength++;
  			if (divs[i][0].filters.Glow.Strength == divs[i][3])
  				divs[i][4] = false;
  		}
  
  		if (!divs[i][4])
  		{
  			divs[i][0].filters.Glow.Strength--;
  			if (divs[i][0].filters.Glow.Strength == divs[i][2])
  				divs[i][4] = true;
  		}
  	}
}


ScrollRate = 100;

function scrollDiv_init() {
	DivElmnt = document.getElementById('MyDivName');
	ReachedMaxScroll = false;
	
	DivElmnt.scrollTop = 0;
	PreviousScrollTop  = 0;
	
	ScrollInterval = setInterval('scrollDiv()', ScrollRate);
}

function scrollDiv() {
	
	if (!ReachedMaxScroll) {
		DivElmnt.scrollTop = PreviousScrollTop;
		PreviousScrollTop++;
		
		ReachedMaxScroll = DivElmnt.scrollTop >= (DivElmnt.scrollHeight - DivElmnt.offsetHeight);
	}
	else {
		ReachedMaxScroll = (DivElmnt.scrollTop == 0)?false:true;
		
		DivElmnt.scrollTop = PreviousScrollTop;
		PreviousScrollTop--;
	}
}

function pauseDiv() {
	clearInterval(ScrollInterval);
}

function resumeDiv() {
	PreviousScrollTop = DivElmnt.scrollTop;
	ScrollInterval    = setInterval('scrollDiv()', ScrollRate);
}