// Date camp starts
var s1start_date = new Date("June 26, 2005");

var now_date = new Date();
var now_time = now_date.getTime();
var s1start_time = s1start_date.getTime();
var gap = s1start_time - now_time;

gap = Math.floor(gap / (1000 * 60 * 60 * 24)) + 1;

//document.write("Today is ");
//document.write(now_date);


if (gap > 0)
{
	document.write(gap);
	if (gap == 1)
		document.write(" day until camp!");
	else
		document.write(" days until camp!");
}
else
{
	if (gap == 0) document.write("Camp starts today!<br>");
	if (gap == -14) document.write("Session 2 starts today!<br>");
	if (gap == -28) document.write("Session 3 starts today!<br>");
	if (gap == -42) document.write("Session 4 starts today!<br>");
	if (gap + 14 > 0)
	{
		document.write("Session 2 begins in ");
		document.write(gap + 14);
		if (gap + 14 == 1)
			document.write(" day!<br>");
		else
			document.write(" days!<br>");
	}
	if (gap + 28 > 0)
	{
		document.write("Session 3 begins in ");
		document.write(gap + 28);
		if (gap + 28 == 1)
			document.write(" day!<br>");
		else
			document.write(" days!<br>");
	}
	if (gap + 42 > 0)
	{
		document.write("Session 4 begins in ");
		document.write(gap + 42);
		if (gap + 42 == 1)
			document.write(" day!<br>");
		else
			document.write(" days!<br>");
	}
	if (gap + 42 < 1) document.write("See you next summer!");
}
