 var ie4 = (document.all) ? true:false;
 var ns4 = (document.layers) ? true:false;
 var ns6 = (document.getElementById) ? true:false;
 var browserW;
 var viewWindow;
 var imageArray;
 var passWindow;
 var newWindow;
 var calendarWindow;
 var upDateBoxWindow;
 var GRAMMYWindow;
 var gWindow;
 var ssflash;
 var DISPLAY=false;
 var UPDATE=false;
 var pictures=new Array();

 function dailyEntry(date,title,description,site,time,URL) {
   this.date = date
   this.title = title
   this.description = description  // calendar description
   this.site = site
   this.time = time
   this.URL = URL          // link URL
}

 function sideBarImage(image,name,title,URL) {
   this.image=image;
   this.name=name;
   this.title=title;
   this.URL=URL;
}

  function addImage(image,name,title,URL)  {
    pictures[0] = new sideBarImage(image,name,title,URL);
    week0 = new Image(126,158);
    week0.src = pictures[0].image;
}

 function reset() {
	for (i=0;i<document.forms.length;i++)  {
		document.forms[i].reset()
		}
}

  function calendarWin(URL)  {
    if (!calendarWindow || calendarWindow.closed) {
      calendarWindow = window.open(URL,'calendar','WIDTH=800,height=740,top=30,left=30,dependent=yes,resizable=yes,scrollbars')
                }
    else {
    calendarWindow.location.href = URL
    calendarWindow.focus()
                }
}



  function upDateBoxWin(content)  {
    if (!upDateBoxWindow || upDateBoxWindow.closed) {
      upDateBoxWindow = window.open('','','WIDTH=650,height=540,top=50,left=50,dependent=yes,resizable=yes,scrollbars')
      upDateBoxWindow.document.write(content);
                }
    else {
    upDateBoxWindow.document.write(content);
    upDateBoxWindow.focus()
                }
    upDateBoxWindow.document.close();
}

  function newWin(URL,W,H)  {
    if (!newWindow || newWindow.closed) {
      newWindow = window.open(URL,'new_window','width=' + W + ',height=' + H + ',top=50,left=50,dependent=yes,resizable=yes,scrollbars')
                }
    else {
    newWindow.location.href = URL
    newWindow.focus()
                }
}


  function GRAMMYWin(content)  {
    if (!GRAMMYWindow || GRAMMYWindow.closed) {
      GRAMMYWindow = window.open(content,'','WIDTH=540,height=480,top=50,left=50,dependent=yes,resizable=yes,scrollbars')
                }
    else {
    GRAMMYWindow.focus()
                }
}

  function formHandler() {
    var URL = document.linkForm.siteMap.options[document.linkForm.siteMap.selectedIndex].value;
   if (URL != "") {
    window.location.href = URL;
        }
   else {
    passWin('password.htm')
        }
}



/* ----------- Calendar Functions  --------- */

  var myTD="";
  var myTable="";
  var now = new Date;
  var day = now.getDay();
  var startYear = now.getFullYear();
  var currentYear = startYear;
  var nextYear = parseInt(currentYear+1);
  var currentMonth;
  var firstOfMonth;  
  var startingPos;
  var calendarDate = 1;
  var monName = new Array("January", "February", "March", "April", "May","June", "July", "August", "September", "October", "November", "December")
  var days_in_month = new Array(31,28,31,30,31,30,31,31,30,31,30,31)
  var offsetdays;
  var ordinal;
  var numcols = 7;  // number of calendar columns.
  var numrows; 
   if (offsetdays > 35) { numrows = 6 } 
   else { numrows = 5 }
  var events = new Array(12); // number of <td>'s.
  for (i=0;i<events.length;i++) {
    events[i] = new Array(36);    // number of added entries
        }


 function orDinal(selectedDate) {
    if (selectedDate == 1 || selectedDate == 21 || selectedDate == 31) {
      ordinal = "st"
        }
    else if (selectedDate == 2 || selectedDate == 22) {
      ordinal = "nd"
        }
    else if (selectedDate == 3 || selectedDate == 23) {
      ordinal = "rd"
        }
    else { ordinal = "th" }
}


/* -------------- End Calendar Functions ------------- */






/* ----------------- Calendar Dates ----------------- */



// List calendar events by day of the week.  
// Dates for the current month update automatically.
// For scroller display:  dailyEntry(date,title,description,site,time,URL);
// For calendar entry:    dailyEntry("",title,"",site,time,URL);

var defaultURL = 'http://www.mychurchevents.com/calendar/calendar.aspx?ci=L6O9L6M7H2H2N8N8H2';
var defaultMonth = 'http://www.mychurchevents.com/calendar/calendar.aspx?list_by=calendar_month&begin_date=';

// JANUARY CALENDAR - dailyEntry(date,title,description,site,time,URL) 

