// JavaScript Document
/*
 Java Script Calendar is a small script for web pages which displays current Day of the week, Month, Date and Year along with Holidays notification. Calculates Easter Sunday date! 
*/
function holidayalert() {
 calendar = new Date();
 day = calendar.getDay();
 month = calendar.getMonth();
 date = calendar.getDate();
 year = calendar.getYear();
 if (year < 1000)
 year+=1900
 cent = parseInt(year/100);
 g = year % 19;
 k = parseInt((cent - 17)/25);
 i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
 i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
 j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
 l = i - j;
 emonth = 3 + parseInt((l + 40)/44);
 edate = l + 28 - 31*parseInt((emonth/4));
 emonth--;
 var dayname = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
 var monthname = 
 new Array ("January","February","March","April","May","June","July","August","September","October","November","December" );
 // Easter
 if ((month == emonth) && (date == edate)) document.write("<div id='holidayalert'>Easter Sunday (Western)</div>");
 // January
 // February
 // March
 // April
 // May
 // June
 // July
 // August
 if ((month == 7) && (date == 11)) document.write("<div id='holidayalert'>Brisbane Show Day (QLD) - Wednesday, August 11th<br>Rocklea Warehouse LIMITED FREIGHT SERVICES</div>");
 // September
  if ((month == 8) && (date == 25)) document.write("<div id='holidayalert'>Queen's Birthday Holiday (WA) - Monday, September 27 <br>Bayswater Warehouse</div>");
 if ((month == 8) && (date == 26)) document.write("<div id='holidayalert'>Queen's Birthday Holiday (WA) - Monday, September 27 <br>Bayswater Warehouse</div>");
 if ((month == 8) && (date == 27)) document.write("<div id='holidayalert'>Queen's Birthday Holiday (WA) - Monday, September 27 <br>Bayswater Warehouse</div>");
 // October
  if ((month == 9) && (date == 2)) document.write("<div id='holidayalert'>Labour Day (NSW, ACT & SA) - Monday, October 4 <br>Beverley, Beresfield, Smithfield & Bayswater Warehouse's </div>");
 if ((month == 9) && (date == 3)) document.write("<div id='holidayalert'>Labour Day (NSW, ACT & SA) - Monday, October 4 <br>Beverley, Beresfield, Smithfield & Bayswater Warehouse's </div>");
 if ((month == 9) && (date == 4)) document.write("<div id='holidayalert'>Labour Day (NSW, ACT & SA) - Monday, October 4 <br>Beverley, Beresfield, Smithfield & Bayswater Warehouse's </div>");
 if ((month == 10) && (date == 31)) document.write("<div id='holidayalert'>Melbourne Cup Day (Melbourne Metropolitan only)- Tuesday November 2<br>Noble Park Warehouse</div>");
 // November
  if ((month == 10) && (date == 1)) document.write("<div id='holidayalert'>Melbourne Cup Day (Melbourne Metropolitan only)- Tuesday November 2<br>Noble Park Warehouse</div>");
  if ((month == 10) && (date == 2)) document.write("<div id='holidayalert'>Melbourne Cup Day (Melbourne Metropolitan only)- Tuesday November 2<br>Noble Park Warehouse</div>");
// December
 if ((month == 11) && (date == 25)) document.write("<div id='holidayalert'>Merry Christmas<br>All Warehouses are closed over the Christmas Period</div>");
  if ((month == 11) && (date == 26)) document.write("<div id='holidayalert'>Boxing Day<br>All Warehouses are closed over the Christmas Period</div>");
  if ((month == 11) && (date == 27)) document.write("<div id='holidayalert'>Public Holiday<br>All Warehouses are closed over the Christmas Period</div>");
if ((month == 11) && (date == 28)) document.write("<div id='holidayalert'>Proclamation Day<br>Beverley Warehouse</div>");
 document.write("<br />");
};