var day_description = "The 2010 First Shot Ceremony";
var day_before = "The 2010 First Shot Ceremony is only two days away";

var today = new Date();
var year = today.getYear();
if ( (navigator.appName == "Microsoft Internet Explorer") && (year < 2000))		
year="19" + year;
if (navigator.appName == "Netscape")
year=1900 + year;
var date = new Date("July 12, 2010");		//Set Date
var diff = date.getTime() - today.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));

document.write("<font face=Arial, Helvetica, sans-serif color=blue size=2>")
document.write("<center><b>")
if (days > 1)
document.write(" " + (days+1) + " days until " + day_description + "");
else if (days == 1)
document.write(" " + day_before  + "");
else if (days == 0)
document.write("Tomorrow is  " + day_description + "");
else if (days == -1)
document.write("Today is " + day_description + " !");
else if (days < -1)
document.write(day_description + " was " + ((days+1)*-1) + (days < -2 ? " days" : " day") + " ago -      Hope to see you next year"); 
document.write("</b></center>");
document.write("</font>")

