﻿function GetwestquayOpeningHours() {
var normalOpeningHours = new Array(
'11am - 5pm', /*sun*/
'9am - 8pm', /*mon*/
'9am - 8pm', /*tue*/
'9am - 8pm', /*wed*/
'9am - 8pm', /*thu*/
'9am - 8pm', /*fri*/
'9am - 7pm') /*sat*/

var decHours = new Array(
'11am - 5pm', /*sun*/
'9am - 9pm', /*mon*/
'9am - 9pm', /*tue*/
'9am - 9pm', /*wed*/
'9am - 10pm', /*thu*/
'9am - 9pm', /*fri*/
'9am - 7pm') /*sat*/

var xmasHours = new Array(
'11am - 5pm', /*sun 20th*/
'9am - 10pm', /*mon*/
'9am - 10pm', /*tue*/
'9am - 10pm', /*wed*/
'9am - 5pm', /*thu xmas eve*/
'', /*fri xmas*/
'10am - 6pm') /*sat*/

var nyHours = new Array(
'11am - 5pm', /*sun 27th*/
'9am - 8pm', /*mon*/
'9am - 8pm', /*tue*/
'9am - 8pm', /*wed*/
'9am - 5pm', /*thu nye*/
'', /*fri*/
'9am - 7pm') /*sat*/

var bhHours = new Array(
'10am - 5pm',
'10am - 5pm',
'10am - 5pm',
'10am - 5pm',
'10am - 5pm',
'10am - 5pm',
'10am - 5pm')

//id the day:
var today = new Date();
var day = today.getDay();
var month = today.getMonth();
var date = today.getDate();
var openingHours;
openingHours = normalOpeningHours;

//NOTE! zero based, so jan=0, etc
if (month == 11 && date>=0 && date<=20) {
openingHours = decHours;
}
if (month == 11 && date>=19 && date<=26) {
openingHours = xmasHours;
}
if (month == 11 && date>=27 && date<=31) {
openingHours = nyHours;
}
if (month == 0 && date>=0 && date<=2) {
openingHours = nyHours;
}
if (month == 4 && date>=31 && date<=31) {
openingHours = bhHours;
}
return openingHours[day];
}
