<!-- // 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 = "2009-08-02"; // 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]    = '2009_v_football.jpg';
Pictures[1][1]    = 'Congratulations WJ Football On Their Two Game Winning Streak';

Pictures[2][0]    = '2009_v_football.jpg';
Pictures[2][1]    = 'Congratulations WJ Football On Their Two Game Winning Streak';

Pictures[3][0]    = '2009_v_football.jpg';
Pictures[3][1]    = '2009 Varsity Football Team';

Pictures[4][0]    = '2009_jv_football.jpg';
Pictures[4][1]    = '2009 JV Football Team';

Pictures[5][0]    = '2009_jv_football.jpg';
Pictures[5][1]    = '2009 JV Football Team';

Pictures[6][0]    = 'debate.jpg';
Pictures[6][1]    = 'Debaters Catherine Liu, Nic Carter, Tianhao He &amp; Leah Kraft';

Pictures[7][0]    = 'debate.jpg';
Pictures[7][1]    = 'Debaters Catherine Liu, Nic Carter, Tianhao He &amp; Leah Kraft';

Pictures[8][0]    = 'debate.jpg';
Pictures[8][1]    = 'Debaters Catherine Liu, Nic Carter, Tianhao He &amp; Leah Kraft';

Pictures[9][0]    = 'debate.jpg';
Pictures[9][1]    = 'Debaters Catherine Liu, Nic Carter, Tianhao He &amp; Leah Kraft';

Pictures[10][0]    = 'nbn.gif';
Pictures[10][1]    = '';

Pictures[11][0]    = 'nbn.gif';
Pictures[11][1]    = '';

Pictures[12][0]    = 'nbn.gif';
Pictures[12][1]    = '';

Pictures[13][0]    = 'new_office.jpg';
Pictures[13][1]    = 'WJ Opens New Spaces - Main Office Seen from Main Entry';

Pictures[14][0]    = 'entry.jpg';
Pictures[14][1]    = 'WJ Opens New Spaces<br>Main Entry Seen from 2nd Floor of Entry Stairway';

Pictures[15][0]    = 'commons.jpg';
Pictures[15][1]    = 'WJ Opens New Spaces - Student Commons Entry';

Pictures[16][0]    = 'yearbook_order.jpg';
Pictures[16][1]    = '';

Pictures[17][0]    = 'yearbook_order.jpg';
Pictures[17][1]    = '';

Pictures[18][0]    = 'yearbook_order.jpg';
Pictures[18][1]    = '';

Pictures[19][0]    = 'new_office.jpg';
Pictures[19][1]    = 'WJ Opens New Spaces - Main Office Seen from Main Entry';

Pictures[20][0]    = 'entry.jpg';
Pictures[20][1]    = 'WJ Opens New Spaces<br>Main Entry Seen from 2nd Floor of Entry Stairway';

Pictures[21][0]    = '08-096.jpg';
Pictures[21][1]    = 'WJ Opens New Spaces - New Tennis Complex';

Pictures[22][0]    = 'yearbook_order.jpg';
Pictures[22][1]    = '';

Pictures[23][0]    = 'yearbook_order.jpg';
Pictures[23][1]    = '';

Pictures[24][0]    = 'xc_girls.jpg<br>xc_boys.jpg';
Pictures[24][1]    = 'WJ Girls &amp; Boys Cross Country County Champions';

Pictures[25][0]    = '2009_xc_team.jpg';
Pictures[25][1]    = 'WJ Cross Country team';

Pictures[26][0]    = '2009_xc_team.jpg';
Pictures[26][1]    = 'WJ Cross Country team';

Pictures[27][0]    = '2009_xc_team.jpg';
Pictures[27][1]    = 'WJ Cross Country team';

Pictures[28][0]    = '2009_xc_team.jpg';
Pictures[28][1]    = 'WJ Cross Country team';

Pictures[29][0]    = '2009_v_fh.jpg';
Pictures[29][1]    = 'Congratulations to WJ Field Hockey on their 1-0 playoff victory<br>Next game 11/3, 3:00 p.m. at B-CC';

Pictures[30][0]    = '08-093.jpg';
Pictures[30][1]    = 'WJ Opens New Spaces<br>Entry Floor Detail';

Pictures[31][0]    = '2009_v_football.jpg';
Pictures[31][1]    = 'Congratulations WJ Football On Their Two Game Winning Streak';

// display the picture for the day

//document.write('<img src="images/dailies/' + Pictures[(new Date()).getDate()][0] + '\" alt=\"' + 
//Pictures[(new Date()).getDate()][1] + '\" height=\"310\"><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]);

// set and display a special message

spec_msg = "";

if (Pictures[(new Date()).getDate()][0] == "yearbook_order.jpg") {
   spec_msg = "<a href=\"/schools/wjhs/orgs/windup/buying.shtm\"><img src=\"/schools/wjhs/orgs/windup/images/buy_logo.jpg\"></a>";

spec_msg2 = "";

}

if (Pictures[(new Date()).getDate()][0] == "chen.jpg") {
   spec_msg = "<div style=\"text-align:center; margin: 5 5 5 5; font-weight: normal\">Tingshen\'s artwork is mixed media using collage and acrylic paint.</div>";
}

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-->
