
<!--

//******************************************************************
//		E S E M P I O   D I   U T I L I Z Z O   R O L L O V E R
//
//	Definizione dello stile del rollover (inserito nel .Css o nell' Header di pagina)
//
//	.imgTrans {filter:revealTrans(duration=0.2,transition=12);}
//
//
//	Associazione delle immagini con la chiamata allo script Rollover
//
//	<SCRIPT type="text/javascript"> Rollover("butCalendario.gif",  "Over.gif");</SCRIPT>
//
//
//	Associazione del link all'evento
//	
//	<a href = "http://www.html.it/" onMouseOver="turnOn('butCalendario.gif');" onMouseOut="turnOff('butCalendario.gif');"><img name="butCalendario.gif" class="imgTrans" src="images/butCalendario.gif" border="0"></a>	
//
//******************************************************************

var onImages=new Array();
function Rollover(imgName, imgSrc)
{
	onImages[imgName] = new Image();
	onImages[imgName].src = imgSrc;
}

function turnOn(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].apply();
	document.images[imgName].offSrc = document.images[imgName].src;
	document.images[imgName].src    = onImages[imgName].src;
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].play();
}

function turnOff(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].stop();
	document.images[imgName].src = document.images[imgName].offSrc;
}


//******************************************************************
//	F I N E S T R A   P O P U P
//
//	<a href="javascript:Popup('mioFile.htm',100,100,250,200)">Apri la popup</a>
//
//******************************************************************

function Popup(apri,top,left,width,height) {
        
        var stile;
        var newwindow;
        stile = "top="+top+", left="+left+", width="+width+", height="+height+", status=no, menubar=no, toolbar=no scrollbar=no";
        newwindow = window.open(apri, "", stile);
	newwindow.creator = self;

}


//******************************************************************
//	C A M B I O   U R L   P A G I N A   P A R E N T 
//
//	<A HREF="classifica.htm" onclick="javascript:LoadParentUrl(this.href);">
//
//******************************************************************
function LoadParentUrl(url){
	window.creator.location=url
	window.close()
}



//******************************************************************
//	C A M B I O   U R L   P A G I N A   I N  B A S E   A   I T E M   S E L E Z I O N A T O
//
//	<select name="squadra" onChange="GoToSchedaSquadraCalcio(this)">
//
//******************************************************************
function GoToComboUrl(combo) {
	if (combo.options[combo.selectedIndex].value!="null") { 
	window.location.href = combo.options[combo.selectedIndex].value;
	}	
}

//******************************************************************
//	C R E A Z I O N E   C A L E N D A R I O
//
//	<script language="JavaScript">document.write(Calendario())</script>
//
//******************************************************************
function Calendario(){
	var d, n,s ="";
	var settimana = new Array("Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato");
	var Mese	= new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre");           
	d = new Date();
	n = d.getDay();   
	s += '<span class="data1">'+settimana[n]+'</span><br>';
	s += '<span class="data2">'+ d.getDate() + '</span><br>'; 
	n = d.getMonth();
	s +=  '<span class="data1">'+ Mese[n]+ '</span>';                
	return(s);                                
  }



//******************************************************************
//	O R A R I O   C O R R E N T E
//
//	
//
//******************************************************************
<!-- inizio script data e orario corrente -->
function data (){
                        thisDate = new Date()
						giorno = thisDate.getDay();
                        oggi = thisDate.getDate();
                        monthNum = thisDate.getMonth();
						Year = thisDate.getYear();
						if (Year <=200)
							Year=1900+Year;
							
						        if (monthNum == 0) NomeMese = "Gennaio ";
                        else if (monthNum == 1) NomeMese = "Febbraio ";
                        else if (monthNum == 2) NomeMese = "Marzo ";
                        else if (monthNum == 3) NomeMese = "Aprile ";
                        else if(monthNum == 4) NomeMese = "Maggio ";
                        else if(monthNum == 5) NomeMese = "Giugno ";
                        else if (monthNum == 6) NomeMese = "Luglio ";
                        else if (monthNum == 7) NomeMese = "Agosto ";
                        else if (monthNum == 8) NomeMese = "Settembre ";
                        else if (monthNum == 9) NomeMese = "Ottobre ";
                        else if (monthNum == 10) NomeMese = "Novembre ";
                        else if (monthNum == 11) NomeMese = "Dicembre ";
						        if (giorno == 0) NomeGiorno = "Domenica";
						else if (giorno == 1) NomeGiorno = "Luned&igrave;";
						else if (giorno == 2) NomeGiorno = "Marted&igrave;";
						else if (giorno == 3) NomeGiorno = "Mercoled&igrave;";
						else if (giorno == 4) NomeGiorno = "Gioved&igrave;";
						else if (giorno == 5) NomeGiorno = "Venerd&igrave;";
						else if (giorno == 6) NomeGiorno = "Sabato";
                        document.write(NomeGiorno+' '+oggi+' '+NomeMese+ ' '+Year);
}

function show5(){
//<span id="liveclock"></span>
 //if (!document.layers&&!document.all)
 //return
 var Digital=new Date()
 var hours=Digital.getHours()
 var minutes=Digital.getMinutes()
 var seconds=Digital.getSeconds()
 if (hours==0)
 hours=12
 if (minutes<=9)
 minutes="0"+minutes
 if (seconds<=9)
 seconds="0"+seconds
myclock="  "+hours+":"+minutes+":"+seconds
if (document.layers){
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}
else if (document.all)
liveclock.innerHTML=myclock
else
document.getElementById("liveclock").innerHTML=myclock
setTimeout("show5()",1000)
 }
<!-- fine script orario corrente -->
//-->	



