
<!-- Begin cloaking device
/*  <script type="text/javascript" src="HowLongUntilBOTL.js"></script> */
// Substitute the Date you want to use
CalendarDate = new Date("September 15, 2011")
EventName = "Bop on the Lake";
<!-- Gets Calendar date, current date, and format -->
todaysTime = new Date();
todaysHour = 0
todaysMinute = 0
todaysSecond = 0
todaysYear = todaysTime.getFullYear()
todaysMonth = todaysTime.getMonth()
todaysDate = todaysTime.getDate()
EventYear = CalendarDate.getFullYear()
EventMonth = CalendarDate.getMonth()
EventDate = CalendarDate.getDate()
EventHour = 0
EventMinute = 0
EventSecond = 0
<!-- Adjusts for Leap Year Info -->
if ((EventYear / 4) == (Math.round(EventYear / 4))) {
   countLeap = 29}
else {
     countLeap = 28}

<!-- Calculate the days in the month -->
if (EventMonth == 2) {
   countMonth = countLeap}
else {
     if (EventMonth == 4) {
        countMonth = 30}
     else {
        if (EventMonth == 6) {
           countMonth = 30}
        else {
           if (EventMonth == 9) {
              countMonth = 30}
           else {
              if (EventMonth == 11) {
                 countMonth = 30}
              else {
                 countMonth = 31}}}}}

<!-- Doing the subtractions -->
if (EventMinute > todaysMinute) {
   diffMinute = EventMinute - todaysMinute
   calcHour = 0}
else {
   diffMinute = EventMinute + 60 - todaysMinute
   calcHour = -1}
if (EventHour > todaysHour) {
   diffHour = EventHour - todaysHour + calcHour
   calcDate = 0}
else {
   diffHour = EventHour + 24 - todaysHour  + calcHour
   calcDate = -1}
if (EventDate > todaysDate) {
   diffDate = EventDate - todaysDate + calcDate
   calcMonth = 0}
else {
   diffDate = EventDate + countMonth - todaysDate  + calcDate
   calcMonth = -1}
if (EventMonth < todaysMonth) {
    calcMonth = calcMonth +12}
diffMonth = EventMonth - todaysMonth + calcMonth

<!-- Making sure it all adds up correctly -->
if (diffMinute == 60) {
   diffMinute = 0
   diffHour = diffHour + 1}
if (diffHour == 24) {
   diffHour = 0
   diffDate = diffDate + 1}
if (diffDate == countMonth) {
   diffDate = 0
   diffMonth = diffMonth + 1}

<!-- Figuring out the weeks -->
diffWeek = Math.floor(diffDate / 7)
finalDate = (diffDate - (diffWeek * 7))

<!-- Building the strings -->
writeNow = "Todays date:&nbsp;" + (todaysMonth + 1) + "/" + todaysDate + "/" + todaysYear + ""
writeEvent = EventName +" is:&nbsp;" + (EventMonth + 1) + "/" + EventDate + "/" + EventYear + ""
MonthTxt = ""
if (diffMonth>>0) {
MonthTxt = diffMonth + " month" + (diffMonth == 1 ? "" : "s") + ", "
}
WeekTxt = ""
if (diffWeek>>0) {
WeekTxt = diffWeek + " week" + (diffWeek == 1 ? "" : "s")
if (finalDate>>0) {
WeekTxt = WeekTxt  + ", " 
}
}
DayTxt = ""
if (finalDate>>0) {
DayTxt = finalDate + " day" + (finalDate == 1 ? "" : "s") 
}
EventTxt = EventName +"!"
if (diffMonth + diffWeek + finalDate >> 0) {
EventTxt = " until " + EventName +"."
}
writeDiff = "It&rsquo;s " + MonthTxt + WeekTxt + DayTxt  + EventTxt

<!-- Writing the values -->
// document.write  (writeNow + '&nbsp;&nbsp;&nbsp;&nbsp;');
// document.write  (writeEvent + '<BR>');
if (diffMonth + diffWeek + finalDate == 0) {
document.write  ('<FONT color=red size=4><B>');
}
if (diffMonth > -1) {
document.write  (writeDiff);
}
if (diffMonth + diffWeek + finalDate == 0) {
document.write  ('</B></FONT>');
}
// -->


