var LC_Style=[

	// Qui sotto puoi impostare il carattere da usare
	"Verdana",

	// Qui sotto puoi impostare la dimensione del font in grandezza relativa (valori da 1 a 7)
	"1",

	// Qui sotto puoi impostare il colore del carattere in formato esadecimale
	// preceduto dal simbolo della celletta #
	"#000000",

	// Qui sotto puoi impostare il colore di sfondo in formato esadecimale
	// preceduto dal simbolo della celletta #
	"#FBF4F4",

	// Qui sotto puoi indicare la frase breve che precederà l'orologio
	" ",

	// Qui sotto puoi indicare la frase breve che seguirà l'orologio
	" ",

	// Qui sotto puoi impostare la larghezza del campo dell'orologio in pixels
	300,

	// Qui sotto puoi decidere il formato dell'ora. 24 ore (0), AM/PM (1)
	1,

	// Qui sotto puoi decidere dopo quale intervallo di tempo l'orologio dovrà aggiornarsi:
	// 0 mai, 1 ogni secondo, 2 ogni minuto
	1,

	// Qui sotto puoi decidere il formato della data:
	// 0 niente datario, 1 gg/mm/aa, 2 mm/gg/aa, 3 GGGG MMMM
	// 4 GGGG MMMM AAAA
	3,

	// Qui sotto puoi decidere se i nomi dei giorni e dei mesi debbano essere abbreviati:
	// 1 si, 0 no
	0,

	// Qui sotto puoi impostare come debba apparire l'ora
	// rispetto al meridiano di Greenwich.
	// Per far sì che venga visualizzata l'ora di chi guarda il sito
	// imposta il valore null
	null
	// Per impostare l'ora di un meridiano diverso da quello di
	// Greenwich imposta un valore numerico che coincida con le
	// ore di differenza. Per il meridiano di Roma, ad esempio
	// imposta il valore numerico 1.
];

//////////////////////////////////////////////////////////////////////////////
/// DA QUI IN AVANTI NON TOCCARE PIU' NULLA ///
//////////////////////////////////////////////////////////////////////////////

var LC_IE=(document.all);
var LC_NS=(document.layers);
var LC_N6=(window.sidebar);
var LC_Old=(!LC_IE && !LC_NS && !LC_N6);

var LC_Clocks=new Array();

var LC_DaysOfWeek=[
	["Domenica","Dom"],
	["Lunedì","Lun"],
	["Martedì","Mar"],
	["Mercoledì","Mer"],
	["Giovedì","Gio"],
	["Venerdì","Ven"],
	["Sabato","Sab"]
];

var LC_MonthsOfYear=[
	["Gennaio","Gen"],
	["Febbraio","Feb"],
	["Marzo","Mar"],
	["Aprile","Apr"],
	["Maggio","Mag"],
	["Giugno","Giu"],
	["Luglio","Lug"],
	["Agosto","Ago"],
	["Settembre","Set"],
	["Ottobre","Ott"],
	["Novembre","Nov"],
	["Dicembre","Dic"]
];

var LC_ClockUpdate=[0,1000,60000];

///////////////////////////////////////////////////////////

function LC_CreateClock(c) {
	if(LC_IE||LC_N6){clockTags='<span id="'+c.Name+'" style="width:'+c.Width+'px;background-color:'+c.BackColor+'"></span>'}
	else if(LC_NS){clockTags='<ilayer width="'+c.Width+'" bgColor="'+c.BackColor+'" id="'+c.Name+'Pos"><layer id="'+c.Name+'"></layer></ilayer>'}

	if(!LC_Old){document.write(clockTags)}
	else{LC_UpdateClock(LC_Clocks.length-1)}
}

function LC_InitializeClocks(){
	LC_OtherOnloads();
	if(LC_Old){return}
	for(i=0;i<LC_Clocks.length;i++){
		LC_UpdateClock(i);
		if (LC_Clocks[i].Update) {
			eval('var '+LC_Clocks[i].Name+'=setInterval("LC_UpdateClock("+'+i+'+")",'+LC_ClockUpdate[LC_Clocks[i].Update]+')');
		}
	}
}

function LC_UpdateClock(Clock){
	var c=LC_Clocks[Clock];

	var t=new Date();
	if(!isNaN(c.GMT)){
	var offset=t.getTimezoneOffset();
	if(navigator.appVersion.indexOf('MSIE 3') != -1){offset=offset*(-1)}
		t.setTime(t.getTime()+offset*60000);
		t.setTime(t.getTime()+c.GMT*3600000);
	}
	var day=t.getDay();
	var md=t.getDate();
	var mnth=t.getMonth();
	var hrs=t.getHours();
	var mins=t.getMinutes();
	//var secs=t.getSeconds();
	var secs="";
	var yr=t.getYear();

	if(yr<1900){yr+=1900}

	if(c.DisplayDate>=3){
		md+="";
		abbrev=" ";
		if(md.charAt(md.length-2)!=1){
			var tmp=md.charAt(md.length-1);
			if(tmp==1){abbrev=" "}
			else if(tmp==2){abbrev=" "}
			else if(tmp==3){abbrev=" "}
		}
		md+=abbrev;
	}

	var ampm="";
	if(c.Hour12==1){
		ampm="AM";
		if(hrs>=12){ampm="PM"; hrs-=12}
		if(hrs==0){hrs=12}
	}
	if(mins<=9){mins="0"+mins}
//	if(secs<=9){secs="0"+secs}

	var	html = '<font color="'+c.FntColor+'" face="'+c.FntFace+'" size="'+c.FntSize+'">';
	html+=c.OpenTags;
	html+=hrs+':'+mins;
	//if(c.Update==1){html+=':'+secs}
	if(c.Hour12){html+=' '+ampm}
	if(c.DisplayDate==1){html+=' '+md+'/'+(mnth+1)+'/'+yr}
	if(c.DisplayDate==2){html+=' '+(mnth+1)+'/'+md+'/'+yr}
	if(c.DisplayDate>=3){html+=' di '+LC_DaysOfWeek[day][c.Abbreviate]+' '+md+' '+LC_MonthsOfYear[mnth][c.Abbreviate]}
	if(c.DisplayDate>=4){html+=' '+yr}
	html+=c.CloseTags;
	html+='</font>';

	if(LC_NS){
		var l=document.layers[c.Name+"Pos"].document.layers[c.Name].document;
		l.open();
		l.write(html);
		l.close();
	}else if(LC_N6||LC_IE){
		document.getElementById(c.Name).innerHTML=html;
	}else{
		document.write(html);
	}
}

