/*
Title Bar Time-
Copyright Mike Cullent (http://www.synergyworks.net)
Tradotto e adattato in italiano da Seatiger Team™
A Sbafo! Tutto per il web gratis e in italiano...
http://www.asbafo.net
Liberamente utilizzabile, ma lascia intatte queste righe. Grazie!
*/

if (document.all){
actualtitle=document.title;
var scroller;
var ampm;
function antiMilitaryTime()
{
if (hr == "12"){
ampm=""
}
else if (hr == "13"){
hr="13"
ampm=""
}
else if (hr == "14"){
hr="14"
ampm=""
}
else if (hr == "15"){
hr ="15"
ampm=""
}
else if (hr == "16"){
hr = "16"
ampm=""
}
else if (hr == "17"){
hr = "17"
ampm=""
}
else if (hr == "18"){
hr = "18"
ampm=""
}
else if (hr == "19"){
hr = "19"
ampm=""
}
else if (hr == "20"){
hr = "20"
ampm=""
}
else if (hr == "21"){
hr = "21"
ampm=""
}
else if (hr == "22"){
hr = "22"
ampm=""
}
else if (hr == "23"){
hr = "23"
ampm=""
}
else if (hr == "24"){
hr = "24"
}
}
function addZero(){
if (min <= 9){
min = "0"+min
}
if (sec <= 9){
sec = "0"+sec
}
if (hr <= 9){
hr = "0"+hr
}
}
function addUno(){
if (month <=9) {
month = "0"+month
}
}
function time(){
dt=new Date()
date=dt.getDate()
month=dt.getMonth()
month=month+1
sec=dt.getSeconds()
hr=dt.getHours()
yr=dt.getYear()
ampm=""
min=dt.getMinutes()
}
function scroll() {
time()
antiMilitaryTime()
addZero()
addUno()
var scroller="Oggi è il "+date+"/"+month+"/"+yr
var scroller2=" e sono le "+hr+":"+min+":"+sec+" "+ampm
var timeout=setTimeout("scroll()", 1)
scroller=scroller+scroller2
  document.title = actualtitle+" - "+scroller
  }
var timeout=setTimeout('scroll()',1000);
}
else{

}
