// REM Gallery Events and Exhibitions Calendar;

// This program displays the calendar (one month) as well as any events (either
// pre-defined or detected).  The calendar automatically highlights the following
// special days: First Thursdays, First Fridays, Gallery Open Days (Fri & Sat),
// and major holidays.

// Variable Declarations
// ---------------------

var Event =new Array (999); var e=0;   // Events;
var Closed=new Array (999); var c=0;   // Days when the gallery is closed;

// Define Events and|or Exhibitions;
//
// Each event is stored in an array containing five elements: date, location,
// artist, title, and link.
//
// Date is a 6-digit integer beginning with the full year followed by the month.
// For example, "200701" represents January, 2007 (note the leading zero in "01").
// Any event array where the date is missing or illegal will be ignored (nothing
// displayed on the calendar).
//
// Location is a string which can only contain one of the following values:
// "Main Gallery", "Salon", or "Other".  These are not case-specific (all upper-
// or all lower-case are fine).  If Location contains any value other than one
// of these three, "Other" will be assumed.
//
// Artist is the name of the exhibition artist and can be any length.  If Artist
// is unknown, simply use "" and the program will automatically display "TBA".
//
// Title is the name of the exhibition and can be any length.  If Title is unknown,
// simply use "" (the program will not display a title).
//
// Link is the exact path to the artist's work (can be any length).  If the Link
// is unknown, use "" (the program will not link to the artist).
//
// Begin any string (no numbers) with a "?" and the string will be ignored
// (e.g. "?artists/binks1.html").
//

// Event[e]=new Array (2001, 01, "Other", "REM Gallery", "The Beginning", "index.html"); e++;

// -- 2007 -- //

//      Event[e]=new Array (2007, 01, "Main Gallery", "Margaret Craig",         "", "artists/craig1.html", "");
// e++; Event[e]=new Array (2007, 01, "Salon"       , "Jason Stout",            "", "artists/stout1.html", "");
// e++; Event[e]=new Array (2007, 02, "Main Gallery", "Jessica Barnett DeCuir", "Viva Leon", "artists/decuir1.html", "");
// e++; Event[e]=new Array (2007, 02, "Salon"       , "Margaret Craig",         "", "artists/craig1.html", "");
// e++; Event[e]=new Array (2007, 03, "Main Gallery", "Neil Cox",               "City Wall", "cox.html", "");
// e++; Event[e]=new Array (2007, 03, "Salon"       , "Margaret Craig",         "", "artists/craig1.html", "");
// e++; Event[e]=new Array (2007, 04, "Main Gallery", "Neil Cox",               "City Wall", "cox.html", "");
// e++; Event[e]=new Array (2007, 04, "Salon"       , "Margaret Craig",         "", "artists/craig1.html", "");
// e++; Event[e]=new Array (2007, 05, "Main Gallery", "Robert Maxham",          "100 Shiny Pebbles", "artists/maxham1.html", "<center><u>100 Shiny Pebbles</u></center><br>Photographs: 10 x 10 inches<br>$250 framed ($150 unframed); Editions of 5<br><br><i>Larger prints available upon request</i><br><br>All prints are giclee digital inkjets made using archivally permanent pigments on 100% rag art paper.&nbsp; The digital files are created by scanning original negatives, transparencies, and prints.&nbsp; The photographer personally performed all scanning, file management, and image preparation.","show_maxham.jpg");
// e++; Event[e]=new Array (2007, 05, "Salon"       , "Robert Maxham",          "100 Shiny Pebbles", "artists/maxham1.html", "");
// e++; Event[e]=new Array (2007, 06, "Main Gallery", "Robert Maxham",          "100 Shiny Pebbles", "artists/maxham1.html", "<center><u>100 Shiny Pebbles</u></center><br>Photographs: 10 x 10 inches<br>$250 framed ($150 unframed); Editions of 5<br><br><i>Larger prints available upon request</i><br><br>All prints are giclee digital inkjets made using archivally permanent pigments on 100% rag art paper.&nbsp; The digital files are created by scanning original negatives, transparencies, and prints.&nbsp; The photographer personally performed all scanning, file management, and image preparation.","show_maxham.jpg");
// e++; Event[e]=new Array (2007, 06, "Salon"       , "Robert Maxham",          "100 Shiny Pebbles", "artists/maxham1.html", "");
// e++; Event[e]=new Array (2007, 07, "Main Gallery", "Ricky Armendariz",       "", "artists/ricky1.html", "<center><img src=\"images/artists/ricky_show1.jpg\"><br><br><i>Note: this is an 8-week show</i></center>");
// e++; Event[e]=new Array (2007, 07, "Salon"       , "Robert Maxham",          "100 Shiny Pebbles", "artists/maxham1.html", "");
// e++; Event[e]=new Array (2007, 08, "Main Gallery", "Ricky Armendariz",       "", "artists/ricky1.html", "<center><img src=\"images/artists/ricky_show2.jpg\"><br><br><i>Note: this is an 8-week show</i></center>");
// e++; Event[e]=new Array (2007, 08, "Salon"       , "Robert Maxham",          "100 Shiny Pebbles", "artists/maxham1.html", "");
// e++; Event[e]=new Array (2007, 09, "Main Gallery", "Ron Binks",              "", "artists/binks1.html", "");
// e++; Event[e]=new Array (2007, 09, "Salon"       , "Ricky Armendariz",       "", "artists/ricky1.html", "");
// e++; Event[e]=new Array (2007, 10, "Main Gallery", "Richard Martinez",       "", "artists/martinez1.html", "");
// e++; Event[e]=new Array (2007, 10, "Salon"       , "Ron Binks",              "", "artists/binks1.html", "");

     Event[e]=new Array (2007, 11, "Main Gallery",  1, "Joan Fabian",               "Hyper-Dash",                    "",                        "",              "",             "",                      "<center><img src=\"images/artists/fabian_show1.jpg\"></center>");
