<!-- Begin Javascript
monthnames = new Array(
"January",
"Februrary",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");
linkdays = new Array();
var linkcount=0;

function addlink(day, month, href, ttitle) {
var entry = new Array(4);
entry[0] = month;
entry[1] = day;
entry[2] = href;
entry[3] = ttitle;
linkdays[linkcount++] = entry;
}
monthdays = new Array(12);
monthdays[0]=31;
monthdays[1]=28;
monthdays[2]=31;
monthdays[3]=30;
monthdays[4]=31;
monthdays[5]=30;
monthdays[6]=31;
monthdays[7]=31;
monthdays[8]=30;
monthdays[9]=31;
monthdays[10]=30;
monthdays[11]=31;

function writecalendar () {
thisday=todayDate.getDay();
thismonth=todayDate.getMonth();
thisdate=todayDate.getDate();
thisyear=todayDate.getYear();
thisyear = thisyear % 100;
thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));
if (((thisyear % 4 == 0) 
&& !(thisyear % 100 == 0))
||(thisyear % 400 == 0)) monthdays[1]=29;
startspaces=thisdate;
while (startspaces > 7) startspaces-=7;
startspaces = thisday - startspaces + 1;
if (startspaces < 0) startspaces+=7;

document.write("<table border=2 bgcolor=white ");
document.write("bordercolor=black><font color=black>");
document.write("<tr><td colspan=7 bgcolor=yellow><center><strong>" 
+ monthnames[thismonth] + " " + thisyear 
+ "</strong></center></font></td></tr>");
document.write("<tr>");
document.write("<td align=center>Su</td>");
document.write("<td align=center>M</td>");
document.write("<td align=center>Tu</td>");
document.write("<td align=center>W</td>");
document.write("<td align=center>Th</td>");
document.write("<td align=center>F</td>");
document.write("<td align=center>Sa</td>"); 
document.write("</tr>");
document.write("<tr>");
for (s=0;s<startspaces;s++) {
document.write("<td>&nbsp</td>");
}
count=1;
while (count <= monthdays[thismonth]) {
  for (b = startspaces;b<7;b++) {
    linktrue=false;
    document.write("<td");
    for (c=0;c<linkdays.length;c++) {
      if ((linkdays[c] != null) &&
          (linkdays[c][0]==thismonth + 1) &&
          (linkdays[c][1]==count)) {
           document.write(' bgcolor=pink><B><a title="' + linkdays[c][3] + '" href="' + linkdays[c][2] + '"');
           linktrue=true;
      }
    }
    if (count <= monthdays[thismonth]) {
      document.write(">" + count);
    }
    else {
      document.write(">&nbsp");
    }
    if (linktrue)
      document.write("</a></B>");
    document.write("</td>");
    count++;
  }
  document.write("</tr>");
  document.write("<tr>");
  startspaces=0;
}
document.write("</table></p>");
}

// Third Sunday
addlink (17, 01, "events.html#pub", "SBN Pub Night");
addlink (21, 02, "events.html#pub", "SBN Pub Night");
addlink (21, 03, "events.html#pub", "SBN Pub Night");
addlink (18, 04, "events.html#pub", "SBN Pub Night");
addlink (16, 05, "events.html#pub", "SBN Pub Night");
addlink (20, 06, "events.html#pub", "SBN Pub Night");
addlink (18, 07, "events.html#pub", "SBN Pub Night");
addlink (15, 08, "events.html#pub", "SBN Pub Night");
addlink (19, 09, "events.html#pub", "SBN Pub Night");
addlink (17, 10, "events.html#pub", "SBN Pub Night");
addlink (21, 11, "events.html#pub", "SBN Pub Night");
addlink (19, 12, "events.html#pub", "SBN Pub Night");

// Second Wednesday
addlink (12, 05, "indedx.html#news", "Bi Trivia");
addlink (09, 06, "indedx.html#news", "Bi Trivia");
addlink (14, 07, "indedx.html#news", "Bi Trivia");

// Thursday before 3rd Sunday
//addlink (17, 05, "events.html#SBNPG", "Planning Meeting");
//addlink (12, 07, "events.html#SBNPG", "Planning Meeting");
//addlink (13, 09, "events.html#SBNPG", "Planning Meeting");
//addlink (15, 11, "events.html#SBNPG", "Planning Meeting");

//addlink (17, 02, "events.html#FairDay", "Mardi Gras Fair Day");
//addlink (07, 03, "index.html#news", "Mardi Gras Parade");

// First Sunday
// addlink (03, 12, "events.html#BiFem", "BiFem Dinner");

// Second Sunday
//addlink (13, 01, "events.html#Poly", "Poly Social");

//addlink (27, 07, "events.html#Sexpo", "Sexpo");
//addlink (28, 07, "events.html#Sexpo", "Sexpo");
//addlink (29, 07, "events.html#Sexpo", "Sexpo");

document.write("<TABLE BORDER=0><TR><TD VALIGN=TOP>");
todayDate=new Date();
writecalendar ();
document.write("</TD><TD WIDTH=10%></TD><TD VALIGN=TOP>");
thismonth=thismonth+1;
if (thismonth==12) {
  thismonth=0;
  thisyear=thisyear+1;
  if (thisyear==100) thisyear=0;
}
thisdate=1;
todayDate=new Date(thisyear, thismonth, thisdate);
writecalendar ();
document.write("</TD></TR><TR><TD COLSPAN='3' ALIGN=CENTER>");
document.write("<FONT SIZE='-1'><I>Place your mouse pointer over a pink date above for the event title</I></FONT>")
document.write("</TD></TR></TABLE>");
// End Javascript -->
