<!--
function GetMonth(intMonth){
var MonthArray = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December") 
return MonthArray[intMonth] 
}	
function GetDate(intDate){
var DateArray = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12","13", "14", "15", "16", "17", "18", "19", "20", "21", "22","23", "24", "25", "26", "27", "28", "29", "30") 
return DateArray[intDate] 
}
var QueenBirthday = 14;
//Commonwealth Day (second Monday in March each year)
var CommonwealthDay = 14;
var QueenBirthdayStart = 1;
var QueenBirthdayEnd= (QueenBirthday - 1);
var CommonwealthDayStart =14;
var CommonwealthDayEnd = (CommonwealthDay - 1);
var now = new Date();
var MonthStr ="";
var DateStr ="";
var YearStr ="";
MonthStr=GetMonth(now.getMonth());
DateStr=GetDate(now.getDate());
var year=now.getYear();
if(year<1000) year+=1900;
YearStr=year;
var nMonth=MonthStr;
var nDate=DateStr;
var nYear=YearStr;
if(year<1000) year+=1900
//Start Process
//Australia Day Sequence (NOT TO BE CHANGED)
 if (nMonth=='January' && nDate<=25) {
var now = new Date();
var then = new Date("January, 26 " + nYear);
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write("<font size=-1 face=Arial COLOR=#660000>");
if (gap==0) {
document.write("Tomorrow is ");
}
else if (gap==1) {
document.write("Only " + gap + " day to ");
}
else {
document.write("Only " + gap + " days to ");
}
document.write("<A HREF=http://www.statusquo.org/aru_html/html/ausday.html TARGET=Display> Australia Day</A> ");
document.write(" (26 January " + nYear + ")");
document.write("</font>");
}
//Anniversary of the Order of Australia (NOT TO BE CHANGED)
 else if (nMonth=='February' && nDate>=7 && nDate<=13) {
var now = new Date();
var then = new Date("February, 14 " + nYear);
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write("<font size=-1 face=Arial COLOR=#660000>");
if (gap==0) {
document.write("Tomorrow is the anniversary of the establishment of the ");
}
else if (gap==1) {
document.write("Only " + gap + " day to the anniversary of the ");
}
else {
document.write("Only " + gap + " days to the anniversary of the ");
}
document.write("<A HREF=http://www.statusquo.org/aru_html/html/orderofaus.html TARGET=Display>Order of Australia</A> ");
document.write(" (14 February " + nYear + ")");
document.write("</font>");
}
//Commonwealth Day (second Monday in March each year - changes made at top of page)
 else if (nMonth=='February' && nDate>=CommonwealthDayStart || nMonth=='March' && nDate<=CommonwealthDayEnd) {
var now = new Date();
var then = new Date("March, " + CommonwealthDay + " "  + nYear);
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write("<font size=-1 face=Arial COLOR=#660000>");
if (gap==0) {
document.write("Tomorrow is ");
}
else if (gap==1) {
document.write("Only " + gap + " day to ");
}
else {
document.write("Only " + gap + " days to ");
}
document.write("<A HREF=http://www.thecommonwealth.org/ TARGET=_blank>Commonwealth Day</A> ");
document.write(" (" + CommonwealthDay + " March " + nYear + ")");
document.write("</font>");
}
//Queen's ACTUAL Birthday sequence (NOT TO BE CHANGED)
 else if (nMonth=='April' && nDate>=11 && nDate<=20) {
var now = new Date();
var then = new Date("April, 21 " + nYear);
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write("<font size=-1 face=Arial COLOR=#660000>");
if (gap==0) {
document.write("Tomorrow is the ");
}
else if (gap==1) {
document.write("Only " + gap + " day to the ");
}
else {
document.write("Only " + gap + " days to the ");
}
document.write("<A HREF=http://www.statusquo.org/aru_html/html/birthday.html TARGET=Display>Queen's Actual Birthday</A> ");
document.write(" (21 April " + nYear + ")");
document.write("</font>");
}
//Queen's OFFICAL Birthday sequence (To be changed each year - changes made at top of page)
 else if (nMonth=='June' && nDate<=QueenBirthdayStart || nMonth=='June' && nDate<=QueenBirthdayEnd) {
var now = new Date();
var then = new Date("June, " + QueenBirthday + " " + nYear);
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write("<font size=-1 face=Arial COLOR=#660000>");
if (gap==0) {
document.write("Tomorrow is the ");
}
else if (gap==1) {
document.write("Only " + gap + " day to the ");
}
else {
document.write("Only " + gap + " days to the ");
}
document.write("<A HREF=http://www.statusquo.org/aru_html/html/birthday.html TARGET=Display>Queen's Offical Birthday</A> ");
document.write(" (" + QueenBirthday + " June " + nYear + ")");
document.write("</font>");
}
//FLAG DAY sequence (NOT TO BE CHANGED)
 else if (nMonth=='September' && nDate<=2 || nMonth=='August') {
var now = new Date();
var then = new Date("September, 3 " + nYear);
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write("<font size=-1 face=Arial COLOR=#660000>");
if (gap==0) {
document.write("Tomorrow is ");
}
else if (gap==1) {
document.write("Only " + gap + " day to ");
}
else {
document.write("Only " + gap + " days to ");
}
document.write("<A HREF=http://www.statusquo.org/aru_html/html/flagday.html TARGET=Display>Flag Day</A> ");
document.write(" (3 September " + nYear + ")");
document.write("</font>");
}
//FEDERATION ANNIVERSARY (NOT TO BE CHANGED)
 else {
var nextYear = (nYear + 1);
var now = new Date();
var then = new Date("January, 1 " + nextYear);
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write("<font size=-1 face=Arial COLOR=#660000>");
if (gap==0) {
document.write("Tomorrow is the ");
}
else if (gap==1) {
document.write("Only " + gap + " day to the ");
}
else {
document.write("Only " + gap + " days to the ");
}
document.write("<A HREF=http://www.statusquo.org/aru_html/html/federation.html TARGET=Display>Anniversary of Federation</A> ");
document.write("of the Commonwealth of Australia (1 January " + nextYear + ")");
document.write("</font>");
}
//-->