  today = new Date();
  month = today.getMonth();
  day = today.getDate();
  year = today.getYear();
  y = year;
  if(y < 99)
    y += 2000;
  else if(y < 2000)
    y += 1900;        
  c = Math.floor(y / 100);
  n = Math.floor( y - 19 * ( y / 19 ));
  k =  Math.floor(( c - 17 ) / 25);
  i =  Math.floor(c - c / 4 - ( c - k ) / 3 + 19 * n + 15);
  i =  Math.floor(i - 30 * ( i / 30 ));
  i =  Math.floor(i - ( i / 28 ) * ( 1 - ( i / 28 ) * ( 29 / ( i + 1 ) ) * ( ( 21 - n ) / 11 ) ));
  j =  Math.floor(y + y / 4 + i + 2 - c + c / 4);
  j =  Math.floor(j - 7 * ( j / 7 ));
  l =  Math.floor(i - j);
  m =  Math.floor(3 + ( l + 40 ) / 44);
  d =  Math.floor(l + 28 - 31 * ( m / 4 ));
  if(m == month && d == day)
    IsEaster = 0;
  else
    IsEaster = 0;

  IsElection = 0;
  ElectionBegin = 0; 

  if(today.getYear()/2 == Math.ceil(today.getYear()/2) && ((today.getMonth() == 9 && today.getDate() >= 26) || (today.getMonth() == 10 && today.getDate() <= 8)))
  {
      tuesday = new Date();
      tuesday.setMonth(10);

      for (x=1; x <= 7; x++)
      {
          tuesday.setDate(x);
          if(tuesday.getDay() == 2)
          {
               ElectionDay = x;
        if(ElectionDay == 1)
        {
      ElectionDay = 8;
      x = 8;
        }
        if(x - 6 < 0)
        {
      ElectionBegin = 31 + (x - 6);
        }
        else
        {
      ElectionBegin = x - 6;
        }
         }
      }
      if(ElectionBegin == 0)
    ElectionBegin = 31;
      if(ElectionBegin > 6)
                  {
                      if(today.getMonth() == 9 && today.getDate() >= ElectionBegin)
                          IsElection = 1;
                  }
                  else
      if(today.getMonth() == 10 && today.getDate() >= ElectionBegin && today.getDate() <= ElectionDay)
    IsElection = 1;
  }
  IsLabor = 0;
  labor = new Date(today.getYear(), 8, 1, 0, 0);
  labor.setYear = today.getYear();
  for (x=1; x <= 7; x++){
      labor.setDate(x);
      if(labor.getDay() == 1)
          LDay = x;
  }
  BeginLabor = 1;
  LMonth = 8;

  if(LDay < 7) {
      LMonth = 7;
      BeginLabor = 32 - 7 + LDay;
  }
  LStart = new Date(today.getYear(), LMonth, BeginLabor, 0, 0);
  LEnd =  new Date(today.getYear(), 8, LDay, 23, 59);
  if(today.getMonth()>= LMonth && today.getMonth()<= 8)
      if((today.getMonth() == 8 && today.getDate() <= LEnd.getDate()) || (today.getMonth() == LMonth && today.getDate() >= BeginLabor))
    IsLabor = 1;

  if (month == 0 && day == 1 )
      document.write("<p style='text-align: center; font-weight: bold;'><a href='http://holidays.bfn.org/newyear/' style='color: red;'>Happy New Year!!!</a></p>");  
  else if(month == 11 && day == 25)
      document.write("<p style='text-align: center; font-weight: bold;'><a href='http://holidays.bfn.org/xmas/' style='color: red;'>Merry Christmas!!!</a></p>");  
  else if(month == 11 && day > 15 )
        document.write("<p style='text-align: center; font-weight: bold;'><img src='http://holidays.bfn.org/xmas/tree1.gif' alt=''><br /><a href='http://holidays.bfn.org/#xmas' style='color: red;''>Season's Greetings</a><br />from the Buffalo Free-Net!</p>");
  else if(month == 1 && day == 14 )
        document.write("<tr><td><em><center><strong style='color: red;'><a href='http://holidays.bfn.org/valentine/' style='color: red;'>Happy Valentine's Day!</a></p>");
  else if(month == 2 && day == 17 )
        document.write("<p style='text-align: center; font-weight: bold;'><img src='../images/stit07.gif' align='center' border=0></p>");
  else if(month == 4 && day >= 8 && day <= 14 && today.getDay() == 0)
        document.write("<p style='text-align: center; font-weight: bold;'><a href='http://holidays.bfn.org/mother/' style='color: red;'>Happy Mother's Day!</a></p>");
  else if(IsEaster == 1 )
        document.write("<p style='text-align: center; font-weight: bold;'><a href='http://holidays.bfn.org/easter/'><img src='../images/easter68.gif'  style='color: red;' border=0><br /><font color='blue'>Happy Easter!</a></p>");
  else if(month == 5 && (day > 11 && day < 20) )
        document.write("<p style='text-align: center; font-weight: bold;'>In celebration of the emancipation of African-Americans,<br />June 19th is <a href='http://holidays.bfn.org/juneteenth/' style='color: red'>Juneteenth</a></p>");  
  else if(month == 6 && day == 4 )
        document.write("<p style='text-align: center; font-weight: bold;'><a href='http://holidays.bfn.org/independ/' style='color: red;'>Happy Independence Day!</a></p>");
  else if(IsLabor == 1)
        document.write("<p style='text-align: center; font-weight: bold;'>In celebration of the worker,<br />September " + LDay + " is <a href='http://holidays.bfn.org/labor/' style='color: red;'>Labor Day</a></p>");
  else if(IsElection == 1 )
        document.write("<p style='text-align: center; font-weight: bold;'><img src='images/main/vote.gif' alt='Your voice counts. Vote on election day!'></p>");
  else if(month == 11 && day >= 1 && day <= 31 )
        document.write("<p style='text-align: center; font-weight: bold;'><img src='http://holidays.bfn.org/xmas/tree1.gif' alt=''><br /><a href='http://holidays.bfn.org/#xmas' style='color: red;'>Season's Greetings</a><br />from the Buffalo Free-Net!</p>");
