/**
 *  This code initializes the Games and Notes arrays.
 *
 * Modifications:
 *
 *  Name    Date         Description
 *  ------  -------      ------------
 *  John R  2005-Mar-25  Moved the nGameDays variables into index.html
 *  John R  2005-Mar-16  Added a section for inter-division games to both the
 *                         MAJOR and MINOR league definitions
 *  John R  2008-Mar     Removed all N/S/W stuff and now have only minor & majors league
 *  John R  2008-Apr-14  Commented out the line 'arrLeagues[MINOR].games = arGames;'
 */

   var dtGamesThrough = " 28 May 2010 ";
   var gIdx, nIdx;
   var arGames, arNotes;

   /**
    *  MAJOR League
    */

   /**
    *  The Division
    */

   arGames = new Array;
   gIdx = 0;
   //                              Date         Away      Home Away  Home    Note
   //                                           Team      Team Score Score
   arGames[gIdx++] = new Game( "04/06/2010", "Marlins", "Astros", 11, 2 );
   arGames[gIdx++] = new Game( "04/06/2010", "Twins", "Dodgers", 12, 1 );
   arGames[gIdx++] = new Game( "04/08/2010", "Twins", "Marlins", 3, 6 );
   arGames[gIdx++] = new Game( "04/08/2010", "RedSox", "Astros", 5, 5 );
   arGames[gIdx++] = new Game( "04/13/2010", "Dodgers", "Astros", 0, 1 );
   arGames[gIdx++] = new Game( "04/13/2010", "Marlins", "RedSox", 3, 5 );
   arGames[gIdx++] = new Game( "4/15/2010", "Marlins", "UV_Astros", 15, 2 );
   arGames[gIdx++] = new Game( "4/15/2010", "Astros", "UV_Tigers", 5, 5 );
   arGames[gIdx++] = new Game( "4/15/2010", "UV_Reds", "RedSox", 3, 9 );
   arGames[gIdx++] = new Game( "4/15/2010", "Dodgers", "Twins", 5, 9 );
   arGames[gIdx++] = new Game( "4/20/2010", "Dodgers", "Marlins", 0, 12 );
   arGames[gIdx++] = new Game( "4/20/2010", "RedSox", "Twins", 4, 2 );
   arGames[gIdx++] = new Game( "4/22/2010", "Dodgers", "UV_Reds", 1, 11 );
   arGames[gIdx++] = new Game( "4/22/2010", "Twins", "UV_Astros", 5, 6 );
   arGames[gIdx++] = new Game( "4/22/2010", "Marlins", "UV_Tigers", 13, 2 );
   arGames[gIdx++] = new Game( "4/22/2010", "Astros", "RedSox", 0, 11 );
   arGames[gIdx++] = new Game( "4/27/2010", "RedSox", "Dodgers", 10, 2 );
   arGames[gIdx++] = new Game( "4/27/2010", "Astros", "Twins", 2, 7 );
   arGames[gIdx++] = new Game( "4/29/2010", "Dodgers", "Marlins", 1, 11 );
   arGames[gIdx++] = new Game( "4/29/2010", "RedSox", "UV_Astros", 3, 1 );
   arGames[gIdx++] = new Game( "4/29/2010", "Twins", "UV_Tigers", 0, 10 );
   arGames[gIdx++] = new Game( "4/29/2010", "Astros", "UV_Reds", 14, 10 );
   arGames[gIdx++] = new Game( "5/04/2010", "RedSox", "Astros", 11, 10 );
   arGames[gIdx++] = new Game( "5/04/2010", "Marlins", "Twins", 5, 2 );
  arGames[gIdx++] = new Game( "5/06/2010", "Marlins", "UV_Reds", 6, 10 );
  arGames[gIdx++] = new Game( "5/06/2010", "RedSox", "UV_Tigers", 5, 4 );
  arGames[gIdx++] = new Game( "5/06/2010", "Astros", "Twins", 12, 7 );
  arGames[gIdx++] = new Game( "5/06/2010", "UV_Astros", "Dodgers", 13, 5 );
   arGames[gIdx++] = new Game( "5/11/2010", "Astros", "Marlins", 11, 10 );
   arGames[gIdx++] = new Game( "5/11/2010", "Twins", "Dodgers", 14, 2 );
  arGames[gIdx++] = new Game( "5/13/2010", "Marlins", "RedSox", 6, 2 );
  arGames[gIdx++] = new Game( "5/13/2010", "Dodgers", "Astros", 5, 11 );
  arGames[gIdx++] = new Game( "5/18/2010", "RedSox", "Dodgers", 14, 8 );
  arGames[gIdx++] = new Game( "5/18/2010", "Astros", "Twins", 5, 4 );
  arGames[gIdx++] = new Game( "5/20/2010", "Astros", "UV_Astros", 2, 3 );
  arGames[gIdx++] = new Game( "5/20/2010", "UV_Tigers", "Dodgers", 1, 0 );
  arGames[gIdx++] = new Game( "5/20/2010", "Marlins", "RedSox", 8, 0 );
  arGames[gIdx++] = new Game( "5/20/2010", "Twins", "UV_Reds", 3, 12 );
  arGames[gIdx++] = new Game( "5/25/2010", "Dodgers", "Marlins", 1, 6 );
  arGames[gIdx++] = new Game( "5/25/2010", "Twins", "RedSox", 11, 5 );
  
  
   
   
   arNotes = new Array;
   nIdx = 0;
   //arNotes[nIdx++] = "The 8 April Pirates @ Twins has been rescheduled to 18 Apr 6PM Red Field.";
   arNotes[nIdx++] = "20 May UV_Tigers-Dodgers, No score reported but was notified that Tigers won." +
    " Put 1-0 so standings can show records.";	
   arNotes[nIdx++] = "For Placement in Yakima, only look at your teams, UV does not show complete league standings." +
    " It only shows the games they have played against Yakima.";	
	  	 
   
   //
   //
   arrLeagues[MAJOR].divisions[ZERO].games = arGames;
   arrLeagues[MAJOR].divisions[ZERO].notes = arNotes;

   /**
    *  Inter-division games
    *
    *    Note: The team names in this section must start with a division indicator;
    *            the first letter of each division name is sufficient. For example,
    *            use "W Cardinals" for the West Cardinals.
    */

