<!-- Copyright 2001, Sandeep Gangadharan -->
<!-- For more free scripts go to http://sivamdesign.com/scripts/ -->
var 
month = new Array();
month[0]="Gennaio";	
month[1]="Febbraio";
month[2]="Marzo";
month[3]="Aprile";
month[4]="Maggio";
month[5]="Giugno";
month[6]="Luglio";
month[7]="Agosto";
month[8]="Settembre";
month[9]="Ottobre";
month[10]="Novembre";
month[11]="Dicembre";

var 
day = new Array();
day[0]="Domenica";
day[1]="Lunedi'";
day[2]="Martedi'";
day[3]="Mercoledi'";
day[4]="Giovedi'";
day[5]="Venerdi'";
day[6]="Sabato";

today = new Date();
date = today.getDate();
day = (day[today.getDay()]);
month = (month[today.getMonth()]);
year = today.getFullYear();

 suffix = (date==1 || date==21 || date==31) ? "st" : "th" &&
 (date==2 || date==22) ? "nd" : "th" && (date==3 || date==23) ? "rd" : "th"

dateStr="Oggi e': " + day + ", " + date + " " + month + ", " + year;

function sivamtime() {
	now=new Date();
	hour=now.getHours();
	min=now.getMinutes();
	sec=now.getSeconds();

if (min<=9) {
	min="0"+min;
 }
if (sec<=9) {
	sec="0"+sec;
 }
if (hour>12) {
	hour=hour-12;
	add=" p.m.";
 }
else {
	hour=hour;
	add=" a.m.";
 }
if (hour==12) {
	add=" p.m.";
 }
if (hour==00) {
	hour="12";
 }

timeStr = " - " + ((hour<=9) ? "0"+hour : hour) + ":" + min + ":" + sec + add;
window.status=dateStr+timeStr;
setTimeout("sivamtime()", 1000);

}

// -->
