<!--
var bIsMSIE = bIsMSIE;
var bIsMSIE3Up = bIsMSIE3Up;
var bIsMSIE4Up = bIsMSIE4Up;
var bIsMSIE5Up = bIsMSIE5Up;
 
var bIsNS = bIsNS;
var bIsNS3Up = bIsNS3Up;
var bIsNS4Up = bIsNS4Up;
var bIsNS6Up = bIsNS6Up;
 
var bIsOpera = bIsOpera;
var bIsOpera5Up = bIsOpera5Up;
 
var isDOM = (document.getElementById ? true : false);
var isIE  = (document.all ? true: false);
var isNS4 = (navigator.appName=='Netscape' && !isDOM ? true : false);
var isIE4 = ((isIE && !isDOM) ? true : false);
var isDyn = (isDOM || isIE4 || isNS4);
 
// ****************************** FORMAT GREETING *******************************
var today = new Date();
 
function makeArray(arrayLen) {
 this.length = arrayLen;
 return this;
}
 
monthNames = new makeArray(12);
monthNames[1] = "January";
monthNames[2] = "February";
monthNames[3] = "March";
monthNames[4] = "April";
monthNames[5] = "May";
monthNames[6] = "June";
monthNames[7] = "July";
monthNames[8] = "August";
monthNames[9] = "September";
monthNames[10] = "October";
monthNames[11] = "November";
monthNames[12] = "December";
 
dayNames = new makeArray(7);
dayNames[1] = "Sunday";
dayNames[2] = "Monday";
dayNames[3] = "Tuesday";
dayNames[4] = "Wednesday";
dayNames[5] = "Thursday";
dayNames[6] = "Friday";
dayNames[7] = "Saturday";
 
function formatDateStr(theDate) {
 var theDay = dayNames[theDate.getDay() + 1];
 var theMonth = monthNames[theDate.getMonth() + 1];
 var theYear = theDate.getYear();
 
 if (theYear < 2000) { theYear = theYear + 1900; }
 return theDay + ", " + theMonth + " " + theDate.getDate() + ", " + theYear;
}
 
function customGreet(theDate) {
 var theMonth = (theDate.getMonth() + 1);
 var theDay = theDate.getDate();
 var theHour = theDate.getHours();
 var theYear = theDate.getYear();
 
 // Don't forget to update yearly!
if (theYear == 2006 && theDay > 3)
  return "Please Update the Events List";
 
if (theMonth == 1 && theDay == 1)
  return "New Year's Day";
 if (theMonth == 1 && theDay == 17)
  return "Martin Luther King, Jr. Day";
 
 if (theMonth == 2 && theDay == 2)
  return "Groundhog's Day";
 if (theMonth == 2 && theDay == 14)
  return "Valentine's Day";
 if (theMonth == 2 && theDay == 21)
  return "President's Day";
 
 
 if (theMonth == 3 && theDay == 17)
  return "St. Patrick's Day";
 if (theMonth == 3 && theDay == 20)
  return "First Day of Spring";
 if (theMonth == 3 && theDay == 27)
  return "Easter";
 
 
 if (theMonth == 4 && theDay == 1)
  return "April Fool's Day";
 if (theMonth == 4 && theDay == 3)
  return "Daylight Savings Time Begins - Spring Forward";
 if (theMonth == 4 && theDay == 27)
  return "Administrative Professionals Day";
 
 
 if (theMonth == 5 && theDay == 1)
  return "May Day"; 
 if (theMonth == 5 && theDay == 5)
  return "Cinco de Mayo"; 
 if (theMonth == 5 && theDay == 8)
  return "Mother's Day";
 if (theMonth == 5 && theDay == 21)
  return "Armed Forces Day";
 if (theMonth == 5 && theDay == 22)
  return "Victoria Day - Canada";
 if (theMonth == 5 && theDay == 29)
  return "Memorial Day"; 
 
 if (theMonth == 6 && theDay == 14)
  return "Flag Day";
 if (theMonth == 6 && theDay == 18)
  return "Father's Day";
 if (theMonth == 6 && theDay == 21)
  return "First Day of Summer";
 
 
 if (theMonth == 7 && theDay == 1)
  return "Canada Day";
 if (theMonth == 7 && theDay == 4)
  return "Independence Day";
 
    
 if (theMonth == 9 && theDay == 4)
  return "Labor Day";
 if (theMonth == 9 && theDay == 23)
  return "First Day of Autumn";
 
  
 if (theMonth == 10 && theDay == 9)
  return "Columbus Day & Thanksgiving - Canada";
 if (theMonth == 10 && theDay == 14)
  return "Sweetest Day";
 if (theMonth == 10 && theDay == 16)
  return "National Boss Day";
 if (theMonth == 10 && theDay == 29)
  return "Daylight Savings Time Ends - Fall Back";
 if (theMonth == 10 && theDay == 31)
  return "Happy Halloween";
 
 if (theMonth == 11 && theDay == 7)
  return "Election Day";
 if (theMonth == 11 && theDay == 11)
  return "Veteran's Day and Remembrance Day - Canada";
 if (theMonth == 11 && theDay == 23)
  return "Thanksgiving Day";
 
  
 if (theMonth == 12 && theDay == 22)
  return "First Day of Winter";
 if (theMonth == 12 && theDay == 24)
  return "Christmas Eve";
 if (theMonth == 12 && theDay == 25)
  return "Christmas Day";
 if (theMonth == 12 && theDay == 26)
  return "Boxing Day - Canada";
 if (theMonth == 12 && theDay == 31)
  return "New Year's Eve";
  
 if (theHour < 6)
  return "Welcome to IListenToBooks.com!";
 if (theHour < 12)
  return "Good morning";
 if (theHour < 17)
  return "Good afternoon";
 
 return "Good evening"; 
 
}
 

var sTodaysDate = (formatDateStr(today));
var sGreeting = (customGreet(today));
 
// ******************************** WRITE HEADER ********************************
function writeGreeting() {
 sHeadHTML = '<span class="dateBarText">' + sTodaysDate + '<span id="clockface"></span>' + ' - ' + sGreeting + '!</span>';
 document.write(sHeadHTML);
}
 
// ********************************** THE CLOCK *********************************
function clock() {
 if (!isDOM && !isDyn) return;
 
 var today = new Date();
 var hours = today.getHours();
 var minutes = today.getMinutes();
 var seconds = today.getSeconds();
 var am_pm = "AM";
 
 if (hours > 11)
  am_pm = "PM";
 if (hours > 12)
  hours = hours - 12;
 if (hours == 0)
  hours = 12;
 if (minutes <= 9)
  minutes = "0" + minutes;
 if (seconds <= 9)
  seconds = "0" + seconds;
 
 curTime = "&nbsp;- " + hours + ":" + minutes + ":" + seconds + " " + am_pm;
 
 if (isDOM) {
  document.getElementById("clockface").innerHTML = curTime;
  setTimeout("clock()", 1000);
  return;
 }
 
 if (isIE) {
  clockface.innerHTML = curTime;
  setTimeout("clock()", 1000);
  return;
 }
 
 document.layers.clockface.document.write(curTime);
 document.layers.clockface.document.close();
}
 
//-->