// (c) Almanacco By www.meteopavia.it -->
// ASSOLUTAMENTE VIETATE riproduzione (anche parziale) e pubblicazione non autorizzate

<!---            
    var CurrentMsg = '';                    
    function update(msg) {                           
	var pad_str="";                           
	n = msg.length;
	if(n<38) {                                   
		pad = (38-n)/2;                                   
		for(var i=0; i<pad; i++) {                                           
			pad_str+=" ";                        
		}                        
	} 
                              
	CurrentMsg = pad_str + msg;                       
	document.messages.field.value = CurrentMsg;                          
	clearTimeout(timer);                           
	timer = setTimeout("idleMsg()",2000);        
}                           

function MakeArray(n) {                           
	this.length=n;                           
	for(var i = 1; i<= n; i++) {                                   
		this[i] = "";                
	}                           
	return(this);        
	}               
	var index = 1;           
	var notice_num =8;                   
	var notices = new MakeArray(notice_num);        
	notices[1] = Oggi;   
	notices[2] = "Santo di oggi: " + Santo[Giorno];  
	notices[3] = "Onomastici del giorno...";
	notices[4] = "..."+onomastico[Giorno];    
	notices[5] = "Sole sorge " + Alba + ", tramonta " + Tramonto;    
	notices[6] = "E' la "+ NumSettimane + "° settimana del " + Anno + "";
   	notices[7] = InizioAnno + " giorni trascorsi, " + FineAnno + " a finire";
        notices[8] = "ALMANACCO DI METEOPAVIA";
	                 
	var timer = setTimeout('idleMsg()',2000);                   

function nochange() {                           
	document.messages.field.value = CurrentMsg;        
}                   

function idleMsg() {                           
	update(notices[index++]);                           
	if(index>notice_num) { 
		index=1; 
	}  
}

// 
                