e++; Event[e]=new Array (2007, 11, "The Loft"    ,  1, "Richard Martinez",          "",                              "artists/martinez1.html",  "",              "",             "",                      "");
e++; Event[e]=new Array (2007, 12, "Main Gallery",  1, "Joan Fabian",               "Hyper-Dash",                    "",                        "",              "",             "",                      "<center><img src=\"images/artists/fabian_show2.jpg\"></center>");
e++; Event[e]=new Array (2007, 12, "The Loft"    ,  1, "Richard Martinez",          "",                              "artists/martinez1.html",  "",              "",             "",                      "");

// -- 2008 -- //

e++; Event[e]=new Array (2008, 01, "Main Gallery",  1, "Marcia Alaniz",             "Little Treasures",              "artists/alaniz1.html",    "",              "",             "",                      "<center><img src=\"images/artists/alaniz_show1.jpg\"></center>");
e++; Event[e]=new Array (2008, 01, "The Loft"    ,  1, "Joan Fabian",               "Hyperdash",                     "artists/fabian1.html",    "",              "",             "",                      "");
e++; Event[e]=new Array (2008, 02, "Main Gallery",  1, "Marcia Alaniz",             "Little Treasures",              "artists/alaniz1.html",    "",              "",             "",                      "<center><img src=\"images/artists/alaniz_show2.jpg\"></center>");
e++; Event[e]=new Array (2008, 02, "The Loft"    ,  1, "Joan Fabian",               "Hyperdash",                     "artists/fabian1.html",    "",              "",             "",                      "");
e++; Event[e]=new Array (2008, 03, "Main Gallery",  1, "Cody Bustamante",           "Concretions",                   "artists/cody1.html",      "",              "",             "",                      "<center><img src=\"images/artists/cody_show1.jpg\"></center>");
e++; Event[e]=new Array (2008, 03, "The Loft"    ,  1, "Marcia Alaniz",             "Little Treasures",              "artists/alaniz1.html",    "",              "",             "",                      "");
e++; Event[e]=new Array (2008, 04, "Main Gallery",  1, "Cody Bustamante",           "Concretions",                   "artists/cody1.html",      "",              "",             "",                      "<center><img src=\"images/artists/cody_show2.jpg\"></center>");
e++; Event[e]=new Array (2008, 04, "The Loft"    ,  1, "Marcia Alaniz",             "Little Treasures",              "artists/alaniz1.html",    "",              "",             "",                      "");
e++; Event[e]=new Array (2008, 05, "Main Gallery",  1, "Johnny Robertson",          "A Little Look at the Big West", "artists/robertson1.html", "",              "",             "",                      "<center><img src=\"images/artists/robertson_show1.jpg\"></center>");
e++; Event[e]=new Array (2008, 05, "The Loft"    ,  1, "Cody Bustamante",           "Concretions",                   "artists/cody1.html",      "",              "",             "",                      "");
e++; Event[e]=new Array (2008, 06, "Main Gallery",  1, "Johnny Robertson",          "A Little Look at the Big West", "artists/robertson1.html", "",              "",             "",                      "<center><img src=\"images/artists/robertson_show2.jpg\"></center>");
e++; Event[e]=new Array (2008, 06, "The Loft"    ,  1, "Cody Bustamante",           "Concretions",                   "artists/cody1.html",      "",              "",             "",                      "");
e++; Event[e]=new Array (2008, 07, "Main Gallery",  1, "Estevan Arredondo",         "Atmospheres",                   "artists/arredondo1.html", "",              "",             "",                      "<center><img src=\"images/artists/arredondo_show1.jpg\"></center>");
e++; Event[e]=new Array (2008, 07, "The Loft"    ,  1, "Johnny Robertson",          "A Little Look at the Big West", "artists/robertson1.html", "",              "",             "",                      "");
e++; Event[e]=new Array (2008, 08, "Main Gallery",  1, "Estevan Arredondo",         "Atmospheres",                   "artists/arredondo1.html", "",              "",             "",                      "<center><img src=\"images/artists/arredondo_show2.jpg\"></center>");
e++; Event[e]=new Array (2008, 08, "The Loft"    ,  1, "Johnny Robertson",          "A Little Look at the Big West", "artists/robertson1.html", "",              "",             "",                      "");
e++; Event[e]=new Array (2008, 09, "Main Gallery",  1, "Tessa Martinez",            "Recherch&eacute",               "artists/tessa1.html",     "",              "",             "",                      "<center><img src=\"images/artists/tessa_show1.jpg\"></center>");
e++; Event[e]=new Array (2008, 09, "The Loft"    ,  1, "Estevan Arredondo",         "Atmospheres",                   "artists/arredondo1.html", "",              "",             "",                      "");
e++; Event[e]=new Array (2008, 10, "Main Gallery",  1, "Tessa Martinez",            "Recherch&eacute",               "artists/tessa1.html",     "",              "",             "",                      "<center><img src=\"images/artists/tessa_show2.jpg\"></center>");
e++; Event[e]=new Array (2008, 10, "The Loft"    ,  1, "Estevan Arredondo",         "Atmospheres",                   "artists/arredondo1.html", "",              "",             "",                      "");
e++; Event[e]=new Array (2008, 11, "Main Gallery",  2, "Maria Elena Botello Mogas", "Elusive Passages",              "artists/m_mogas1.html",   "Richard Mogas", "Compositions", "artists/r_mogas1.html", "<center><img src=\"images/artists/mogas_show1.jpg\"></center>");
e++; Event[e]=new Array (2008, 11, "The Loft"    ,  1, "Tessa Martinez",            "Recherch&eacute",               "artists/tessa1.html",     "",              "",             "",                      "");
e++; Event[e]=new Array (2008, 12, "Main Gallery",  2, "Maria Elena Botello Mogas", "Elusive Passages",              "artists/m_mogas1.html",   "Richard Mogas", "Compositions", "artists/r_mogas1.html", "<center><img src=\"images/artists/mogas_show2.jpg\"></center>");
e++; Event[e]=new Array (2008, 12, "The Loft"    ,  1, "Tessa Martinez",            "Recherch&eacute",               "artists/tessa1.html",     "",              "",             "",                      "");

