var date = new Date("September 22, 2006");
var description = "FenCon III";
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
var monkey = days + 1;
document.write(" ")
if (days > 1) {
document.write("There are just " + monkey + " days until " + description);
}
else if (days == 1) {
document.write("There are just two days until " + description);
}
else if (days == 0) {
document.write("There are just a few hours until " + description);
}
else if (days == -1) {
document.write(description + " is happening now!");
}
else if (days == -2) {
document.write(description + " is happening now!");
}
else if (days == -3) {
document.write(description + " is happening now!");
}
else {
document.write(description + " is over.  See you in 2007!");
}
document.write(" ");
