<!-- // Hide the script

/*
 * eventcheck.js
 *
 * Checks the date and prints important events corresponding with those dates
 * Michael Lieberman, 2001
 *
 * Date::getYear() fix
 */

// Constants
var MAX_ELEM   = 100; // The maximum number of events that the array can hold
var START_TIME = 0;   // The time to begin displaying events (24hr)
var END_TIME   = 24;  // The time to stop displaying events  (24hr)

var now = new Date();
if(now.getHours() >= START_TIME && now.getHours() < END_TIME)
{

/* Events is the two dimensional array holding the dates and events.
 * For any given i (under MAX_ELEM):
 *   Events[i][0] is the starting date string
 *   Events[i][1] is the ending date string
 *   Events[i][2] is the event string
 */
var Events = new Array(MAX_ELEM);

// "@" will be the string to flag the unfilled items
for(i=0; i<MAX_ELEM; i++)
{
   Events[i] = new Array(5);
   Events[i][0] = "@";
   Events[i][1] = "@";
   Events[i][2] = "@";
   Events[i][3] = "@";
   Events[i][4] = "@";
}

/* Manually fill in the dates / events.  I wanted to read from a text file
 *   but Javascript would not allow me...
 *
 * To add a new event, add five lines.  Examples:
 *   Events[0][0] = '10/31/2001';
 *   Events[0][1] = '10/31/2001';
 *   Events[0][2] = 'headline';
 *   Events[0][3] = 'link';
 *   Events[0][4] = 'blurb';
 *
 * Time the event will be displayed:  Starting on Events[n][0],
 *                                    Ending at the end of the day Events[n][1]
 *
 * The event name can also have HTML tags.
 * The order in which events are entered does not matter.  The events will be
 *   displayed on the page (if the date is in the valid range) in whatever
 *   order they are in in the array.
 */

Events[0][0]    = '5/18/2010';
Events[0][1]    = '5/31/2010';
Events[0][2]    = 'WJ\'s 2010 Annual Award Winners';
Events[0][3]    = '/schools/wjhs/information/student_awards/Academic_Awards_2010.pdf';
Events[0][4]    = 'The Awards were presented at the Annual Awards Night Ceremony on May 17th. Click the above link for a list of recipients';
/*
Events[1][0]    = '9/16/2010';
Events[1][1]    = '9/29/2010';
Events[1][2]    = '<i>The Pitch</i> 2009-2010 For Earning Third Place Best Newspaper Overall from The Maryland High School Journalism Awards. ' +
                  'Individual Winners Include: Kathleen Seale \'10, Best Sports Feature Story <i><a href="http://www.issuu.com/thepitch/docs/dec_22_pitch">Redefining the Position of ' +
                  '\"Benchwarmer\"</i></a> and Sasha Tycko &amp; Sophie Meade, Second Place in Best Story Layout for <i><a href="http://www.issuu.com/thepitch/docs/march_25_entire_pitch">Spring ' + 
                  'Fashion Preview</i>';
Events[1][3]    = '';
Events[1][4]    = '';
*/
Events[2][0]    = '9/16/2010';
Events[2][1]    = '9/29/2010';
Events[2][2]    = 'WJ\'s <i>Spectator Magazine</i> on being awarded a First Place with Special Merit from the American Scholastic Press Association, and on being declared Most Outstanding ' + 
                  'High School Literary-Art Magazine for 2010. Thalia Patrinos and Adam Moskowitz were editors.  Huzzah for the kids.';
Events[2][3]    = '';
Events[2][4]    = ''; 


Events[1][0]    = '11/29/2010';
Events[1][1]    = '12/23/2010';
Events[1][2]    = 'WJ\'s Recently Honored Musicians';
Events[1][3]    = '/schools/wjhs/depts/music/honors.shtm';
Events[1][4]    = '';

/*
Events[2][0]    = '12/16/2009';
Events[2][1]    = '12/31/2009';
Events[2][2]    = 'Fall Sports Honorees';
Events[2][3]    = '';
Events[2][4]    = '<span class="hilite">All Met</span>: Boys Cross Country: 2nd Team-Ishan Dey; Honorable Mention-Sean O\'Leary, Nick Regan &amp; Alex Willett. ' +
                  'Girls Cross Country: 1st Team-Anna Bosse; Honorable Mention-Camille Bouvet &amp; Jenna Willett. ' +
                  'Boys Soccer: Honorable Mention-Nick Castro. Girls Soccer: Honorable Mention-Chaucia Sydnor. ' +
                  'Field Hockey: 2nd Team-Georgina Beven. Football MCPS All-League Team: Offense-Michael Pitsenberger. ' +
                  '<span class="hilite">All State</span>: Nick Castro-2nd Team Soccer, <span class="hilite">All Gazette</span>: Nick Castro &amp; Chaucia Sydnor-1st Team Soccer; '+
                  'Georgina Beven-1st Team Field Hockey; Catherine Madden-2nd Team Soccer; Sydney Calas &amp; Mario Tafur-Honorable Mention Soccer; Sarah Bernstein-Honorable ' +
                  'Mention Tennis; Ishan Dey, Sean O\'Leary, Nick Regan, Alex Willett, Anna Bosse, Camille Bouvet &amp; Jenna Willett-1st Team Cross Country; Tom Martin-Girls Cross Country ' +
                  'Coach of the Year; Jennifer Spencer-Honorable Mention Cross Country, Michael Pittsenberger-1st Team Football Offense, All-Around. ' +
                  '<span class="hilite">MCPS Senior All-Star Game Participants</span>: Anna Elder-Volleyball; ' +
                  'John Marshall &amp; Trevor Wilson-Boys Soccer; Roya Hakimzadeh, ' +
                  'Emma Krieger &amp; Chaucia Sydnor-Girls, <span class="hilite">"Super 60"</span> Michael Pitsenberger to play in the 2nd Annual "Crab Bowl" All-Star game honoring ' +
                  'the best high school football players from Baltimore and Washington, D.C.';
*/
/*
Events[2][0]    = '1/25/2010';
Events[2][1]    = '2/7/2010';
Events[2][2]    = 'WJ\'s <i>It\'s Academic</i> team on winning their 2nd Round match';
Events[2][3]    = '';
Events[2][4]    = 'The show will be aired on WRC TV 4 on April 10th at 10:30 a.m.';

Events[3][0]    = '2/21/2010';
Events[3][1]    = '3/6/2010';
Events[3][2]    = 'WJ\'s 2nd Marking Period Honor Roll Recipients';
Events[3][3]    = '/schools/wjhs/information/student_awards/honor_roll.shtm';
Events[3][4]    = '';
*/
Events[4][0]    = '11/3/2010';
Events[4][1]    = '11/17/2010';
Events[4][2]    = 'WJ\'s Debate Winners at the 11/3 Tournament';
Events[4][3]    = '/schools/wjhs/orgs/debate/101103.shtm';
Events[4][4]    = '';

Events[5][0]    = '11/13/2010';
Events[5][1]    = '12/11/2010';
Events[5][2]    = 'WJ\'s Forensics Winners at the 11/13 Tournament';
Events[5][3]    = '/schools/wjhs/orgs/forensics/101113.shtm';
Events[5][4]    = '';

/*
Events[5][0]    = '4/17/2009';
Events[5][1]    = '4/30/2009';
Events[5][2]    = '<i>The Pitch</i> staff for winning "First Place with Special Merit", the highest award possible, from The American Scholastic Press Association and to Jacob Gallagher, ' +
                  'photography editor, and his photography staff for winning "Best Photography Overall"';
Events[5][3]    = '';
Events[5][4]    = '';
*/
Events[7][0]    = '2/28/2010';
Events[7][1]    = '3/13/2010';
Events[7][2]    = 'Senior Patrick Teixeira for becoming WJ\'s third ever Regional Wrestling Champion, winning the 285 pound class with a thrilling 3-2 victory in the championship bout. ' +
                  'Sophomore Elad Covaliu also qualified for States in 4th place in the 152 pound class with an equally thrilling 2-0 triple overtime win in the qualifying match!';
Events[7][3]    = '';
Events[7][4]    = '';
/*
Events[2][0]    = '4/8/2009';
Events[2][1]    = '4/21/2009';
Events[2][2]    = 'WJ\'s Winter Sports Honorees...';
Events[2][3]    = '';
Events[2][4]    = 'Washington Post All Met: Ice Hockey-Daniel Cohen, 1st Team; Swimming-Elizabeth Pepper, 1st Team, ' +
                  'Annie Kastler &amp; Andrew Tollefson, honorable mention; Washington Post All League Montgomery 4A Basketball Team-Nash Oh<br>' +
                  'All Gazette Athletes: Basketball-2nd Team-Nash Oh &amp; Carl Yaffe; Swim &amp; Dive-1st Team-Elizabeth Pepper, Andrew Tollefson &amp; Mina Vucic; Honorable Mention-Aaron Budner' +
                  ' &amp; Annie Kastler; Ice Hockey-1st Team-Daniel Cohen; Honorable Mention-Zach Abelman';
*/
Events[6][0]    = '9/30/2010';
Events[6][1]    = '10/15/2010';
Events[6][2]    = 'WJ\'s National Merit Awardees!';
Events[6][3]    = '/schools/wjhs/information/student_awards/nm.shtm';
Events[6][4]    = 'Students earn National Merit awards based on their PSAT scores junior year. Click the above link for the names of the awardees';

/*
Events[5][0]    = '3/24/2009';
Events[5][1]    = '4/6/2009';
Events[5][2]    = 'WJ\'s Symphonic Orchestra on earning four superior ratings at the District Music Festival and qualifying for the MD State Music Festival!';
Events[5][3]    = '';
Events[5][4]    = '';

Events[7][0]    = '3/23/2009';
Events[7][1]    = '4/5/2009';
Events[7][2]    = 'WJ\'s Montgomery County National History Day Winners';
Events[7][3]    = '';
Events[7][4]    = 'NHD is a national competition where students from around the country conduct research on topics they select and create an exhibit, documentary film, web site or ' +
'performance based on their research. These projects were developed over the last 4 months and represent countless hours of student work. WJ entered over 30 students ' +
' this year and the following will be representing Montgomery County in the "senior" (i.e. high school) category at state competition in April at UMBC<br>' +
'SENIOR WEBSITE: Alice Chang, Eva Morgun, Lina Valivullah-"Benjamin Franklin:  The Model American" Teacher:  Nathan Schwartz<br>' +
'SENIOR GROUP EXHIBIT: Yang You, Katherine Mahdavi, and Katerina Triantos-"Elizabeth Blackwell:  The First Woman Doctor" Teacher:  Nathan Schwartz; ' +
'Ksenia Kirilyuk and Martha Afework-"Theodor Seuss Geisel" Teacher:  Nathan Schwartz<br>'+
'SENIOR GROUP DOCUMENTARY: Sasha Tycko and Devon Murtha-"Jesse James" Teacher:  Nathan Schwartz<br>' +
'SENIOR INDIVIDUAL DOCUMENTARY: Robindra Nath Banerji-"Henry Ford:  Manufacturing  the Modern America" Teacher:  Nathan Schwartz; Katie Levingston-"Jonas Salk:  A Polio Pioneer" ' +
'Teacher: Nathan Schwartz.<br>SENIOR INDIVIDUAL EXHIBIT: Shannon Dade-"Thomas Paine" Teacher: Nathan Schwartz; Gregory Segal-"Grover Cleveland versus Congress:  Strengthening the ' +
'Executive Branch" Teacher:  Nathan Schwartz.<br>SENIOR INDIVIDUAL PERFORMANCE: Rebecca Gale-"Corrie ten Boom: Resistance and Reconciliation" Teacher:  Micah Wiggins.';
*/
Events[8][0]    = '2/28/2010';
Events[8][1]    = '3/14/2010';
Events[8][2]    = 'WJ Indoor Track on their Regional and State Accomplishments';
Events[8][3]    = '/schools/wjhs/athletics/itrack/#region';
Events[8][4]    = 'Click the above link for the WJ athletes who earned medals and ribbons at both meets.';

//Events[7][0]    = '1/31/2009';
//Events[7][1]    = '2/13/2009';
//Events[7][2]    = 'WJ\'s <i>It\'s Academic</i> team, sophomore Kuo-Kai Chin and seniors Andi Shahu and Daichi Ueda, on their 1st round win!';
//Events[7][3]    = '';
//Events[7][4]    = 'The match taped on January 31st will air on WRC 4 at 10:30 a.m. on Saturday, March 21st. The 2nd round match will be taped at WRC on March 7th at 1:30 p.m.';

//Events[8][0]    = '2/1/2009';
//Events[8][1]    = '2/14/2009';
//Events[8][2]    = 'WJ Senior Re-I Chin on her award as an Intel Science Talent Search Semifinalist!';
//Events[8][3]    = 'http://www.montgomeryschoolsmd.org/press/index.aspx?pagetype=showrelease&id=2448';
//Events[8][4]    = 'Seventeen MCPS students were named semifinalists in one of the most rigorous and noted science competitions for high school students in the United States. Click ' +
                  'the above link for the MCPS public announcement about the awards.';

//Events[2][0]    = '12/17/2008';
//Events[2][1]    = '12/31/2008';
//Events[2][2]    = 'WJ\'s New Members of the Science National Honor Society';
//Events[2][3]    = '/schools/wjhs/orgs/snhs/members.shtm';
//Events[2][4]    = 'WJ\'s Induction Ceremony was held the evening of December 17th';

Events[3][0]    = '11/3/2010';
Events[3][1]    = '11/17/2010';
Events[3][2]    = 'WJ\'s Accomplished Musicians';
Events[3][3]    = '/schools/wjhs/depts/music/honors.shtm';
Events[3][4]    = '';

//Events[4][0]    = '12/15/2008';
//Events[4][1]    = '12/31/2008';
//Events[4][2]    = 'WJ\'s New Members of the National Honor Society';
//Events[4][3]    = '/schools/wjhs/orgs/nat\'lhonors/members.shtm';
//Events[4][4]    = 'WJ\'s Induction Ceremony was held the evening of December 15th';
/*
Events[5][0]    = '12/15/2009';
Events[5][1]    = '12/31/2009';
Events[5][2]    = 'WJ\'s "Christmas in Washington" Vocalists';
Events[5][3]    = '/schools/wjhs/depts/music/christmas.shtm';
Events[5][4]    = '';
*/
//Events[6][0]    = '12/15/2008';
//Events[6][1]    = '12/31/2008';
//Events[6][2]    = 'WJ\'s Gospel/Show Choir and Jazz Ensemble for earning Superior ratings at their Festivals on December 12 &amp; 13';
//Events[6][3]    = '';
//Events[6][4]    = '';

//Events[5][0]    = '9/30/2008';
//Events[5][1]    = '10/14/2008';
//Events[5][2]    = 'WJ\'s National Achievement Awardees: Semifinalist-Brian Gill; Outstanding Participants-Patrick Ebobisse, ' +
//                  'Raven Holmes, Alexandra Lawrence &amp; Claudel Ngounou';
//Events[5][3]    = '';
//Events[5][4]    = '';

//Events[7][0]    = '12/18/2008';
//Events[7][1]    = '12/31/2008';
//Events[7][2]    = 'Paul Okeyo &amp; Aaron Smith, <i>Gazette</i> Football 2nd Team All-Defense Selections';
//Events[7][3]    = '';
//Events[7][4]    = '';

//Events[7][0]    = '5/19/2008';
//Events[7][1]    = '6/1/2008';
//Events[7][2]    = 'Boys Track & Field - Division I Champions';
//Events[7][3]    = '';
//Events[7][4]    = '';

//Events[8][0]    = '5/19/2008';
//Events[8][1]    = '6/1/2008';
//Events[8][2]    = 'Wind Ensemble &amp; Symphonic Orchestra - received "Excellent" &amp; "Outstanding" ratings at the Maryland State Music Festival';
//Events[8][3]    = '';
//Events[8][4]    = '';

//Events[9][0]    = '5/19/2008';
//Events[9][1]    = '6/1/2008';
//Events[9][2]    = 'Concert Choir &amp; Madrigals - received "Excellent" ratings at the Maryland State Choral Festival';
//Events[9][3]    = '';
//Events[9][4]    = '';

Events[10][0]    = '5/19/2008';
Events[10][1]    = '6/1/2008';
Events[10][2]    = 'WJ Gymnastics Team - MD State Silver Medalists &amp; gymnast Shannon Mitchell - Silver Medalist in the All-Around Competition';
Events[10][3]    = '';
Events[10][4]    = '';

//Events[8][0]    = '2/25/2008';
//Events[8][1]    = '3/9/2008';
//Events[8][2]    = 'WJ\'s Indoor Track team on finishing in 6th place at the state championships. ' +
//                  'Chris Moen won the 800m in a new state record time. Brian Graves won 2nd place in the 3200m ' +
//                  'and the boys 4 x 800m relay team of Sean O\'Leary, Alexander Connant, Asger Klocker &amp; Chris Moen ' +
//                  'finished 3rd.';
//Events[8][3]    = '';
//Events[8][4]    = '';

//Events[9][0]    = '2/4/2008';
//Events[9][1]    = '2/16/2008';
//Events[9][2]    = 'WJ\'s <i>Spectator Magazine</i> on receiving multiple awards';
//Events[9][3]    = '';
//Events[9][4]    = 'On January 28, 2008, <i>Spectator Magazine</i>, Walter Johnson\'s literary and arts publication, ' +
//                  'received its 4th national award for its 2007 issue when it won a Gold Medal in the prestigious ' +
//                  'Columbia Scholastic Press Association competition. This award is presented each year at Columbia ' +
//                  'University\'s Graduate School of Journalism in New York City. The Columbia Competition is so large, ' +
//                  'and so intense, that it employs over 700 judges to critique the work of its participants ' +
//                  'and award the medals. In September, Spectator Magazine graduated from 1st Place to All Star in the ' +
//                  'National Scholastic Press Association\'s competition. In October, Spectator also won 1st Place Awards ' +
//                  'in both the American Scholastic Press Association, and the Maryland-District of Columbia Scholastic ' +
//                  'Press Association\'s competitions. Spectator Magazine sold out its 2007 issue; however, Spectator ' +
//                  'is currently taking pre-orders for the upcoming 2008 issue. Pre-orders are running ahead of last ' +
//                  'year\'s sales, so to ensure a copy of the upcoming issue order today. These magazines have proven ' +
//                  'very effective supplements to college applications. ';

Events[15][0]    = '5/21/2007';
Events[15][1]    = '6/30/2007';
Events[15][2]    = 'WJ\'s <i>It\'s Academic</i> Team on their DC Area &amp; Super Bowl Championships!';
Events[15][3]    = '/schools/wjhs/orgs/it\'sacademic/';
Events[15][4]    = 'The matches will air on NBC 4 on Saturday, June 30th at 10:00 a.m. and 7:00 p.m.';

Events[20][0]    = '3/20/2007';
Events[20][1]    = '4/2/2007';
Events[20][2]    = 'Senior Tianhui Shen and sophomore Daichi Ueda on their selection to The Maryland Academic All-Star Team for Quiz Bowl';
Events[20][3]    = '';
Events[20][4]    = 'The team competes in June at the Panasonic Academic Challenge in Orlando Florida against delegations from other states ' +
                                       'around the country. The Maryland team has won the tournament more often than any other state by a wide margin.';

Events[21][0]    = '3/13/2009';
Events[21][1]    = '3/26/2009';
Events[21][2]    = 'WJ\'s SGA and students for again being the winning school in the "Pennies for Patients" campaign for leukemia and lymphoma patients';
Events[21][3]    = '';
Events[21][4]    = 'For the third year in a row WJ raised the most money for the Pennies For Patients campaign, $15,702 in a 3 week period. Congratulations and thanks to all the '+
                   'students, staff and community members who teamed up to support the Leukemia and Lymphoma Society, especially the student leadership and SGA Sponsor Nico Atencio.';

Events[22][0]    = '3/13/2007';
Events[22][1]    = '3/26/2007';
Events[22][2]    = 'WJ\'s Symphonic Orchestra on their overall Excellent Rating at the MCPS Orchestra Festival';
Events[22][3]    = '';
Events[22][4]    = '';

Events[23][0]    = '3/10/2007';
Events[23][1]    = '3/23/2007';
Events[23][2]    = 'WJ\'s <i>It\'s Academic</i> Team on their 2nd round win against Churchill &amp; Sidwell Friends';
Events[23][3]    = '';
Events[23][4]    = '';

Events[23][0]    = '10/4/2010';
Events[23][1]    = '10/17/2010';
Events[23][2]    = 'WJ\'s AP Scholars From May 2010!';
Events[23][3]    = '/schools/wjhs/depts/ap/scholars.shtm';
Events[23][4]    = '466 WJ students earned 515 awards from the May, 2010 testing. Click the above link for the names of the awardees';

Events[25][0]    = '9/30/2010';
Events[25][1]    = '10/15/2010';
Events[25][2]    = 'WJ\'s National Hispanic Recognition Program Awardees!';
Events[25][3]    = '/schools/wjhs/information/student_awards/nhrp.shtm';
Events[25][4]    = 'Students earn National Hispanic awards based on their PSAT scores junior year. Click the above link for the names of the awardees';

Events[26][0]    = '9/30/2010';
Events[26][1]    = '10/15/2010';
Events[26][2]    = 'WJ\'s National Achievement Scholarship Honoree!';
Events[26][3]    = '/schools/wjhs/information/student_awards/na.shtm';
Events[26][4]    = 'Students earn National Achievement honors based on their PSAT scores junior year. Click the above link for the name of the honoree';

Events[24][0]    = '10/4/2010';
Events[24][1]    = '10/17/2010';
Events[24][2]    = 'WJ\'s MD Scholar Honorees!';
Events[24][3]    = '/schools/wjhs/information/student_awards/mdscholars.shtm';
Events[24][4]    = '62 WJ students earned 63 awards from the Maryland Distinguished Scholars and Maryland Scholars in the Arts competitions. Click the above link for the names of the awardees';

Events[27][0]    = '10/19/2010';
Events[27][1]    = '11/1/2010';
Events[27][2]    = 'WJ Golfers James Lillie, Oliver Vickery, Alex Marquez &amp; Gabriel Davidson who lead WJ to a 7 under par second place finish to B-CC in the MCPS Championship.';
Events[27][3]    = '/schools/wjhs/athletics/golf';
Events[27][4]    = '';

Events[28][0]    = '10/25/2010';
Events[28][1]    = '11/7/2010';
Events[28][2]    = 'WJ Golfers James Lillie &amp; Evan Shapiro whose 79 and 81 respectively qualified them for the MD State Championship Final Round on October 27th!';
Events[28][3]    = '/schools/wjhs/athletics/golf';
Events[28][4]    = '';

i = 0;

// The locations of the slashes in the date
var AFSlash, ALSlash, BFSlash, BLSlash;

// Starting date / ending date strings -- used for comparison
var sdate = "", edate = ""; haveone = "";
var cdate;

    /* The Netscape and IE versions of Date::getYear() return different values.
     *   Netscape returns the number of years since 1900, while IE returns
     *   the four number year.
     *
     * NOTE: I have not tested this code on other browsers, so I am assuming
     *   that every other browser in existence returns the four number year. ;)
     */
    if(navigator.appName.toLowerCase().indexOf("netscape") != -1)
       cdate = parseInt(now.getYear()+1900) + "-";
//    else if(navigator.appName.toLowerCase().indexOf("internet explorer") != -1)
//       cdate = parseInt(now.getYear()) + "-";
    else
       cdate = parseInt(now.getYear()) + "-";

    if((now.getMonth()+1) < 10)
      cdate += "0";
    cdate += (parseInt(now.getMonth()+1) + "-");

    if(now.getDate() < 10)
      cdate += "0";
    cdate += parseInt(now.getDate());

for(i=0; i<MAX_ELEM; i++)
{
if (Events[i][0] != "@")
{
  AFSlash = Events[i][0].indexOf("/");
  ALSlash = Events[i][0].lastIndexOf("/");
  BFSlash = Events[i][1].indexOf("/");
  BLSlash = Events[i][1].lastIndexOf("/");

  sdate = Events[i][0].substring(ALSlash+1,Events[i][0].length) + "-";

  if(parseInt(Events[i][0].substring(0,AFSlash)) < 10)
    sdate += "0";
  sdate += (Events[i][0].substring(0,AFSlash) + "-");

  if(parseInt(Events[i][0].substring(AFSlash+1,ALSlash)) < 10)
    sdate += "0";
  sdate += Events[i][0].substring(AFSlash+1,ALSlash);

  edate = Events[i][1].substring(BLSlash+1,Events[i][1].length) + "-";

  if(parseInt(Events[i][1].substring(0,BFSlash)) < 10)
    edate += "0";
  edate += (Events[i][1].substring(0,BFSlash) + "-");

  if(parseInt(Events[i][1].substring(BFSlash+1,BLSlash)) < 10)
    edate += "0";
  edate += Events[i][1].substring(BFSlash+1,BLSlash);

/* prepare the data to display

 * If it's within the date range...
 * If blurb is blank don't display a + sign
 * If link is non-blank, code it.
 * Display the headline
 * Display any non-blank blurb 
 */

  if(sdate <= cdate && edate >= cdate)
   { 

if (haveone == "") 
{ document.write('<h1>Congratulations to...</h1>'); //write the category heading
haveone = 1                                         //indicate that we displayed the heading
}

var headline = "<h3>";
if (Events[i][4] != "")
  headline = headline + '<img src="/gr/collapse-small.gif" border="0" onclick="javascript:tdisplay(500' + i + ')" id="500' 
  + i + 'plus" class="plusminus"><img src="/gr/expand-small.gif" border="0" onclick="javascript:tdisplay(500' + i + 
  ')" id="500' + i + 'minus" style="display:none" class="plusminus">';

 if (Events[i][3] != "")
  headline = headline + '<a href="' + Events[i][3] + '" target="_blank">';  

 headline = headline + Events[i][2];

 if (Events[i][3] != "")
 headline = headline + '</a>';

 headline = headline + '</h3>';

 document.write('<span class="specstyle">' + headline + '</span>');

 if (Events[i][4] != "")
      document.write('<p id="500' + i + '" style="display:none">' + Events[i][4] + '</p>');

// Display the data
//       document.write('<span class="specstyle">' +
//       Events[i][2] + '</span><br><br>');
// debugging
//  document.write(sdate + " " + cdate + " " + edate + "<br>");

} 
} 
}
} // date-check
if (haveone == 1) document.write('<p></p><hr>'); //blank line and hr at the end

// End hiding the Script-->