events[0][0] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[0][1] = new dailyEntry("","","","","",defaultURL);  //Monday
events[0][2] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[0][3] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[0][4] = new dailyEntry("","","","","",defaultURL); // Thursday
events[0][5] = new dailyEntry("","","","","",defaultURL);  //Friday
events[0][6] = new dailyEntry("","","","","",defaultURL); // Saturday
events[0][7] = new dailyEntry("","","","","",defaultURL); //Sunday
events[0][8] = new dailyEntry("Monday, January 3, 2011","<font color='#663366'>CLASSES&nbsp;RESUME</font>","for all Pioneer HS students","For bell schedules, PHS registration information and more","click <a href='http://www.aaps.k12.mi.us/pioneer.home/_home'>here</a>","http://www.aaps.k12.mi.us/pioneer.home/_home");   //Monday
events[0][9] = new dailyEntry("Band Rehearsal \(Required\)","","<b>Monday, January 3, 2011</b><br>All <a href='http://aapioneerbands.org/?cat=18' title='7-9PM'>Symphony Band</a> Members are expected to be in attendance","Band Rm","7-9PM","http://aapioneerbands.org/?cat=18");   //Tuesday
events[0][10] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[0][11] = new dailyEntry("","","","","",defaultURL); // Thursday
events[0][12] = new dailyEntry("","","","","",defaultURL);  //Friday
events[0][13] = new dailyEntry("Saturday, January 8, 2011","Band Bowling Party","<img src='http://aapioneerbands.org/wp-images/bowling.jpg' hspace='3' vspace='3' align='left'>Please join us for an afternoon of applied physics at <a href='http://aapioneerbands.org/wp-content/colonial_map.htm'>Colonial Lanes</a>!!","Colonial Lanes","1-3 PM","http://aapioneerbands.org/wp-content/colonial_map.htm");  //Saturday
events[0][14] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[0][15] = new dailyEntry("Band Rehearsal \(Required\)","","<b>Tuesday, January 11, 2011</b><br>All <a href='http://aapioneerbands.org/?cat=19'>Jazz Band</a> Members are expected to be in attendance","Band Rm","4-5:30 PM",defaultURL);  //Monday
events[0][16] = new dailyEntry("Tuesday, January 11, 2011","PBA&nbsp;Meeting: <font color='red'>&#187;&nbsp;cafeteria</font>","Help the <a href='http://aapioneerbands.org/?page_id=39'>Pioneer Band Association</a> start the New Year on a finely tuned note!","Band Rm","7:30-8:30PM","http://aapioneerbands.org/?page_id=39"); // Tuesday
events[0][17] = new dailyEntry("Wednesday, January 12, 2011","Jazz Band Concert","Thaw \(or chill\) out at the Winter Concert of the Greatest High School <a href='http://aapioneerbands.org/?page_id=17'>Jazz Band</a> on the planet\!","Little Theater","7:30PM","http://aapioneerbands.org/?page_id=17");  //Wednesday
events[0][18] = new dailyEntry("","","","","",defaultURL); // Thursday
events[0][19] = new dailyEntry("Friday, January 14, 2011","MLK&nbsp;ASSEMBLY","The <a href='http://aapioneerbands.org/?cat=19'>Jazz Band</a> performs in honor of Martin Luther King Day","Schreiber","2nd Hr",defaultURL);  //Friday
events[0][20] = new dailyEntry("Saturday, January 15, 2011","District S&amp\;E Festival","Pioneer aims for musical honors at the District XII <a href='http://aapioneerbands.org/?page_id=117'>Solo and Ensemble Festival</a>. Click <a href='http://aapioneerbands.org/?page_id=118'>here</a> for directions","Livonia Franklin High School","All Day","http://aapioneerbands.org/?page_id=118");  //Saturday
events[0][21] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[0][22] = new dailyEntry("Monday, January 17, 2011","NO SCHOOL","<font color='#663366'><b>Martin Luther King Day</b></font>","Classes resume on Tuesday","January 18th",defaultURL);  //Monday
events[0][23] = new dailyEntry("Band Rehearsal \(Required\)","","<b>Monday, Jan 17, 2011</b><br>All <a href='http://aapioneerbands.org/?cat=16' title='7-9PM'>Symphony Band</a> Members are expected to be in attendance","B-126","7-9PM",defaultURL);  //Tuesday
events[0][24] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[0][25] = new dailyEntry("","","","","",defaultURL); // Thursday
events[0][26] = new dailyEntry("","","","","",defaultURL);  //Friday
events[0][27] = new dailyEntry("Saturday, January 22, 2011","<a href='http://www.michiganmusicconference.org/'>Michigan Music Conference</a>","<img src='http://aapioneerbands.org/wp-images/mmc.gif' border='0' hspace='2' vspace='5' align='left'>All-State Band and Orchestra Members perform in Grand Rapids","<a href='http://maps.google.com/maps?f=d&hl=en&geocode=17037261222183561428,42.250310,-83.755050%3B1322074503308837825,42.322590,-84.428760&time=&date=&ttype=&saddr=601+W,+Stadium+Blvd,+Ann+Arbor,+MI+48103&daddr=42.249551,-83.75865+to:US-127+N+%4042.322590,+-84.428760+to:303+Monroe+Ave,+NW,+Grand+Rapids,+MI+49503&mra=dme&mrcr=0&mrsp=1&sz=14&via=1,2&sll=42.254951,-83.763199&sspn=0.030557,0.058365&ie=UTF8&ll=42.423457,-84.638672&spn=1.950347,3.735352&z=8&om=1'>directions</a>","All Day",defaultURL);  //Saturday
events[0][28] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[0][29] = new dailyEntry("","","","","",defaultURL);  //Monday
events[0][30] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[0][31] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[0][32] = new dailyEntry("","","","","",defaultURL); // Thursday
events[0][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[0][34] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[0][35] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[0][36] = new dailyEntry("Monday, January 31, 2011","NO SCHOOL","","PHS","<a href='http://www.aaps.k12.mi.us/pioneer.home/_home'>info</a>","http://www.aaps.k12.mi.us/pioneer.home/_home");  //Monday
events[0][37] = new dailyEntry("","","","","",defaultURL);  //Tuesday

// FEBRUARY CALENDAR - dailyEntry(date,title,description,site,time,URL)
 
events[1][0] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[1][1] = new dailyEntry("Band Rehearsal \(Required\)","","<b>Monday, January 31, 2011</b><br>All <a href='http://aapioneerbands.org/?cat=18' title='7-9PM'>Symphony Band</a> Members are expected to be in attendance","Band Rm","7-9PM","http://aapioneerbands.org/?cat=18");  //Monday
events[1][2] = new dailyEntry("Tuesday, February 1, 2011","","Last day for <b>State Solo &amp\; Ensemble Festival</b> qualifiers to submit <a href='http://aapioneerbands.org/?page_id=41'>forms</a> and fees.  Need a form? See, below:<br><a href='http://aapioneerbands.org/wp-content/uploads/2011_State_Solo_Application.pdf'>Solo</a>&nbsp|&nbsp;<a href='http://aapioneerbands.org/wp-content/uploads/2011_State_Ensemble_Application.pdf'>Ensemble</a>","Band Rm","All Day",defaultURL);  //Tuesday
events[1][3] = new dailyEntry("Band Rehearsals \(Required\)","","<a href='http://aapioneerbands.org/?cat=17'>Concert Band</a><br> Tuesday, Feb 1<br><a href='http://aapioneerbands.org/?cat=16'>Varsity Band</a><br>Wednesday, Feb 2<br><br>  Check our <a href='http://www.mychurchevents.com/calendar/calendar.aspx?ci=L6O9L6M7H2H2N8N8H2'>Calendar</a> for rehearsal times","Band Rm","TBA",defaultURL);  //Wednesday
events[1][4] = new dailyEntry("Thursday, February 3, 2011","Winter Band Concert","<a href='http://www.grammy.com/GRAMMY_Foundation/News/Default.aspx?newsID=1949&newsCategoryID=11' target='_blank'><img src='http://aapioneerbands.org/wp-images/grammy.gif' border='0' hspace='3' vspace='6' align='left'></a>An evening of music you WON\'T want to miss\!\! Come hear why Pioneer has won all those <a href='http://www.grammy.com/GRAMMY_Foundation/News/Default.aspx?newsID=1949&newsCategoryID=11' target='_blank'>GRAMMY Awards</a>","Schreiber","7 PM",defaultURL); // Thursday
events[1][5] = new dailyEntry("","","","","",defaultURL);  //Friday
events[1][6] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[1][7] = new dailyEntry("","","","","",defaultURL); //Sunday
events[1][8] = new dailyEntry("","","","","",defaultURL);   //Monday
events[1][9] = new dailyEntry("Tuesday, February 8, 2011","PBA&nbsp;Meeting","All Band Parents and friends are cordially invited to join us for our monthly <a href='http://aapioneerbands.org/?page_id=39'>Pioneer Band Association Meeting</a>","Band Rm","7:30-8:30 PM","http://aapioneerbands.org/?page_id=39");   //Tuesday
events[1][10] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[1][11] = new dailyEntry("","","","","",defaultURL); // Thursday
events[1][12] = new dailyEntry("","","","","",defaultURL); // Friday
events[1][13] = new dailyEntry("","","","","",defaultURL); // Saturday
events[1][14] = new dailyEntry("Sunday, February 13, 2011","<a href='http://aapioneerbands.org/?page_id=71'>BAND GALA &amp\; AUCTION</a>","We\'ve put the FUN back in FUNdraiser\!  Please join us for a special evening of food, friendship and music!","<a href='http://maps.google.com/maps?hl=en&ie=UTF8&q=asia+city+restaurant+ypsilanti&fb=1&gl=us&hq=asia+city+restaurant&hnear=Ypsilanti,+MI&view=map&cid=17129414795691922650&iwloc=A&ved=0CD4QpQY&sa=X&ei=PbAtTf38F52yMprRkP8C' target='blank'>Asia City Restaurant</a>","5PM","http://aapioneerbands.org/?page_id=71");  //Sunday
events[1][15] = new dailyEntry("","","","","",defaultURL);  //Monday
events[1][16] = new dailyEntry("Tuesday, February 15, 2011","Orchestra Night","An evening of musical magic featuring our own \'Orchestra Winds\'","<a href='http://www.music.umich.edu/about/facilities/central_campus/hill/index.htm' target='_blank'>Hill Auditorium</a>","7PM",defaultURL);  //Tuesday
events[1][17] = new dailyEntry("Wednesday, February 16, 2011","NO SCHOOL","","PHS","<a href='http://www.aaps.k12.mi.us/pioneer.home/_home'>info</a>","http://www.aaps.k12.mi.us/pioneer.home/_home");  //Wednesday
events[1][18] = new dailyEntry("","","","","",defaultURL); // Thursday
events[1][19] = new dailyEntry("","","","","",defaultURL);  //Friday
events[1][20] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[1][21] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[1][22] = new dailyEntry("","","","","",defaultURL);  //Monday
events[1][23] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[1][24] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[1][25] = new dailyEntry("","","","","",defaultURL); // Thursday
events[1][26] = new dailyEntry("","","","","",defaultURL);  //Friday
events[1][27] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[1][28] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[1][29] = new dailyEntry("","","","","",defaultURL);  //Monday
events[1][30] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[1][31] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[1][32] = new dailyEntry("","","","","",defaultURL); // Thursday
events[1][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[1][34] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[1][35] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[1][36] = new dailyEntry("","","","","",defaultURL);  //Monday
events[1][37] = new dailyEntry("","","","","",defaultURL);  //Tuesday

// MARCH CALENDAR - dailyEntry(date,title,description,site,time,URL)

events[2][0] = new dailyEntry("Friday, February 18, 2011","MID-WINTER BREAK","begins at the end of the school day for all Pioneer HS students","Classes resume on Monday","February 28","http://www.aaps.k12.mi.us/pioneer.home/_home");  //Sunday
events[2][1] = new dailyEntry("Band Rehearsal \(Required\)","","<b>Monday, Feb 28, 2011</b><br>All <a href='http://aapioneerbands.org/?cat=18' title='7-9PM'>Symphony Band</a> Members are expected to be in attendance","Band Rm","7-9PM","http://aapioneerbands.org/?cat=18");  //Monday
events[2][2] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[2][3] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[2][4] = new dailyEntry("","","","","",defaultURL); // Thursday
events[2][5] = new dailyEntry("","","","","",defaultURL);  //Friday
events[2][6] = new dailyEntry("","","","","",defaultURL); // Saturday
events[2][7] = new dailyEntry("","","","","",defaultURL); //Sunday
events[2][8] = new dailyEntry("","","","","",defaultURL);   //Monday
events[2][9] = new dailyEntry("Band Rehearsals \(Required\)","","<a href='http://aapioneerbands.org/?cat=18'>Symphony Band</a><br> Monday, Mar 7<br><a href='http://aapioneerbands.org/?cat=17'>Concert Band</a><br> Tuesday, Mar 8<br><a href='http://aapioneerbands.org/?cat=16'><br>  Check our <a href='http://www.mychurchevents.com/calendar/calendar.aspx?ci=L6O9L6M7H2H2N8N8H2'>Calendar</a> for rehearsal times","Band Rm","TBA",defaultURL);   //Tuesday
events[2][10] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[2][11] = new dailyEntry("","","","","",defaultURL); // Thursday
events[2][12] = new dailyEntry("","","","","",defaultURL);  //Friday
events[2][13] = new dailyEntry("Saturday, March 12, 2011","District Band Festival","<a href='http://aapioneerbands.org/?page_id=55'><img src='http://aapioneerbands.org/wp-images/band_festival.gif' align='left' border='0' hspace='3' vspace='3'></a>Pioneer plays host to the MSBOA District XII <a href='http://aapioneerbands.org/?page_id=55'>Band Festival</a>. Click here for <a href='http://aapioneerbands.org/?page_id=690'>volunteer</a> and <b><font color='#663366'>schedule</font></b> info","Pioneer","All Day","http://aapioneerbands.org/?page_id=55");  //Saturday
events[2][14] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[2][15] = new dailyEntry("Monday, March 14, 2011","<a href='http://www.music.umich.edu/special_programs/youth/mye/index.htm'><font color='navy'>UofM YOUTH ENSEMBLES</font></a>","<img src='http://aapioneerbands.org/wp-images/m.jpg' align='left' hspace='3' vspace='4'>An evening of <em>amazing</em> music, featuring members of the Pioneer Bands!!  FREE","Hill Auditorium","7PM","http://www.music.umich.edu/special_programs/youth/mye/index.htm"); //Monday
events[2][16] = new dailyEntry("Tuesday, March 15, 2011","PBA&nbsp;Meeting","All Band Parents and friends are cordially invited to join us for our monthly <a href='http://aapioneerbands.org/?page_id=39'>Pioneer Band Association Meeting</a>","Band Rm","7:30-8:30 PM","http://aapioneerbands.org/?page_id=39");  //Tuesday
events[2][17] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[2][18] = new dailyEntry("","","","","",defaultURL); // Thursday
events[2][19] = new dailyEntry("","","","","",defaultURL);  //Friday
events[2][20] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[2][21] = new dailyEntry("","","","","",defaultURL); // Sunday
//events[2][22] = new dailyEntry("","","","","",defaultURL);  //Monday
events[2][22] = new dailyEntry("","","","","",defaultURL);  //Monday
events[2][23] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[2][24] = new dailyEntry("Band Rehearsals \(Required\)","","<a href='http://aapioneerbands.org/?cat=18'>Concert Band</a><br>Tuesday, Mar 22<br><a href='http://aapioneerbands.org/?cat=16'>Varsity Band</a><br> Wednesday, Mar 23<br><br>  Check our <a href='http://www.mychurchevents.com/calendar/calendar.aspx?ci=L6O9L6M7H2H2N8N8H2'>Calendar</a> for rehearsal times","Band Rm","",defaultURL);  //Wednesday
events[2][25] = new dailyEntry("","","","","",defaultURL);  //Thursday
events[2][26] = new dailyEntry("Saturday, March 26, 2011","State S&amp\;E Festival <a href='http://maps.yahoo.com/print?ard=1&v3=0&.intl=us&&mvt=m&tp=1&stx=&clat=42.306443&clon=-83.989908&mag=4&trf=0&radius=1.50539&gid1=16167731&q1=740%20N%20Freer%20Road%2C%20chelsea%2C%20mi%2048118' title='Map from I-94 W' style='line-height:1.0em;'>\(map\)</a>","District Solo &amp\; Ensemble Festival <a href='http://aapioneerbands.org/?page_id=689'>standouts</a> vie for State performance honors just down the road in Chelsea, Michigan","Chelsea HS","All Day",defaultURL);  //Friday
events[2][27] = new dailyEntry("Saturday, March 26, 2011","Bands in Review \(East\)","The <a href='http://aapioneerbands.org/?page_id=17'>Pioneer Symphony Band</a> joins bands from the city's East Side in Ann Arbor's annual \"concert of concerts\"!!","Schreiber","7 PM",defaultURL);  //Saturday
events[2][28] = new dailyEntry("Sunday, March 27, 2011","Bands in Review \(West\)","The <a href='http://www.grammy.com/GRAMMY_Foundation/News/Default.aspx?newsID=1949&newsCategoryID=11'>GRAMMY</a> award winning Pioneer Bands take center stage in A<sup>2</sup>'s premiere concert experience","Schreiber","3 PM<br><a style='font-weight:200;' href='http://aapioneerbands.org/?page_id=132'>9th Gr Orientation follows at 4:45 PM</a>",defaultURL);  //Sunday
events[2][29] = new dailyEntry("Sunday, March 27, 2011","9th Grade Band Orientation","An <a href='http://aapioneerbands.org/?page_id=132'>informational session</a> for the members and families of the Pioneer Band Class of 2015","Schreiber","4:45 PM","http://aapioneerbands.org/?page_id=132");  //Monday
events[2][30] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[2][31] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[2][32] = new dailyEntry("Thursday, March 31, 2011","Concerto Concert","Orchestra Winds Soloists join the <a href='http://phsorchestra.com/index.shtml'>Pioneer Symphony Orchestra</a> in the 2011 Concerto Concert","Schreiber","7:30 PM","http://phsorchestra.com/index.shtml"); // Thursday
events[2][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[2][34] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[2][35] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[2][36] = new dailyEntry("","","","","",defaultURL);  //Monday
events[2][37] = new dailyEntry("","","","","",defaultURL);  //Tuesday

// APRIL CALENDAR - dailyEntry(date,title,description,site,time,URL)

events[3][0] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[3][1] = new dailyEntry("","","","","",defaultURL);  //Monday
events[3][2] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[3][3] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[3][4] = new dailyEntry("","","","","",defaultURL); // Thursday
events[3][5] = new dailyEntry("","","","","",defaultURL);  //Friday
events[3][6] = new dailyEntry("","","","","",defaultURL); // Saturday
events[3][7] = new dailyEntry("","","","","",defaultURL); //Sunday
events[3][8] = new dailyEntry("","","","","",defaultURL);   //Monday
events[3][9] = new dailyEntry("","","","","",defaultURL);   //Tuesday
events[3][10] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[3][11] = new dailyEntry("","","","","",defaultURL); // Thursday
events[3][12] = new dailyEntry("","","","","",defaultURL);  //Friday
events[3][13] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[3][14] = new dailyEntry("Friday, April 1, 2011","SPRING BREAK \(Begins\)","at the end of the school day.","Classes resume on Monday","April 11th",defaultURL);  //Sunday
events[3][15] = new dailyEntry("Monday, April 11, 2011","SPRING BREAK \(Ends\)","The 2nd Semester \"winds down\" with an <a href='http://aapioneerbands.org/?page_id=62'>Awards Banquet</a>, <a href='http://www.myaf.org/'>Youth Arts Festival</a>, <a href='http://aapioneerbands.org/?page_id=59'>Picnic Pops</a>, Jazz Summit, <a href='http://aapioneerbands.org/?page_id=63'>Senior Luncheon</a>, etc","Rehearsals and PBA meetings","too!",defaultURL);  //Monday
events[3][16] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[3][17] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[3][18] = new dailyEntry("","","","","",defaultURL); // Thursday
events[3][19] = new dailyEntry("","","","","",defaultURL);  //Friday
events[3][20] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[3][21] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[3][22] = new dailyEntry("","","","","",defaultURL);  //Monday
events[3][23] = new dailyEntry("Tuesday, April 19, 2011","PBA Annual Meeting","Help choose <a href='http://aapioneerbands.org/?page_id=29'>PBA Officers</a> and make plans for the upcoming year","Band Rm","7:30-8:30 PM",defaultURL);  //Tuesday
events[3][24] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[3][25] = new dailyEntry("","","","","",defaultURL);  //Thursday
events[3][26] = new dailyEntry("","","","","",defaultURL);  //Friday
events[3][27] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[3][28] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[3][29] = new dailyEntry("","","","","",defaultURL);  //Monday
events[3][30] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[3][31] = new dailyEntry("Band Rehearsal \(Required\)","","<b>Wednesday, April 27, 2011</b><br>All <a href='http://aapioneerbands.org/?cat=16' title='6-8PM'>Varsity Band</a> Members are expected to be in attendance","Band Rm","6-8 PM","http://aapioneerbands.org/?cat=16");  //Wednesday
events[3][32] = new dailyEntry("","","","","",defaultURL); // Thursday
events[3][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[3][34] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[3][35] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[3][36] = new dailyEntry("","","","","",defaultURL);  //Monday
events[3][37] = new dailyEntry("","","","","",defaultURL);  //Tuesday

// MAY CALENDAR - dailyEntry(date,title,description,site,time,URL)

events[4][0] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[4][1] = new dailyEntry("Monday, May 2, 2011","Bandquet &amp; Awards Night","<a href='http://aapioneerbands.org/?page_id=62'><img src='http://aapioneerbands.org/wp-images/bandquet.jpg' border='0' align='left' hspace='3' vspase='3'></a>Please join us on May 2nd as we celebrate every member of the Pioneer Bands! For details, click <a href='http://aapioneerbands.org/wp-content/2011BandBanquetFlyerSignUpForm.pdf'>here</a>","Cafeteria","6:30 PM","http://aapioneerbands.org/wp-content/2011BandBanquetFlyerSignUpForm.pdf");  //Monday
events[4][2] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[4][3] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[4][4] = new dailyEntry("","","","","",defaultURL); // Thursday
events[4][5] = new dailyEntry("","","","","",defaultURL);  //Friday
events[4][6] = new dailyEntry("","","","","",defaultURL); // Saturday
events[4][7] = new dailyEntry("","","","","",defaultURL); //Sunday
events[4][8] = new dailyEntry("Monday, May 9, 2011","Orchestra Banquet","Orchestra Winds","Cafeteria","6:30 PM",defaultURL);   //Monday
events[4][9] = new dailyEntry("Monday, May 9, 2011","","<b>Band Camp Registration</b><br><a href='http://aapioneerbands.org/?page_id=41' title='Band Camp Registration \(2011\)'>Forms &amp; Fees</a> Due","Band Rm","All Participants",defaultURL);   //Tuesday
events[4][10] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[4][11] = new dailyEntry("","","","","",defaultURL); // Thursday
events[4][12] = new dailyEntry("","","","","",defaultURL);  //Friday
events[4][13] = new dailyEntry("Thurs-Sat, May 12-14, 2011","Michigan Youth Arts Festival","State Solo &amp; Ensemble Festival <a href='http://aapioneerbands.org/?page_id=691'>standouts</a> perform at <a href='http://www.myaf.org/'>Michigan Week</a> in Kalamazoo","WMU","All Day","http://aapioneerbands.org/?page_id=691");  //Saturday
events[4][14] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[4][15] = new dailyEntry("","","","","",defaultURL);  //Monday
events[4][16] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[4][17] = new dailyEntry("Band Rehearsals \(Required\)","","<a href='http://aapioneerbands.org/?cat=16'>Varsity Band</a><br>Monday, May 16<br><a href='http://aapioneerbands.org/?cat=17'>Concert Band</a><br>Tuesday, May 17<br><a href='http://aapioneerbands.org/?cat=18'>Symphony Band</a><br>Wednesday, May 18<br><br>  Check our <a href='http://www.mychurchevents.com/calendar/calendar.aspx?ci=L6O9L6M7H2H2N8N8H2'>Calendar</a> for rehearsal times","Band Rm","",defaultURL);  //Wednesday
events[4][18] = new dailyEntry("","","","","",defaultURL);  //Thursday
events[4][19] = new dailyEntry("","","","","",defaultURL);  //Friday
events[4][20] = new dailyEntry("Saturday, May 21, 2011","<a href='http://aapioneerbands.org/?page_id=59'>PICNIC&nbsp;POPS</a>","A day of popular music on the front lawn of Pioneer High School.  Come enjoy the music, food and fun! Click on the link to <a href='http://aapioneerbands.org/?p=695'>volunteer</a>","Front Lawn","10AM-6PM","http://aapioneerbands.org/?page_id=59");  //Saturday
events[4][21] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[4][22] = new dailyEntry("","","","","",defaultURL);  //Monday
events[4][23] = new dailyEntry("Tuesday, May 24, 2011","Jazz Summit Concert","The acclaimed Pioneer <a href='http://aapioneerbands.org/?page_id=19'>Jazz Band</a> joins ensembles from Huron and Ypsilanti HS in this annual, musical event","Huron HS","7:30 PM",defaultURL);  //Tuesday
events[4][24] = new dailyEntry("","","","","",defaultURL); //Wednesday
events[4][25] = new dailyEntry("Thursday, May 26, 2011","2011 GRAMMY Presentation Concert","Symphony Band and Jazz Band","Hill Auditorium","8:00 p.m.","http://aapioneerbands.org/wp-content/2011_GRAMMY_Concert_flyer.pdf"); // Thursday
events[4][26] = new dailyEntry("","","","","",defaultURL);  //Friday
events[4][27] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[4][28] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[4][29] = new dailyEntry("Monday, May 30, 2011","NO SCHOOL","Memorial Day","PHS","<a href='http://www.aaps.k12.mi.us/pioneer.home/_home'>info</a>","http://www.aaps.k12.mi.us/pioneer.home/_home"); //Monday
events[4][30] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[4][31] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[4][32] = new dailyEntry("","","","","",defaultURL); // Thursday
events[4][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[4][34] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[4][35] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[4][36] = new dailyEntry("","","","","",defaultURL);  //Monday
events[4][37] = new dailyEntry("","","","","",defaultURL);  //Tuesday

// JUNE CALENDAR - dailyEntry(date,title,description,site,time,URL)

events[5][0] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[5][1] = new dailyEntry("","","","","",defaultURL);  //Monday
events[5][2] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[5][3] = new dailyEntry("Wednesday, June 1, 2011","Senior Luncheon&nbsp;<a href='http://maps.google.com/maps?f=q&hl=en&geocode=&q=1060+Wing+Dr,+Ann+Arbor,+MI+48103&sll=37.0625,-95.677068&sspn=67.218143,113.554688&ie=UTF8&ll=42.30277,-83.835297&spn=0.031359,0.055447&z=14&iwloc=addr' title='1060 Wing Dr - 11 AM'>[map]</a>","The <b>Director of Bands</b> hosts this \"Seniors Only\" <a href='http://aapioneerbands.org/?page_id=63'>celebration</a> of four incredible years with the Pioneer Bands","<a href='http://maps.google.com/maps?f=q&hl=en&geocode=&q=1060+Wing+Dr,+Ann+Arbor,+MI+48103&sll=37.0625,-95.677068&sspn=67.218143,113.554688&ie=UTF8&ll=42.30277,-83.835297&spn=0.031359,0.055447&z=14&iwloc=addr' title='1060 Wing Dr - 11 AM'>map</a>","11AM",defaultURL);  //Wednesday
events[5][4] = new dailyEntry("Thursday, June 2, 2011","PHS Commencement","The <a href='http://aapioneerbands.org/?cat=18'>Symphony Band</a> adds pomp and circumstance to the graduation proceedings","EMU","7PM",defaultURL);  //Thursday
events[5][5] = new dailyEntry("","","","","",defaultURL);  //Friday
events[5][6] = new dailyEntry("","","","","",defaultURL); // Saturday
events[5][7] = new dailyEntry("","","","","",defaultURL); //Sunday
events[5][8] = new dailyEntry("","","","","",defaultURL);   //Monday
events[5][9] = new dailyEntry("Tuesday, June 7, 2011","PBA&nbsp;Meeting","All Band Parents and friends are cordially invited to the final <a href='http://aapioneerbands.org/?page_id=39'>Pioneer Band Association</a> meeting of the 2010\/2011 academic year!","Band Rm","7:30-8:30 PM",defaultURL);   //Tuesday
events[5][10] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[5][11] = new dailyEntry("","","","","",defaultURL); // Thursday
events[5][12] = new dailyEntry("","","","","",defaultURL);  //Friday
events[5][13] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[5][14] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[5][15] = new dailyEntry("","","","","",defaultURL);  //Monday
events[5][16] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[5][17] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[5][18] = new dailyEntry("","","","","",defaultURL); // Thursday
events[5][19] = new dailyEntry("Friday, June 17, 2011","<font color='#663366'>LAST DAY OF SCHOOL</font>","Summer practice sessions begin in earnest as the school year ends","Congratulations to our Graduates","and best wishes to our new and returning students!","http://www.aaps.k12.mi.us/pioneer.home/_home");  //Friday
events[5][20] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[5][21] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[5][22] = new dailyEntry("","","","","",defaultURL);  //Monday
events[5][23] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[5][24] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[5][25] = new dailyEntry("","","","","",defaultURL); // Thursday
events[5][26] = new dailyEntry("","","","","",defaultURL);  //Friday
events[5][27] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[5][28] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[5][29] = new dailyEntry("","","","","",defaultURL);  //Monday
//events[5][29] = new dailyEntry("Monday, June 25, 2008","","Pioneer Band Registration Packets for the upcoming (2008-09) Band year mailed home today","check your mailbox","for further details",defaultURL);  //Monday
events[5][30] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[5][31] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[5][32] = new dailyEntry("","","","","",defaultURL); // Thursday
events[5][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[5][34] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[5][35] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[5][36] = new dailyEntry("","","","","",defaultURL);  //Monday
events[5][37] = new dailyEntry("","","","","",defaultURL);  //Tuesday



// UPDATED THRU JUNE 2011: CONTINUE 2011-2012 Calendar Here




// JULY CALENDAR - dailyEntry(date,title,description,site,time,URL)

events[6][0] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[6][1] = new dailyEntry("","","","","",defaultURL);  //Monday
events[6][2] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[6][3] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[6][4] = new dailyEntry("","","","","",defaultURL); // Thursday
events[6][5] = new dailyEntry("","","","","",defaultURL);  //Friday
events[6][6] = new dailyEntry("","","","","",defaultURL); // Saturday
events[6][7] = new dailyEntry("","","","","",defaultURL); //Sunday
events[6][8] = new dailyEntry("","","","","",defaultURL);   //Monday
events[6][9] = new dailyEntry("","","","","",defaultURL);   //Tuesday
events[6][10] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[6][11] = new dailyEntry("","","","","",defaultURL); // Thursday
events[6][12] = new dailyEntry("","","","","",defaultURL);  //Friday
events[6][13] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[6][14] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[6][15] = new dailyEntry("","","","","",defaultURL);  //Monday
events[6][16] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[6][17] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[6][18] = new dailyEntry("","","","","",defaultURL); // Thursday
events[6][19] = new dailyEntry("","","","","",defaultURL);  //Friday
events[6][20] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[6][21] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[6][22] = new dailyEntry("","","","","",defaultURL);  //Monday
events[6][23] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[6][24] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[6][25] = new dailyEntry("","","","","",defaultURL); // Thursday
events[6][26] = new dailyEntry("","","","","",defaultURL);  //Friday
events[6][27] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[6][28] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[6][29] = new dailyEntry("","","","","",defaultURL);  //Monday
events[6][30] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[6][31] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[6][32] = new dailyEntry("","","","","",defaultURL); // Thursday
events[6][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[6][34] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[6][35] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[6][36] = new dailyEntry("","","","","",defaultURL);  //Monday
events[6][37] = new dailyEntry("","","","","",defaultURL);  //Tuesday

// AUGUST CALENDAR - dailyEntry(date,title,description,site,time,URL)
events[7][0] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[7][1] = new dailyEntry("","","","","",defaultURL);  //Monday
events[7][2] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[7][3] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[7][4] = new dailyEntry("","","","","",defaultURL); // Thursday
events[7][5] = new dailyEntry("","","","","",defaultURL);  //Friday
events[7][6] = new dailyEntry("","","","","",defaultURL); // Saturday
events[7][7] = new dailyEntry("","","","","",defaultURL); //Sunday
events[7][8] = new dailyEntry("","","","","",defaultURL);  //Monday
events[7][9] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[7][10] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[7][11] = new dailyEntry("","","","","",defaultURL); // Thursday
events[7][12] = new dailyEntry("","","","","",defaultURL);  //Friday
events[7][13] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[7][14] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[7][15] = new dailyEntry("Monday, August 15, 2011","<font color='#663366'>BAND REGISTRATION</font>","The 2011\/2012 Pioneer Bands' calendar officially begins with today's <a href='http://aapioneerbands.org/?page_id=44'>band registration</a> event.  Click <a href='http://aapioneerbands.org/?page_id=41'>here</a> for registration forms","B-Wing","9AM-12PM","http://aapioneerbands.org/?page_id=44");   //Monday
events[7][16] = new dailyEntry("Tuesday, August 16, 2011","Band Camp \(Departure\)","<img src='http://aapioneerbands.org/wp-images/camp2.jpg' align='left' hspace='2' vspace='2'>Students attending <a href='http://aapioneerbands.org/?page_id=37'>Band Camp</a> leave Pioneer for <a href='http://www.interlochen.org/'>Interlochen</a> Center for the Arts","B-Wing","8AM","http://aapioneerbands.org/?page_id=37");   //Tuesday
events[7][17] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[7][18] = new dailyEntry("","","","","",defaultURL); // Thursday
events[7][19] = new dailyEntry("","","","","",defaultURL);  //Friday
events[7][20] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[7][21] = new dailyEntry("Sunday, August 21, 2010","Band Camp Sunday","Parents and families are invited to attend a <a href='http://aapioneerbands.org/?page_id=105'>combined concert</a> of the Pioneer Bands at Interlochen","<a href='http://aapioneerbands.org/wp-content/InterlochenDrivingDirections.pdf'>Directions</a>","1:30 PM","http://aapioneerbands.org/?page_id=105");  //Sunday
events[7][22] = new dailyEntry("Monday, August 22, 2010","Band Camp \(Return\)","<img src='http://aapioneerbands.org/wp-images/bus.jpg' align='left' hspace='3' vspace='2'>The Pioneer Band Camp buses arrive in Ann Arbor from Interlochen","ETA","2:10 PM","http://aapioneerbands.org/?page_id=37");  //Monday
events[7][23] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[7][24] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[7][25] = new dailyEntry("","","","","",defaultURL); // Thursday
events[7][26] = new dailyEntry("","","","","",defaultURL);  //Friday
events[7][27] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[7][28] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[7][29] = new dailyEntry("","","","","",defaultURL);  //Monday
events[7][30] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[7][31] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[7][32] = new dailyEntry("","","","","",defaultURL); // Thursday
events[7][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[7][34] = new dailyEntry("Saturday, August 28, 2010","Football Game @EMU<br>\(vs. Cass Tech\)","The Pep Band pumps up the volume at Pioneer's first pre-season game.","EMU","8PM",defaultURL);  //Saturday
events[7][35] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[7][36] = new dailyEntry("","","","","",defaultURL);  //Monday
events[7][37] = new dailyEntry("","","","","",defaultURL);  //Tuesday

// SEPTEMBER CALENDAR - dailyEntry(date,title,description,site,time,URL)

events[8][0] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[8][1] = new dailyEntry("","","","","",defaultURL);  //Monday
events[8][2] = new dailyEntry("","","","","",defaultURL);   //Tuesday
events[8][3] = new dailyEntry("","","","","",defaultURL);
//events[8][4] = new dailyEntry("Thursday, Sept 2, 2010","HOME Football Game<br>\(vs. Dexter\)","Pioneer's <a href='http://aapioneerbands.org/?page_id=111'>Conga</a> drumline and <b><font color='#663366'>Flags</font></b> provide syncopated, choreographed inspiration","Hollway","Kickoff:&nbsp;<font color='#663366'>7:00PM</font>",defaultMonth+"9/1/2010&ci=L6O9L6M7H2H2N8N8H2&igd=");
events[8][4] = new dailyEntry("","","","","",defaultURL);
events[8][5] = new dailyEntry("","","","","",defaultURL);  //Friday
events[8][6] = new dailyEntry("","","","","",defaultURL); // Saturday
events[8][7] = new dailyEntry("","","","","",defaultURL); //Sunday
events[8][8] = new dailyEntry("Monday, Sept 6, 2010","LABOR&nbsp;DAY","Last day of summer vacation","sorry","students!",defaultURL);   //Monday
events[8][9] = new dailyEntry("Tuesday, Sept 7, 2010","<font color='#663366'>FIRST DAY OF SCHOOL</font>","Classes begin for all Pioneer students","For bell schedules, PHS registration information and more","click <a href='http://www.aaps.k12.mi.us/pioneer.home/_home'>here</a>","http://www.aaps.k12.mi.us/pioneer.home/_home"); //Tuesday
events[8][10] = new dailyEntry("Marching Uniform Distribution","","<a href='http://aapioneerbands.org/?cat=18'>Symphony Band</a><br>Wednesday, Sep 8<br>Thursday, Sep 9<br>Click <a href='http://aapioneerbands.org/?page_id=46'>here</a> for uniform information","B-126","12:30-2:30PM","http://aapioneerbands.org/?page_id=46");  //Wednesday
//events[8][11] = new dailyEntry("Marching Drills \(Required\)","","<a href='http://aapioneerbands.org/?cat=18'>Symphony Band</a><br>Wednesday, Sep 9<br>Thursday, Sep 10","Practice Field","3:30-5:30PM<div style='position:relative;top:12px;width:100%;height:8.9em;background-image:url(http://aapioneerbands.org/wp-images/drummer3.gif);background-repeat:no-repeat;background-position:top center;z-index:3;'></div>","http://aapioneerbands.org/?cat=18"); // Thursday
//events[8][12] = new dailyEntry("Friday, Sept 11, 2009","HOME Football Game<br>\(vs. Saline\)<br><font color='#663366'>WAGONGATE</font>","<a href='http://aapioneerbands.org/?page_id=111'>Pioneer Music</a> on the Gridiron.  Come for the march to the stadium, and stay for the game","Hollway","4:30-10PM<br>Kickoff:&nbsp;<font color='#663366'>7PM</font>",defaultMonth+"9/1/2010&ci=L6O9L6M7H2H2N8N8H2&igd=");  //Friday
events[8][11] = new dailyEntry("","","","","",defaultURL); // Thursday
events[8][12] = new dailyEntry("","","","","",defaultURL);  //Friday
events[8][13] = new dailyEntry("Saturday, Sept 11, 2010","<a href='http://aapioneerbands.org/?page_id=60'>BAND&nbsp;PICNIC</a>","Join us at nearby <a href='http://aapioneerbands.org/wp-content/uploads/2009picnicflyer.pdf'>Allmendinger Park</a> to celebrate the start of another great year with the Pioneer Bands","Allmendinger Park","1-4PM","http://aapioneerbands.org/?page_id=60");  //Saturday
events[8][14] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[8][15] = new dailyEntry("Monday, Sept 13, 2010","<a href='http://www.aaps.k12.mi.us/pioneer.home/_home'>CAPSULE NIGHT</a>","","Schreiber","7-9PM","http://www.aaps.k12.mi.us/pioneer.home/_home");  //Monday
events[8][16] = new dailyEntry("Tuesday, Sept 14, 2010","<a href='http://aapioneerbands.org/?p=596'>PBA&nbsp;MEETING</a>","All band parents are strongly encouraged to attend this year's first meeting of the <a href='http://aapioneerbands.org/?page_id=39'>Pioneer Band Association</a>","Schreiber","7:30-8:30 PM","http://aapioneerbands.org/?page_id=39");  //Tuesday
events[8][17] = new dailyEntry("Marching Drills \(Required\)","","<a href='http://aapioneerbands.org/?cat=18'>Symphony Band</a><br>Tuesday, Sep 14<br>Wednesday, Sep 15","Practice Field","3:30-5:30PM<div style='position:relative;top:12px;width:100%;height:8.9em;background-image:url(http://aapioneerbands.org/wp-images/drummer2.gif);background-repeat:no-repeat;background-position:top center;z-index:3;'></div>","http://aapioneerbands.org/?cat=18"); // Wednesday
events[8][18] = new dailyEntry("Thursday, Sept 16, 2010","HOME Football Game<br>\(vs. Skyline\)<br><font color='#663366'>WAGONGATE</font>","<a href='http://aapioneerbands.org/?page_id=111'>Pioneer Music</a> on the Gridiron.  Come for the march to the stadium, and stay for the game","Hollway","4:30-10PM<br>Kickoff:&nbsp;<font color='#663366'>7PM</font>",defaultMonth+"9/1/2010&ci=L6O9L6M7H2H2N8N8H2&igd=");  //Thursday
events[8][19] = new dailyEntry("","","","","",defaultURL);  //Friday
events[8][20] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[8][21] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[8][22] = new dailyEntry("","","","","",defaultURL);  //Monday
events[8][23] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[8][24] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[8][25] = new dailyEntry("Marching Drills \(Required\)","","<a href='http://aapioneerbands.org/?cat=18'>Symphony Band</a><br>Wednesday, Sep 22<br>Thursday, Sep 23","Practice Field","3:30-5:30PM<div style='position:relative;top:12px;width:100%;height:8.9em;background-image:url(http://aapioneerbands.org/wp-images/drummer3.gif);background-repeat:no-repeat;background-position:top center;z-index:3;'></div>","http://aapioneerbands.org/?cat=18"); // Thursday
events[8][26] = new dailyEntry("Friday, Sept 24, 2010","HOME Football Game<br>\(vs. Bedford\)","Marching and musical precision, courtesy of the <a href='http://aapioneerbands.org/?page_id=111'>Symphony Band</a>","Hollway","4:30-10PM<br>Kickoff:&nbsp;<font color='#663366'>7PM</font>",defaultMonth+"9/1/2009&ci=L6O9L6M7H2H2N8N8H2&igd=");  //Friday
events[8][27] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[8][28] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[8][29] = new dailyEntry("Monday, Sept 27, 2010","","<b>DEADLINE:</b> &nbsp;MSBOA All-State Application Forms Due to State Office","MSBOA","All Participants","http://www.msboa.org");  //Monday
//events[8][30] = new dailyEntry("Sept 16 thru Sept 29, 2009","<a href='http://aapioneerbands.org/?page_id=67'>**CANDY&nbsp;SALE**</a>","<img src='http://aapioneerbands.org/wp-images/candy.jpg' align='left' hspace='0' vspace='0'>One of our MAJOR fall <a href='http://aapioneerbands.org/?page_id=582'>fundraisers</a>","To learn more about contributing to the Pioneer Bands","please click <a href='http://aapioneerbands.org/?page_id=38'>here</a>.",defaultURL);  //Tuesday
events[8][30] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[8][31] = new dailyEntry("Marching Uniform Distribution","","<a href='http://aapioneerbands.org/?cat=17'>Concert Band</a><br>Tuesday, Sep 28<br>Wednesday, Sep 29<br>Click <a href='http://aapioneerbands.org/?page_id=46'>here</a> for uniform information","B-126","1:30-3PM","http://aapioneerbands.org/?page_id=46");  //Wednesday
events[8][32] = new dailyEntry("Marching Drills \(Required\)","","<a href='http://aapioneerbands.org/?cat=18'>Symphony</a> and <a href='http://aapioneerbands.org/?cat=17'>Concert</a> Bands<br>Wednesday, Sep 29<br>Thursday, Sep 30","Practice Field","3:30-5:30PM",defaultURL); // Thursday
events[8][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[8][34] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[8][35] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[8][36] = new dailyEntry("","","","","",defaultURL);  //Monday
events[8][37] = new dailyEntry("","","","","",defaultURL);  //Tuesday

// OCTOBER CALENDAR - dailyEntry(date,title,description,site,time,URL)

events[9][0] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[9][1] = new dailyEntry("","","","","",defaultURL);  //Monday
events[9][2] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[9][3] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[9][4] = new dailyEntry("","","","","",defaultURL); // Thursday
events[9][5] = new dailyEntry("Friday, October 1, 2010","HOMECOMING Football <br>\(vs. Monroe\)","A combined <a href='http://aapioneerbands.org/?page_id=111'>performance</a> of the Symphony and Concert Bands","Hollway","4:30-10PM<br>Kickoff:&nbsp;<font color='#663366'>7:00PM</font>",defaultMonth+"10/1/2010&ci=L6O9L6M7H2H2N8N8H2&igd=");  //Friday
events[9][6] = new dailyEntry("Saturday, October 2, 2010","BAND CAR WASH","All Band families are encouraged to join us for a day of good, clean <a href='http://aapioneerbands.org/?page_id=157'>fundraising</a>!","Pioneer Parking Lot","9AM-4PM","http://aapioneerbands.org/?page_id=157"); // Saturday
events[9][7] = new dailyEntry("","","","","",defaultURL);   //Sunday
events[9][8] = new dailyEntry("","","","","",defaultURL);   //Monday
events[9][9] = new dailyEntry("","","","","",defaultURL);   //Tuesday
events[9][10] = new dailyEntry("","","","","",defaultURL);   //Wednesday
events[9][11] = new dailyEntry("Marching Drills \(Required\)","","<b>Symphony Band</b><br><b><font color='#663366'>Wednesday, Oct 6</font></b><br>at Huron \(1-3PM\)<br><b><font color='#663366'>Thursday, Oct 7</font></b><br>at Pioneer<br>\(3:30-5:30PM\)","A <b><font color='#663366'>PBA Reception</font></b> follows Thursday's drills","at Pioneer",defaultMonth+"10/1/2010&ci=L6O9L6M7H2H2N8N8H2&igd="); // Thursday
events[9][12] = new dailyEntry("Friday, October 8, 2010","AWAY Football <br>\(vs. Huron\)","Pioneer and Huron HS Marching Bands perform at this traditional, cross-town rivalry","Huron","4:30-10PM<br>Kickoff:&nbsp;<font color='#663366'>7:00PM</font>",defaultMonth+"10/1/2010&ci=L6O9L6M7H2H2N8N8H2&igd=");  //Friday
events[9][13] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[9][14] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[9][15] = new dailyEntry("","","","","",defaultURL);  //Monday
events[9][16] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[9][17] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[9][18] = new dailyEntry("Marching Drills \(Required\)","","<a href='http://aapioneerbands.org/?cat=18'>Symphony Band</a><br>Wednesday, Oct 13<br>Thursday, Oct 14","Practice Field","3:30-5:30PM<div style='position:relative;top:12px;width:100%;height:8.9em;background-image:url(http://aapioneerbands.org/wp-images/drummer3.gif);background-repeat:no-repeat;background-position:top center;z-index:3;'></div>","http://aapioneerbands.org/?cat=18"); // Thursday
events[9][19] = new dailyEntry("Friday, October 15, 2010","HOME Football Game<br>\(vs. Chelsea\)","The <a href='http://aapioneerbands.org/?page_id=111'>Marching Band</a> takes the field in a precision musical event","Hollway","4:30-10PM<br>Kickoff:&nbsp;<font color='#663366'>7:00PM</font>",defaultURL);  //Friday
events[9][20] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[9][21] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[9][22] = new dailyEntry("","","","","",defaultURL);  //Monday
events[9][23] = new dailyEntry("Tuesday, October 19, 2010","PBA&nbsp;Meeting","All Band Parents and friends are cordially invited to join us for our monthly <a href='http://aapioneerbands.org/?page_id=39'>Pioneer Band Association Meeting</a>","Band Rm","7:30-8:30 PM","http://aapioneerbands.org/?page_id=39"); //Tuesday
events[9][24] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[9][25] = new dailyEntry("Marching Drills \(Required\)","","<a href='http://aapioneerbands.org/?cat=18'>Symphony Band</a><br>Wednesday, Oct 20<br>Thursday, Oct 21","Practice Field","3:30-5:30PM<div style='position:relative;top:12px;width:100%;height:8.9em;background-image:url(http://aapioneerbands.org/wp-images/drummer3.gif);background-repeat:no-repeat;background-position:top center;z-index:3;'></div>","http://aapioneerbands.org/?cat=18"); // Thursday
events[9][26] = new dailyEntry("Friday, October 22, 2010","HOME Football Game<br>\(vs. Holt\)","<a href='http://aapioneerbands.org/?p=607'>Senior Night</a><br><a href='http://aapioneerbands.org/?page_id=111'>Marching Band</a> and gridiron heroics","Hollway","4:30-10PM<br>Kickoff:&nbsp;<font color='#663366'>7:00PM</font>",defaultMonth+"10/1/2010&ci=L6O9L6M7H2H2N8N8H2&igd=");  //Friday
events[9][27] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[9][28] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[9][29] = new dailyEntry("","","","","",defaultURL);  //Monday
events[9][30] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[9][31] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[9][32] = new dailyEntry("Thursday, October 28, 2010","","<a href='http://aapioneerbands.org/?page_id=117'>District Solo and Ensemble</a> Festival entrance fees due for all participants.","SOLO","ENSEMBLE",defaultURL); // Thursday
events[9][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[9][34] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[9][35] = new dailyEntry("Sat\/Sun, Oct 30-31, 2010","","<a href='http://www.msboa.org/'>MSBOA All-State</a> auditions","Various Sites","TBA","http://www.msboa.org/");  //Sunday
events[9][36] = new dailyEntry("","","","","",defaultURL);  //Monday
events[9][37] = new dailyEntry("","","","","",defaultURL);  //Tuesday

// NOVEMBER CALENDAR - dailyEntry(date,title,description,site,time,URL)

events[10][0] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[10][1] = new dailyEntry("","","","","",defaultURL);  //Monday
events[10][2] = new dailyEntry("Tuesday, Nov 2, 2010","NO SCHOOL","","PHS","<a href='http://www.aaps.k12.mi.us/pioneer.home/_home'>info</a>","http://www.aaps.k12.mi.us/pioneer.home/_home");  //Tuesday
events[10][3] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[10][4] = new dailyEntry("","","","","",defaultURL); // Thursday
events[10][5] = new dailyEntry("","","","","",defaultURL);  //Friday
events[10][6] = new dailyEntry("","","","","",defaultURL); // Saturday
events[10][7] = new dailyEntry("","","","","",defaultURL); //Sunday
events[10][8] = new dailyEntry("","","","","",defaultURL);   //Monday
events[10][9] = new dailyEntry("Tuesday, Nov 9, 2010","PBA&nbsp;Meeting","All Band Parents and friends are cordially invited to join us for our monthly <a href='http://aapioneerbands.org/?page_id=39'>Pioneer Band Association Meeting</a>","Band Rm","7:30-8:30 PM","http://aapioneerbands.org/?page_id=39");   //Tuesday
events[10][10] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[10][11] = new dailyEntry("","","","","",defaultURL); // Thursday
events[10][12] = new dailyEntry("","","","","",defaultURL);  //Friday
events[10][13] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[10][14] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[10][15] = new dailyEntry("","","","","",defaultURL);  //Monday
events[10][16] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[10][17] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[10][18] = new dailyEntry("","","","","",defaultURL); // Thursday
events[10][19] = new dailyEntry("","","","","",defaultURL);  //Friday
events[10][20] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[10][21] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[10][22] = new dailyEntry("Monday, Nov 22, 2010","Michigan Youth Ensembles","<a href='http://www.music.umich.edu/special_programs/youth/mye/'><img src='http://aapioneerbands.org/wp-images/m.jpg' border='0' align='left' hspace='3' vspace='4'></a><a href='http://www.music.umich.edu/special_programs/youth/mye/'></a> An evening of <em>amazing</em> music, featuring members of the Pioneer Bands!!  FREE","Hill Auditorium","7PM","http://www.music.umich.edu/special_programs/youth/mye/index.htm");  //Monday
events[10][23] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[10][24] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[10][25] = new dailyEntry("","","","","",defaultURL); // Thursday
events[10][26] = new dailyEntry("","","","","",defaultURL);  //Friday
events[10][27] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[10][28] = new dailyEntry("Wed\/Sun, Nov 24\/28, 2010","<font color='#663366'>THANKSGIVING BREAK</font>","Wishing all of our band families and friends a warm and wonderful holiday","...but","remind your students to practice!",defaultURL);  //Sunday
events[10][29] = new dailyEntry("Band Rehearsal \(Required\)","","<b>Monday, Nov 29, 2010</b><br>All <a href='http://aapioneerbands.org/?cat=16' title='7-9PM'>Symphony Band</a> Members are expected to be in attendance","B-126","7-9PM",defaultURL);  //Monday
events[10][30] = new dailyEntry("Tuesday, Nov 30, 2010","","<a href='http://aapioneerbands.org/?page_id=18'>Symphony Band</a> <b>Uniform Distribution</b><br><img src='http://aapioneerbands.org/wp-images/concert_uniform.jpg' align='left' hspace='1' vspace='8'>Click <a href='http://aapioneerbands.org/?page_id=46'>here</a> for more uniform information","B-126","2-4PM","http://aapioneerbands.org/?page_id=46");  //Tuesday
events[10][31] = new dailyEntry("","","","","",defaultURL);  //Wednesday
//events[10][31] = new dailyEntry("Thurday, Nov 29","<font color='#663366'>HELP WANTED!</font>","<img src='http://aapioneerbands.org/wp-images/concert_uniform.jpg' align='left' hspace='1' vspace='1'>We need your help with the Concert Band uniform \'pull\'.  Contact <a href='mailto:shaynedavidson@comcast.net'>Shayne Davidson</a> for further details","B-126","9AM-12PM",defaultURL);  //Wednesday
events[10][32] = new dailyEntry("","","","","",defaultURL); // Thursday
events[10][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[10][34] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[10][35] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[10][36] = new dailyEntry("","","","","",defaultURL);  //Monday
events[10][37] = new dailyEntry("","","","","",defaultURL);  //Tuesday


// DECEMBER CALENDAR - dailyEntry(date,title,description,site,time,URL)

events[11][0] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[11][1] = new dailyEntry("","","","","",defaultURL);  //Monday
events[11][2] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[11][3] = new dailyEntry("Band Rehearsal \(Required\)","","<b>Wednesday, December 1, 2010</b><br>All <a href='http://aapioneerbands.org/?cat=16' title='6-8PM'>Varsity Band</a> Members are expected to be in attendance","B-126","6-8PM","http://aapioneerbands.org/?cat=16");  //Wednesday
events[11][4] = new dailyEntry("","","","","",defaultURL); // Thursday
events[11][5] = new dailyEntry("","","","","",defaultURL);  //Friday
events[11][6] = new dailyEntry("","","","","",defaultURL); // Saturday
events[11][7] = new dailyEntry("","","","","",defaultURL); //Sunday
events[11][8] = new dailyEntry("","","","","",defaultURL); //Monday
//events[11][8] = new dailyEntry("Monday, December 7, 2009","","<a href='http://aapioneerbands.org/?p=615'><img src='http://aapioneerbands.org/wp-images/keystone-logo.gif' border=0 hspace='1' vspace='3'></a><br>The <a href='http://aapioneerbands.org/?p=615'>Jazz Band</a> joins the <b>Paul Keller Orchestra</b> at the <a href='http://www.jneilsmongolian.com/location.html'>Keystone Underground</a>","\$7 cover <a href='http://www.jneilsmongolian.com/images/parkingmap.jpg'>\[map\]</a>","9:30-11PM",defaultURL);  //Monday
events[11][9] = new dailyEntry("Tuesday, December 7, 2010","","<a href='http://aapioneerbands.org/?page_id=17'>Concert Band</a> <b>Uniform Distribution</b><br>Click <a href='http://aapioneerbands.org/?page_id=46'>here</a> for more uniform information","B-126","6th Hour","http://aapioneerbands.org/?page_id=46");   //Tuesday
events[11][10] = new dailyEntry("Tuesday, December 7, 2010","PBA&nbsp;Meeting","Excellence is a habit.  Think of our monthly <a href='http://aapioneerbands.org/?page_id=39'>Pioneer Band Association Meeting</a> as a practice session for parents","B-126","7:30-8:30 PM","http://aapioneerbands.org/?page_id=39");  //Wednesday
events[11][11] = new dailyEntry("","","","","",defaultURL); // Thursday
events[11][12] = new dailyEntry("","","","","",defaultURL);  //Friday
events[11][13] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[11][14] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[11][15] = new dailyEntry("Band Rehearsal \(Required\)","","<b>Monday, December 13, 2010</b><br>All <a href='http://aapioneerbands.org/?cat=16' title='7-9PM'>Symphony Band</a> Members are expected to be in attendance","B-126","7-9PM","http://aapioneerbands.org/?cat=16");  //Monday
events[11][16] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[11][17] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[11][18] = new dailyEntry("","","","","",defaultURL); // Thursday
events[11][19] = new dailyEntry("","","","","",defaultURL);  //Friday
events[11][20] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[11][21] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[11][22] = new dailyEntry("","","","","",defaultURL);  //Monday
events[11][23] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[11][24] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[11][25] = new dailyEntry("","","","","",defaultURL); // Thursday
events[11][26] = new dailyEntry("","","","","",defaultURL);  //Friday
events[11][27] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[11][28] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[11][29] = new dailyEntry("","","","","",defaultURL);  //Monday
events[11][30] = new dailyEntry("","","","","",defaultURL);  //Tuesday
events[11][31] = new dailyEntry("","","","","",defaultURL);  //Wednesday
events[11][32] = new dailyEntry("","","","","",defaultURL); // Thursday
events[11][33] = new dailyEntry("","","","","",defaultURL);  //Friday
events[11][34] = new dailyEntry("","","","","",defaultURL);  //Saturday
events[11][35] = new dailyEntry("","","","","",defaultURL);  //Sunday
events[11][36] = new dailyEntry("","","","","",defaultURL);  //Monday
events[11][37] = new dailyEntry("Friday, December 17, 2010","<font color='#663366'>WINTER BREAK (Begins)</font>","Best wishes for a joyous holiday season","and a Happy New Year","too!","http://www.aaps.k12.mi.us/pioneer.home/_home");  //Tuesday



/* ------------------- End Calendar Dates ------------------- */



/* ------------------- Scroller Functions ------------------- */


  	var startMonth=now.getMonth();
		if (startMonth>=0 && startMonth<7) {currentYear=nextYear;} else {currentYear=startYear;}// academic calendar 
	var nextMonth=parseInt(startMonth+1); if(nextMonth>11) nextMonth=0; // reset from December to January
  	var startDate=now.getDate()-1;


//	var firstOfMonth = new Date(currentYear,startMonth,1);
//	var startingPos; if (parseInt(firstOfMonth.getDay()) <= 0) { startingPos = 1;} else { startingPos = parseInt(firstOfMonth.getDay()); }


	var eventCount=0;
	var number_displayed=4;  // number of events to display/scroll

	// UPDATE THESE VALUES TO MATCH YOUR DESIRED EFFECT
	// interval is how quickly the events scroll
	// pause is the amount of time in milliseconds that the event stays at the top of the list
	var interval = 1;
	var pause = 6;

	// DO NOT MODIFY THE CODE BELOW THIS LINE
	var increment = 1;
	var top = 5;
	var left = 5;
	var width = 136;
	var height = 170;

	var last = 0;
	var current = 0;
	var currentTarget = 0;
	var lastEvent;
	var currentEvent;
	var timeoutId;
	var intervalId;

	var NS = false;
	var IE = false;
	var newBrowser = false;

	if ( ! document.all ) NS = true;
	if ( document.all && document.getElementById ) IE = true;
	if ( ! document.all && document.getElementById ) newBrowser = true;

	function nextEvent()
	{
		last = current;
		current++;
	  	if ( current > eventCount - 1 )
	   		current = 0;
	  		lastEvent = document.getElementById( "event" + last );
	  		currentEvent = document.getElementById( "event" + current );
	  		var ht = lastEvent.offsetHeight < height ? height : lastEvent.offsetHeight;
	  	if (NS)
		{
			currentEvent.style.top = getPositionAsInt(lastEvent.style.top) + ht;
			currentTarget = getPositionAsInt(lastEvent.style.top);
		}
		if (IE)
		{
			currentEvent.style.pixelTop = lastEvent.style.pixelTop + ht;
			currentTarget = lastEvent.style.pixelTop;
		}
		if (newBrowser)
		{
			currentEvent.style.top = lastEvent.style.top + height;
			currentTarget = lastEvent.style.top;
		}
			showEvent( current );
			intervalId = setInterval( "scrollUp()", interval );
	}

	function getPositionAsInt(pos)
	{
		var realPos = pos.replace(/px/g, "");
		realPos = parseInt(realPos);
		return realPos;
	}

	function scrollUp()
	{
		if (NS)
		{
			lastEvent.style.top = getPositionAsInt(lastEvent.style.top) - increment;
			if ( getPositionAsInt(currentEvent.style.top) - increment <= currentTarget )
			{
				currentEvent.style.top = currentTarget;
				clearInterval( intervalId );
				hideEvent( last )
				timeoutId = setTimeout( "nextEvent()", pause * 1000 );
			} else {
				currentEvent.style.top = getPositionAsInt(currentEvent.style.top) - increment;
			}
		}

		if (IE)
		{
			lastEvent.style.pixelTop -= increment;
				hideEvent( last );
			if ( currentEvent.style.pixelTop - increment <= currentTarget )
			{
				currentEvent.style.pixelTop = currentTarget;
				clearInterval( intervalId );

				timeoutId = setTimeout( "nextEvent()", pause * 1000 ) ;
			} else {
				currentEvent.style.pixelTop -= increment;
			}
		}
		if (newBrowser)
		{
			lastEvent.style.top -= increment;
				hideEvent( last );
			if ( currentEvent.style.top - increment <= currentTarget )
			{
				currentEvent.style.top = currentTarget;
				clearInterval( intervalId );

				timeoutId = setTimeout( "nextEvent()", pause * 1000 ) ;
			} else {
				currentEvent.style.top -= increment;
			}
		}
	}


	function showEvent( eventId )
	{

		var ele;
		ele = document.getElementById( "event" + eventId );
		ele.style.visibility = "visible";
	}

	function hideEvent( eventId )
	{
		var ele;
		ele = document.getElementById( "event" + eventId );
		ele.style.visibility = "hidden";
	}

	function doScrollingEvents()
	{

//		document.getElementById("eventListTitle").innerHTML = eventListTitle;

		var htmlBlock = "";

		htmlBlock += '<DIV id="eventList" class="eventList" style="position:relative;">';

// Display events from today's date until end of current month.

	firstOfMonth = new Date(startYear,startMonth,1);
	startingPos = parseInt(firstOfMonth.getDay());if (parseInt(firstOfMonth.getDay()) <= 0) { startingPos = 1;} else { startingPos = parseInt(firstOfMonth.getDay()); }
	startDate = parseInt(startDate + startingPos);
	for (i=startDate;i<events[startMonth].length;i++) {
	   if (eventCount < number_displayed) {
	     if (UPDATE != true) {
		if (events[startMonth][i].description.length > 0) {      // only display events for which 'description' information is entered.
			htmlBlock += '<DIV id="event' + eventCount + '" style="position:absolute;">';
			htmlBlock += '<b>' + events[startMonth][i].date + ": " + events[startMonth][i].title + '</b><br>';
			htmlBlock += events[startMonth][i].description + "...<br>\(" + events[startMonth][i].site + ", ";
			htmlBlock += events[startMonth][i].time +  "\)";
			htmlBlock += '</DIV>';
			eventCount++
				}
			}
	     else if (UPDATE != false) {     // add a Message from the header.
			htmlBlock += "<DIV id='event" + eventCount + "' style='position:absolute;'>";
			htmlBlock += "<b>" + DATE + ":</b> <a href='"  + LINK + "'><font color='" + TITLE_COLOR + "'>";
			htmlBlock += TITLE + "</font></a><br>";
			htmlBlock += DESCRIPTION + "<br>";
			htmlBlock += "</DIV>";
			UPDATE = false;
			eventCount++
			}
		}
	}

// Display events for subsequent months.

   for (j=nextMonth;j<events.length;j++) {
	for (i=0;i<events[j].length;i++) {
	   if (eventCount < number_displayed) {
		if (events[j][i].description.length > 0) {      // only display events for which 'description' information is entered.
			htmlBlock += '<DIV id="event' + eventCount + '" style="position:absolute;">';
			htmlBlock += '<b>' + events[j][i].date + ": " + events[j][i].title + '</b><br>';
			htmlBlock += events[j][i].description + "...<br>\(" + events[j][i].site + ", ";
			htmlBlock += events[j][i].time +  "\)";
			htmlBlock += '</DIV>';
			eventCount++
				}
			}
		}
	}


		htmlBlock += "</div>";

		document.getElementById( "eventListPlaceholder" ).innerHTML = htmlBlock;

		var ele = document.getElementById( "eventList" );


		if (IE)
		{
			ele.style.clip = "rect(0 " + width + " " + height + " 0)";
			ele.style.width = width;
			ele.style.height = height;
			ele.style.pixelLeft = left;
			ele.style.pixelTop = top;
		}
		if (newBrowser)
		{
			ele.style.width = width;
			ele.style.height = height;
			ele.style.left = left;
			ele.style.top = top;
		}
		if (NS)
		{
			ele.style.width = width;
			ele.style.height = height;
			ele.style.left = left;
			ele.style.top = top;
		}
//		for (var i = 0; i < events.length; i++)
		for (var i = 0; i < eventCount; i++)
		{
			ele = document.getElementById( "event" + i );
			ele.style.visibility = "hidden";
			if (IE)
			{
				ele.style.pixelLeft = 2;
				ele.style.pixelTop = 2;
				ele.style.width = width - 2;
			}
			if (newBrowser)
			{
				ele.style.left = 2;
				ele.style.top = 2;
				ele.style.width = width - 2;
			}
			if (NS)
			{
				ele.style.left = 2;

				ele.style.top = 2;
				ele.width = width - 2;
			}
		}

		showEvent(current);
		timeoutId = setTimeout( "nextEvent()", pause * 1000 );
	}

	function addOnLoadEvent(func)
	{
		var oldOnLoad = window.onload;
	  	if (typeof window.onload != 'function')
	  	{
	    	window.onload = func;
	  	}
	  	else
	  	{
	    	window.onload = function() {
		      	oldOnLoad();
			func();
	    	}
	  	}
	}


//  window.onload = doScrollingEvents;


function write_Events() {
  var is_eventList; // check to see if the "eventList" DIV is on the page

    if (document.getElementById && (is_eventList=document.getElementById("eventList"))) { doScrollingEvents(); }

}


//	addOnLoadEvent(doScrollingEvents);



/* ------------------ End Scroller Functions ------------------ */

/* ------------------ China Tour Video/Audio Clips ------------------ */

var audio_console = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="250" height="46" id="china_symphony" align="left"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="http://www-personal.umich.edu/~sssulliv/pioneer/console/china_symphony.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://www-personal.umich.edu/~sssulliv/pioneer/console/china_symphony.swf" quality="high" bgcolor="#ffffff" width="250" height="46" name="china_symphony" align="left" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /></object><br><br>';

var china_videos = new Array();
var china_video_title = new Array("Symphony Band - Bands in Review \(2010\)","Symphony Band - Winter Concert \(2010\)","Symphony Band - Stars &amp; Stripes Forever \(2009\)","Symphony Band - Entry March of the Boyars \(2009\)","Symphony Band - Awayday \(2009\)","Symphony Band - Concertante For Two Flutes \(2009\)","Symphony Band - Marching Season \(2009\)","Jazz Band - Winter Concert \(2010\)","Jazz Band - Keystone Underground \(2009\)","Jazz Band - Manteca \(2009\)","Jazz Band - Sandunga \(2009\)")
var china_video_links=" ";

 china_videos[0] = '<object width="512" height="322"><param name="movie" value="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19938156nXGacDqC&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19938156nXGacDqC&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" width="512" height="322" allowfullscreen="true"></embed></object><p class="video-caption">Symphony Band - Bands in Review \(2010\)</p>';

 china_videos[1] = '<object width="512" height="322"><param name="movie" value="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19817847kQ3BBK7K&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19817847kQ3BBK7K&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true"></embed></object><p class="video-caption">Symphony Band - Winter Concert \(2010\)</p>';


 china_videos[2] = '<object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=15113196&vid=5771169&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/10617/91527786.jpeg&embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=15113196&vid=5771169&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/10617/91527786.jpeg&embed=1" ></embed></object><p class="video-caption">Symphony Band - Stars &amp; Stripes Forever \(2009\)</p>';

 china_videos[3] = '<object width="512" height="322"><param name="movie" value="http://www.veoh.com/veohplayer.swf?permalinkId=v181167106hQAnRQY&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/veohplayer.swf?permalinkId=v181167106hQAnRQY&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="322"></embed></object><p class="video-caption">PHS Symphony Band - Entry March of the Boyars \(2009\)</p>';

 china_videos[4] = '<object width="512" height="341"><param name="movie" value="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v18116817MMQbRwHj&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v18116817MMQbRwHj&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="341"></embed></object><p class="video-caption">PHS Symphony Band - Awayday \(2009\)</p>';

 china_videos[5] = '<object width="512" height="322"><param name="movie" value="http://www.veoh.com/veohplayer.swf?permalinkId=v17437099PnRcFrxp&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/veohplayer.swf?permalinkId=v17437099PnRcFrxp&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="322"></embed></object><p class="video-caption">PHS - Concertante For Two Flutes \(2009\)</p>';

 china_videos[6] = '<object width="512" height="322"><param name="movie" value="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v1930957535Bay9yk&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v1930957535Bay9yk&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="322"></embed></object><p class="video-caption">Symphony Band - Marching \(2009\)</p>';

 china_videos[7] = '<object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /><param name="allowFullScreen" value="true" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=17877831&vid=6872425&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/13248/101330626.jpeg&embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" bgcolor="#000000" flashVars="id=17877831&vid=6872425&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/13248/101330626.jpeg&embed=1" ></embed></object><p class="video-caption">PHS Jazz Band - Winter Concert \(2010\)</p>';

 china_videos[8] = '<object width="512" height="322"><param name="movie" value="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19528202SqQK8s9K&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19528202SqQK8s9K&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="322"></embed></object><p class="video-caption">Jazz Band - Keystone Underground \(2009\)</p>';

 china_videos[9] = '<object width="512" height="355"><param name="movie" value="http://www.youtube.com/v/oxR1bII0eDA&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/oxR1bII0eDA&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="355"></embed></object><p class="video-caption">PHS Jazz Band - Manteca \(2009\)</p>';

 china_videos[10] = '<object width="512" height="322"><param name="movie" value="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v17488851Sw2hH6ym&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v17488851Sw2hH6ym&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="322"></embed></object><p class="video-caption">Jazz Band - Sandunga \(2009\)</p>';


var r_c_v = Math.round(Math.random() * (china_videos.length-1)) + 0 // random number
var next_c_v;
var previous_c_v;

 function show_china_Video(number) {
  var china_video = china_videos[number];

  china_content = "<html><head><META NAME='robots' Content='NOINDEX,NOFOLLOW'><link rel='stylesheet' href='http://aapioneerbands.org/wp-content/themes/gila/style.css' type='text/css' media='screen' /><title='PHS Band Videos'></head><body><table cellspacing=0 cellpadding=0 border=0 align='center' style='margin-left:auto;margin-right:auto;margin:15px;'><tr><td width='20' valign='top'><img width='20' height='20' border='0' src='http://www.aapioneerbands.org/wp-content/tl_line.gif'></td><td colspan=1 background='http://www.aapioneerbands.org/wp-content/tblkline.gif' valign='top'><img border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif'></td><td align='right' width='20'><img width='20' height='20' src='http://www.aapioneerbands.org/wp-content/tr_line.gif'></td></tr><tr><td width='20' background='http://www.aapioneerbands.org/wp-content/blckline.gif' rowspan=1 valign='bottom'><img width='20' border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif'></td><td height='460' colspan=1 align=center valign=middle bgcolor='#ffffff'><div id='videoDiv' style='padding: 10 25 5 25'>" + china_video + "</div><span style='position:relative;margin:0;top:-.5em;'><a href='javascript:\;' onclick='window.opener.previous_china_video()'><img border='0' hspace='5' src='http://www.aapioneerbands.org/wp-content/arrow_previous_button.gif' alt='previous'></a>&nbsp;<a href='javascript:\;' onclick='window.opener.next_china_video()'><img border='0' hspace='5' src='http://www.aapioneerbands.org/wp-content/arrow_next_button.gif' alt='next'></a></span></td><td width='20' background='http://www.aapioneerbands.org/wp-content/rblkline.gif' rowspan=1 valign='bottom'><img width=20 border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif'></td></tr><tr><td width='20' valign='top'><img width='20' border='0' src='http://www.aapioneerbands.org/wp-content/bl_line.gif'></td><td colspan=1 background='http://www.aapioneerbands.org/wp-content/bblkline.gif' valign='top'><img border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif'></td><td align='right' width='20'><img border='0' src='http://www.aapioneerbands.org/wp-content/br_line.gif'></td></tr></table></body></html>";
  upDateBoxWin(china_content);
}

 function next_china_video() {
   if (r_c_v <= china_videos.length-1) { next_c_v = r_c_v } else { r_c_v = 0; next_c_v = 0; }
    upDateBoxWindow.document.getElementById('videoDiv').innerHTML=china_videos[next_c_v];
    r_c_v++	
}

 function previous_china_video() {
    previous_c_v = next_c_v;
   if (previous_c_v >= 1 && previous_c_v < china_videos.length) { previous_c_v-- } else { previous_c_v = china_videos.length-1 }
    upDateBoxWindow.document.getElementById('videoDiv').innerHTML=china_videos[previous_c_v];
    next_c_v = previous_c_v; r_c_v = previous_c_v; r_c_v++;
}


function write_china_vlink() {
     for (c=0;c<china_videos.length;c++) {
	china_video_links += "<a href='javascript:;' onclick='show_china_Video(" + c + ")\; return false'>" + china_video_title[c] + "</a><br><br>";
		}
	var is_chinalink; // check to see if the "chinaLink" SPAN is on the page
        if (document.getElementById && (is_chinalink=document.getElementById("chinaLink"))) { document.getElementById("chinaLink").innerHTML="<span style='float:left;margin:1.2em 5em 1em .5em;'><b>Video Links:</b>&nbsp;&nbsp;<em><font color='#663366'>(selected video)</font></em><br><br>" + china_video_links + "</span><span style='float:left;margin:0 0em 0 .5em;border:#e6dfcf 1px solid;padding:.8em;text-align:left;'><b>Audio Console:</b>&nbsp;&nbsp;<em><font color='#663366'>(audio clips)</font></em><br><br>" + audio_console + "<br><p align='center'><em><font color='#663399'>Pioneer High School Symphony Band<br>Michigan Music Conference \(2008\)</font></em></p></span>"; }
}



/* ----------------- End China Tour Videos --------------- */

/* ------------------ SlideShow (Flash) Run --------------- */

var picture_of_the_week = "<a href='javascript:;' onclick='show_Pic()'><img src='http://aapioneerbands.org/wp-images/2008/tab_images/image01.jpg' width='163' height='163' style='border:#663366 1px solid\;' alt='Slide Show Gallery'></a>";

var videos = new Array();

// videos[0] = '<object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.30" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=9344954&vid=3326839&lang=en-us&intl=us&thumbUrl=http%3A//us.i1.yimg.com/us.yimg.com/p/i/bcst/videosearch/4677/70195973.jpeg&embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.30" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=9344954&vid=3326839&lang=en-us&intl=us&thumbUrl=http%3A//us.i1.yimg.com/us.yimg.com/p/i/bcst/videosearch/4677/70195973.jpeg&embed=1" ></embed></object><p class="video-caption">PHS Band Camp - Africa: Ceremony, Song &amp\; Ritual \(2008\)</p>';

 videos[0] = '<object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.30" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.30" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=9344954&vid=3326839&lang=en-us&intl=us&thumbUrl=http%3A//us.i1.yimg.com/us.yimg.com/p/i/bcst/videosearch/4677/70195973.jpeg&embed=1" ></embed></object><p class="video-caption">PHS Band Camp - Africa: Ceremony, Song &amp\; Ritual \(2008\)</p>';
// videos[1] = '<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/Sq7X1zmTFN8&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/Sq7X1zmTFN8&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed><p class="video-caption">PHS Marching Band - Stadium Drive \(2008\)</p></object>';
// videos[1] = '<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/hTw6NjL3KrQ&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/hTw6NjL3KrQ&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="480" height="295"></embed><p class="video-caption">PHS Cobahshi Trio - MSBOA 75th Anniversary \(2009\)</p></object>';
 videos[1] = '<object width="512" height="344"><param name="movie" value="http://www.youtube.com/v/oxR1bII0eDA&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/oxR1bII0eDA&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="344"></embed></object><p class="video-caption">PHS Jazz Band - Manteca \(2009\)</p>';
 videos[2] = '<object width="512" height="322"><param name="movie" value="http://www.veoh.com/veohplayer.swf?permalinkId=v17437099PnRcFrxp&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/veohplayer.swf?permalinkId=v17437099PnRcFrxp&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="322"></embed></object><p class="video-caption">PHS - "Concertante For Two Flutes" \(2009\)</p>';
 videos[3] = '<object width="512" height="322"><param name="movie" value="http://www.veoh.com/veohplayer.swf?permalinkId=v17488976G7yX4cFT&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/veohplayer.swf?permalinkId=v17488976G7yX4cFT&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="322"></embed></object><p class="video-caption">PHS Band - Winter Recital Video Clips \(2009\)</p>';
 videos[4] = '<object width="512" height="322"><param name="movie" value="http://www.veoh.com/veohplayer.swf?permalinkId=v181167106hQAnRQY&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/veohplayer.swf?permalinkId=v181167106hQAnRQY&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="322"></embed></object><p class="video-caption">PHS Symphony Band - Entry March of the Boyars \(2009\)</p>';
// videos[4] = '<object width="480" height="355"><param name="movie" value="http://www.youtube.com/v/CONl18spYbk&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/CONl18spYbk&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="480" height="355"></embed><p class="video-caption">PHS Symphony Band - Entry March of the Boyars \(2009\)</p></object>';

//NB - Band Camp Videos [5 & 6]:  Keep the numbering or delete the "Band Camp Sunday, 2009: Sights and Sounds" post!!!
 videos[5] = '<object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=15113196&vid=5771169&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/10617/91527786.jpeg&embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=15113196&vid=5771169&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/10617/91527786.jpeg&embed=1" ></embed></object><p class="video-caption">PHS Band Camp Sunday - Concert Excerpts \(2009\)</p>';
 videos[6] = '<object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=15113556&vid=5771309&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/10617/91529272.jpeg&embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=15113556&vid=5771309&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/10617/91529272.jpeg&embed=1" ></embed></object><p class="video-caption">PHS Band Camp - Marching Demonstration \(2009\)</p>';


 videos[7] = '<object width="512" height="380"><param name="movie" value="http://www.veoh.com/veohplayer.swf?permalinkId=v1930957535Bay9yk&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/veohplayer.swf?permalinkId=v1930957535Bay9yk&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="380"></embed></object><p class="video-caption">AA PHS Band - Marching 2009 (Season)</p>'

 videos[8] = '<object width="512" height="380"><param name="movie" value="http://www.veoh.com/veohplayer.swf?permalinkId=v19528202SqQK8s9K&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/veohplayer.swf?permalinkId=v19528202SqQK8s9K&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="380"></embed></object><p class="video-caption">Jazz Band - Keystone Underground \(2009\)</p>';

 videos[9] = '<object width="512" height="380"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /><param name="allowFullScreen" value="true" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=17877831&vid=6872425&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/13248/101330626.jpeg&embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="380" allowFullScreen="true" bgcolor="#000000" flashVars="id=17877831&vid=6872425&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/13248/101330626.jpeg&embed=1" ></embed></object><p class="video-caption">PHS Jazz Band - Winter Concert \(2010\)</p>';

 videos[10] = '<object width="512" height="380"><param name="movie" value="http://www.veoh.com/veohplayer.swf?permalinkId=v19803750eQkkcrMw&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/veohplayer.swf?permalinkId=v19803750eQkkcrMw&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="380"></embed></object><p class="video-caption">PHS Varsity Band - Winter Concert \(2010\)</p>';

 videos[11] = '<object width="512" height="380"><param name="movie" value="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19817847kQ3BBK7K&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19817847kQ3BBK7K&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" width="512" height="380" allowFullScreen="true"></embed></object><p class="video-caption">PHS Symphony Band - Winter Concert \(2010\)</p>';

 videos[12] = '<object width="512" height="380"><param name="movie" value="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19938288eRgdb7Gq&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19938288eRgdb7Gq&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="380"></embed></object><p class="video-caption">PHS Concert Band - Bands in Review \(2010\)</p>';

 videos[13] = '<object width="512" height="322"><param name="movie" value="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19938156nXGacDqC&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId=v19938156nXGacDqC&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" type="application/x-shockwave-flash" width="512" height="322" allowfullscreen="true"></embed></object><p class="video-caption">PHS Symphony Band - Bands in Review \(2010\)</p>';

 videos[14] = '<object width="512" height="322"><param name="movie" value="http://www.youtube.com/v/6eYeD64rhCg?fs=1&amp;hl=en_US&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/6eYeD64rhCg?fs=1&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" allowfullscreen="true" width="512" height="322"></embed></object><p class="video-caption">Band Camp Sunday - Concert Excerpts \(2010\)</p>';


// videos[14] = '<object classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b" width="352" height="300" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"><param name="name" value="Pioneer\'s GRAMMY Award Winning Music Program" /><param name="src" value="http://instruction.aaps.k12.mi.us/districtwebfiles/piogrammy.mov" /><embed type="video/quicktime" width="352" height="300" src="http://instruction.aaps.k12.mi.us/districtwebfiles/piogrammy.mov" name="Pioneer\'s GRAMMY Award Winning Music Program" autoplay="false"></embed></object><p class="video" style="color:#330099;font-size:smaller;">GRAMMY Signature Schools Gold Award \(2010\)</p>';

// videos[2] = '<object width="410" height="341"><param name="movie" value="http://www.youtube.com/v/Mu1IqyukKTk&#038;hl=en&#038;fs=1&#038;color1=0xffffff&#038;color2=0xffffff&#038;border=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/Mu1IqyukKTk&#038;hl=en&#038;fs=1&#038;color1=0xffffff&#038;color2=0xffffff&#038;border=1" type="application/x-shockwave-flash" allowfullscreen="true" width="410" height="341"></embed><p class="video-caption">Symphony Band - Africa: Ceremony, Song &amp\; Ritual \(2003\)</p></object>';


//var video_links="<p><a href='javascript:;' onclick='document.getElementById(\"videoDiv\").innerHTML=" + video_of_the_week_2 + "'>2003</a>&nbsp;&nbsp;<a href='javascript:;' onclick='document.getElementById(\"videoDiv\").innerHTML=" + video_of_the_week + "'>2008</a></p>";



/*
var SlideShowArray = new Array("marchingband.swf","marchingband.swf","marchingband.swf","marchingband.swf","marchingband.swf","marchingband.swf","marchingband.swf");
var thisDate = new Date();
var day_of_week = thisDate.getDay();
	if (day_of_week < SlideShowArray.length) {
		mySlideShow = SlideShowArray[day_of_week];
	}
*/

var mySlideShow="http://aapioneerbands.org/wp-images/2008/photoviewer.swf";

// function slideShow() {
//   if (document.getElementById) {
    ssflash ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
    ssflash +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ';
    ssflash +='width="620" height="510" id="currentslides" align="middle">';
    ssflash +='<param name="allowScriptAccess" value="always" />';
    ssflash +='<param name="allowFullScreen" value="false" />';
    ssflash +='<param name="movie" value=' + mySlideShow + ' /><param name="menu" value="false" />';
    ssflash +='<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />';
    ssflash +='<embed name="currentslides" src=' + mySlideShow + ' menu="false" quality="high" ';
    ssflash +='bgcolor="#ffffff" width="620" height="510" align="middle" allowScriptAccess="always" ';
    ssflash +='allowFullScreen="false" swLiveConnect="true" ';
    ssflash +='type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
    ssflash +='</object>';

//    document.getElementById('slideShow').innerHTML=ssflash;
//	}
//}

 function stopmovie() { // Stops playback for IE (Firefox: TBD)
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
	document.getElementById('currentslides').StopPlay();
	}
  else {""}
}


 function show_Pic() {
  pic_content = "<html><head><META NAME='robots' Content='NOINDEX,NOFOLLOW'><link rel='stylesheet' href='http://aapioneerbands.org/wp-content/themes/gila/style.css' type='text/css' media='screen' /></head><body><table width='100%' height='100%' align='center' border='0' margin='0'><tr><td width='100%' height='100%' align='center' valign='middle'>" + ssflash + "</td></tr></table></body></html>";
  upDateBoxWin(pic_content);
}

 function hide_Pic() {
	window.opener.upDateBoxWindow.close();
}


var r_v = Math.round(Math.random() * (videos.length-1)) + 0 // random number
var next_v;
var previous_v;

 function show_Video() {
   if (r_v <= videos.length-1) { next_v = r_v } else { r_v = 0; next_v = 0; }
   var video_of_the_week = videos[r_v];

  content = "<html><head><META NAME='robots' Content='NOINDEX,NOFOLLOW'><link rel='stylesheet' href='http://aapioneerbands.org/wp-content/themes/gila/style.css' type='text/css' media='screen' /><title='PHS Band Videos'></head><body alink='#ffffff' link='#ffffff' vlink='#ffffff'><table cellspacing=0 cellpadding=0 border=0 align='center' style='margin-left:auto;margin-right:auto;margin:15px;'><tr><td width='20' valign='top'><img width='20' height='20' border='0' src='http://www.aapioneerbands.org/wp-content/tl_line.gif'></td><td colspan=1 background='http://www.aapioneerbands.org/wp-content/tblkline.gif' valign='top'><img border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif'></td><td align='right' width='20'><img width='20' height='20' src='http://www.aapioneerbands.org/wp-content/tr_line.gif'></td></tr><tr><td width='20' background='http://www.aapioneerbands.org/wp-content/blckline.gif' rowspan=1 valign='bottom'><img width='20' border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif'></td><td height='460' colspan=1 align=center valign=middle bgcolor='#ffffff'><div id='videoDiv' style='padding: 10px 25px 0px 25px;'>" + video_of_the_week + "</div><span style='position:relative;margin:0;top:-.5em;'><a href='javascript:\;' onclick='window.opener.previous_video()'><img border='0' hspace='5' src='http://www.aapioneerbands.org/wp-content/arrow_previous_button.gif' alt='previous'></a>&nbsp;<a href='javascript:\;' onclick='window.opener.next_video()'><img border='0' hspace='5' src='http://www.aapioneerbands.org/wp-content/arrow_next_button.gif' alt='next'></a></span></td><td width='20' background='http://www.aapioneerbands.org/wp-content/rblkline.gif' rowspan=1 valign='bottom'><img width=20 border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif'></td></tr><tr><td width='20' valign='top'><img width='20' border='0' src='http://www.aapioneerbands.org/wp-content/bl_line.gif'></td><td colspan=1 background='http://www.aapioneerbands.org/wp-content/bblkline.gif' valign='top'><img border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif' width='562' height='0'></td><td align='right' width='20'><img border='0' src='http://www.aapioneerbands.org/wp-content/br_line.gif'></td></tr></table></body></html>";
  upDateBoxWin(content);
  r_v++;
}


 function show_feature_Video(number) {
  var feature_video = videos[number];

  feature_content = "<html><head><META NAME='robots' Content='NOINDEX,NOFOLLOW'><link rel='stylesheet' href='http://aapioneerbands.org/wp-content/themes/gila/style.css' type='text/css' media='screen' /><title='PHS Band Videos'></head><body><table cellspacing=0 cellpadding=0 border=0 align='center' style='margin-left:auto;margin-right:auto;margin:15px;'><tr><td width='20' valign='top'><img width='20' height='20' border='0' src='http://www.aapioneerbands.org/wp-content/tl_line.gif'></td><td colspan=1 background='http://www.aapioneerbands.org/wp-content/tblkline.gif' valign='top'><img border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif'></td><td align='right' width='20'><img width='20' height='20' src='http://www.aapioneerbands.org/wp-content/tr_line.gif'></td></tr><tr><td width='20' background='http://www.aapioneerbands.org/wp-content/blckline.gif' rowspan=1 valign='bottom'><img width='20' border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif'></td><td height='460' colspan=1 align=center valign=middle bgcolor='#ffffff'><div id='videoDiv' style='padding: 10 25 5 25'>" + feature_video + "</div><span style='position:relative;margin:0;top:-.5em;'><a href='javascript:\;' onclick='window.opener.previous_video()'><img border='0' hspace='5' src='http://www.aapioneerbands.org/wp-content/arrow_previous_button.gif' alt='previous'></a>&nbsp;<a href='javascript:\;' onclick='window.opener.next_video()'><img border='0' hspace='5' src='http://www.aapioneerbands.org/wp-content/arrow_next_button.gif' alt='next'></a></span></td><td width='20' background='http://www.aapioneerbands.org/wp-content/rblkline.gif' rowspan=1 valign='bottom'><img width=20 border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif'></td></tr><tr><td width='20' valign='top'><img width='20' border='0' src='http://www.aapioneerbands.org/wp-content/bl_line.gif'></td><td colspan=1 background='http://www.aapioneerbands.org/wp-content/bblkline.gif' valign='top'><img border='0' src='http://www.aapioneerbands.org/wp-content/spacer.gif'></td><td align='right' width='20'><img border='0' src='http://www.aapioneerbands.org/wp-content/br_line.gif'></td></tr></table></body></html>";
  upDateBoxWin(feature_content);
}

 function next_video() {
   if (r_v <= videos.length-1) { next_v = r_v } else { r_v = 0; next_v = 0; }
    upDateBoxWindow.document.getElementById('videoDiv').innerHTML=videos[next_v];
    r_v++	
}

 function previous_video() {
    previous_v = next_v;
   if (previous_v >= 1 && previous_v < videos.length) { previous_v-- } else { previous_v = videos.length-1 }
    upDateBoxWindow.document.getElementById('videoDiv').innerHTML=videos[previous_v];
    next_v = previous_v; r_v = previous_v; r_v++;
}


/*
 function show_Pic() {
 var is_slideShow;
 if (document.getElementById && (is_slideShow=document.getElementById('slideShow'))) {
	slideShow();
	document.getElementById('slideShow').style.visibility="visible";
	document.getElementById('slideShow').style.display="block";
	}
 else {""}
}


 function hide_Pic() {
 if (document.getElementById) {
	document.getElementById('slideShow').style.visibility="hidden";
	document.getElementById('slideShow').style.display="none";
//stopmovie();  
	}
 else {""}
}

*/

/* ------------------- End SlideShow Run ------------------ */



/* --------------------- upDateBox Content -------------------- */

  var notes; var extras; var video_of_the_week;
  var whats_New = "<a href='http://aapioneerbands.org/?cat=33'>What's&nbsp;New?</a><br>";
  var inTheNews = '';
  var NYCNews = "<a href='http://aapioneerbands.org/?cat=31'>NYC Tour News \('08\)</a><br>";
  var preContent = "<a href='http://www.mychurchevents.com/calendar/calendar.aspx?ci=L6O9L6M7H2H2N8N8H2'>Interactive Calendar</a><br><a href='http://aapioneerbands.org/?page_id=41'>Resources and Forms</a><br><a href='http://aapioneerbands.org/?page_id=19'>What's Next?</a><br>";

  var updateContent="";
  var updateCount=0;
  var updates_displayed=2;
  var startUpdate=now.getDate()-1;

  function write_upDateBox() { 

// Display events from today's date until end of current month.

	firstOfMonth = new Date(startYear,startMonth,1);
	startingPos = parseInt(firstOfMonth.getDay());if (parseInt(firstOfMonth.getDay()) <= 0) { startingPos = 1;} else { startingPos = parseInt(firstOfMonth.getDay()); }
	startUpdate = parseInt(startUpdate + startingPos);
	for (i=startUpdate;i<events[startMonth].length;i++) {
	   if (updateCount < updates_displayed) {
		if (events[startMonth][i].date.length > 0 && events[startMonth][i].title.length > 0) {      // only display events for which 'date' and 'title' information is entered.

			updateContent += "<a href='" + events[startMonth][i].URL + "' title='More Information'>" + events[startMonth][i].title + "</a><br><span style='font-size:.8em;'>" + events[startMonth][i].date + "</span><br>";


//			updateContent += events[startMonth][i].title + "<br><span style='font-size:.8em;'>" + events[startMonth][i].date + "</span><br>";
			updateCount++
				}
			}
		}

// Display events for subsequent months.

   for (j=nextMonth;j<events.length;j++) {
	for (i=0;i<events[j].length;i++) {
	   if (updateCount < updates_displayed) {
		if (events[j][i].date.length > 0 && events[j][i].title.length > 0) {      // only display events for which 'date' and 'title' information is entered.


			updateContent += "<a href='" + events[j][i].URL + "' title='More Information'>" + events[j][i].title + "</a><br><span style='font-size:.8em;'>" + events[j][i].date + "</span><br>";



//			updateContent += events[j][i].title + "<br><span style='font-size:.8em;'>" + events[j][i].date + "</span><br>";
			updateCount++
				}
			}
		}
	}


// Tab Content

notes = " " + whats_New + inTheNews + preContent + "<span style='position:relative;left:.5em;'>" + updateContent + ""; 
extras = "<br><span id='extra_span'><a href='javascript:;' onclick='show_Pic()'><img name='tab_images' id='tab_images' src='http://aapioneerbands.org/wp-images/2008/tab_images/image01.jpg' width='163' height='163' style='border:#663366 1px solid\;' alt='Slide Show Gallery'></a></span><br><span style='text-align:center;display:block;padding:10 0 0 0;'><a href='javascript:;' onclick='show_Pic()'>Pictures</a>&nbsp\;<font color='#663366'>|</font>&nbsp\;<a href='javascript:;' onclick='show_Video()'>Videos</a></span>";


//extras = "<br><span id='extra_span'><a href='javascript:;' onclick='show_Pic()'><img name='tab_images' id='tab_images' src='http://aapioneerbands.org/wp-images/2008/tab_images/image01.jpg' width='163' height='163' style='border:#663366 1px solid\;' alt='Slide Show Gallery'></a></span><br><span style='text-align:center;display:block;padding:10 0 0 0;'><a href='javascript:;' onclick='show_Pic()'>Pictures</a> | <font color='#999999'>Videos</font></span>";




// Image Map (updateBox tabs)
 var tab_map;
 tab_map = "<img id='note_tabs' src='http://www.aapioneerbands.org/wp-content/note_tabs.gif' width='200' height='44' border='0' alt='' usemap='#id_tab'>";
 tab_map += "<map name='id_tab'><area shape='rect' alt='Notes' coords='10,18,60,32' href='javascript:;' onclick='writeTabs(\"note_tabs\",\"\",notes)'>";
 tab_map += "<area shape='rect' alt='Extras' coords='85,18,140,32' href='javascript:;' onclick='writeTabs(\"note_tabs\",\"_on\",extras),swap_Tab_Image()'></map>";


updates = "<span class='tabs'>" + tab_map + "</span><span id='notes_extras' class='notes_extras'>" + notes + "</span></span><br>";


var is_object; // check to see if the "upDateBox" SPAN is on the page

    if (document.getElementById && (is_object=document.getElementById("upDateBox"))) { document.getElementById("upDateBox").className="on";document.getElementById("upDateBox").innerHTML=updates; }

}

 function write_extra_span(content) { document.getElementById("extra_span").innerHTML=content; }


 function writeTabs(name,state,tab_content) {
  imgSwap(name,state);
  var is_notes_extras; // check to see if the "notes_extras" SPAN is on the page
    if (document.getElementById && (document.getElementById("notes_extras"))) { document.getElementById("notes_extras").innerHTML= tab_content; stop_Tab_Image();}
}


/* -------------------- End upDateBox Content ---------------- */


/* --------------------- Welcome Date  ------------------ */

 function write_date() {
var is_h1;    // check to see if there are "<h1>" tags on the page (returns an array)
var is_home;  // check to see if it's the "Home" page before writing the date.  Is the "upDateBox" there?
	orDinal(now.getDate());
	var date_txt = monName[now.getMonth()] + " " + now.getDate() + ordinal + ", " + currentYear;
	  date_txt= "<table width='100%' border='0' cellspacing='0'><tr><td align='left' valign='top' width='9.0em'>WELCOME!</td><td width='*' align='right' valign='top' style='text-align:right;letter-spacing:.15em;font-family:verdana;font-style:normal;font-weight:normal;font-size:63%;line-height:63%;color:#999999;'>" + date_txt.toUpperCase() + "</td><td width='1.0em' style='padding-right:1.0em;'></td></tr></table>";
    if (document.getElementsByTagName && (is_h1=document.getElementsByTagName("h1")) && (is_home=document.getElementById("upDateBox"))) { is_h1[0].innerHTML=date_txt; }
}

/*--------------------- End Welcome Date ----------------*/


/*--------------------- Gala & Auction Countdown --------------*/

var is_counter;
var count_month=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

function countdown(yr,m,d,hr,min){

theyear=2010;themonth=03;theday=31;thehour=17;theminute=00;

//theyear=yr;themonth=m;theday=d;thehour=hr;theminute=min;
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours()
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=count_month[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin
//var todaystring=count_month[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
futurestring=count_month[themonth-1]+" "+theday+", "+theyear+" "+thehour+":"+theminute
dd=Date.parse(futurestring)-Date.parse(todaystring)
if (parseInt(dd) > 0) {
	dday=Math.floor(dd/(60*60*1000*24)*1)
	dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
	dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
	var day_text="days"; if(dday==1) {day_text="day"}
	var hour_text="hours"; if(dhour==1) {hour_text="hour"}
	var minute_text="minutes!!"; if(dmin==1) {minute_text="minute!!"}
	if (document.getElementById && (is_counter=document.getElementById("gala_counter"))) {	
		document.getElementById("gala_counter").className="on";document.getElementById("gala_counter").innerHTML="<a href='http://aapioneerbands.org/?page_id=578' title='2010 China Tour' style='text-decoration:none;'><font color='#000000'>The</font> <b><font color='#663366'>2010 China Tour</font></b></a> officially begins in: <b><font color='#663366'>"+dday+ "</font></b>&nbsp;" + day_text + ", <b><font color='#663366'>"+dhour+"</font></b>&nbsp;" + hour_text + ", <b><font color='#663366'>"+dmin+"</font></b>&nbsp;" + minute_text;
		setTimeout("countdown()",30000);
		}
	}
else { 
	if (document.getElementById && (is_counter=document.getElementById("gala_counter"))) {
		document.getElementById("gala_counter").className="on";document.getElementById("gala_counter").innerHTML="<a href='http://aapioneerbands.org/wp-content/tours/2010' target='_blank' title='login' style='text-decoration:none;'><b><font color='#663366'>China Tour</font></b></a>buses to O'Hare leave PHS at \(5PM\) today";
		}
	}
}


/*--------------------- END NYC Countdown --------------- */


/* ----------------- WUNDERGROUND IMAGE LOAD ------------ */

var wunderImage = new Array("http://banners.wunderground.com/weathersticker/htmlSticker1/language/www/global/stations/54511.gif","http://banners.wunderground.com/weathersticker/htmlSticker1/language/www/global/stations/54511.gif");
var wunderTDContent;
var randomWImage = Math.round(Math.random() * (wunderImage.length-1)) + 0 // random number

 function write_wunder() {
//	wunderTDContent = '<div style="height: 35px;width:102px;background-image:url\(' + wunderImage[randomWImage] + '\);background-repeat:no-repeat;background-position:2px 0px;"></div>';
	var is_wunderlink; // check to see if the "wunderLink" TD is on the page
        if (document.getElementById && (is_wunderlink=document.getElementById("wunderLink"))) { document.getElementById("wunderLink").innerHTML='<div style="height: 35px;width:102px;background-image:url\(' + wunderImage[randomWImage] + '\);background-repeat:no-repeat;background-position:2px 0px;"></div>'; }
		setTimeout("write_wunder()",30000);
}

/* ----------------- END WUNDERGROUND IMAGE  ------------ */

/*--------------------- Weekly Images Preload ---------------- */

// Declare "rollover images" for imgSwap()

   var home_button; var home_button_on; var note_tabs; var note_tabs_on;


  function initImg(){
		home_button = new Image(82,29)
		home_button.src = "http://www.aapioneerbands.org/wp-content/uploads/home_button.gif";
		home_button_on = new Image(82,29)
		home_button_on.src = "http://www.aapioneerbands.org/wp-content/uploads/home_button_on.gif";
		note_tabs = new Image(200,26)
		note_tabs.src = "http://www.aapioneerbands.org/wp-content/note_tabs.gif";
		note_tabs_on = new Image(200,26)
		note_tabs_on.src = "http://www.aapioneerbands.org/wp-content/note_tabs_on.gif";
		week1 = new Image(126,158)
   		week1.src= "http://www.aapioneerbands.org/wp-content/wpensembles.jpg";
		week2 = new Image(126,158)
  	 	week2.src= "http://www.aapioneerbands.org/wp-content/wpleach.jpg";
		week3 = new Image(126,158)
   		week3.src= "http://www.aapioneerbands.org/wp-content/wpalbritton.jpg";
		week4 = new Image(126,158)
   		week4.src= "http://www.aapioneerbands.org/wp-content/wproth.jpg";
		week5 = new Image(126,158)
   		week5.src= "http://www.aapioneerbands.org/wp-content/wpbordo.jpg";
		week6 = new Image(126,158)
   		week6.src= "http://www.aapioneerbands.org/wp-content/wpmaddy.jpg";
		week7 = new Image(126,158)
   		week7.src= "http://www.aapioneerbands.org/wp-content/wpfalcone.jpg";
		week8 = new Image(126,158)
   		week8.src= "http://www.aapioneerbands.org/wp-content/wpchampion.jpg";
		week9 = new Image(126,158)
   		week9.src= "http://www.aapioneerbands.org/wp-content/wpmarching.jpg";
		week10 = new Image(126,158)
   		week10.src= "http://www.aapioneerbands.org/wp-content/wpnew_students.jpg";
		week11 = new Image(126,158)
   		week11.src= "http://www.aapioneerbands.org/wp-content/wpactivities.jpg";
		week12 = new Image(126,158)
   		week12.src= "http://www.aapioneerbands.org/wp-content/wpparents.jpg";
		week13 = new Image(126,158)
		week13.src="http://www.aapioneerbands.org/wp-content/wpalumni.jpg";
		week14 = new Image(126,158)
		week14.src="http://www.aapioneerbands.org/wp-content/wpcentennial.jpg";
	init_Tab_Images();
}


 function imgSwap(name,state) {
   if (document.images) {
	var source_image = eval(name + state + ".src");
	if (document.getElementById) {
		document.getElementById(name).src = source_image;
			}
	else {
		document.images[name].src = source_image;
			}
		}
   else { "" }
   return true;
}


//  addOnLoadEvent(write_date)










  window.onload = write_upDateBox;

  addOnLoadEvent(write_Events)









//  addOnLoadEvent(write_upDateBox)
//  addOnLoadEvent(countdown)
  addOnLoadEvent(write_wunder)
  addOnLoadEvent(open_tours)
  addOnLoadEvent(initImg)
  addOnLoadEvent(write_glink)
  addOnLoadEvent(write_dlink)
//  addOnLoadEvent(write_banner)
  addOnLoadEvent(write_bc_vlink)
  addOnLoadEvent(write_marching_vlink)
  addOnLoadEvent(write_china_vlink)
//  addOnLoadEvent(write_GRAMMYlink)
  addOnLoadEvent(write_GRAMMYConcertlink)
  addOnLoadEvent(fade_videolinks)



/* -------------------- End Preload Images -------------------- */


/* ----------------- Write Calendar Divisions ----------------- */


function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; 
if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function showHideDiv() { //v3.0
  var i,p,v,obj,args=showHideDiv.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

/* ---------------- End Write Calendar Divsions ------------------ */


/* ---------------- Music Console ------------------ */
	
	var newWindow;
	var screenW = 800;
	var consoleLeft = 500;
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width;
		consoleLeft = parseInt(screenW - 310);
	}

  function openNewWindow(URLtoOpen, windowName) {  // "Flash" music console window
	if (!newWindow || newWindow.closed) {
	newWindow=window.open(URLtoOpen, windowName, "width=275,height=100,top=35,left="+ consoleLeft + ",resizable,dependent"); 
			}
	else {
	newWindow.location.href = URLtoOpen;
	newWindow.focus();
			}
}

/* ---------------End Music Console -------------- */



/* --------------- Tab Image/SWF Swap ------------ */

var picture_path = "http://aapioneerbands.org/wp-images/2008/tab_images/";
//var SWF_path = "http://www-personal.umich.edu/~sssulliv/pioneer/wp-images/2008/";

var tab_pics=new Array("image01","image02","image03","image04","image05","image06","image07","image08");
//var tab_SWF=new Array("marchingband.swf","splash1.swf","marchingband.swf","splash1.swf","marchingband.swf","splash1.swf");
var nextPic = Math.round(Math.random() * (tab_pics.length-1)) + 0 // random number
var nextPicSrc;
var nextSWF;
var selected_SWF; 
var t; // setTimeout variable;

function init_Tab_Images() {
  image01 = new Image(163,163);
  image02 = new Image(163,163);
  image03 = new Image(163,163);
  image04 = new Image(163,163);
  image05 = new Image(163,163);
  image06 = new Image(163,163);
  image07 = new Image(163,163);
  image08 = new Image(163,163);
  image01.src = picture_path+"image01.jpg";
  image02.src = picture_path+"image02.jpg";
  image03.src = picture_path+"image03.jpg";
  image04.src = picture_path+"image04.jpg";
  image05.src = picture_path+"image05.jpg";
  image06.src = picture_path+"image06.jpg";
  image07.src = picture_path+"image07.jpg";
  image08.src = picture_path+"image08.jpg";
}

function swap_Tab_Image() {
  nextPicSrc = eval(tab_pics[nextPic]+".src");
//  nextSWF = SWF_path+tab_SWF[nextPic];
    if (nextPic < tab_pics.length-1) {nextPic++;}
    else if (nextPic == tab_pics.length-1) {nextPic=0;}
	if (document.images) {
		if (document.getElementById) { document.getElementById('tab_images').src= nextPicSrc; }
		else { document.tab_images.src = nextPicSrc; }
	}
    t = window.setTimeout('swap_Tab_Image()',20000);
}


function stop_Tab_Image() { window.clearTimeout(t) }


/* ------------- End Tab Image/SWF Swap --------- */







/* --------------- Open Google Docs ------------ */



var google_link;

var glink;

  glink = "http://spreadsheets.google.com/";

  glink += "ccc?key=0AmrRL4X_b5wJdFE3X0RYRV9rZ1lSNThDUFZFYnFEb3c&inv=pbagala@aapioneerbands.org";

//  glink = "http://spreadsheets.google.com/";

//  glink += "ccc?key=pHT4ZYcff5-XoOtEdkKeuNQ&inv=pbagala@aapioneerbands.org";
//  glink += "ccc?key=pHT4ZYcff5-XoOtEdkKeuNQ&hl=en";
var gWindow;

function open_Google_window() {
//  window.location.href=glink;
// OR, OPEN A NEW (FULLSCREEN) WINDOW
  params = "width=" + screen.width;
  params += ", height=" + screen.height;
  params += ", top=0, left=0";
  params += ", fullscreen=yes";
  params += ", resizable=yes";
  params += ", dependent=yes";
if (!gWindow || gWindow.closed) {
  gWindow=window.open(glink,"GWindow",params);
	}
else {
  gWindow.location.href=glink;
  gWindow.focus();
	}
}

function write_gframe() { // DOESN'T WORK IN INTERNET EXPLORER...
  var gContent  = "<html><head><META NAME='robots' CONTENT='NOINDEX,NOFOLLOW'></head><frameset NAME='main' rows='0,*' BORDER=0 FRAMEBORDER=0 FRAMESPACING=0 onUnload='window.location.replace(\"" + clear_history + "\")'><frame scrolling='no' src='blackbck.htm'><frame scrolling='auto' NAME='content' SRC='" + glink + "'></frameset></html>"; 
  document.write(gContent);
  document.close();
}


function write_glink() {

	google_link = "<a href='javascript:;'  onclick='open_Google_window()' style='text-decoration:none;'><input type='button' value=' View List '></a>";
	var is_glink; // check to see if the "gLink" SPAN is on the page
		if (document.getElementById && (is_glink=document.getElementById("gLink"))) { document.getElementById("gLink").className="on";document.getElementById("gLink").innerHTML=google_link; }

}




/* --------------- End Google Docs------------ */



/* ------------ Gala Donor Window/Form -------- */

  var donor_form_window;
  var donorURL="http://aapioneerbands.org/wp-content/gala_donor_form.htm";

  function donor_form_win(URL)  {
    if (!donor_form_window || donor_form_window.closed) {
      donor_form_window = window.open(URL,'calendar','WIDTH=620,height=530,top=30,left=30,dependent=yes,resizable=yes,scrollbars')
                }
    else {
    donor_form_window.location.href = URL
    donor_form_window.focus()
  		}
}

function write_dlink() {
	donor_link = "<a href='javascript:;' onclick='donor_form_win(\"" + donorURL + "\")\; return false'>donation form</a>";
	var is_dlink; // check to see if the "dLink" SPAN is on the page
        if (document.getElementById && (is_dlink=document.getElementById("dLink"))) { document.getElementById("dLink").innerHTML=donor_link; }
}


/* --------- End Donor Window/Form ---------- */

/* --------- 2009 Band Camp Videos ---------- */

function write_bc_vlink() {
	bc_video_link = "<a href='javascript:;' onclick='show_feature_Video(5)\; return false'>" + "concert" + "</a> and <a href='javascript:;' onclick='show_feature_Video(6)\; return false'>" + "marching demonstrations" + "</a>";
	var is_bcvlink; // check to see if the "bcvLink" SPAN is on the page
        if (document.getElementById && (is_bcvlink=document.getElementById("bcvLink"))) { document.getElementById("bcvLink").innerHTML=bc_video_link; }
}

function write_marching_vlink() {
	marching_video_link = "<a href='javascript:;' onclick='show_feature_Video(7)\; return false'>" + "HERE" + "</a> ";
	var is_marchinglink; // check to see if the "marchingLink" SPAN is on the page
        if (document.getElementById && (is_marchinglink=document.getElementById("marchingLink"))) { document.getElementById("marchingLink").innerHTML=marching_video_link; }
}


/* -------- End 2009 Band Camp Videos ------- */


/* -------------- GRAMMY Video ------------ */

function write_GRAMMYlink() {
	GRAMMY_link = "&nbsp;<a href='http://aapioneerbands.org/wp-content/uploads/2010GrammyConcertFlyer.pdf' style='text-decoration:none;' title='Click for the GRAMMY Concert Flyer'><b><font color=\'#663366\'>details&raquo;</font></b></a>&nbsp;&nbsp;<a href='javascript:;' onclick='GRAMMYWin\(\"http://aapioneerbands.org/wp-content/GRAMMY_video.htm\"\)\; return false' title='Click for a Video Preview' style='text-decoration:none;'>" + "<b><font color=\'#663366\'>video&raquo;</font></b></a>";
	var is_GRAMMYlink; // check to see if the "GRAMMYLink" SPAN is on the page
        if (document.getElementById && (is_GRAMMYlink=document.getElementById("GRAMMYLink"))) { document.getElementById("GRAMMYLink").innerHTML=GRAMMY_link; }
}

/* ------------- END GRAMMY Video --------- */

/* -------------- 2010 GRAMMY Concert Video ------------ */

function write_GRAMMYConcertlink() {
	GRAMMYConcert_link = "<a href='http://aapioneerbands.org/wp-content/2010_GRAMMYconcert.htm' target='_blank' onclick='newWin\(\"http://aapioneerbands.org/wp-content/2010_GRAMMYconcert.htm\",770,550\); return false'><img src='http://aapioneerbands.org/wp-content/buttonplay.jpg' border='0' align='left' style='padding-right:4px;'>&nbsp;VIDEO:&nbsp;2010 GRAMMY Presentation Concert</a>";
	var is_GRAMMYConcertlink; // check to see if the "GRAMMYConcertLink" SPAN is on the page
        if (document.getElementById && (is_GRAMMYConcertlink=document.getElementById("GRAMMYConcertLink"))) { document.getElementById("GRAMMYConcertLink").innerHTML=GRAMMYConcert_link; }
}

/* ----------- END 2010 GRAMMY Concert Video --------- */


/* -------------- Fade Video Links ------------ */


function fade_videolinks() {
	var is_textanim; // check to see if the "textanim" SPAN is on the page
        if (document.getElementById && (is_textanim=document.getElementById("textanim"))) { document.getElementById("textanim").innerHTML="<script type='text/javascript' src='http://aapioneerbands.org/wp-content/fadetxt.js'></script>";}
}


/* ------------- END Fade Video Links --------- */


/* ----------- 2010 Tour Itineraries ------- */

function open_tours() {
	tour_link = "<a href='http://aapioneerbands.org/wp-content/tours/2010/' target='_blank'>CLICK HERE TO LOGIN</a>...";
	var is_tourlogin; // check to see if the "tourlogin" SPAN is on the page
        if (document.getElementById && (is_tourlogin=document.getElementById("tourlogin"))) { document.getElementById("tourlogin").innerHTML=tour_link; }	
}

/* --------- End 2010 Tour Itineraries ------ */


/* ------------- Flash Banner ----------- */

function write_banner() {
	banner = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="322" height="70" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="http://www.aapioneerbands.org/wp-content/bandcamp_ad.swf" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="http://www.aapioneerbands.org/wp-content/bandcamp_ad.swf" loop="false" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="322" height="70" name="banner_ad" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';
	var is_banner; // check to see if the "bannerDiv" DIV is on the page
	if (document.getElementById && (is_banner=document.getElementById("bannerDiv"))) { document.getElementById("bannerDiv").className="on";document.getElementById("bannerDiv").innerHTML= banner ; }

}



/* ----------- End Flash Banner -------- */

