<!-- Hide from browsers that do not support Java
   //
   // Platoon duty cycle starting 10/1/01 @ 8:00am
   //
   startDate = new Date(2001,9,1,8,0,0) // months are numbered 0-11
   today     = new Date()
   msPerDay  = 24 * 60 * 60 * 1000 ;   // number of milliseconds per day
   days      = (today.getTime() - startDate.getTime()) / msPerDay;
   days      = Math.floor(days);
   index     = (days % 3) + 1;
   Platoon   = new MakeArray(3)
   Platoon[1] = "B";
   Platoon[2] = "C";
   Platoon[3] = "A";
   
   if (Platoon[index] == "A"){
      PlatoonColor = "foot_red7b";
      PlatoonLink  = "foot_red7";
      PlatoonTrim  = "#FF0000";
      PlatoonBkg   = "#E0D6BB";
	  PlatoonBox   = "brdrboxRfull";
   }
   else if (Platoon[index] == "B"){
      PlatoonColor = "foot_grn7b";
      PlatoonLink  = "foot_grn7";
      PlatoonTrim  = "#336600";
      PlatoonBkg   = "#E0D6BB";
	  PlatoonBox   = "brdrboxGfull";
   }
   else if (Platoon[index] == "C"){
      PlatoonColor = "foot_blu7b";
      PlatoonLink  = "foot_blu7";
      PlatoonTrim  = "#666699";
      PlatoonBkg   = "#E0D6BB";
	  PlatoonBox   = "brdrboxBfull";
   }
   
   document.write("<TABLE width=90% border=0 cellspacing=0 cellpadding=0 class=" + PlatoonBox +">");
   //document.write("<TR height=1><TD align=center bgcolor=" + PlatoonTrim +"><img src=/NewSite/images/misc/spacer.gif width=1 height=1></TD></TR>");
   document.write("<TR><TD align=center bgcolor=" + PlatoonBkg +" height=20 nowrap>&nbsp;&nbsp;");
   document.write("<FONT CLASS=" + PlatoonColor +">" );
   document.write("'" + Platoon[index] + "' Platoon is currently on duty today, " + today.toLocaleString() );
   document.write("&nbsp;&nbsp;</FONT></TD></TR>");
   document.write("<TR><TD bgcolor=" + PlatoonBkg +"><img src=/images/misc/spacer.gif width=1 height=1></TD></TR>");
   document.write("<TR><TD align=center bgcolor=" + PlatoonBkg +" CLASS=" + PlatoonLink +" nowrap><a href=/modules/links/lnkCalendar.asp class=foot>View Shift Calendar</a></TD></TR>");
   document.write("<TR><TD bgcolor=" + PlatoonBkg +"><img src=/images/misc/spacer.gif width=1 height=3></TD></TR>");
   //document.write("<TR height=1><TD align=center bgcolor=" + PlatoonTrim +"><img src=/NewSite/images/misc/spacer.gif width=1 height=1></TD></TR>");
   document.write("</TABLE>");

function MakeArray(n) {
   this.length = n;
   for (var i = 1; i <= n; i++)
       { this[i] = 0 }
   return this
}
// Stop hiding from browsers that do not support Java -->