//   arGames = new Array;
//   gIdx = 0;
   //                              Date         Away      Home Away  Home    Note
   //                                           Team      Team Score Score
   
//    arGames[gIdx++] = new Game( "4/14/2007", "N White Sox", "S Pirates", 15, 2 );
 
   //arNotes[nIdx++] = "The 4 May  S Indians @ N Cubs game was tied after 9 complete innings" +
   //                  " Game will continue if needed for standing results as per rule 4.12.";

//   arrLeagues[MAJOR].games = arGames;


   /**
    *  MINOR League
    */

   /**
    *  The Division
    */

   arGames = new Array;
   gIdx = 0;
   //                              Date         Away      Home Away  Home    Note
   //                                           Team      Team Score Score
   arGames[gIdx++] = new Game( "4/05/2010", "Angels", "Phillies", 9, 8 );
   arGames[gIdx++] = new Game( "4/05/2010", "Diamondbacks", "Reds", 6, 7 );
   arGames[gIdx++] = new Game( "4/05/2010", "Indians", "Cubs", 5, 12 );
   arGames[gIdx++] = new Game( "4/07/2010", "Cubs", "Diamondbacks", 18, 0 );
   arGames[gIdx++] = new Game( "4/07/2010", "Phillies", "Braves", 0, 7 );
   arGames[gIdx++] = new Game( "4/07/2010", "Reds", "Angels", 8, 7 );
   arGames[gIdx++] = new Game( "4/12/2010", "Cubs", "Reds", 9, 2 );
   arGames[gIdx++] = new Game( "4/12/2010", "Diamondbacks", "Braves", 4, 14 );
   arGames[gIdx++] = new Game( "4/12/2010", "Indians", "Phillies", 11, 5 );
   arGames[gIdx++] = new Game( "4/14/2010", "Braves", "Angels", 14, 0 );
   arGames[gIdx++] = new Game( "4/14/2010", "Phillies", "Diamondbacks", 13, 8 );
   arGames[gIdx++] = new Game( "4/14/2010", "Reds", "Indians", 3, 5 );
   arGames[gIdx++] = new Game( "4/19/2010", "Cubs", "Braves", 4, 7 );
   arGames[gIdx++] = new Game( "4/19/2010", "Indians", "Angels", 8, 4 );
   arGames[gIdx++] = new Game( "4/19/2010", "Reds", "Phillies", 11, 1 );
   arGames[gIdx++] = new Game( "4/21/2010", "Angels", "Diamondbacks", 11, 6 );
   arGames[gIdx++] = new Game( "4/21/2010", "Braves", "Indians", 9, 3 );
   arGames[gIdx++] = new Game( "4/21/2010", "Phillies", "Cubs", 6, 12 );
   arGames[gIdx++] = new Game( "4/26/2010", "Angels", "Cubs", 6, 13 );
   arGames[gIdx++] = new Game( "4/26/2010", "Braves", "Reds", 15, 4 );
   arGames[gIdx++] = new Game( "4/26/2010", "Diamondbacks", "Indians", 6, 15 );
   arGames[gIdx++] = new Game( "4/28/2010", "Angels", "Phillies", 11, 8 );
   arGames[gIdx++] = new Game( "4/28/2010", "Diamondbacks", "Reds", 10, 9 );
   arGames[gIdx++] = new Game( "4/28/2010", "Indians", "Cubs", 14, 4 );
