
function showtime()
{
	var hours
	var shifthours
	var minutes
	var seconds
	var dayweek
	var localhours
	var place
	var timeLine=""

	x0 = new Date()
	x = new Date(x0.getTime()-diff);
	  
	 for (i=0; i<=worldtime.length-1;i++)
	 {
		  hours= x.getUTCHours()
		  hours = eval(hours)
	 
		  place = worldtime[i].split(",")
		  shifthours=eval(place[1])
		  localhours=eval(shifthours+hours)
		  
		  dayweek = x.getUTCDay()		  
		  if (localhours <0) {
			  localhours=24+localhours
			  dayweek -= 1 
		  }
		  if (localhours >=24) {
			  localhours=localhours-24
			  dayweek += 1 			  
		  }
		  if (dayweek <0) {dayweek = 6}
		  if (dayweek >6) {dayweek = 0}		  
		  
		  minutes=x.getUTCMinutes()
		  seconds=x.getUTCSeconds()
  
		  if (eval(minutes) < 10) {minutes="0"+minutes}
		  if (eval(seconds) < 10) {seconds="0"+seconds}
		  if (eval(localhours) < 10) {localhours="0"+localhours}
		  timeLine+= "<tr><td><b>"+place[0]+"</b></td><td><b>&nbsp;:&nbsp;"+dayweeks[dayweek]+" "+localhours+":"+minutes+":"+seconds+"</b></td></tr>"
	 }
 
	  timePanel.innerHTML = "<center><table>"+timeLine+"</table></center>";
	  timeLine=""
	  var timer=setTimeout("showtime()",1000)

}