<!--
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 == 19)
  return "Martin Luther King, Jr. Day";
 if (theMonth == 1 && theDay == 22)
  return "Chinese New Year - Year of the Monkey";

 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 == 3)
  return "Happy Birthday Conner";	
 if (theMonth == 3 && theDay == 10)
  return "Happy Birthday Jill";
 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 == 3 && theDay == 23)
  return "Happy Birthday T";
	
 if (theMonth == 4 && theDay == 1)
  return "April Fool's Day";	
 if (theMonth == 4 && theDay == 11)
  return "Happy Birthday Mom Hamann";
 if (theMonth == 4 && theDay == 3)
  return "Daylight Savings Time Begins - Spring Forward";
 if (theMonth == 4 && theDay == 27)
  return "Administrative Professionals Day";
 if (theMonth == 4 && theDay == 2)
  return "Happy Birthday Katy";	
 if (theMonth == 4 && theDay == 7)
  return "Happy Birthday Aaron Basham";
 if (theMonth == 4 && theDay == 23)
  return "Happy Birthday Emily";

	
 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 == 23)
  return "Victoria Day - Canada";
 if (theMonth == 5 && theDay == 30)
  return "Memorial Day"; 
 if (theMonth == 5 && theDay == 4)
  return "Happy Birthday Carol and Don Juan";
 if (theMonth == 5 && theDay == 26)
  return "Jocelyn turns 9 months old";  
 if (theMonth == 5 && theDay == 28)
  return "Happy Birthday Kevin";  
 if (theMonth == 5 && theDay == 29)
  return "Jill and Kevin's Annivesary";  

	
 if (theMonth == 6 && theDay == 14)
  return "Flag Day";
 if (theMonth == 6 && theDay == 17)
  return "Happy Anniversay Mom and Dad Hamann and Grandma and Grandpa Kaufmann";
 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 == 6 && theDay == 26)
  return "Jocelyn turns 10 months old";  
	 
 if (theMonth == 7 && theDay == 3)
  return "Happy Birthday Chris Brueck";  
 if (theMonth == 7 && theDay == 4)
  return "Independence Day";
 if (theMonth == 7 && theDay == 7)
  return "Happy Birthday Jessica";
 if (theMonth == 7 && theDay == 9)
  return "Happy Birthday Betsy Bajek";
 if (theMonth == 7 && theDay == 24)
  return "Happy Birthday Ariel Basham";
 if (theMonth == 7 && theDay == 26)
  return "Jocelyn turns 11 months old";  
  
 if (theMonth == 8 && theDay == 14)
  return "Happy Birthday, Dad Hamann";
if (theMonth == 8 && theDay == 5)
  return "Happy Anniversary, Park and Betsy";
if (theMonth == 8 && theDay == 22)
  return "Happy 40th Anniversary, Mom and Dad Hart!";
 if (theMonth == 8 && theDay == 26)
  return "Jocelyn's 1st Birthday!";  

  
 if (theMonth == 9 && theDay == 4)
  return "Labor Day";
 if (theMonth == 9 && theDay == 23)
  return "First Day of Autumn";
 if (theMonth == 9 && theDay == 4)
  return "Happy Birthday Park 'Poopsie' Basham";
 if (theMonth == 9 && theDay == 12)
  return "Happy Anniversary Carol and Kent Rubley";
 if (theMonth == 9 && theDay == 21)
  return "Happy Birthday Kent";
	 
 if (theMonth == 10 && theDay == 9)
  return "Columbus Day & Thanksgiving - Canada";
 if (theMonth == 10 && theDay == 14)
  return "Sweetest Day";
 if (theMonth == 10 && theDay == 29)
  return "Daylight Savings Time Ends - Fall Back";
 if (theMonth == 10 && theDay == 31)
  return "Happy Halloween";
 if (theMonth == 10 && theDay == 18)
  return "Happy Birthday Chris Hedges";

 if (theMonth == 11 && theDay == 7)
  return "Election Day - Go VOTE! -- Happy Birthday Grandma Gonyea";
 if (theMonth == 11 && theDay == 10)
  return "Happy Birthday Jennifer";
 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 Wolfcrafts.com";
 if (theHour < 11)
  return "Good morning";
 if (theHour < 16)
  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();
}

//-->
