/* This countdown script was written by Daryl C. DuLong
   and is not available for reproduction without permission.
   Date Authored: January 9, 2000
*/
var now = new Date()
thisYr = now.getYear()
if (thisYr < 1900) {
thisYr = thisYr+1900
}
nextYr = thisYr + 1

president = new Date(thisYr,11,18)
if (president.getTime() < now.getTime()) {
president.setYear(nextYr)
}

birthday = new Date(thisYr,1,6)
if (birthday.getTime() < now.getTime()) {
birthday.setYear(nextYr)
}

christmas = new Date(thisYr,11,25)
if (christmas.getTime() < now.getTime()) {
christmas.setYear(nextYr)
}

function dayToDays(inTime) {
return (Math.floor(inTime.getTime() / (1000 * 60 * 60 * 24)))
}
function daysTill(inDate) {
return dayToDays(inDate) - dayToDays(now)
}
