<!--
<!----Begin of Script, hide from non-javascript clients

//function to print date on client machine

//(c)1998 Mike Helmick, Xaiver University Libraries

//helmick@xavier.xu.edu

function makeArray(n) {

  this.length = n;

  for (i=1;i<=n;i++) {

    this[i]=0;

  }

  return this;

}

function timedate() {

	var monthNames = new makeArray(12);

	monthNames[0]  = "January";

	monthNames[1]  = "Febuary";

	monthNames[2]  = "March";

	monthNames[3]  = "April";

	monthNames[4]  = "May";

	monthNames[5]  = "June";

	monthNames[6]  = "July";

	monthNames[7]  = "August";

	monthNames[8]  = "September";

	monthNames[9]  = "October";

	monthNames[10] = "November";

	monthNames[11] = "December";

	var dayName = new makeArray(7);
	
   dayName[1] = "Sunday";

   dayName[2] = "Monday";

   dayName[3] = "Tuesday";

   dayName[4] = "Wednesday";

   dayName[5] = "Thursday";

   dayName[6] = "Friday";

   dayName[7] = "Saturday";

 	var today = new Date();

	var day = today.getDate();

	var month = today.getMonth();

	var year = today.getYear();

	var dayOWeek = today.getDay();

   if( year < 1000) {

		year += 1900;

	}

	document.write('<font face="Arial, Helvetica, sans-serif" size="1"><b>');

	document.write(dayName[dayOWeek + 1]+", "+monthNames[month]+" "+day+", "+year);

	document.write("</b></font><br>");

}

//end display timedate

timedate();

<!-- end script -->

<!--hide me from non javascript browsers

//script copyright Mike Helmick 1998/1999

//this script is used to display the hours that the library is open

function displayHours() {

        var today = new Date();

        var month = today.getMonth();

        var day = today.getDay();

        var theDate = today.getDate();

        var year = today.getYear();

        if( year < 1000) {

                year += 1900;

        }

        var regularHours = false;

        var todaysHours = "";

        //formatting no matter what

        document.write('<font face="Arial, Helvetica, sans-serif" size="1"><b>');
		
        document.write('Hours Today: ');if( year == 2009) {

                if( month == 0 && year == 2009) {

                        if(theDate >= 1 &&  theDate <= 4) {

                                todaysHours = "Closed";

                       } else if(theDate >= 5 && theDate <= 9) {

                                todaysHours = "8am to 5pm";

                       } else if(theDate == 11) {

                                todaysHours = "Noon to 7pm";
								
                        } else if(theDate == 18) {

                                todaysHours = "Noon to 7pm";

                        } else if(theDate == 19) {

                                todaysHours = "Closed";
															
                        } else {

                                regularHours = true;

                        }

                }

                if( month == 1 && year == 2009) {

                        if(theDate == 9) {

                                todaysHours = "8am to 1am";

                        } else if(theDate >= 10 && theDate <= 12) {

                                todaysHours = "8am to 1am";

                        } else {

                                regularHours = true;

                        }

                }			

                if( month == 2 && year == 2009) {

                        if(theDate == 1) {

                                todaysHours = "Noon to 7pm";

                        } else if(theDate >= 2 && theDate <= 5) {

                                todaysHours = "8am to 7pm";
								
                        } else if(theDate == 6) {

                                todaysHours = "8am to 5pm";
								
                        } else if(theDate == 8) {

                                todaysHours = "1pm to 1am";

                        } else {

                                regularHours = true;

                        }

                }				

                if( month == 3 && year == 2009) {

                        if(theDate == 8) {

                                todaysHours = "8am to 10pm";
								
		                } else if(theDate == 9) {

                                todaysHours = "8am to 3pm";
								
                        } else if(theDate >= 10 && theDate <= 12) {

                                todaysHours = "Closed";

                        } else {

                                regularHours = true;

                        }

                }		
				
                if( month == 4 && year == 2009) {

                        if(theDate == 25) {

                                todaysHours = "Closed";

                        } else {

                                regularHours = true;

                        }

                }

                if( month == 5 && year == 2009) {

                        if(theDate == 1) {

                                todaysHours = "8am to 10pm";

                        } else {

                                regularHours = true;

                        }

                }

                if( month == 6 && year == 2009) {

                        if(theDate == 3) {

                                todaysHours = "Closed";
								
                        } else if(theDate == 4) {

                                todaysHours = "Closed";

                        } else {

                                regularHours = true;

                        }

                }

               if( month == 7 && year == 2009) {

                        if(theDate >= 17 && theDate <= 21) {

                                todaysHours = "8am to 8pm";
								
                        } else if(theDate == 23) {

                                todaysHours = "Noon to 7pm";

                        } else {

                                regularHours = true;

                        }

                }

                if(month == 8 && year == 2009) {

                        if(theDate == 1) {

                                todaysHours = "Closed";
								
                        } else {

                                regularHours = true;

                        }

                }

                if( month == 9 && year == 2009) {

                        if(theDate == 7) {

                                todaysHours = "7am to 10pm";
								
                        } else if(theDate == 8) {

                                todaysHours = "8am to 10pm";
								
                        } else if(theDate == 9) {

                                todaysHours = "8am to 7pm";

                        } else {

                                regularHours = true;

                        }

                }
				
                if( month == 10 && year == 2009) {

                        if(theDate == 24) {

                                todaysHours = "7am to 7pm";
								
					} else if(theDate == 25) {

                                todaysHours = "8am to 3pm";

					} else if(theDate >= 26 && theDate <= 28) {

                                todaysHours = "Closed";
								
					} else if(theDate == 29) {

                                todaysHours = "1pm to 1am";

                        } else {

                                regularHours = true;

                        }

                }

                if( month == 11 && year == 2009) {

                        if(theDate >=14 && theDate <=17) {

                                todaysHours = "7am to 3am";

                       } else if(theDate ==18) {

                                todaysHours = "7am to 5pm";

						} else if(theDate >=19 && theDate <=20) {

								todaysHours = "Closed";
								
						} else if(theDate >=21 && theDate <=22) {

								todaysHours = "8am to 5pm";
								
                       } else if(theDate ==23) {

                                todaysHours = "8am to 3pm";
								
						} else if(theDate >=24 && theDate <=31) {

								todaysHours = "Closed";

                        } else {

                                regularHours = true;

                        }

                }

                if(regularHours == true) {

                        if( day == 0) {

                                todaysHours = "10am to 1am";

                        } else if( day == 5) {

                                todaysHours = "7am to 7pm";

                        } else if( day == 6) {

                                todaysHours = "10am to 6pm"; 

                        } else {

                                todaysHours = "7am to 1am";

                        }

                }

                document.write(todaysHours);

                //document.write("<br>");

                //document.write("<br><br>Debug Information<br>");
				
				//document.write('<font face="Arial, Helvetica, sans-serif" size="1"><b>');

                //document.write("month = " + month + "<br>Day = " + day + "<br>Date = "+theDate+"<br>Year = "+year);

       //above is debug code

        }

        document.write('</b></font>');

}

//end display hours

displayHours();

<!-- end script -->
//-->
