// JavaScript Document <!--
/*
This is the plain hours script that runs in column form  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. IMPORTANT: The week designation script weekrange.js triggers on Sunday, so all week dates should begin on Sunday.


*/

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 - 31*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 day 0=Sun
 

 //exceptions/holidays 
 //New Years day 
if ((monthValue == 0) && (date > 0) && (date < 5)) document.write("<b>M-W:</b> 8am-5pm <br><b>Th-Su:</b>CLOSED");

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

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


// April day 0=Sun
 //exceptions/holidays

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

// May

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


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



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

 

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

 // October


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

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


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

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


