// JavaScript Document
var tic = null,
 zone = new Date().getTimezoneOffset() / 60,
 days = [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ],
 months = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ];

//gid( 'zone' ).firstChild.nodeValue = zone;

function lz( n ) { return n<=9 ? '0' + n : n; }

function tick() {
	var f = document.forms.clock.elements,
	h = new Date(),
	i = h.getHours() + zone,
	s = ':' + lz( h.getMinutes() ) + ':' + lz( h.getSeconds() );
	
/*comment this line to hide local time*//*	f.day.value = days[ h.getDay() ]; */
/*comment this line to hide local time*//*	f.dat.value = h.getDate() + ' ' + months[ h.getMonth() ] + ' ' + h.getFullYear() + ' '; */
/*comment this line to hide local time*//*	f.loc.value = lz( h.getHours() ) + s; */
	
/*	f.gmt.value = lz( i%24 ) + s; */
	f.los.value = lz( (i - 8)%24 ) + s;
	f.nyc.value = lz( (i - 5)%24 ) + s;
	f.lon.value = lz( (i + 0)%24 ) + s;
	f.par.value = lz( (i + 1)%24 ) + s;
	f.teh.value = lz( (i + (h.getMinutes() >= 30 ? 4 : 3))%24 ) + ':' + lz( (h.getMinutes() >= 30 ? 60 - (30 + h.getMinutes()) : 30 + h.getMinutes()) ) + ':' + lz( h.getSeconds() );
	f.tok.value = lz( (i + 9)%24 ) + s;
	tic = window.setTimeout( 'tick();', 400 );
}
// -->
