// Analog Clock - Parameters Head Script
// You may change the parameters here to set up your clock
// refer to http://javascript.about.com/library/blclock1.htm
// for a description of the parameters
var clocksize=100;
var colnumbers='656565';
var colseconds='ff0000';
var colminutes='000000';
var colhours='000000';
numstyle = 1;
var font_family = 'helvetica,arial,sans-serif';
var localZone = 0;
var mytimezone = -5;
var dst = 0;
var city = 'New York';
var country = 'USA';

var fix = 1;
var xpos=0;
var ypos=0;

new clock('newyork',clocksize,colnumbers,colseconds,colminutes,colhours,numstyle,font_family,localZone,mytimezone,dst,city,country,fix,xpos,ypos);

// code to adjust for daylight saving time if applicable (localzone = 0)
var gmt = new Date;var lsm = new Date;var lso = new Date;
lsm.setMonth(3);lsm.setDate(7);var day = lsm.getDay();lsm.setDate(7-day);
lso.setMonth(9);lso.setDate(7);day = lso.getDay();lso.setDate(7-day);
if (gmt < lsm || gmt >= lso) dst = 1;

// code to handle clock positioning (fix = 0)
city = 'London';
country = 'England';
mytimezone = 0;
dst = 0;
new clock('london',clocksize,colnumbers,colseconds,colminutes,colhours,numstyle,font_family,localZone,mytimezone,dst,city,country,fix,xpos,ypos);

city = 'Tokio';
country = 'Japan';
mytimezone = 9;
dst = 0;
new clock('tokio',clocksize,colnumbers,colseconds,colminutes,colhours,numstyle,font_family,localZone,mytimezone,dst,city,country,fix,xpos,ypos);

city = 'Moscow';
country = 'Russia';
mytimezone = 4;
dst = 0;
new clock('moscow',clocksize,colnumbers,colseconds,colminutes,colhours,numstyle,font_family,localZone,mytimezone,dst,city,country,fix,xpos,ypos);

