// JavaScript Document
<!--

var j = 0; // counter for loop an array
var datetext = ""; // stores the text which contains the day, , date, month, and year 
var datearray = new Array(); // stores the date 
function printDay() {   
   var dt = new Array(); // stores all the days
   var dm = new Array(); // stores all the months
   var dateLast = new Date(document.lastModified);
	 // initalize the arrays
   dt[0] = "Sunday";   dt[1] = "Monday";
   dt[2] = "Tuesday";  dt[3] = "Wednesday";
   dt[4] = "Thursday"; dt[5] = "Friday";
   dt[6] = "Saturday";

   dm[0] = "January";   dm[1] = "February";
   dm[2] = "March"; dm[3] = "April";
   dm[4] = "May";   dm[5] = "June";
   dm[6] = "July";  dm[7] = "August";
   dm[8] = "September";   dm[9] = "October";
   dm[10] = "November";  dm[11] = "December";
   
   datearray = [dt[(new Date()).getDay()], ", ", new Date().getDate(), " ", dm[(new Date()).getMonth()], " ", new Date().getFullYear()];
   while (j < datearray.length) {
      datetext += datearray[j]; // add one more words to the text from datearray
      date.innerHTML = datetext; // print the text on page
      j++; // counter incresement
      //window.setTimeout("printDay()", 200); // set the timer and recursivly call the function itself
   }// end if
   
   //changeTime();

   var dateLast_text = ("This page was last updated: " + [dateLast.getDate(), dm[dateLast.getMonth()], dateLast.getFullYear()]);
   //last.innerHTML = dateLast_text;
   
}// end printDay()

function changetoFoodMenu() {
	document.getElementById('menupic').src = "images/food_menu.jpg";
	document.getElementById('DMP').src = "images/button_drinks_off.gif";
	document.getElementById('FMP').src = "images/button_food_on.gif";
}

function changetoDrinkMenu() {
	document.getElementById('menupic').src = "images/drink_menu.jpg";
	document.getElementById('DMP').src = "images/button_drinks_on.gif";
	document.getElementById('FMP').src = "images/button_food_off.gif";
}


//-->