var lastItem = 2010.0928;

// Insert the expiration date here, yyyy.mmddhh, local time. (9 p.m. is hour 21 for Pacific Standard Time.)

var rightNow = new Date();
var monthNow = rightNow.getUTCMonth() + 1;
var dateNow = rightNow.getUTCDate();
var yearNow = rightNow.getUTCFullYear(); // %100 + 2000
var hourNow = rightNow.getUTCHours() - 8; // for Pacific Standard Time
if (hourNow < 0) {
  hourNow -= 76;
}
var todaysDate = (yearNow + (monthNow / 100) + (dateNow / 10000)); // + (hourNow / 1000000));
var monthAndDay = ((monthNow * 100) + dateNow);

// document.write('<P>todaysDate = ' + todaysDate + '; monthNow = ' + monthNow + '; dateNow = ' + dateNow + '.</P>');

if (todaysDate <= lastItem) {
      if ((monthNow === 3) && (dateNow <= 17)) { // Shamrocks, March
         document.write('<IMG BORDER="0" SRC="\/graphics\/icons\/shamrocks.gif" WIDTH="45" HEIGHT="40" ALIGN="left" ALT="" ID="nIcon" TITLE="Shamrock">');
            }
      if ((todaysDate >= 2010.040400) && (todaysDate <= 2010.040424)) { // Easter chick; dates for Easter: 2007.0408, 2008.032324, 2009.041224, 2010.040424.
         document.write('<IMG BORDER="0" SRC="\/graphics\/icons\/easterChick.gif" WIDTH="32" HEIGHT="40" ALIGN="left" ALT="" ID="nIcon" TITLE="Easter chick">');
            }
      if (monthNow === 10) { // pumpkin icon
         document.write('<A HREF="http:\/\/www.macupdate.com\/"><IMG BORDER="0" SRC="\/graphics\/icons\/pumpkin.gif" WIDTH="34" HEIGHT="33" ALIGN="left" ALT="" ID="nIcon" TITLE="Pumpkin icon courtesy of MacUpdate"><\/A>');
            }
/*
      if (monthNow === 11) { // horn of plenty icon
         document.write('<IMG BORDER="0" SRC="\/graphics\/icons\/hornOfPlenty.gif" WIDTH="39" HEIGHT="40" ALIGN="left" ALT="" ID="nIcon" TITLE="Horn of Plenty">');
            }
      if (monthNow === 11) { // turkey icon
         document.write('<IMG BORDER="0" SRC="\/graphics\/icons\/turkey2.gif" WIDTH="38" HEIGHT="40" ALIGN="left" ALT="" ID="nIcon" TITLE="Thanksgiving turkey">');
            }
*/
      if (monthNow === 11) { // horn of plenty icon
         document.write('<IMG BORDER="0" SRC="\/graphics\/icons\/hornOfPlentyR.gif" WIDTH="40" HEIGHT="52" ALIGN="left" ALT="" ID="nIcon" TITLE="Thanksgiving, Nov. 26" STYLE="margin-top:4px; ">');
            }
      if ((monthNow === 12) && (dateNow <= 25)) { // poinsettia icon
         document.write('<IMG BORDER="0" SRC="\/graphics\/icons\/poinsettia3.gif" WIDTH="50" HEIGHT="43" ALIGN="left" ALT="" ID="nIcon" TITLE="Poinsettia">');
            }
      if ((monthAndDay > 1225) || (monthAndDay === 101)) { // snowman icon
         document.write('<IMG BORDER="0" SRC="\/graphics\/icons\/snowman2.gif" WIDTH="34" HEIGHT="40" ALIGN="left" ALT="" ID="nIcon" TITLE="Snowman">');
            }
      }
if (todaysDate <= lastItem) {
document.write('<P STYLE="margin-top:0px; ">');
      if ((monthAndDay > 1223) || (monthAndDay < 102)) {
         document.write('<B>Happy Holidays,<\/B> and best wishes for the New Year!<BR>');
            }
      }

