var lastItem = 2012.0327;// Insert the expiration date here, yyyy.mmddhh, local time. (9 p.m. is hour 21 for Pacific Standard Time.)var rightNow = new Date(); // "Mon Nov 29 2010 14:34:19 GMT-0800 (PST)"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 === 2012.0408) { // Easter chick; dates for Easter: 2011.0424, 2012.0408, 2013.0331. Source: http://www.gmarts.org/index.php?go=413         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) { // 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. 22" STYLE="margin-top:4px; ">');            }      if (monthNow === 11) { // autumn leaf  STYLE="margin-top:4px; "         document.write('<DIV STYLE="float:left; display:table-cell; padding:0px; width:auto; height:auto; margin:4px 15px 4px 0px; "><IMG BORDER="0" SRC="\/graphics\/icons\/autumnLeaf.gif" WIDTH="49" HEIGHT="32" ALIGN="left" ALT="" ID="nIcon" TITLE="Thanksgiving, Nov. 22"><P CLASS="caption" STYLE="clear:left; ">Thanksgiving,<BR>Nov. 22</\P><\/DIV>');            }*/      if (monthNow === 11) { // turkey icon ID="nIcon"         document.write('<DIV STYLE="float:left; display:table-cell; width:auto; height:auto; margin:4px 15px 4px 0px; "><IMG BORDER="0" SRC="\/graphics\/icons\/turkey2.gif" WIDTH="38" HEIGHT="40" ALIGN="left" ALT="" TITLE="Thanksgiving turkey"STYLE="margin-bottom:4px; "><P CLASS="caption" STYLE="clear:left; ">Thanksgiving,<BR>Nov. 22</\P><\/DIV>');            }      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) {         document.write('<B>Happy Holidays,<\/B> and best wishes for the New Year!<BR>');            }      if (monthAndDay < 102) {         document.write('<B>Happy New Year!<\/B><BR>');            }      }var macMechHtml = '<B>Q&amp;A<\/B> 6&ndash;7 p.m. at The MacMechanic. See the <A HREF="\/sig.html">Special Interest Groups<\/A> page.<BR>';// var macShacHtml = '<B>Classes<\/B> 6&ndash;7 p.m. at The Mac Shac in Goleta. 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 = '<B>Main meeting,<\/B> 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 > 2011.1201) && (todaysDate <= 2012.0117)) {   document.write('&#149; <B>Jan. 10, 17:<\/B> ' + macMechHtml);      }if ((todaysDate > 2011.1215) && (todaysDate <= 2012.0119)) {   document.write('&#149; <B>Jan. 19:<\/B> Macs, Mac users and iPhones in China. See the <A HREF="\/calendar.html">Calendar page<\/A> for more info.<BR>');      }if ((todaysDate > 2011.1227) && (todaysDate <= 2012.0131)) {   document.write('&#149; <B>Jan. 24, 31:<\/B> ' + macMechHtml);      }if ((todaysDate > 2012.0117) && (todaysDate <= 2012.0214)) {   document.write('&#149; <B>Feb. 7, 14:<\/B> ' + macMechHtml);      }if ((todaysDate > 2012.0119) && (todaysDate <= 2012.0216)) {   document.write('&#149; <B>Feb. 16:<\/B> ' + mainHtml);      }if ((todaysDate > 2012.0131) && (todaysDate <= 2012.0228)) {   document.write('&#149; <B>Feb. 21, 28:<\/B> ' + macMechHtml);      }if ((todaysDate > 2012.0214) && (todaysDate <= 2012.0313)) {   document.write('&#149; <B>March 6, 13:<\/B> ' + macMechHtml);      }if ((todaysDate > 2012.0216) && (todaysDate <= 2012.0315)) {   document.write('&#149; <B>March 15:<\/B> ' + mainHtml);      }if ((todaysDate > 2012.0228) && (todaysDate <= 2012.0327)) {   document.write('&#149; <B>March 20, 27:<\/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>');      }
