// JavaScript Document
var date = new Date("Sunday, September 21, 2008, 12:00:00 AM");
var description = "our wedding day";
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write('<span id="countdown">')
if (days > 1) {
	document.write(days+1 + " days until " + description);
}
else if (days == 1) {
	document.write("Only two days until " + description);
}
else if (days == 0) {
	document.write("Tomorrow is " + description);
}
else if (days == -1) {
	document.write("Today is " + description + "!");
}
else if (days == -2) {
	 document.write("We have been married for 1 day!");
}
else {
	document.write("We have been married for " + Math.abs(days+1) + " days!");
}
document.write("</span>");