var macMechHtml = '<B>Q&amp;A<\/B> 6:00 p.m. at The MacMechanic. See the <A HREF="\/sig.html">Special Interest Groups<\/A> page.<BR>';
var iLifeHtml = '<B>Beginners, iPhoto, iPhones, iPods, etc. Q&amp;A<\/B> with Harold Adams, 6:00 p.m. at The MacMechanic. See the <A HREF="\/sig.html">Special Interest Groups<\/A> page.<BR>';
var mainHtml = 'Our main meeting, 6:00 p.m. at the <B>Natural History Museum.<\/B> See the <A HREF="\/calendar.html">Calendar page<\/A> for more info.<BR>';
var qa4Html = '<B>Q&amp;A<\/B> with Ed Togami, 6 p.m. at The MacMechanic. See the <A HREF="\/sig.html">Special Interest Groups<\/A> page for details.<BR>';


if ((todaysDate > 2010.0504) && (todaysDate <= 2010.0615)) {
   document.write('&#149; <B>June 1, 8, 15:<\/B> ' + macMechHtml);
      }
if ((todaysDate > 2010.0520) && (todaysDate <= 2010.0617)) {
   document.write('&#149; <B>June 17: <\/B> Jim Tinsley &amp; Pia Oliver on <B>Backing Up, part 2,<\/B> 6:00 p.m. at the Natural History Museum. See the <A HREF="\/calendar.html">Calendar page<\/A> for more info.<BR>');
      }
if ((todaysDate > 2010.0525) && (todaysDate <= 2010.0629)) {
   document.write('&#149; <B>June 22, 29:<\/B> ' + macMechHtml);
      }


if ((todaysDate > 2010.0608) && (todaysDate <= 2010.0713)) {
   document.write('&#149; <B>July 6, 13:<\/B> ' + macMechHtml);
      }
if ((todaysDate > 2010.0617) && (todaysDate <= 2010.0715)) {
   document.write('&#149; <B>July 15: <\/B> SBMUG&rsquo;s annual <B>beach picnic<\/B> at Goleta Beach. See the <A HREF="\/calendar.html">Calendar page<\/A> for more info.<BR>');
      }
if ((todaysDate > 2010.0622) && (todaysDate <= 2010.0727)) {
   document.write('&#149; <B>July 20, 27:<\/B> ' + macMechHtml);
      }


if ((todaysDate > 2010.0713) && (todaysDate <= 2010.0817)) {
   document.write('&#149; <B>August 3, 10, 17:<\/B> ' + macMechHtml);
      }
if ((todaysDate > 2010.0715) && (todaysDate <= 2010.0819)) {
   document.write('&#149; <B>August 19: <\/B> ' + mainHtml);
      }
if ((todaysDate > 2010.0727) && (todaysDate <= 2010.0831)) {
   document.write('&#149; <B>August 24, 31:<\/B> ' + macMechHtml);
      }


if ((todaysDate > 2010.0817) && (todaysDate <= 2010.0914)) {
   document.write('&#149; <B>September 7, 14:<\/B> ' + macMechHtml);
      }
if ((todaysDate > 2010.0819) && (todaysDate <= 2010.0916)) {
   document.write('&#149; <B>September 16: <\/B> ' + mainHtml);
      }
if ((todaysDate > 2010.0831) && (todaysDate <= 2010.0928)) {
   document.write('&#149; <B>September 21, 28:<\/B> ' + macMechHtml);
      }


// Remember to set lastItem (line 1)


if (todaysDate <= lastItem) {
document.write('<\/P>');
      }
if (monthNow === 2) { // Valentine rose border icon, put at bottom!
   document.write('<DIV ALIGN="center"><IMG BORDER="0" SRC="\/graphics\/icons\/roseBorder2s.gif" WIDTH="230" HEIGHT="32" TITLE="Valentine rose"><\/DIV>');
      }
