// JavaScript Document <!--
/*
This is the plain hours script that runs as a banner across the top of the Mugar page. (The same information is available in column form as libhourscol.js, which runs on the askalib pages). Holidays/exceptions are NOT noted here except in terms of basic hours; another script holidayfeed.js provides another line to draw attention to exceptions.

*/

d = new Date();
var Time;
Hours = d.getHours();
if (Hours >= 12) {
Time = " P.M.";
}
else {
Time = " A.M.";
}
if (Hours > 12) {
Hours -= 12;
}
if (Hours == 0) {
Hours = 12;
}
Mins = d.getMinutes();
if (Mins < 10) {
Mins = "0" + Mins;
}	
//document.write('<font size=2 face=Arial><b>' + Hours + ":" + Mins + Time + '</b></font>');

d = new Date();
 day = d.getDay();
 month = d.getMonth();
 date = d.getDate();
 year = d.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 - 32*parseInt((emonth/4));
 emonth--;
 dayValue = d.getDay();
monthValue = d.getMonth();
month+=" "
if (monthValue == 0)
    month += "January";
if (monthValue == 1)
    month += "February";
if (monthValue == 2)
    month += "March";
if (monthValue == 3)
    month += "April";
if (monthValue == 4)
    month += "May";
if (monthValue == 5)
    month += "June";
if (monthValue == 6)
    month += "July";
if (monthValue == 7)
    month += "August";
if (monthValue == 8)
    month += "September";
if (monthValue == 9)
    month += "October";
if (monthValue == 10)
    month += "November";
if (monthValue == 11)
    month += "December";
 
 //document.write("<font face=verdana,arial size=2>");
 //document.write(month+=" " + " ");
 // if (date< 10) document.write("0" + date + ", ");
   //   else document.write(date + ", ");
//document.write( year + "  " + "</font> <b><font color=FF0000>");
   
  
 // January
 

 //exceptions/holidays
 if ((monthValue == 0) && (date > 0) && (date < 5)) document.write("<b>M-W:</b> 8am-5pm;<b>Th-Su:</b>CLOSED");
// normal hours
 if ((monthValue == 0) && (date > 4)) document.write("<b>M-Th:</b> 8am-midnight; <b> F-Sa:</b> 8am-11pm;  <b> Su:</b> 10am-midnight");
 
 
// February
 //exceptions/holidays

// normal hours
 if ((monthValue == 1) && (date > 0) && (date < 29)) document.write("<b>M-Th:</b> 8am-midnight; <b> F-Sa:</b> 8am-11pm;  <b> Su:</b> 10am-midnight");
 
 
 
 // March note:  day 0=Sun
   //exceptions/holidays 
  
 //exceptions/holidays

// normal hours
 if ((monthValue == 2)) document.write("<b>M-Th:</b> 8am-midnight; <b> F-Sa:</b> 8am-11pm;  <b> Su:</b> 10am-midnight");
 
 

// April
 //exceptions/holidays

// normal hours
 if ((monthValue == 3)) document.write("<b>M-Th:</b> 8am-midnight; <b> F-Sa:</b> 8am-11pm;  <b> Su:</b> 10am-midnight");
 


// May

//finals hours
 if ((monthValue == 4) && (date > 0) && (date < 10)) document.write("&nbsp;&nbsp;&nbsp;  <b>M-Th:</b> 8am-midnight; <b> F-Sa:</b> 8am-11pm; <b> Su:</b> 10am-midnight");
