// display current time at author location
// =======================================
// copyright Stephen Chapman, Felgall Pty Ltd, 11 July 2001, 25th November 2004
// http://www.felgall.com/ and http://javascript.about.com/
// permission is given to use this script
// provided that all comment lines in the script are retained

function myTime() {
var dst = 0;       // set to 1 for daylight savings time
                   // update this as you go on and off daylight saving time

var gmt = new Date;
var lsm = new Date;
var lso = new Date;
lsm.setMonth(2); // March
lsm.setDate(25);
var day = lsm.getDay();// day of week of 31st
lsm.setDate(25-day); // last Sunday

lso.setMonth(9); // October
lso.setDate(28);
day = lso.getDay();
lso.setDate(28-day);
if (gmt < lsm || gmt >= lso) dst = 1;



var loc = 'Sydney'; // set to your location
var mtz = 10;      // set to your local timezone (hours ahead of UTC, negative if behind)
var stdz = 'AEST'; // standard time indicator
var dayz = 'ADST'; // daylight saving time indicator (blank if you dont have daylight saving)

// do not alter anything below this line
document.writeln( loc + ' Time:<br> <span id="time">' + setDsp(mtz,dst,stdz,dayz) + '<\/span>');
if (DOMsupported) setTimeout('updDsp('+mtz+',' +dst+',"' +stdz+'","' +dayz+'")', 5000);
}

var DOMsupported = 0;var standardDOMsupported = 0;var ieDOMsupported = 0;
if (document.getElementById) { standardDOMsupported = 1; DOMsupported = 1;}
else { if (document.all) {ieDOMsupported = 1; DOMsupported = 1;}
}
function findDOM(objectId) {
if (standardDOMsupported) {return (document.getElementById(objectId));}
if (ieDOMsupported) {return (document.all[objectId]);}
}

function updDsp(mtz,dst,stdz,dayz) {
var obj = findDOM('time');
obj.innerHTML = setDsp(mtz,dst,stdz,dayz);
setTimeout('updDsp('+mtz+ ','+dst+ ',"'+stdz+ '","'+dayz+ '")', 5000);
}
function setDsp(mtz,dst,stdz,dayz) {
var dayname = new Array ('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday','Friday', 'Saturday', 'Sunday');
var now = new Date;
now.setUTCMinutes(now.getUTCMinutes() + (mtz + dst)*60);
var dow = now.getUTCDay();
var minute = now.getUTCMinutes();
var hour = now.getUTCHours();
if (hour > 11) {ampm = 'PM'; hour -= 12;} else {ampm = 'AM'}
if (hour == 0) {hour = 12;} if (minute < 10) {pad = ':0';} else {pad = ':';}
var txt = hour + pad + minute + ' ' + ampm + ' (';
if (dst) txt += dayz; else txt += stdz;
txt += ') '// + dayname[dow];
return (txt);
}

//-added-
 var Today=new Date();
    var ThisDay=Today.getDay();
    var ThisDate=Today.getDate();
    var ThisMonth=Today.getMonth()+1;
    var ThisYear=Today.getFullYear();  //included if you wish to insert the year
    function DayTxt (DayNumber) {
    var Day=new Array();
    Day[0]="Sunday";
    Day[1]="Monday";
    Day[2]="Tuesday";
    Day[3]="Wednesday";
    Day[4]="Thursday";
    Day[5]="Friday";
    Day[6]="Saturday";
    return Day[DayNumber];
    }
    var DayName=DayTxt(ThisDay);
    function MonthTxt (MonthNumber) {
    var Month=new Array();
    Month[1]="January";
    Month[2]="February";
    Month[3]="March";
    Month[4]="April";
    Month[5]="May";
    Month[6]="June";
    Month[7]="July";
    Month[8]="August";
    Month[9]="September";
    Month[10]="October";
    Month[11]="November";
    Month[12]="December";
    return Month[MonthNumber];
    }
    var MonthName=MonthTxt(ThisMonth);
    var d = new Date();
    var h = d.getHours();
