<!-- // Hide the script

/*
 * day picture.js
 *
 * Checks the day and includes the appropriate picture and caption
 * Maria Limarzi, 2008
 *
 */

// Constants
var MAX_ELEM   = 31; // The maximum number of events that the array can hold
var spec_msg = "";  // string to hold a special message to display after the caption
var spec_msg_date = "2010-10-24"; // date to end special message display

/* Picture is the two dimensional array holding The picture information.
 * For any given i (under MAX_ELEM):
 *   Pictures[i][0] is the filename
 *   Pictures[i][1] is the caption/alt tag

 */
var Pictures = new Array(MAX_ELEM);
// "@" will be the string to flag the unfilled items

for(i=1; i<=MAX_ELEM; i++)
{
   Pictures[i] = new Array(2);
//   Pictures[i][0] = '@';
//   Pictures[i][1] = '@';
}


/* Manually fill in the picture information. 
 *
 * To add a new pictures, add two lines. The pictures must be uploaded to images/dailes/ in the WJ root directory Example:
 *   Pictures[1][0] = 'picture.jpg';
 *   Pictures[0][1] = 'caption';
 *
 */
Pictures[1][0]    = 'swimdive.jpg';
Pictures[1][1]    = 'WJ Winter Athletes-Swim &amp; Dive Team!';

Pictures[2][0]    = 'boys_jv_basketball.jpg';
Pictures[2][1]    = 'WJ Winter Athletes-Boys JV Basketball';

Pictures[3][0]    = 'boys_jv_basketball.jpg';
Pictures[3][1]    = 'WJ Winter Athletes-Boys JV Basketball';

Pictures[4][0]    = 'boys_jv_basketball.jpg';
Pictures[4][1]    = 'WJ Winter Athletes-Boys JV Basketball';

Pictures[5][0]    = 'boys_jv_basketball.jpg';
Pictures[5][1]    = 'WJ Winter Athletes-Boys JV Basketball';

Pictures[6][0]    = 'girls_jv_basketball.jpg';
Pictures[6][1]    = 'WJ Winter Athletes-girls JV Basketball';

Pictures[7][0]    = 'girls_jv_basketball.jpg';
Pictures[7][1]    = 'WJ Winter Athletes-girls JV Basketball';

Pictures[8][0]    = 'girls_jv_basketball.jpg';
Pictures[8][1]    = 'WJ Winter Athletes-girls JV Basketball';

Pictures[9][0]    = 'girls_jv_basketball.jpg';
Pictures[9][1]    = 'WJ Winter Athletes-girls JV Basketball';

Pictures[10][0]    = 'indoor_track.jpg';
Pictures[10][1]    = 'WJ Winter Athletes-Indoor Track Team';

Pictures[11][0]    = 'indoor_track.jpg';
Pictures[11][1]    = 'WJ Winter Athletes-Indoor Track Team';

Pictures[12][0]    = 'indoor_track.jpg';
Pictures[12][1]    = 'WJ Winter Athletes-Indoor Track Team';

Pictures[13][0]    = 'wrestling.jpg';
Pictures[13][1]    = 'WJ Winter Athletes-Wrestling Team';

Pictures[14][0]    = 'wrestling.jpg';
Pictures[14][1]    = 'WJ Winter Athletes-Wrestling Team';

Pictures[15][0]    = 'wrestling.jpg';
Pictures[15][1]    = 'WJ Winter Athletes-Wrestling Team';

Pictures[16][0]    = 'wrestling.jpg';
Pictures[16][1]    = 'WJ Winter Athletes-Wrestling Team';

Pictures[17][0]    = 'cheerleading_winter_squad.jpg';
Pictures[17][1]    = 'WJ Winter Athletes-Cheerleaders';

Pictures[18][0]    = 'cheerleading_winter_squad.jpg';
Pictures[18][1]    = 'WJ Winter Athletes-Cheerleaders';