// commencement 5/17/09
 if ((monthValue == 4) && (date > 9) && (date < 18)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 8am-midnight; <b> F-Sa:</b> 8am-4pm; <b> Su:</b> 9am-5pm");
 //summer hours begin 5/26/09 - normal hours on Memorial Day
if ((monthValue == 4) && (date > 17)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 8am-11pm;  <b> F-Sa:</b> 8am-5pm; <b> Su:</b> 10am-11pm");


// June
 
// normal summer hours
 if ((monthValue == 5) && (date > 0) && (date < 29)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 8am-11pm; <b> F-Sa:</b> 8am-5pm;  <b> Su:</b> 10am-11pm");
 if ((monthValue == 5) && (date > 28)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 8am-11pm; <b>F:</b> CLOSED <b>Sa:</b> CLOSED <b> Su:</b> 10am-11pm");



 // July
//4th of July week
 if ((monthValue == 6) && (date > 0) && (date < 6)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 8am-11pm; <b>F:</b> CLOSED <b>Sa:</b> 8am-5pm;  <b> Su:</b> 10am-11pm");
 
// normal summer hours
 if ((monthValue == 6) && (date > 5)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 8am-11pm; <b> F-Sa:</b> 8am-5pm;  <b> Su:</b> 10am-11pm");

 
// August

 //holiday hours trigger for pre-Labor day week Labor Day 9/7/09
if ((monthValue == 7) && (date > 23) && (date < 32)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Tu:</b> 8am-11pm; <b>W-Th:</b> 8am-midnight; <b> F-Sa:</b> 8am-5pm;  <b> Su:</b> 10am-5pm");

// normal summer hours
 if ((monthValue == 7) && (date > 0) && (date < 24)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 8am-11pm; <b> F-Sa:</b> 8am-5pm;  <b> Su:</b> 10am-11pm");

  
 //holiday hours trigger for pre-Labor day week Labor Day 9/7/09; open 8-5 2008
 // September
 //holiday hours trigger for Labor Day week 
if ((monthValue == 8) && (date > 0) && (date < 7)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Tu:</b> 8am-11pm; <b>W-Th:</b> 8am-midnight; <b> F-Sa:</b> 8am-11pm;  <b> Su:</b> 10am-2am");
if ((monthValue == 8) && (date > 6) && (date < 13)) document.write("&nbsp;&nbsp;&nbsp; <b>M: 8am-10pm</b>; <b>Tu-Th:</b> 7am-2am; <b> F:</b> 7am-11pm; <b>Sa:</b> 8am-11pm;  <b> Su:</b> 10am-2am");

// normal hours
if ((monthValue == 8) && (date > 12)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 7am-2am; <b> F:</b> 7am-11pm; <b>Sa:</b> 8am-11pm;  <b> Su:</b> 10am-2am");

 // October 
//Columbus Day - normal hours
//holidayfeed note for Columbus Day 
// normal hours
 if ((monthValue == 9)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 7am-2am; <b> F:</b> 7am-11pm; <b>Sa:</b> 8am-11pm;  <b> Su:</b> 10am-2am");

  
 // November
//exceptions/holidays 
// Veteran's Day - normal hours (see holidayfeed note)
//Thanksgiving
if ((monthValue == 10) && (date > 21) && (date < 29)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Tu:</b> 7am-2am; <b>W:</b> 8am-9pm; <b>Th:</b> CLOSED <b> F:</b> 9am-5pm; <b> Sa:</b> 8am-11pm; <b> Su:</b> 10am-2am");
 

// normal hours
 if ((monthValue == 10) && (date > 0) && (date < 22)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 7am-2am; <b> F:</b> 7am-11pm; <b>Sa:</b> 8am-11pm;  <b> Su:</b> 10am-2am");
 if ((monthValue == 10) && (date > 28)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 7am-2am; <b> F:</b> 7am-11pm; <b>Sa:</b> 8am-11pm;  <b> Su:</b> 10am-2am");
 
 // December
 //exceptions/holidays

// normal hours
 if ((monthValue == 11) && (date > 0) && (date < 21)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Th:</b> 7am-2am; <b> F:</b> 7am-11pm; <b>Sa:</b> 8am-11pm;  <b> Su:</b> 10am-2am");
 if ((monthValue == 11) && (date > 20) && (date < 28)) document.write("&nbsp;&nbsp;&nbsp; <b>M-Tu:</b> 8am-midnight;<b>W:</b> 8am-1pm; <b>Th-Su:</b> CLOSED");
 if ((monthValue == 11) && (date > 27)) document.write("&nbsp;&nbsp;&nbsp; <b>M-W:</b> 8am-5pm;<b>Th-Su:</b>CLOSED");

 

