 function updateTime() {
	var months 		= new Array(12);
		months[0] 	= "Gennaio";
		months[1]	= "Febbraio";
		months[2]	= "Marzo";
		months[3]	= "Aprile";
		months[4]	= "Maggio";
		months[5]	= "Giugno";
		months[6]	= "Luglio";
		months[7]	= "Agosto";
		months[8]	= "Settembre";
		months[9]	= "Ottobre";
		months[10]	= "Novembre";
		months[11]	= "Dicembre";
	var days=new Array(7);
		days[0]		= "Domenica";
		days[1]		= "Lunedi";
		days[2]		= "Martedi";
		days[3]		= "Mercoledi";
		days[4]		= "Giovedi";
		days[5]		= "Venerdi";
		days[6]		= "Sabato";
	var time		= new Date();
	var day			= time.getDate();
	var nday 		= days[time.getDay()];
	var month		= months[time.getMonth()];
	var year		= time.getYear();
	if (year < 2000)
		year = year + 1900;
	sir = nday + ", " + day + " " +month + " " + year + ", ore ";
	var ora  = time.getHours();
	var timp = "" + ora + ":";
	var minute = time.getMinutes();
	if (minute < 10) { 
		timp += "0";
	}
	timp += minute + ":";
	var second = time.getSeconds();
	if (second < 10) {
		timp += "0";
	}
	timp += second;
	sir += timp;

	if (ora < 17)
		sir += "  -  Buon giorno!  ";
	else sir += "  -  Buona sera!  ";

	document.clock.ceas.value = sir;
	window.setTimeout("updateTime()",1000);
}

PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
    var isNN=(navigator.appName=="Netscape")?1:0;
    var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
    var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
    var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;

function popImage(imageURL,imageTitle){
	var AutoClose = true;
	if (isNN){imgWin=window.open('about:blank','',optNN);}
	if (isIE){imgWin=window.open('about:blank','',optIE);}
	with (imgWin.document){
	    writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
	    writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
	    writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
	    writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
	    writeln('width=100-(document.body.clientWidth-document.images[0].width);');
	    writeln('height=100-(document.body.clientHeight-document.images[0].height);');
	    writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
	    writeln('window.innerWidth=document.images["imgmnet"].width;');writeln('window.innerHeight=document.images["imgmnet"].height;}}');
	    writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
	    if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0" onload="reSizeToImage();doTitle();self.focus()">')
	    else writeln('</head><body bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0" bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
	    writeln('<img name="imgmnet" src='+imageURL+' style="display:block"></body></html>');
	    close();		
	}
}

function popImg(imageURL,imageTitle, imageDesc){
	var AutoClose = false;
	if (isNN){imgWin=window.open('about:blank','',optNN);}
	if (isIE){imgWin=window.open('about:blank','',optIE);}
	with (imgWin.document){
	    writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
	    writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
	    writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
	    writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
	    writeln('width=100-(document.body.clientWidth-document.images[0].width);');
	    if (imageDesc.length > 0) writeln('height=100-(document.body.clientHeight-document.images[0].height)+50;'); else writeln('height=100-(document.body.clientHeight-document.images[0].height);');
	    writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
	    writeln('window.innerWidth=document.images["imgmnet"].width;');
	    if (imageDesc.length > 0) writeln('window.innerHeight=document.images["imgmnet"].height + 50;}}'); else writeln('window.innerHeight=document.images["imgmnet"].height;}}');
	    writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
	    if (!AutoClose) writeln('</head><body bgcolor="#ffffff" scroll="no" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0" onload="reSizeToImage();doTitle();self.focus()">')
	    else writeln('</head><body bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0" bgcolor="#ffffff" scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
	    writeln('<img name="imgmnet" src='+imageURL+' style="display:block">');
	    if (imageDesc.length > 0) writeln('<img src="images/spacer.gif" width="1" height="5"><br><div id="desc" style="width: 100%; height: 40px; overflow: auto; font-family: verdana; font-size: 11px; text-align: center;">' + imageDesc + '</div><img src="images/spacer.gif" height="5" width="1"></body></html>');
	    close();
	}
}