Pictures[19][0]    = 'cheerleading_winter_squad.jpg';
Pictures[19][1]    = 'WJ Winter Athletes-Cheerleaders';

Pictures[20][0]    = 'pompon_squad.jpg';
Pictures[20][1]    = 'WJ Winter Athletes-Pompons';

Pictures[21][0]    = 'pompon_squad.jpg';
Pictures[21][1]    = 'WJ Winter Athletes-Pompons';

Pictures[22][0]    = 'pompon_squad.jpg';
Pictures[22][1]    = 'WJ Winter Athletes-Pompons';

Pictures[23][0]    = 'pompon_squad.jpg';
Pictures[23][1]    = 'WJ Winter Athletes-Pompons';

Pictures[24][0]    = 'gala.jpg';
Pictures[24][1]    = 'Join us at the Adult Carnival!';

Pictures[25][0]    = 'gala.jpg';
Pictures[25][1]    = 'Join us at the Adult Carnival!';

Pictures[26][0]    = 'gala.jpg';
Pictures[26][1]    = 'Join us at the Adult Carnival!';

Pictures[27][0]    = 'gala.jpg';
Pictures[27][1]    = 'Join us at the Adult Carnival!';

Pictures[28][0]    = 'gala.jpg';
Pictures[28][1]    = 'Join us at the Adult Carnival!';

Pictures[29][0]    = 'swimdive.jpg';
Pictures[29][1]    = 'WJ Winter Athletes-Swim &amp; Dive Team!';

Pictures[30][0]    = 'swimdive.jpg';
Pictures[30][1]    = 'WJ Winter Athletes-Swim &amp; Dive Team!';

Pictures[31][0]    = 'swimdive.jpg';
Pictures[31][1]    = 'WJ Winter Athletes-Swim &amp; Dive Team!';

// display the picture for the day

//document.write('<img src="images/dailies/' + Pictures[(new Date()).getDate()][0] + '\" alt=\"' + 
//Pictures[(new Date()).getDate()][1] + '\" width=\"525\"><br>' + Pictures[(new Date()).getDate()][1]);

//document.write('<img src="images/dailies/' + Pictures[(new Date()).getDate()][0] + '\" alt=\"' + 
//Pictures[(new Date()).getDate()][1] + '\"><br>' + Pictures[(new Date()).getDate()][1]);

document.write('<img src="images/dailies/' + Pictures[(new Date()).getDate()][0] + '\"><br>' +
Pictures[(new Date()).getDate()][1]);

// set and display a special message

spec_msg = "";

if (Pictures[(new Date()).getDate()][0] == "vfootball.jpg") {
   spec_msg = "<br><a href=\"athletics/football/images/2010_v_big.jpg\">Click here for larger picture</a>";

spec_msg2 = "";

}

if (Pictures[(new Date()).getDate()][0] == "jazz_governor.jpg") {
   spec_msg = "<div style=\"text-align:center; margin: 2 5 5 5; font-size: 9pt; font-weight: bold\">Pictured left to right: Daniel Kapit, Mrs. &amp; Governor O\'Malley, " +
  "Itai Yasur, Sam Levine, Ben Kates and Henry Godfrey<div>";

spec_msg2 = "";

}

if (Pictures[(new Date()).getDate()][0] == "orch_state.jpg") {
   spec_msg = "<div style=\"text-align:center; margin: 5 5 5 5; font-weight: bold\">The orchestra received four straight superior ratings, for the 4th consecutive year, performing Grade V/VI " +
 "level repertoire (the highest level - college/professional musical literature).";
}

if (Pictures[(new Date()).getDate()][0] == "gala.jpg") {
   spec_msg = "<div style=\"text-align:center; margin: 5 5 5 5; font-weight: bold\"><a href=\"http://wjedfoundation.org/\">Click here</a> for more " +
   "information.";
}
if (spec_msg != "") {
  document.write(spec_msg) 

    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());
  if(cdate <= spec_msg_date)
       document.write(spec_msg2);

};

// End hiding The Script-->

