// Analog Clock - Parameters Head Script
// You may change the parameters here to set up your clock
// refer to http://javascript.about.com/library/blclockm1.htm
// for a description of the parameters

// the following are common to all clocks
var clocksize=150;
var colnumbers='FFFFFF';
var colseconds='ff0000';
var colminutes='1C08FF';
var colhours='1C08FF';
var numstyle = 0;
var font_family = 'courier';
var fix = 1;
var xpos=0;
var ypos=0;

// the following are for the Mt.Hood-Parkdale Clock
var localZone_a = 0;
var mytimezone_a = -8;
var dst_a = 0;
var city_a = 'Mt. Hood-Parkdale, Oregon';
var country_a = 'USA';

// the following are for the Philomath Clock
var localZone_b = 0;
var mytimezone_b = -8;
var dst_b = 0;
var city_b = 'Philomath, Oregon';
var country_b = 'USA';

// the following are for the Bangalore Clock
var localZone_c = 0;
var mytimezone_c = +5.5;
var dst_c = 0;
var city_c = 'Bangalore';
var country_c = 'India';

// 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(2); // March
lsm.setDate(31);
var day = lsm.getDay();// day of week of 31st
lsm.setDate(14-day); // second Sunday
lso.setMonth(10); // November
lso.setDate(31);
day = lso.getDay();
lso.setDate(7-day);// first sunday
if (gmt < lsm || gmt >= lso) dst = 1;

// code to handle clock positioning (fix = 0)

new clock('a',clocksize, colnumbers,colseconds,colminutes, colhours,numstyle,font_family, localZone_a,mytimezone_a,dst_a,city_a, country_a,fix,xpos,ypos);
new clock('b',clocksize, colnumbers,colseconds,colminutes, colhours,numstyle,font_family, localZone_b,mytimezone_b,dst_b,city_b, country_b,fix,xpos,ypos);
new clock('c',clocksize, colnumbers,colseconds,colminutes, colhours,numstyle,font_family, localZone_c,mytimezone_c,dst_c,city_c, country_c,fix,xpos,ypos);                    