var worldtime = new Array()
worldtime[0]="Dateline,-12"
worldtime[1]="Samoa,-11"
worldtime[2]="Honolulu,-10"
worldtime[3]="Alaska,-9"
worldtime[4]="California,-8"
worldtime[5]="Denver,-7"
worldtime[6]="Chicago,-6"
worldtime[7]="New York,-5"
worldtime[8]="Halifax,-4"
worldtime[9]="East Brazil,-3"
worldtime[10]="West Brazil,-2"
worldtime[11]="Azores,-1"
worldtime[12]="London,0"
worldtime[13]="Paris,1"
worldtime[14]="S. Africa,2"
worldtime[15]="Moscow,3"
worldtime[16]="Abu Dhabi,4"
worldtime[17]="Islamabad,5"
worldtime[18]="Dhaka,6"
worldtime[19]="Jakarta,7"
worldtime[20]="Beijing,8"
worldtime[21]="Tokyo,9"
worldtime[22]="Sydney,10"
worldtime[23]="Mid Pacific,11"
worldtime[24]="Auckland,12"

var hours
var shifthours
var minutes
var seconds
var localhours
var pause=2000
var thisplace
var thisline=""
var showmenu=1

function showTime()
{
	for (i=0; i<=worldtime.length-1;i++)
	{
		thisplace=worldtime[i].split(",")
		thistime= new Date()
		hours=thistime.getUTCHours()
		hours=eval(hours)
		shifthours=eval(thisplace[1])
		localhours=eval(shifthours+hours)

		if (localhours <0) {localhours=24+localhours}

		if (localhours >=24) {localhours=localhours-24}
	
		minutes=thistime.getUTCMinutes()
		seconds=thistime.getUTCSeconds()
	
		if (thisplace[0]=='Delhi')
		{
			minutes=eval(minutes+30)
			if (minutes>=60)
			{
				minutes=eval(minutes-60)
				localhours=eval(localhours+1)
			}
		}

		if (eval(minutes) < 10) {minutes="0"+minutes}

		if (eval(seconds) < 10) {seconds="0"+seconds}

		if (eval(localhours) < 10) {localhours="0"+localhours}

		thisline += localhours + ":" + minutes + ":" + seconds + " " + thisplace[0] + "<br>"
	}
	document.write(thisline);
}
