function cal ()
{
   // ---------------------- //
   // Main Calendar Function //
   // ---------------------- //

   // =======================================================================================
   //  Calendar: Setup
   // =======================================================================================

   var f_first_thursday=0;

   // Set the total days variable based on the currently viewed month;
   switch (view_month)
   {
      case  1: view_month_str="January";   tot_days=31;  break;
      case  2: view_month_str="February";  tot_days=28;  break;
      case  3: view_month_str="March";     tot_days=31;  break;
      case  4: view_month_str="April";     tot_days=30;  break;
      case  5: view_month_str="May";       tot_days=31;  break;
      case  6: view_month_str="June";      tot_days=30;  break;
      case  7: view_month_str="July";      tot_days=31;  break;
      case  8: view_month_str="August";    tot_days=31;  break;
      case  9: view_month_str="September"; tot_days=30;  break;
      case 10: view_month_str="October";   tot_days=31;  break;
      case 11: view_month_str="November";  tot_days=30;  break;
      case 12: view_month_str="December";  tot_days=31;  break;
      default: view_month_str="? error ?"; tot_days=0;
   }

   // Determine whether or not the currently viewed year is a leap year;
   temp=(view_year/4)-(Math.floor(view_year/4));
   if (temp!=0) {leap_year=false};
   temp=(view_year/100)-(Math.floor(view_year/100));
   if (temp!=0) {leap_year=false};
   temp=(view_year/400)-(Math.floor(view_year/400));
   if (temp!=0) {leap_year=false};
   if (leap_year==true && viewed_month==2) {tot_days++};  // Adjust Feb Days;

   // =======================================================================================
   //  Calendar: Month/Year Title and Day Numbers
   // =======================================================================================

   // Initialize the table day cells with space characters;
   for (row_cnt=3; row_cnt<=8; row_cnt++)
   {
      for (col_cnt=0; col_cnt<=6; col_cnt++)
      {
         document.getElementById('cal').rows[row_cnt].cells[col_cnt].innerHTML="\&nbsp;";
      }
   }

   // First Row: Month and Year Title;
   document.getElementById('cal').rows[01].cells[0].innerHTML="<b>"+view_month_str+", "+view_year+"</b>";

   // First Week (third row);
   // Fill in empty cells until the first day in the month;
   dow=0;
   temp_date.setFullYear(view_year,view_month-1,1);
   first_dom=temp_date.getDay();
   while (dow < first_dom)
   {
      document.getElementById('cal').rows[03].cells[dow].innerHTML="\&nbsp;";
      dow++;
   }

   // Fill in the remaining days in the first week of the month;
   // Highlight the current day if (1) it is in the first week and (2) the;
   // current month/year is the same as the viewed month/year;
   dom=1;
   while (dow < 7)
   {
      if (view_yearmonth < 200906)
      {
         if ((dow == 5) || (dow == 6)) hrs_str="open 12-6"; else hrs_str="";
      }
      else if (view_yearmonth == 200906)
      {
         hrs_str="";
      }
      else
      {
         if ((dow == 5) || (dow == 6)) hrs_str="open 12-6"; else hrs_str="";
      }

      cal_open_hrs_str="<table width=\"100%\"><tr><td align=\"left\" width=\"75%\"><span class=\"cal_hrs\">"+hrs_str+"</span></td>";
      cal_dom_str="<td align=\"right\" width=\"25%\" valign=\"top\"><span class=\"cal_num\">"+dom+"</span></td></tr></table>";

      // Look to see if we will be or were closed on this day.  Adjust the cal_open_hrs_str as needed.
      for (i=0; i<=c; i++)
      {
         if ((view_month == Closed[i][0]) && (view_year == Closed[i][2]) && (dom == Closed[i][1]))
         {
            cal_open_hrs_str="<table width=\"100%\"><tr><td align=\"left\" width=\"75%\"><span class=\"cal_hrs_closed\">closed</span></td>";
         }
      }

      if ((dom == current_day) && (view_yearmonth == current_yearmonth))
      {
         cal_dom_str="<td align=\"right\" width=\"25%\" valign=\"top\"><span class=\"cal_num2\">"+dom+"</span></td></tr></table>";
         document.getElementById('cal').rows[03].cells[dow].innerHTML="<a class=\"now\" alt=\"Today\" title=\"Today\">"+cal_open_hrs_str+cal_dom_str+"</a>";
      }
      else
      {
         document.getElementById('cal').rows[03].cells[dow].innerHTML=cal_open_hrs_str+cal_dom_str;
      }
      dom++; dow++;
   }

   // Fill in the remaining days in the month (rows 4 to 8);
   // Highlight the current day if (1) it is after the first week and (2) the;
   // current month/year is the same as the viewed month/year;
   dow=0;
   row_cnt=4;
   while (dom <= tot_days)
   {
      if (view_yearmonth < 200906)
      {
         if ((dow == 5) || (dow == 6)) hrs_str="open 12-6"; else hrs_str="";
      }
      else if (view_yearmonth == 200906)
      {
         hrs_str="";
      }
      else
      {
         if ((dow == 5) || (dow == 6)) hrs_str="open 12-6"; else hrs_str="";
      }

      cal_open_hrs_str="<table width=\"100%\"><tr><td align=\"left\" width=\"75%\"><span class=\"cal_hrs\">"+hrs_str+"</span></td>";
      cal_dom_str="<td align=\"right\" width=\"25%\" valign=\"top\"><span class=\"cal_num\">"+dom+"</span></td></tr></table>";

      // Look to see if we will be or were closed on this day.  Adjust the cal_open_hrs_str as needed.
      for (i=0; i<=c; i++)
      {
         if ((view_month == Closed[i][0]) && (view_year == Closed[i][2]) && (dom == Closed[i][1]))
         {
            cal_open_hrs_str="<table width=\"100%\"><tr><td align=\"left\" width=\"75%\"><span class=\"cal_hrs_closed\">closed</span></td>";
         }
      }

      if ((dom == current_day) && (view_yearmonth == current_yearmonth))
      {
         cal_dom_str="<td align=\"right\" width=\"25%\" valign=\"top\"><span class=\"cal_num2\">"+dom+"</span></td></tr></table>";
         document.getElementById('cal').rows[row_cnt].cells[dow].innerHTML="<a class=\"now\" alt=\"Today\" title=\"Today\">"+cal_open_hrs_str+cal_dom_str+"</a>";
      }
      else
      {
         document.getElementById('cal').rows[row_cnt].cells[dow].innerHTML=cal_open_hrs_str+cal_dom_str;;
      }
      dow++; dom++;
      if (dow > 6) {dow=0; row_cnt++;}
   }

   // ***************************************************************************************
   // ** THE FOLLOWING CODE IS TO DEAL WITH WHEN REM WAS AT BLUE STAR (PRIOR TO JUNE/2009) **
   // ** Note that when at Blue Star, we had first Thursdays and First Fridays.  Post Blue **
   // ** Star, we only have Second Fridays (no Thursdays).                                 **
   // ***************************************************************************************

   if (view_yearmonth < 200906)
   {
      // =======================================================================================
      //  Calendar: First Thursday and First Friday
      // =======================================================================================

      if (first_dom <= 5) {ff_dom=6-first_dom} else {ff_dom=7}

      ft_dom=ff_dom-1;
      temp_month_str=view_month_str;
      f_first_thursday=0;
      if (ft_dom < 1)
      {
         f_first_thursday=1;
         temp=view_month-1;
         if (temp < 1) {temp=12; temp_year=view_year-1;}
         switch (temp)
         {
            case  1: ft_dom=31;  temp_month_str="January";   break;
            case  2: ft_dom=28;  temp_month_str="February";  break;
            case  3: ft_dom=31;  temp_month_str="March";     break;
            case  4: ft_dom=30;  temp_month_str="April";     break;
            case  5: ft_dom=31;  temp_month_str="May";       break;
            case  6: ft_dom=30;  temp_month_str="June";      break;
            case  7: ft_dom=31;  temp_month_str="July";      break;
            case  8: ft_dom=31;  temp_month_str="August";    break;
            case  9: ft_dom=30;  temp_month_str="September"; break;
            case 10: ft_dom=31;  temp_month_str="October";   break;
            case 11: ft_dom=30;  temp_month_str="November";  break;
            case 12: ft_dom=31;  temp_month_str="December";  break;
         }
         temp=view_month+1;
         if (temp > 12) {temp=1; temp_year=view_year+1;}
         switch (temp)
         {
            case  1: next_month_str="January";   break;
            case  2: next_month_str="February";  break;
            case  3: next_month_str="March";     break;
            case  4: next_month_str="April";     break;
            case  5: next_month_str="May";       break;
            case  6: next_month_str="June";      break;
            case  7: next_month_str="July";      break;
            case  8: next_month_str="August";    break;
            case  9: next_month_str="September"; break;
            case 10: next_month_str="October";   break;
            case 11: next_month_str="November";  break;
            case 12: next_month_str="December";  break;
         }
      }

      // Highlight the First Friday cell
      row_cnt=3; col_cnt=5;
      if (first_dom==6) {row_cnt=4;}

      hrs_str="open 12-9";
      cal_open_hrs_str="<table width=\"100%\"><tr><td align=\"left\" width=\"75%\"><span class=\"cal_hrs\">"+hrs_str+"</span></td>";
      cal_dom_str="<td align=\"right\" width=\"25%\" valign=\"top\"><a class=\"ff\" alt=\"First Friday!\" title=\"First Friday!\">"+ff_dom+"</a></td></tr></table>";
      document.getElementById('cal').rows[row_cnt].cells[col_cnt].innerHTML=cal_open_hrs_str+cal_dom_str;

      // Highlight the First Thursday cell
      hrs_str="open 6-9";
      cal_open_hrs_str="<table width=\"100%\"><tr><td align=\"left\" width=\"75%\"><span class=\"cal_hrs\">"+hrs_str+"</span></td>";
      cal_dom_str="<td align=\"right\" width=\"25%\" valign=\"top\"><a class=\"ft\" alt=\"First Thursday!\" title=\"First Thursday!\">"+ft_dom+"</a></td></tr></table>";

      col_cnt--;
      prev_first_thu=(first_dom==5)?1:0;
      document.getElementById('cal').rows[row_cnt].cells[col_cnt].innerHTML=cal_open_hrs_str+cal_dom_str;

      // =======================================================================================
      //  Events: First Thursday and First Friday
      // =======================================================================================

      document.getElementById('events').rows[3].cells[0].innerHTML="<a class=\"cal\">\&nbsp;The Loft:</a>";
      document.getElementById('events').rows[4].cells[0].innerHTML="<a class=\"ft\">\&nbsp;First Thursday:</a>";
      document.getElementById('events').rows[5].cells[0].innerHTML="<a class=\"ff\">\&nbsp;First Friday:</a>";
      document.getElementById('events').rows[4].cells[1].innerHTML="<a class=\"ft\">\&nbsp;"+temp_month_str+" "+ft_dom+"</a><br>\&nbsp;<a class=\"ft\">6 to 9 P.M.</a>";
      document.getElementById('events').rows[5].cells[1].innerHTML="<a class=\"ff\">\&nbsp;"+view_month_str+" "+ff_dom+"</a><br>\&nbsp;<a class=\"ff\">Open at Noon;<br />\&nbsp;Reception is<br />\&nbsp;6 to 9 P.M.<br /><br /></a>";
   }
   // ** REM WAS CLOSED FOR JUNE/2009
   else if (view_yearmonth == 200906)
   {
      document.getElementById('events').rows[3].cells[0].innerHTML="<a class=\"cal\">\&nbsp;The Loft:</a>";
      document.getElementById('events').rows[4].cells[0].innerHTML="<a class=\"ft\">\&nbsp;First Thursday:</a>";
      document.getElementById('events').rows[5].cells[0].innerHTML="<a class=\"ff\">\&nbsp;First Friday:</a>";
      document.getElementById('events').rows[2].cells[1].innerHTML="<span style=\"color: red; font-weight: bold;\">&nbsp;closed<br><br></span>";
      document.getElementById('events').rows[3].cells[1].innerHTML="<span style=\"color: red; font-weight: bold;\">&nbsp;closed<br><br></span>";
      document.getElementById('events').rows[4].cells[1].innerHTML="<span style=\"color: red; font-weight: bold;\">&nbsp;closed<br><br></span>";
      document.getElementById('events').rows[5].cells[1].innerHTML="<span style=\"color: red; font-weight: bold;\">&nbsp;closed<br><br></span>";
   }
   // ** THIS CODE IS FOR ANYTHING AFTER JUNE/2009 (HIGHLIGHT JUST SECOND FRIDAY)
   else
   {
      // =======================================================================================
      //  Calendar: Second Friday
      // =======================================================================================

      if (first_dom <= 5) {ff_dom=6-first_dom} else {ff_dom=7}
      sf_dom=ff_dom+7

      temp_month_str=view_month_str;

      // Highlight the Second Friday cell
      row_cnt=4; col_cnt=5;
      if (first_dom==6) {row_cnt=5;}

      hrs_str="open 12-9";
      cal_open_hrs_str="<table width=\"100%\"><tr><td align=\"left\" width=\"75%\"><a class=\"cal_hrs\" alt=\"Second Friday!\" title=\"Second Friday!\">"+hrs_str+"</span></td>";
      cal_dom_str="<td align=\"right\" width=\"25%\" valign=\"top\"><span class=\"sf\">"+sf_dom+"</span></td></tr></table>";
      document.getElementById('cal').rows[row_cnt].cells[col_cnt].innerHTML=cal_open_hrs_str+cal_dom_str;

      if (view_yearmonth <= 200912) { document.getElementById('events').rows[3].cells[0].innerHTML="<a class=\"cal\">\&nbsp;Mezzanine:</a>"; }
      else { document.getElementById('events').rows[3].cells[0].innerHTML=""; }

      document.getElementById('events').rows[4].cells[0].innerHTML="";
      document.getElementById('events').rows[4].cells[1].innerHTML="";
      document.getElementById('events').rows[5].cells[0].innerHTML="<a class=\"ff\">\<br>&nbsp;Second Friday:<br><br><br></a>";
      document.getElementById('events').rows[5].cells[1].innerHTML="<a class=\"ff\"><br>\&nbsp;"+view_month_str+" "+sf_dom+"</a><br>\&nbsp;<a class=\"ff\">Open at Noon;<br />\&nbsp;Reception is<br />\&nbsp;6 to 9 P.M.<br /><br /></a>";
   }

   // =======================================================================================
   //  Calendar: First Thursday Note (only applies to pre-June/2009
   // =======================================================================================

   if ((f_first_thursday) && (view_yearmonth < 200906))
   {
      document.getElementById('cal').rows[9].cells[0].innerHTML="<br>Note: First Thursday for "+view_month_str+" was actually the last day of "+temp_month_str+".\&nbsp;\&nbsp;First Thursday is always the thursday before First Friday even when it is not technically the first Thursday in the month.";
   }

   // =======================================================================================
   //  Calendar: Second Friday notes (only applies to after June, 2009)
   // =======================================================================================

   if (view_yearmonth > 200906)
   {
      // If looking at the current month then calculate when the next second friday;
      // is and note that information.;
      if (view_yearmonth == current_yearmonth)
      {
         ahead_year=current_year;
         ahead_month=current_month+1; if (ahead_month > 12) { ahead_month=1; ahead_year+=1; }

         // Default sf_str;
         sf_str="Today is Second Friday!  REM Gallery is open today from 12 to 9 P.M.  The reception begins as 6:00.";
      }

      document.getElementById('cal').rows[9].cells[0].innerHTML="<br><br>\&nbsp;";
   }

   // =======================================================================================
   //  Calendar: Gallery Closure Notes
   // =======================================================================================

   closure_str="";

   // Look to see if we will be or were closed this month (array Closed defined in cal_init.js);
   for (i=0; i<=c; i++)
   {
      if ((view_month == Closed[i][0]) && (view_year == Closed[i][2]))
      {
         if ((current_yearmonth <= view_yearmonth) && (current_day <= Closed[i][1]))
         { closure_str="<br><span style=\"color: red; font-weight: normal;\">"+Closed[i][3]+"</span>"; }
         else
         { closure_str="<br><span style=\"color: red; font-weight: normal;\">"+Closed[i][4]+"</span>"; }
      }
   }
   document.getElementById('cal').rows[9].cells[0].innerHTML=closure_str;

   // =======================================================================================
   //  Events: Artists and Other Notes (Events Array)
   // =======================================================================================

   for (i=0; i<=e; i++)
   {
      event_y =Event[i][0];    // Event year;
      event_m =Event[i][1];    // Event month;
      event_l =Event[i][2];    // Event location;
      event_a =Event[i][3];    // Event number of artists
      event_a1=Event[i][4];    // Event artist 1;
      event_t1=Event[i][5];    // Event show title 1;
      event_h1=Event[i][6];    // Event html link 1;
      event_a2=Event[i][7];    // Event artist 2;
      event_t2=Event[i][8];    // Event show title 2;
      event_h2=Event[i][9];    // Event html link 2;
      event_n =Event[i][10];   // Event show notes and image;

      if ((event_y == view_year) && (event_m == view_month))
      {
         if ((event_l == "Main Gallery") || (event_l == "main gallery"))
         {
            // Show Note (main gallery)
            if (event_n.substr(0,1) == "{")   // Ignore if the note begins with a "{";
            {
               document.getElementById('cal').rows[10].cells[0].innerHTML="<br>";
            }
            else
            {
               document.getElementById('cal').rows[10].cells[0].innerHTML="<br>"+event_n;
            }

            if (event_h1 != "")      // Has an artist link;
            {
               if (event_a == 1)
               {
                  document.getElementById('events').rows[2].cells[1].innerHTML="\&nbsp;<a class=\"event_artist_link\" href=\""+event_h1+"\">"+event_a1+"</a><br><a class=\"event_title\">\&nbsp;"+event_t1+"</a><br>";
               }
               else
               {
                  document.getElementById('events').rows[2].cells[1].innerHTML="\&nbsp;<a class=\"event_artist_link\" href=\""+event_h1+"\">"+event_a1+"</a><br><a class=\"event_title\">\&nbsp;"+event_t1+"</a><br>\&nbsp;<a class=\"event_artist_link\" href=\""+event_h2+"\">"+event_a2+"</a><br><a class=\"event_title\">\&nbsp;"+event_t2+"</a><br>";
               }
            }
            else                    // Has no artist link;
            {
               if (event_a1 != "")   // ...but has an artist;
               {
                  document.getElementById('events').rows[2].cells[1].innerHTML="\&nbsp;"+event_a1+"<br><a class=\"event_title\">\&nbsp;"+event_t1+"</a><br>";
               }
               else                 // Has no artist (To Be Announced);
               {
                  document.getElementById('events').rows[2].cells[1].innerHTML="\&nbsp;<a class=\"event_tba\">To Be Announced</a><br><a class=\"event_title\">\&nbsp;</a><br>";
               }
            }

         }
         if ((event_l == "Salon") || (event_l == "salon") || (event_l == "The Loft") || (event_l == "the loft") || (event_l == "The Mezzanine") || (event_l == "the mezzanine"))
         {
            // Show Note (mezzanine)
            if (event_n.substr(0,1) == "{")   // Ignore if the note begins with a "{";
            {
               document.getElementById('cal').rows[11].cells[0].innerHTML="<br>";
            }
            else
            {
               if (view_yearmonth <= 200912)
               {
                  document.getElementById('cal').rows[11].cells[0].innerHTML="<br><center><b>"+event_n;
               }
               else
               {
                  document.getElementById('cal').rows[11].cells[0].innerHTML="";
               }
            }

            if (event_h1 != "")      // Has an artist link;
            {
               if (event_a == 1)
               {
                  document.getElementById('events').rows[3].cells[1].innerHTML="\&nbsp;<a class=\"event_artist_link\" href=\""+event_h1+"\">"+event_a1+"</a><br><a class=\"event_title\">\&nbsp;"+event_t1+"</a><br>";
               }
               else
               {
                  document.getElementById('events').rows[3].cells[1].innerHTML="\&nbsp;<a class=\"event_artist_link\" href=\""+event_h1+"\">"+event_a1+"</a><br><a class=\"event_title\">\&nbsp;"+event_t1+"</a><br>\&nbsp;<a class=\"event_artist_link\" href=\""+event_h2+"\">"+event_a2+"</a><br><a class=\"event_title\">\&nbsp;"+event_t2+"</a><br>";
               }
            }
            else                    // Has no artist link;
            {
               if (event_a1 != "")   // ...but has an artist;
               {
                  document.getElementById('events').rows[3].cells[1].innerHTML="\&nbsp;"+event_a1+"<br><a class=\"event_title\">\&nbsp;"+event_t1+"</a><br>";
               }
               else                 // Has no artist (To Be Announced / Closed For Renovations);
               {
                  if (view_yearmonth <= 200912)
                  {
                     document.getElementById('events').rows[3].cells[1].innerHTML="\&nbsp;<a class=\"event_tba\">To Be Announced</a><br><a class=\"event_title\">\&nbsp;</a><br>";
                  }
                  else
                  {
                     document.getElementById('events').rows[3].cells[1].innerHTML="";
                  }
               }
            }
         }
         if ((event_l == "Other") || (event_l == "other"))
         {
            document.getElementById('events').rows[6].cells[0].innerHTML="\&nbsp;<a class=\"event_other\">"+event_t1+"</a><br><br>";
         }
      }
   }

   // =======================================================================================
   //  Events: Hours and Closure Notices (Hours Array and Closed Array)
   // =======================================================================================

   // Hours;
   hours_str="";
   if (Hours[0] > 0)    // Monday
   {
      hr1=Hours[0];  hr2=Hours[1];
      if (hr1 > 12) {hr1=hr1-12}
      if (hr2 > 12) {hr2=hr2-12}
      hr1_str=String(hr1);  hr2_str=String(hr2);
      if (hr1 == 12) hr1_str="Noon";  if (hr2 == 12) hr2_str="Noon";
      hours_str=hours_str+"\&nbsp;\&nbsp;\&nbsp;\&nbsp;Mondays from "+hr1_str+" to "+hr2_str+"<br>"
   }
   if (Hours[2] > 0)   // Tuesday
   {
      hr1=Hours[2];  hr2=Hours[3];
      if (hr1 > 12) {hr1=hr1-12}
      if (hr2 > 12) {hr2=hr2-12}
      hr1_str=String(hr1);  hr2_str=String(hr2);
      if (hr1 == 12) hr1_str="Noon";  if (hr2 == 12) hr2_str="Noon";
      hours_str=hours_str+"\&nbsp;\&nbsp;\&nbsp;\&nbsp;Tuesdays from "+hr1_str+" to "+hr2_str+"<br>"
   }
   if (Hours[4] > 0)    // Wednesday
   {
      hr1=Hours[4];  hr2=Hours[5];
      if (hr1 > 12) {hr1=hr1-12}
      if (hr2 > 12) {hr2=hr2-12}
      hr1_str=String(hr1);  hr2_str=String(hr2);
      if (hr1 == 12) hr1_str="Noon";  if (hr2 == 12) hr2_str="Noon";
      hours_str=hours_str+"\&nbsp;\&nbsp;\&nbsp;\&nbsp;Wednesdays from "+hr1_str+" to "+hr2_str+"<br>"
   }
   if (Hours[6] > 0)    // Thursday
   {
      hr1=Hours[6];  hr2=Hours[7];
      if (hr1 > 12) {hr1=hr1-12}
      if (hr2 > 12) {hr2=hr2-12}
      hr1_str=String(hr1);  hr2_str=String(hr2);
      if (hr1 == 12) hr1_str="Noon";  if (hr2 == 12) hr2_str="Noon";
      hours_str=hours_str+"\&nbsp;\&nbsp;\&nbsp;\&nbsp;Thursdays from "+hr1_str+" to "+hr2_str+"<br>"
   }
   if (Hours[8] > 0)    // Friday
   {
      hr1=Hours[8];  hr2=Hours[9];
      if (hr1 > 12) {hr1=hr1-12}
      if (hr2 > 12) {hr2=hr2-12}
      hr1_str=String(hr1);  hr2_str=String(hr2);
      if (hr1 == 12) hr1_str="Noon";  if (hr2 == 12) hr2_str="Noon";
      hours_str=hours_str+"\&nbsp;\&nbsp;\&nbsp;\&nbsp;Fridays from "+hr1_str+" to "+hr2_str+"<br>"
   }
   if (Hours[10] > 0)   // Saturday
   {
      hr1=Hours[10];  hr2=Hours[11];
      if (hr1 > 12) {hr1=hr1-12}
      if (hr2 > 12) {hr2=hr2-12}
      hr1_str=String(hr1);  hr2_str=String(hr2);
      if (hr1 == 12) hr1_str="Noon";  if (hr2 == 12) hr2_str="Noon";
      hours_str=hours_str+"\&nbsp;\&nbsp;\&nbsp;\&nbsp;Saturdays from "+hr1_str+" to "+hr2_str+"<br>";
   }
   if (Hours[12] > 0)   // Sunday
   {
      hr1=Hours[12];  hr2=Hours[13];
      if (hr1 > 12) {hr1=hr1-12}
      if (hr2 > 12) {hr2=hr2-12}
      hr1_str=String(hr1);  hr2_str=String(hr2);
      if (hr1 == 12) hr1_str="Noon";  if (hr2 == 12) hr2_str="Noon";
      hours_str=hours_str+"\&nbsp;\&nbsp;\&nbsp;\&nbsp;Sundays from "+hr1_str+" to "+hr2_str+"<br>"
   }

   // Display message if we will be / are / or were open today;
   if (view_yearmonth == current_yearmonth)
   {
   }

   if (((view_year == 2009) && (view_month < 6)) || (view_year < 2009))
   {
      document.getElementById('events').rows[7].cells[0].innerHTML="<a class=\"event_h1ours\">REM Gallery Regular Hours:<br><br>"+hours_str+"\&nbsp;\&nbsp;\&nbsp;\&nbsp;<i>and by appointment</i>.<br><br>\&nbsp;\&nbsp;\&nbsp;\&nbsp;First Thursday from 6 to 9 [old]<br>\&nbsp;\&nbsp;\&nbsp;\&nbsp;First Friday from Noon to 9 [old]<br><br><br>Unless otherwise noted, all exhibits are eight week shows.</a>";
   }
   else if ((view_year == 2009) && (view_month == 6))
   {
      document.getElementById('events').rows[7].cells[0].innerHTML="<a class=\"event_h1ours\"><center><b>REM Gallery was Closed<br><br>for Relocation<br><br>During June, 2009</center></b></a>";
   }
   else
   {
      document.getElementById('events').rows[7].cells[0].innerHTML="<a class=\"event_h1ours\">REM Gallery Regular Hours:<br><br>"+hours_str+"\&nbsp;\&nbsp;\&nbsp;\&nbsp;<i>and by appointment</i>.<br><br>\&nbsp;\&nbsp;\&nbsp;\&nbsp;Second Fridays from Noon to 9<br><br><br>Unless otherwise noted, all exhibits are eight week shows.</a>";
   }

   // Closures;
   for (i=0; i<=c; i++)
   {
      closed_y1=Closed[i][0];    // Closed start year;
      closed_m1=Closed[i][1];    // Closed start month;
      closed_d1=Closed[i][2];    // Closed start day;
      closed_y2=Closed[i][3];    // Closed end year;
      closed_m2=Closed[i][4];    // Closed end month;
      closed_d2=Closed[i][5];    // Closed end day;
      closed_t =Closed[i][6];    // Closed purpose (text);

      if (((closed_y1 == view_year) && (closed_m1 == view_month)) || ((closed_y2 == view_year) && (closed_m2 == view_month)))
      {
         document.getElementById('events').rows[8].cells[0].innerHTML="\&nbsp;<a class=\"event_closed\">\&nbsp;<center>REM Gallery closed<br>"+closed_t+"<br>from: "+closed_m1+"/"+closed_d1+" to "+closed_m2+"/"+closed_d2+"</center></a><br><br>";
      }
      else
      {
         document.getElementById('events').rows[8].cells[0].innerHTML="\&nbsp;";
      }
   }
}
