// www.sailsignet.org.uk
//


var today = new Date;
var Future0 = new Date;
ThisYear = 2010;

var FutureMonth = 9 - 1;
var FutureDate = 19;


//var faraevent = " Christmas Day 2009";
//var faraevent = " the <a href=http://www.macmillan.org.uk/coffee/>World's Biggest Coffee Morning</a> on Friday 28th September to raise funds for Macmillan Cancer support";
//var faraevent = " <a href=events/diarydates.htm>SigneT Open Meeting/Event</a> of 2009";
//var faraevent = " start of the <a href=events/diarydates.htm>2010 SigneT sailing season</a> at Paxton Lakes";
var faraevent = " the next (and last) open meeting in the 2010 SigneT sailing season at Lakeside SC (nr Peterborough)";


Future0.setMonth(FutureMonth, FutureDate);
Future0.setFullYear(ThisYear);

today1 = Date.parse(today);
future1 = Date.parse(Future0);
secleft = future1 - today1;
miliday = 24 * 60 * 60 * 1000;
daysleft = secleft/miliday;
daysleftint = Math.round(daysleft);

if (daysleftint > 1)
//document.write("<p align=center>There are ", daysleftint, " days to  go until ", faraevent , "! </p>");
document.write("<p align=center>There are now only <font color=red><b>", daysleftint, "</b></font> days to  go until ", faraevent , "! </p>");
else if (daysleftint == 1)
//document.write("<p align=center>The first", faraevent, " is <b>tomorrow!</b> </p>");
document.write("<p align=center>The ", faraevent, " is <b>tomorrow!</b> </p>");
else if (today1 == future1)
//document.write("<p align=center>The first", faraevent, " is <b>today!</b> </p>");
document.write("<p align=center>The ", faraevent, " is <b>today!</b> </p>");
