/* 
22-02-2010 StaySail
Aangepast script voor Clock
Clock shows local and Olympic(Vancouver) time
*/
function showClock()
{
var clock=new Date();
var hours=clock.getHours();
var gmtMS=clock.getTime() + (clock.getTimezoneOffset() * 60000);
var gmtTime=new Date(gmtMS);
var clock=gmtTime;
var hoursgmt=gmtTime.getHours();

var minutes=clock.getMinutes();
var seconds=clock.getSeconds();
// for a nice disply we'll add a zero before the numbers between 0 and 9
if (hours<10){
hours="0" + hours;
}
if (minutes<10){
minutes="0" + minutes;
}
if (seconds<10){
seconds="0" + seconds;
}

document.getElementById('showTime').innerHTML=hours+":"+minutes+":"+seconds+"  Local Time";

t=setTimeout('showClock()',1000);
/* setTimeout() JavaScript method is used to call showClock() every 1000 milliseconds (that means exactly 1 second) */
}
