function WorldClock(){
		
		//This is where you change cities
 		
 		//Gunda should begin editing here
 		UpdateDisplayedTime(city1,'Vancouver','http://www.weatheroffice.ec.gc.ca/city/pages/bc-74_metric_e.html','http://www.timeanddate.com/worldclock/results.html?query=Vancouver',-7)
 		UpdateDisplayedTime(city2,'Buenos Aires','http://www.buenosairesherald.com/','http://www.timeanddate.com/worldclock/city.html?n=51',-3)
 		UpdateDisplayedTime(city3,'Regensburg','http://www.hhog.de/en/showCity_en.php?cityID=10014','http://www.timeanddate.com/worldclock/results.html?query=Regensburg',2)
 		UpdateDisplayedTime(city4,'Singapore','http://www.singaporenews.com','http://www.timeanddate.com/worldclock/results.html?query=Singapore',8)
 		UpdateDisplayedTime(city5,'Christchurch','http://www.neuseeland-news.co.nz/index.htm?page=45','http://www.timeanddate.com/worldclock/city.html?n=951',12)
 		//Gunda should stop editing here
 		
 		setTimeout('WorldClock()',10000);
 		
	}

function UpdateDisplayedTime(spanname, displayname, searchstr, timestr, zoneoffset){
		
		now=new Date();
		ofst=now.getTimezoneOffset()/60;
		secs=now.getSeconds();
		daystr=now.getDay();
		sec=-1.57+Math.PI*secs/30;
		mins=now.getMinutes();
		min=-1.57+Math.PI*mins/30;
		
	    hr=(now.getHours() + parseInt(ofst)) + parseInt(zoneoffset)
		    
		hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
		if (hr < 0) {
		  hr+=24;
		  daystr-=1;
		 }
		if (hr > 23) {
		  hr-=24;
		  daystr+=1;
		 }
		ampm = (hr > 11)?"PM":"AM";
		statusampm = ampm.toLowerCase();
		
		hr2 = hr;
		if (hr2 == 0) hr2=12;
		(hr2 < 13)?hr2:hr2 %= 12;
	    //if (hr<10) hr="0"+hr2
		if (hr2<10) hr2="0"+hr2
		
		// use this if you want am/pm time
		//var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs) +' '+statusampm;
		
		//use this if you want 24 hour clock
		var finaltime=hr+':'+((mins < 10)?"0"+mins:mins)
		
		//use this if you want a 24 hour clock with seconds
		//finaltime=finaltime+':'+((secs < 10)?"0"+secs:secs)
		
		
		//Add the day
		if (daystr==1||daystr==8) daystr="Mon"
		else if (daystr==2) daystr="Tue"
		else if (daystr==3) daystr="Wed"
		else if (daystr==4) daystr="Thu"
		else if (daystr==5) daystr="Fri"
		else if (daystr==6||daystr==-1) daystr="Sat"
		else if (daystr==7||daystr==0) daystr="Sun"
		
		finaltime+=' '+daystr
		
		
		var FinalDisplay='<a href='+searchstr+' target=_blank  style="text-decoration: none"><font color=#FFFFFF>'+displayname+' </font></a>'
		FinalDisplay=FinalDisplay+'<a href='+timestr+' target=_blank  style="text-decoration: none"><font color=#FFFFFF>'+finaltime+'</font></a>'
		
		if (document.all)
			spanname.innerHTML=FinalDisplay
		else if (document.getElementById)
			document.getElementById(spanname).innerHTML=FinalDisplay
	}
		
//To expand the number of cities displayed, change this table and match your
//changes in the WorldClock function
document.write('<table border="0" width="100%" bgcolor="#800000" id="clocks" cellpadding="1" cellspacing="0" >');
document.write('	<tr>');
document.write('		<td align=center valign=top><font color="#FFFFFF"><span id="city1" style="font:bold 10px Arial;">&nbsp</span></font></td>');
document.write('		<td align=center valign=top><font color="#FFFFFF"><span id="city2" style="font:bold 10px Arial;">&nbsp</span></font></td>');
document.write('		<td align=center valign=top><font color="#FFFFFF"><span id="city3" style="font:bold 10px Arial;">&nbsp</span></font></td>');
document.write('		<td align=center valign=top><font color="#FFFFFF"><span id="city4" style="font:bold 10px Arial;">&nbsp</span></font></td>');
document.write('		<td align=center valign=top><font color="#FFFFFF"><span id="city5" style="font:bold 10px Arial;">&nbsp</span></font></td>');
document.write('	</tr>');
document.write('</table>');

//Call the WorldClock funtion
window.onload=WorldClock
	

