// JavaScript Document
now = new Date() ;
//Enter the date for your countdown. Month first then day. Example 6th month 26th day. 
eventDate = new Date("December 17, 2008");
msEachDay = 24 * 60 * 60 * 1000;
daysremaining = 0;
msEachHour = 60 * 60 * 1000; 

function showCountdown (){
// Step 1:
  daysRemaining = (eventDate.getTime() - now.getTime()) / msEachDay;
// Step 2:
  daysRemaining = Math.ceil(daysRemaining);
// Step 3:
  if (daysRemaining>0)
  {
  document.write("<span id=daysRemain>" + daysRemaining + "</span> days left for holiday shipping");
  }
//if date is tomorrow, show hours  
/*  else if (daysRemaining==1)
  {showHours();}*/
//if date is today  
/*  else if (daysRemaining==0)
  {document.write('<div id="christmas">Merry Christmas!</div>');}*/
//if date is past, hide countdown div
  else{ document.getElementById("countdown").style.visibility = "hidden";}
}
function showHours()
{
	hoursRemaining = (eventDate.getTime() - now.getTime()) / msEachHour;
	hoursRemaining = Math.floor(hoursRemaining);
	
  document.write("<span id=daysRemain>" + hoursRemaining + "</span> hours until Christmas Day");
}