// -- 2009 -- //

e++; Event[e]=new Array (2009, 01, "Main Gallery",  2, "Lawrence Leissner",         "",                              "artists/leissner1.html",  "Ron Binks",     "<span style=\"font-variant: small-caps;\"><center>RonBinks<br />LarryLeissner<br />Photographic<br />Images Berlin</center></span>",             "artists/binks1.html",   "<center><img src=\"images/artists/binks_show1.jpg\"></center>");
e++; Event[e]=new Array (2009, 01, "The Loft",      2, "Maria Elena Botello Mogas", "Elusive Passages",              "artists/m_mogas1.html",   "Richard Mogas", "Compositions", "artists/r_mogas1.html", "");
e++; Event[e]=new Array (2009, 02, "Main Gallery",  2, "Lawrence Leissner",         "",                              "artists/leissner1.html",  "Ron Binks",     "<span style=\"font-variant: small-caps;\"><center>RonBinks<br />LarryLeissner<br />Photographic<br />Images Berlin</center></span>",             "artists/binks1.html",   "<center><img src=\"images/artists/binks_show2.jpg\"></center>");
e++; Event[e]=new Array (2009, 02, "The Loft",      2, "Maria Elena Botello Mogas", "Elusive Passages",              "artists/m_mogas1.html",   "Richard Mogas", "Compositions", "artists/r_mogas1.html", "");
e++; Event[e]=new Array (2009, 03, "Main Gallery",  1, "Vincent Falsetta",          "New Paintings",                 "artists/falsetta1.html",  "",              "",             "",                      "<center><img src=\"images/artists/falsetta_show1.jpg\"></center>");
e++; Event[e]=new Array (2009, 03, "The Loft",      2, "Lawrence Leissner",         "",                              "artists/leissner1.html",  "Ron Binks",     "",             "artists/binks1.html",   "");
e++; Event[e]=new Array (2009, 04, "Main Gallery",  1, "Vincent Falsetta",          "New Paintings",                 "artists/falsetta1.html",  "",              "",             "",                      "<center><img src=\"images/artists/falsetta_show2.jpg\"></center>");
e++; Event[e]=new Array (2009, 04, "The Loft",      2, "Lawrence Leissner",         "",                              "artists/leissner1.html",  "Ron Binks",     "",             "artists/binks1.html",   "");
e++; Event[e]=new Array (2009, 05, "Main Gallery",  1, "Dennis Olsen",              "Past Imperfect",                "artists/olsen1.html",     "",              "",             "",                      "<center><img src=\"images/artists/olsen_show1.jpg\"></center>");
e++; Event[e]=new Array (2009, 05, "The Loft"    ,  1, "Vincent Falsetta",          "New Paintings",                 "artists/falsetta1.html",  "",              "",             "",                      "");
e++; Event[e]=new Array (2009, 06, "Main Gallery",  1, "Dennis Olsen",              "Past Imperfect",                "artists/olsen1.html",     "",              "",             "",                      "<center><img src=\"images/artists/olsen_show1.jpg\"></center>");
e++; Event[e]=new Array (2009, 06, "The Loft"    ,  1, "Vincent Falsetta",          "New Paintings",                 "artists/falsetta1.html",  "",              "",             "",                      "");
e++; Event[e]=new Array (2009, 07, "Main Gallery",  1, "Margaret Craig",            "The Glistening",                "artists/craig1.html",     "",              "",             "",                      "<center><img src=\"images/artists/craig_show1.jpg\"></center>");
e++; Event[e]=new Array (2009, 07, "The Mezzanine", 1, "Dennis Olsen",              "Past Imperfect",                "artists/olsen1.html",     "",              "",             "",                      "");
e++; Event[e]=new Array (2009, 08, "Main Gallery",  1, "Margaret Craig",            "The Glistening",                "artists/craig1.html",     "",              "",             "",                      "<center><img src=\"images/artists/craig_show2.jpg\"></center>");
e++; Event[e]=new Array (2009, 08, "The Mezzanine", 1, "Dennis Olsen",              "Past Imperfect",                "artists/olsen1.html",     "",              "",             "",                      "");
e++; Event[e]=new Array (2009, 09, "Main Gallery",  1, "Richard Yanas",             "Sequel",                        "artists/yanas1.html",     "",              "",             "",                      "<center><img src=\"images/artists/yanas_show1.jpg\"></center>");
e++; Event[e]=new Array (2009, 09, "The Mezzanine", 1, "Margaret Craig",            "The Glistening",                "artists/craig1.html",     "",              "",             "",                      "");
e++; Event[e]=new Array (2009, 10, "Main Gallery",  1, "Richard Yanas",             "Sequel",                        "artists/yanas1.html",     "",              "",             "",                      "<center><img src=\"images/artists/yanas_show2.jpg\"></center>");
e++; Event[e]=new Array (2009, 10, "The Mezzanine", 1, "Margaret Craig",            "The Glistening",                "artists/craig1.html",     "",              "",             "",                      "");
e++; Event[e]=new Array (2009, 11, "Main Gallery",  1, "Jason Stout",               "Out Here In The Middle",        "artists/stout1.html",     "",              "",             "",                      "<center><img src=\"images/artists/stout_show1.jpg\"></center>");
e++; Event[e]=new Array (2009, 11, "The Mezzanine", 1, "Margaret Craig",            "The Glistening",                "artists/craig1.html",     "",              "",             "",                      "");
e++; Event[e]=new Array (2009, 12, "Main Gallery",  1, "Jason Stout",               "Out Here In The Middle",        "artists/stout1.html",     "",              "",             "",                      "<center><img src=\"images/artists/stout_show2.jpg\"></center>");
e++; Event[e]=new Array (2009, 12, "The Mezzanine", 1, "Margaret Craig",            "The Glistening",                "artists/craig1.html",     "",              "",             "",                      "");

