var schedArrayDate = new Array(), schedArrayBEEFCAKE_REVISITfix = new Array(), schedArrayHomeAway = new Array(), schedArrayTime = new Array(), schedArrayVs = new Array(), schedArrayLoc = new Array();

// REMEMBER THAT JANUARY IS =new Date (2010, 00, 23);
schedArrayDate[136]= new Date(2010, 00, 14);
schedArrayBEEFCAKE_REVISITfix[136] = new Date("January 14 21:45 2010");  // BEEFCAKE_REVISIT --> Reduce number of arrays and fix up supporting code
schedArrayHomeAway[136] = "Away";
schedArrayTime[136] = "9:45 PM";
schedArrayVs[136] = "Redhawks";
schedArrayLoc[136] = "Murray Copot";

schedArrayDate[142] = new Date(2010, 00, 20);
schedArrayBEEFCAKE_REVISITfix[142] = new Date("January 20 22:00 2010");  // BEEFCAKE_REVISIT --> Reduce number of arrays and fix up supporting code
schedArrayHomeAway[142] = "Away";
schedArrayTime[142] = "10:00 PM";
schedArrayVs[142] = "Flyers";
schedArrayLoc[142] = "Stew Hendry";

schedArrayDate[152] = new Date(2010, 00, 30);
schedArrayBEEFCAKE_REVISITfix[152] = new Date("January 30 22:00 2010");  // BEEFCAKE_REVISIT --> Reduce number of arrays and fix up supporting code
schedArrayHomeAway[152] = "Away";
schedArrayTime[152] = "10:00 PM";
schedArrayVs[152] = "Ducks";
schedArrayLoc[152] = "Stew Hendry";

schedArrayDate[155] = new Date(2010, 01, 02);
schedArrayBEEFCAKE_REVISITfix[155] = new Date("February 02 22:00 2010");  // BEEFCAKE_REVISIT --> Reduce number of arrays and fix up supporting code
schedArrayHomeAway[155] = "Away";
schedArrayTime[155] = "10:00 PM";
schedArrayVs[155] = "Coilers";
schedArrayLoc[155] = "FDB";

schedArrayDate[161] = new Date(2010, 01, 08);
schedArrayBEEFCAKE_REVISITfix[161] = new Date("February 08 22:00 2010");  // BEEFCAKE_REVISIT --> Reduce number of arrays and fix up supporting code
schedArrayHomeAway[161] = "Home";
schedArrayTime[161] = "10:30 PM";
schedArrayVs[161] = "Silver Dawgs";
schedArrayLoc[161] = "F McCool";

schedArrayDate[167] = new Date(2010, 01, 14);
schedArrayBEEFCAKE_REVISITfix[167] = new Date("February 14 11:45 2010");  // BEEFCAKE_REVISIT --> Reduce number of arrays and fix up supporting code
schedArrayHomeAway[167] = "Home";
schedArrayTime[167] = "11:45 AM";
schedArrayVs[167] = "Rustlers";
schedArrayLoc[167] = "SAIT";

schedArrayDate[171] = new Date(2010, 01, 18);
schedArrayBEEFCAKE_REVISITfix[171] = new Date("February 18 20:15 2010");  // BEEFCAKE_REVISIT --> Reduce number of arrays and fix up supporting code
schedArrayTime[171] = "8:15 PM";
schedArrayLoc[171] = "M Copot";
schedArrayHomeAway[171] = "Home";
schedArrayVs[171] = "Nordiques";

schedArrayDate[176] = new Date(2010, 01, 23);
schedArrayBEEFCAKE_REVISITfix[176] = new Date("February 23 20:30 2010");  // BEEFCAKE_REVISIT --> Reduce number of arrays and fix up supporting code
schedArrayTime[176] = "8:30 PM";
schedArrayLoc[176] = "FDB";
schedArrayHomeAway[176] = "Home";
schedArrayVs[176] = "Flyers";

schedArrayDate[181] = new Date(2010, 01, 28);
schedArrayBEEFCAKE_REVISITfix[181] = new Date("February 28 17:45");  // BEEFCAKE_REVISIT --> Reduce number of arrays and fix up supporting code
schedArrayTime[181] = "5:45 PM";
schedArrayLoc[181] = "SAIT";
schedArrayHomeAway[181] = "Home";
schedArrayVs[181] = "Ducks";

schedArrayDate[188] = new Date(2010, 02, 07);
schedArrayBEEFCAKE_REVISITfix[188] = new Date("March 07 11:45 2010");  // BEEFCAKE_REVISIT --> Reduce number of arrays and fix up supporting code
schedArrayTime[188] = "11:45 AM";
schedArrayLoc[188] = "SAIT";
schedArrayHomeAway[188] = "Home";
schedArrayVs[188] = "Redhawks";




function beefcakeGetGameIndex(dateVar) {
	// BEEFCAKE_REVISIT --> Always start on Sept 01???
	var septOneDate = new Date(dateVar.getYear(), 08, 01); // Sept 01 of current year
	if (dateVar.getMonth() < 8) { septOneDate.setYear(dateVar.getYear() - 1) } // if less than Sept...
	var returnValue = Math.round((dateVar - septOneDate)/1000/60/60/24)+1; // Must use "round" instead of "ceil" due to Daylight Savings
	//alert(returnValue);
	if (!schedArrayHomeAway[returnValue]) { returnValue = -1 }
	return returnValue;
}

function beefcakeInitialCalenderSet() {
	var dateVar = new Date();
	
	// BEEFCAKE_REVISIT --> Always start on Sept 01???
	var septOneDate = new Date(dateVar.getYear(), 08, 01); // Sept 01 of current year
	if (dateVar.getMonth() < 8) { septOneDate.setYear(dateVar.getYear()-1) } // if less than Sept...
	var gameIndex = Math.round((dateVar - septOneDate)/1000/60/60/24); // Must use "round" instead of "ceil" due to Daylight Savings
	//alert(gameIndex);
	if (!schedArrayHomeAway[gameIndex]) { gameIndex = -1 }
	if (gameIndex > 0) { beefcakeGameChange(gameIndex); } // else do Nothing
}
