var DataOdierna = new Date();
var iMesi = new Array("gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre");
var theMonths = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var arrGiorniSett = new Array("domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato");
var arrWeekDays = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
NomeBrowser = navigator.appName;

function  UltAgg() 
{
         window.defaultStatus = 'Ultimo aggiornamento: 17 novembre 2003';
         return true;
};


function  LstUpd() 
{
         window.defaultStatus = 'Last updated: November 17, 2003';
         return true;
};


function DataCompletaDiOggi()
{
    anno = DataOdierna.getYear();
    if ((NomeBrowser.substring(0,9) == "Microsoft") && (anno < 2000))
        anno = "19" + anno;
    if (NomeBrowser.substring(0,8) == "Netscape")
        anno = 1900 + anno;
    document.write(arrGiorniSett [DataOdierna.getDay()] + " &#149; " + DataOdierna.getDate() + " " + iMesi [DataOdierna.getMonth()] + " " + anno);
};

function DataDiOggi()
{
    anno = DataOdierna.getYear();
    if ((NomeBrowser.substring(0,9) == "Microsoft") && (anno < 2000))
        anno = "19" + anno;
    if (NomeBrowser.substring(0,8) == "Netscape")
        anno = 1900 + anno;
    document.write(DataOdierna.getDate() + " " + iMesi [DataOdierna.getMonth()] + " " + anno);
};


function GiornoSettimana()
{
    document.write(arrGiorniSett [DataOdierna.getDay()]);
};


function TodayWholeDate()
{
    year = DataOdierna.getYear();
    if ((NomeBrowser.substring(0,9) == "Microsoft") && (year < 2000))
        year = "19" + year;
    if (NomeBrowser.substring(0,8) == "Netscape")
        year = 1900 + year;
    document.write(arrWeekDays [DataOdierna.getDay()] + " &#149; " + theMonths [DataOdierna.getMonth()] + " " + DataOdierna.getDate() + ", " +  year);
};

function TodayDate()
{
    year = DataOdierna.getYear();
    if ((NomeBrowser.substring(0,9) == "Microsoft") && (year < 2000))
        year = "19" + year;
    if (NomeBrowser.substring(0,8) == "Netscape")
        year = 1900 + year;
    document.write(theMonths [DataOdierna.getMonth()] + " " + DataOdierna.getDate() + ", " +  year);
};

function WeekDay()
{
    document.write(arrWeekDays [DataOdierna.getDay()]);
};


function OpacityHigh(btn)
{
  if ((navigator.appName.substring(0,9) == "Microsoft") &&
       (parseInt(navigator.appVersion.substring(0,1)) >= 4))
          document[btn].filters.alpha.opacity +=50;
};


function OpacityLow(btn)
{
  if ((navigator.appName.substring(0,9) == "Microsoft") &&
      (parseInt(navigator.appVersion.substring(0,1)) >= 4))
        document[btn].filters.alpha.opacity -=50;
};


/* * * * * * * * * * INTERMITTENZA * * * * * * * * * */

function Intermittenza()
{
  var blink = document.all.tags("BLINK");
  for (var i=0; i<blink.length; i++)
      blink[i].style.visibility = (blink[i].style.visibility == "" ? "hidden" : "" );
};
	

function Intermittenza250()
{
  if (document.all)
      setInterval("Intermittenza()",250);
};


function Intermittenza500()
{
  if (document.all)
      setInterval("Intermittenza()",500);
}


/* * * * * * * * * * OROLOGIO * * * * * * * * * */

// CREDITS:
// Inline clock: fits anywhere into any text
// by Urs Dudli and Peter Gehrig 
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com
// info@24fun.com
// 7/5/2001

// CONFIGURATION:
// Go to http://www.24fun.com, open category 'date' and 
// download the ZIP-file of this script containing
// the script-file with step-by-step instructions for easy configuration

var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var thistime = hours+":"+minutes+":"+seconds
	
function writeclock() {
	i_clock++
	if (document.all || document.getElementById || document.layers) {
		clockid[i_clock]="clock"+i_clock
		document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
	}
}

function clockon() {
	thistime= new Date()
	hours=thistime.getHours()
	minutes=thistime.getMinutes()
	seconds=thistime.getSeconds()
	if (eval(hours) <10) {hours="0"+hours}
	if (eval(minutes) < 10) {minutes="0"+minutes}
	if (seconds < 10) {seconds="0"+seconds}
	thistime = hours+":"+minutes+":"+seconds
		
	if (document.all) {
		for (i=0;i<=clockid.length-1;i++) {
			var thisclock=eval(clockid[i])
			thisclock.innerHTML=thistime
		}
	}
	
	if (document.getElementById) {
		for (i=0;i<=clockid.length-1;i++) {
			document.getElementById(clockid[i]).innerHTML=thistime
		}
	}
	var timer=setTimeout("clockon()",1000)
}
<!-- window.onload=clockon -->
