function gmtClock(offset)
{
	// Local Time
	if (offset === undefined ) offset = false;
	time 		= new Date();
    gmt_offset 	= time.getTimezoneOffset()*60000;
    gmtMS 		= time.getTime()+gmt_offset;
    gmt_offset_hours = 0;
    // Adjust GMT time with offset in hours
    if (offset) {
    	gmt_offset_hours = (Number(offset)*3600000);
    	gmtMS	= gmtMS + gmt_offset_hours;
    }
    // GMT Time
    gmtTime 	= new Date(gmtMS);
    hour 		= gmtTime.getHours();
    minute 		= gmtTime.getMinutes();
    seconds 	= gmtTime.getSeconds();
    if (hour < 10) hour = "0"+hour.toString();
    if (minute < 10) minute = "0"+minute.toString();
    if (seconds < 10) seconds = "0"+seconds.toString();
    timestamp = hour + ":" + minute + ":" + seconds;
    
	return timestamp;
};
$(document).ready ( function () {
	function update_clocks ()
	{
		$("#clock-usa").html (gmtClock(-4));
		$("#clock-uk").html (gmtClock(1));
	}
	update_clocks();
	clock_timer = setInterval(update_clocks,1000);	
});