arGames[gIdx++] = new Game( "5/05/2010", "Cubs", "Reds", 15, 5 );
arGames[gIdx++] = new Game( "5/05/2010", "Diamondbacks", "Braves", 1, 10 );
arGames[gIdx++] = new Game( "5/05/2010", "Indians", "Phillies", 13, 9 );
arGames[gIdx++] = new Game( "5/07/2010", "Cubs", "Diamondbacks", 14, 2 );
arGames[gIdx++] = new Game( "5/07/2010", "Phillies", "Braves", 4, 11 );
arGames[gIdx++] = new Game( "5/11/2010", "Reds", "Angels", 7, 9 );
arGames[gIdx++] = new Game( "5/12/2010", "Cubs", "Braves", 1, 11 );
arGames[gIdx++] = new Game( "5/12/2010", "Indians", "Angels", 7, 2 );
arGames[gIdx++] = new Game( "5/12/2010", "Reds", "Phillies", 16, 10 );
arGames[gIdx++] = new Game( "5/14/2010", "Phillies", "Diamondbacks", 6, 7 );
arGames[gIdx++] = new Game( "5/14/2010", "Reds", "Indians", 6, 8 );
arGames[gIdx++] = new Game( "5/17/2010", "Diamondbacks", "Angels", 13, 10 );
arGames[gIdx++] = new Game( "5/17/2010", "Braves", "Indians", 17, 7 );
arGames[gIdx++] = new Game( "5/17/2010", "Phillies", "Cubs", 6, 7 );
arGames[gIdx++] = new Game( "5/22/2010", "Angels", "Cubs", 5, 1 );
arGames[gIdx++] = new Game( "5/22/2010", "Braves", "Reds", 16, 2 );
arGames[gIdx++] = new Game( "5/22/2010", "Diamondbacks", "Indians", 1, 11 );
arGames[gIdx++] = new Game( "5/23/2010", "Braves", "Angels", 14, 2 );
arGames[gIdx++] = new Game( "5/24/2010", "Reds", "Diamondbacks", 4, 3 );
arGames[gIdx++] = new Game( "5/24/2010", "Cubs", "Indians", 10, 8 );
arGames[gIdx++] = new Game( "5/26/2010", "Angels", "Phillies", 7, 6 );
arGames[gIdx++] = new Game( "5/26/2010", "Braves", "Diamondbacks", 15, 8 );




   

   arNotes = new Array;
   nIdx = 0;
   //
   arNotes[nIdx++] = "The Minor league standings show Cubs and Indians tied, However head-head records " +
					 " the Cubs beat Indians 2 of 3 games, thus CUBS are SECOND PLACE.";  
   
  arNotes[nIdx++] = "The 19 May Minor games were rained out and will be rescheduled either on 21 May " +
					 " or next week.";  
   arNotes[nIdx++] = "The 17 May Minor game between Phillies and Cubs ended in tie, continued play on " +
					 " 21 May and Cubs scored winning run.";
   arNotes[nIdx++] = "The 12 May game between Reds-Phillies was halted due to time limit and reverted  " +
					 " back to last completed inning as per rule 4:12.";
   arNotes[nIdx++] = "The 10 May Minor league games were played on Friday 14th May except the " +
					 " Braves-Angels will is rescheduled for 1 June.";
   arNotes[nIdx++] = "The 3 May Minor league games were rescheduled for 7 May. " +
					 " Reds-Angels played on 11 May.";
  		 
					 
   
   

   arrLeagues[MINOR].divisions[ZERO].games = arGames;
   arrLeagues[MINOR].divisions[ZERO].notes = arNotes;

   /**
    *  Inter-division games
    *
    *    Note: The team names in this section must start with a division indicator;
    *            the first letter of each division name is sufficient. For example,
    *            use "W Cardinals" for the West Cardinals.
    */

//   arGames = new Array;
//   gIdx = 0;
   //                              Date         Away      Home Away  Home    Note
   //                                           Team      Team Score Score
//   arGames[gIdx++] = new Game( "4/12/2007", "S Mets", "N Giants", 5, 8 );

//   arNotes = new Array;
//   nIdx = 0;
   //
   //
   

//   arrLeagues[MINOR].games = arGames;