// -- 2010 -- //

e++; Event[e]=new Array (2010, 01, "Main Gallery",  1, "Soomin Jung",               "Quiescent",                     "artists/jung1.html",      "",              "",             "",                      "<center><img src=\"images/artists/jung_show1.jpg\"></center>");
e++; Event[e]=new Array (2010, 01, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 02, "Main Gallery",  1, "Soomin Jung",               "Quiescent",                     "artists/jung1.html",      "",              "",             "",                      "<center><img src=\"images/artists/jung_show2.jpg\"></center>");
e++; Event[e]=new Array (2010, 02, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 03, "Main Gallery",  1, "Richard Martinez",          "Paintings For A White Room",    "artists/martinez1.html",  "",              "",             "",                      "<center><img src=\"images/artists/martinez_show1.jpg\"></center>");
e++; Event[e]=new Array (2010, 03, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 04, "Main Gallery",  1, "Richard Martinez",          "Paintings For A White Room",    "artists/martinez1.html",  "",              "",             "",                      "<center><img src=\"images/artists/martinez_show2.jpg\"></center>");
e++; Event[e]=new Array (2010, 04, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 05, "Main Gallery",  1, "Estevan Arredondo",         "en el moment - in the momento", "artists/arredondo1.html", "",              "",             "",                      "<center><img src=\"images/artists/arredondo_show3.jpg\"></center>");
e++; Event[e]=new Array (2010, 05, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 06, "Main Gallery",  1, "Estevan Arredondo",         "en el moment - in the momento", "artists/arredondo1.html", "",              "",             "",                      "<center><img src=\"images/artists/arredondo_show4.jpg\"></center>");
e++; Event[e]=new Array (2010, 06, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 07, "Main Gallery",  1, "Marcia Keith Alaniz",       "",                              "artists/alaniz1.html",    "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 07, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 08, "Main Gallery",  1, "Marcia Keith Alaniz",       "",                              "artists/alaniz1.html",    "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 08, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 09, "Main Gallery",  1, "Robert Maxham",             "",                              "artists/maxham1.html",    "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 09, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 10, "Main Gallery",  1, "Robert Maxham",             "",                              "artists/maxham1.html",    "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 10, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 11, "Main Gallery",  1, "Ricky Armendariz",          "",                              "artists/ricky1.html",     "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 11, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 12, "Main Gallery",  1, "Ricky Armendariz",          "",                              "artists/ricky1.html",     "",              "",             "",                      "");
e++; Event[e]=new Array (2010, 12, "The Mezzanine", 1, "",                          "",                              "",                        "",              "",             "",                      "");

min_year=2007;
max_year=2010;

// Define specific days when the gallery is closed;
//
// The Closed array lists dates when the gallery is closed.  Each closed var
// array contains: month, day, year, explaination (present/future), explaination (past).
// You may only have one explaination per month (the first one found is used).
//
// You should only list closures for dates during which the gallery would normally be open.

     Closed[c]=new Array (01, 01, 2009, "Due to the New Years holidays, REM Gallery will be closed on January 1 and January 2 (First Thursday and First Friday).&nbsp; Our new exhibit will open on Thursday, January 8.",  "Due to the New Years holidays, REM Gallery was closed on January 1 and January 2 (First Thursday and First Friday).&nbsp; Our new exhibit opened on Thursday, January 8.");
c++; Closed[c]=new Array (01, 02, 2009, "Due to the New Years holidays, REM Gallery will be closed on January 1 and January 2 (First Thursday and First Friday).&nbsp; Our new exhibit will open on Thursday, January 8.",  "Due to the New Years holidays, REM Gallery was closed on January 1 and January 2 (First Thursday and First Friday).&nbsp; Our new exhibit opened on Thursday, January 8.");
c++; Closed[c]=new Array (06, 04, 2009, "REM Gallery will be closed during June, 2009 for Relocation and Installation.", "REM Gallery was closed during June, 2009 for Relocation and Installation.");
c++; Closed[c]=new Array (06, 05, 2009, "REM Gallery will be closed during June, 2009 for Relocation and Installation.", "REM Gallery was closed during June, 2009 for Relocation and Installation.");
c++; Closed[c]=new Array (06, 06, 2009, "REM Gallery will be closed during June, 2009 for Relocation and Installation.", "REM Gallery was closed during June, 2009 for Relocation and Installation.");
c++; Closed[c]=new Array (06, 12, 2009, "REM Gallery will be closed during June, 2009 for Relocation and Installation.", "REM Gallery was closed during June, 2009 for Relocation and Installation.");
c++; Closed[c]=new Array (06, 13, 2009, "REM Gallery will be closed during June, 2009 for Relocation and Installation.", "REM Gallery was closed during June, 2009 for Relocation and Installation.");
c++; Closed[c]=new Array (06, 19, 2009, "REM Gallery will be closed during June, 2009 for Relocation and Installation.", "REM Gallery was closed during June, 2009 for Relocation and Installation.");
c++; Closed[c]=new Array (06, 20, 2009, "REM Gallery will be closed during June, 2009 for Relocation and Installation.", "REM Gallery was closed during June, 2009 for Relocation and Installation.");
c++; Closed[c]=new Array (06, 26, 2009, "REM Gallery will be closed during June, 2009 for Relocation and Installation.", "REM Gallery was closed during June, 2009 for Relocation and Installation.");
c++; Closed[c]=new Array (06, 27, 2009, "REM Gallery will be closed during June, 2009 for Relocation and Installation.", "REM Gallery was closed during June, 2009 for Relocation and Installation.");
c++; Closed[c]=new Array (09, 04, 2009, "REM Gallery will be closed on Friday, Sept 5 and Saturday Sept 6 for Installation.", "REM Gallery was closed Friday, Sept 5 and Saturday Sept 6 for Installation.");
c++; Closed[c]=new Array (09, 05, 2009, "REM Gallery will be closed on Friday, Sept 5 and Saturday Sept 6 for Installation.", "REM Gallery was closed Friday, Sept 5 and Saturday Sept 6 for Installation.");
c++; Closed[c]=new Array (12, 25, 2009, "Due to the holidays, REM Gallery will be closed on Friday, December 25 and Saturday, December 26.", "Due to the holidays, REM Gallery was closed on Friday, December 25 and Saturday, December 26.");
c++; Closed[c]=new Array (12, 26, 2009, "Due to the holidays, REM Gallery will be closed on Friday, December 25 and Saturday, December 26.", "Due to the holidays, REM Gallery was closed on Friday, December 25 and Saturday, December 26.");
c++; Closed[c]=new Array (01, 01, 2010, "Due to the holidays, REM Gallery will be closed on Friday, January 1 and Saturday, January 2.",     "Due to the holidays, REM Gallery was closed on Friday, January 1 and Saturday, January 2."    );
c++; Closed[c]=new Array (01, 02, 2010, "Due to the holidays, REM Gallery will be closed on Friday, January 1 and Saturday, January 2.",     "Due to the holidays, REM Gallery was closed on Friday, January 1 and Saturday, January 2."    );
c++; Closed[c]=new Array (12, 24, 2010, "Due to the holidays, REM Gallery will be closed on Friday, December 24 and Saturday, December 25.", "Due to the holidays, REM Gallery was closed on Friday, December 24 and Saturday, December 25.");
c++; Closed[c]=new Array (12, 25, 2010, "Due to the holidays, REM Gallery will be closed on Friday, December 24 and Saturday, December 25.", "Due to the holidays, REM Gallery was closed on Friday, December 24 and Saturday, December 25.");
c++; Closed[c]=new Array (12, 31, 2010, "Due to the holidays, REM Gallery will be closed on Friday, December 31 and Saturday, January 1.",   "Due to the holidays, REM Gallery was closed on Friday, December 31 and Saturday, January 1."  );
c++; Closed[c]=new Array (01, 01, 2011, "Due to the holidays, REM Gallery will be closed on Friday, December 31 and Saturday, January 1.",   "Due to the holidays, REM Gallery was closed on Friday, December 31 and Saturday, January 1."  );
c++; Closed[c]=new Array (04, 23, 2010, "Closed on the 23rd and the 24th of April for Fiesta and the King William Fair.", "Closed on the 23rd and the 24th of April for Fiesta and the King William Fair.");
c++; Closed[c]=new Array (04, 24, 2010, "Closed on the 23rd and the 24th of April for Fiesta and the King William Fair.", "Closed on the 23rd and the 24th of April for Fiesta and the King William Fair.");
c++; Closed[c]=new Array (05, 07, 2010, "Closed on the 7th and the 8th of May for exhibit installation.", "Closed on the 7th and the 8th of May for exhibit installation.");
c++; Closed[c]=new Array (05, 08, 2010, "Closed on the 7th and the 8th of May for exhibit installation.", "Closed on the 7th and the 8th of May for exhibit installation.");

// Define the Hours Array;
//
// This is a simple array with 18 values: an open and close time for each day
// of the week (beginning with Monday) followed by hours for first thursday and
// first friday.  Enter 0 for no open/close time (e.g., "0,0").  Enter values
// as "military time" where a value of "12" means "noon", and a value of 16
// means "4:00 P.M."

//                    M    T    W    T     F      S     S   1st T  1st F
var Hours=new Array (0,0, 0,0, 0,0, 0,0, 12,18, 12,18, 0,0, 18,21, 12,21);

//
// Styles Reference:
//
//    Calendar0. . . . . . . Blank cell
//    Calendar1. . . . . . . Empty (normal)
//    Calendar2. . . . . . . First Thursday (white-filled box)
//    Calendar3. . . . . . . First Friday (blue-filled box)
//    Calendar4. . . . . . . Gallery Open (gray-filled box)
//    Calendar5. . . . . . . Gallery Closed (orange-filled box)
//    Calendar_Note. . . . . Footnote at bottom of Calendar
//    Event0 . . . . . . . . Normal
//    Event1 . . . . . . . . First Thursday
//    Event2 . . . . . . . . First Friday
//    Event3 . . . . . . . . Main Gallery featured artist
//    Event4 . . . . . . . . Salon featured artist
//    Event5 . . . . . . . . Other information
//    Event6 . . . . . . . . Closure Information
//    Event7 . . . . . . . . Link
//
// Style Trump Rules (higher level has higher priority):
//
//   Level 1: Empty (normal)
//   Level 2: Gallery Open
//   Level 3: First Thursday / First Friday
//   Level 4: Gallery Closed
//

// --------------------- //
// Variable Declarations //
// --------------------- //

// For Weekday Variables:
//
//    0 = Sunday
//    1 = Monday
//    2 = Tuesday
//    3 = Wednesday
//    4 = Thursday
//    5 = Friday
//    6 = Saturday

// General Date Variables
// ----------------------
var view_date     =new Date();                       // Viewed date;
var view_month    =view_date.getMonth()+1;           // Viewed month;
var view_day      =view_date.getDate();              // Viewed day;
var view_year     =view_date.getFullYear();          // Viewed year;
var view_dow      =view_date.getDay()+1;             // Viewed day of week;
var view_first_dow=0;                                // Current first day of the month;
var view_month_str="";                               // Name of the currently viewed month;
var first_dom     =0;                                // First weekday of the current month (0-6);

var t_date=new Date();                                     // Current date;
var current_month=t_date.getMonth()+1;                     // Current month;
var current_day=t_date.getDate();                          // Current day;
var current_year=t_date.getFullYear();                     // Current year;
var current_yearmonth=(current_year*100)+current_month;

// Month Array: stores info about each day in the Viewed month as "wsmm":
//
//   w  = Day of week (1-7)
//   s  = Style number (0-5)
//   mm = Day of month (1-31)
//
// (0 means a missing day)
//
var Month=new Array (31);

// First Thursday | First Friday
// -----------------------------
var first_thu=new Boolean(false);                    // 1st Thursday found flag
var first_thu_num=0;                                 // 1st Thursday day number (1-31)
var first_fri=new Boolean(false);                    // 1st Friday found flag
var first_fri_num=0;                                 // 1st Friday day number (1-31)
var first_thu_prior_month=new Boolean(false);        // 1st Thursday occurs on prior month flag;
var cal_style=0;                                     // Calendar cell style;

// Other Variables
// ---------------
var leap_year=new Boolean(true);                     // Leap year flag;
var dom=0;                                           // Day of month loop counter;
var dow=0;                                           // Day of the week;
var tot_days=0;                                      // Total days in the month;


// Calendar Table Display Variables
// --------------------------------
var first_row=new Boolean(true);                     // Displaying the first row flag;
var new_row=new Boolean(false);                      // Displaying a new row flag;
var last_row=new Boolean(false);                     // Displaying the last row flag;
var column=0;                                        // Calendar column number (1-7);

// Temporary Working Variables
// ---------------------------
var temp_date=new Date();                            // Temp variable (date);
var temp=0;                                          // Temp variable (integer);
var temp_dow=1;                                      // Temp variable (integer);
var row_cnt=0;                                       // Row counter;
var col_cnt=0;                                       // Column counter;