function LiveClock(a,b,c,d,e,f,g,h,i,j,k,l){
	this.Name='LiveClock'+LC_Clocks.length;
	this.FntFace=a||LC_Style[0];
	this.FntSize=b||LC_Style[1];
	this.FntColor=c||LC_Style[2];
	this.BackColor=d||LC_Style[3];
	this.OpenTags=e||LC_Style[4];
	this.CloseTags=f||LC_Style[5];
	this.Width=g||LC_Style[6];
	this.Hour12=h||LC_Style[7];
	this.Update=i||LC_Style[8];
	this.Abbreviate=j||LC_Style[10];
	this.DisplayDate=k||LC_Style[9];
	this.GMT=l||LC_Style[11];
	LC_Clocks[LC_Clocks.length]=this;
	LC_CreateClock(this);
}

///////////////////////////////////////////////////////////

LC_OtherOnloads=(window.onload)?window.onload:new Function;
window.onload=LC_InitializeClocks;

<!--
PositionX = 5;
PositionY = 5;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = true;
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 FG_PopUp(imageURL,imageTitle){
	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["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
	writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
	if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
	else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
	writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
	close();		
	}
}

function fin(str,x,y)
{
	xx=x;
	yy=y;
	searchWin = window.open(str,'fin','scrollbars=yes,resizable=yes,width=' + x + ', height=' + y + ',status=no,location=no,toolbar=no,dependent=yes');
	searchWin.focus();
	nomeWin=searchWin;
	redim(10,5);
}

function fin_p(str,z,w)
{
	xx=z;
	yy=w;
	searchWin = window.open(str,'fin_p','scrollbars=no,resizable=yes,width=' + z + ', height=' + w + ',status=no,location=no,toolbar=no,dependent=yes');
	searchWin.focus();
	nomeWin=searchWin;
	redim(10,5);
}

function conferma_elimina() 
{
	if (!confirm ("Attenzione: l'oggetto verrà rimosso!")){
   		return false
	}
	   else{
	   return true
	}
}

function openTarget (form, features, windowName) {
  if (!windowName)
    windowName = 'formTarget' + (new Date().getTime());
  form.target = windowName;
  open ('', windowName, features);
}

function conferma(str) 
{
	if (!confirm (str)){
   		return false
	}
	   else{
	   return true
	}
}

function checkEVfrm() {
 if (this.EV_Ins.form_evento_ev.value == "" ||
	this.EV_Ins.form_luogo_ev.value == "" ||
	this.EV_Ins.form_citta_ev.value == "" ||
	this.EV_Ins.form_prov_ev.value == "" ||
	this.EV_Ins.form_indirizzo_ev.value == "" ||
	this.EV_Ins.form_email_ev.value == "") {
		alert("ATTENZIONE: valore mancante.\n Campo obbligatorio non inserito...");
		return false;
 } else {
	var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
	if (!email_reg_exp.test(this.EV_Ins.form_email_ev.value))
	{
		alert("ATTENZIONE: Email inserita non valida...")
		return false
	}  else {
		if (!confirm ("VERIFICA DATI INSERITI: \n\n Nome: "+this.EV_Ins.form_evento_ev.value+"\n Luogo: "+this.EV_Ins.form_luogo_ev.value+"\n Dal: "+this.EV_Ins.form_dalg_ev.value+"/"+this.EV_Ins.form_dalma_ev.value.substring(0,2)+"/"+this.EV_Ins.form_dalma_ev.value.substring(2,6)+"\n Al: "+this.EV_Ins.form_alg_ev.value+"/"+this.EV_Ins.form_alma_ev.value.substring(0,2)+"/"+this.EV_Ins.form_alma_ev.value.substring(2,6)+"\n Ora: "+this.EV_Ins.form_ora_ev.value+"\n Citta: "+this.EV_Ins.form_citta_ev.value+"\n Prov: "+this.EV_Ins.form_prov_ev.value+"\n Indirizzo: "+this.EV_Ins.form_indirizzo_ev.value+"\n E-Mail: "+this.EV_Ins.form_email_ev.value+"\n Note: "+this.EV_Ins.form_note_ev.value+"\n\n NB: Nessuna modifica sarà possibile dopo l\'inserimento!")){
			return false
		}
		   else{
		   return true
		}
	}
 }
}
//-->