markerArray[SPORTS_NUM] = [];
markerDataArray[SPORTS_NUM] = [];
markerEnabledArray[SPORTS_NUM] = [];

clickable[SPORTS_NUM] = true;

/*---------------------------------------------------------------------------------*/
/*                      Adelaide Soccer Field Marker                               */
/*---------------------------------------------------------------------------------*/
	point = new GLatLng(40.514875816619465, -89.0008020401001);
    marker = new GMarker(point, {icon:sportsIcon, title:"Adelaide Soccer Field"})
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Adelaide Soccer Field",
		id: "adelaide_soccer_field",
		abrv: "asf",
		html: "<div class='infoBox'><h2>Adelaide Soccer Field</h2><img src='/images/thumbs/adelaide_soccer_fieldthumb.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/adelaide_soccer_field.shtml')>More Information</a></p></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);


    //Bowling and Billiards Center marker
    point = new GLatLng(40.51206993512189, -88.99081349372864)
    marker = new GMarker(point, {icon:sportsIcon, title:"Bowling and Billiards Center"});
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Bowling and Billiards Center (BBC)",
		id: "bowling_and_billiard_bbc",
		abrv: "bbc",
		html: "<div class='infoBox'><h2>Bowling and Billiards Center (BBC)</h2><img src='/images/thumbs/bbc.jpg'><p>Entertainment<br><a href=javascript:showMoreInformation('/locations/bowling_and_billiard_bbc.shtml')>More Information</a></p></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);


/*---------------------------------------------------------------------------------*/
/*                      Baseball Field Marker                                       */
/*---------------------------------------------------------------------------------*/
	point = new GLatLng(40.51521838713149, -88.99942874908447);
    marker = new GMarker(point, {icon:sportsIcon, title:"Duffy Bass Field"})
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Duffy Bass Field",
		id: "duffy_bass_field",
		abrv: "dbf",
		html: "<div class='infoBox'><h2>Duffy Bass Field</h2><img src='/images/thumbs/duffy_bass_fieldthumb.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/duffy_bass_field.shtml')>More Information</a></p></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);


/*---------------------------------------------------------------------------------*/
/*                      Tennis Courts Marker                                       */
/*---------------------------------------------------------------------------------*/
	point = new GLatLng(40.51867661999069, -89.00983572006225);
    marker = new GMarker(point, {icon:sportsIcon, title:"Gregory Street Tennis Courts"})
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Gregory Street Tennis Courts",
		id: "gregory_street_tennis_courts",
		abrv: "gstc",
		html: "<div class='infoBox'><h2>Gregory Street Tennis Courts</h2><img src='/images/thumbs/gregory_street_tennis_courtsthumb.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/gregory_street_tennis_courts.shtml')>More Information</a></p></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);


/*---------------------------------------------------------------------------------*/
/*                      Hancock Stadium Marker                                      */
/*---------------------------------------------------------------------------------*/
	point = new GLatLng(40.512367657767555, -88.99663925170898);
    marker = new GMarker(point, {icon:sportsIcon, title:"Hancock Stadium"})
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Hancock Stadium (HAN)",
		id: "hancock_stadium",
		abrv: "han",
		html: "<div class='infoBox'><h2>Hancock Stadium (HAN)</h2><img src='/images/thumbs/hancock_stadiumthumb.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/hancock_stadium.shtml')>More Information</a></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);


/*---------------------------------------------------------------------------------*/
/*                      Horton Field House Marker                                  */
/*---------------------------------------------------------------------------------*/
	point = new GLatLng(40.512131111115885, -88.99824857711792);
    marker = new GMarker(point, {icon:sportsIcon, title:"Horton Field House"})
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Horton Field House (HTN)",
		id: "horton_field_house_htn",
		abrv: "htn",
		html: "<div class='infoBox'><h2>Horton Field House (HTN)</h2><img src='/images/thumbs/htnthumb.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/horton_field_house_htn.shtml')>More Information</a></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);


/*---------------------------------------------------------------------------------*/
/*                      Gymnastics Marker                                          */
/*---------------------------------------------------------------------------------*/
	point = new GLatLng(40.512131111115885, -88.99769604206085);
    marker = new GMarker(point, {icon:sportsIcon, title:"Horton Field House Gymnastics"})
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Horton Field House (HTN)",
		id: "horton_field_house_htn_gym",
		abrv: "htn_gym",
		html: "<div class='infoBox'><h2>Gymnastics - Horton Field House (HTN)</h2><img src='/images/thumbs/gymnasticsthumb.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/horton_field_house_htn.shtml?gym')>More Information</a></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);


/*---------------------------------------------------------------------------------*/
/*                      Swimming and Diving Marker                                 */
/*---------------------------------------------------------------------------------*/
	point = new GLatLng(40.512131111115885, -88.99896740913391);
    marker = new GMarker(point, {icon:sportsIcon, title:"Horton Field House Pool"})
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Horton Field House (HTN)",
		id: "horton_field_house_htn_pool",
		abrv: "htn_pool",
		html: "<div class='infoBox'><h2>Horton Pool - Horton Field House (HTN)</h2><img src='/images/thumbs/horton_poolthumb.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/horton_field_house_htn.shtml?pool')>More Information</a></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);


	//Student Fitness Center and McCormick Hall 8
	point = new GLatLng(40.50804443205955, -88.99402141571045);
    marker = new GMarker(point, {icon:sportsIcon, title:"Student Fitness Center and McCormick Hall (SFCM)"});
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Student Fitness Center and McCormick Hall (SFCM)",
		id: "mccormick_hall_mch_sports",
		abrv: "sfcm_sports",
		html: "<div class='infoBox'><h2>Student Fitness Center and McCormick Hall (SFCM)</h2><img src='/images/thumbs/sfcmThumb.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/student_fitness_center_and_mccormick_hall_sfcm.shtml')>More Information</a></p></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);

/*---------------------------------------------------------------------------------*/
/*                      Redbird Arena Marker                                       */
/*---------------------------------------------------------------------------------*/
	point = new GLatLng(40.51069549974435, -88.99879574775696);
    marker = new GMarker(point, {icon:sportsIcon, title:"Redbird Arena"})
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Redbird Arena (RBA)",
		id: "redbird_arena_rba",
		abrv: "rba",
		html: "<div class='infoBox'><h2>Redbird Arena (RBA)</h2><img src='/images/thumbs/rbathumb.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/redbird_arena_rba.shtml')>More Information</a></p></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);


/*---------------------------------------------------------------------------------*/
/*                      Softball Field Marker                                       */
/*---------------------------------------------------------------------------------*/
	point = new GLatLng(40.51389703408358, -89.00088787078857);
    marker = new GMarker(point, {icon:sportsIcon, title:"Softball Field"})
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Softball Field",
		id: "softball_field",
		abrv: "sf",
		html: "<div class='infoBox'><h2>Softball Field</h2><img src='/images/thumbs/softball_fieldthumb.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/softball_field.shtml')>More Information</a></p></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);


/*---------------------------------------------------------------------------------*/
/*                      Track Marker                                               */
/*---------------------------------------------------------------------------------*/
	point = new GLatLng(40.51374205887183, -88.99854898452759);
    marker = new GMarker(point, {icon:sportsIcon, title:"Track"})
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Redbird Track",
		id: "redbird_track",
		abrv: "rt",
		html: "<div class='infoBox'><h2>Redbird Track</h2><img src='/images/thumbs/outdoortrack.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/redbird_track.shtml')>More Information</a></p></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);

	
/*---------------------------------------------------------------------------------*/
/*                      Golf Course Marker                                         */
/*---------------------------------------------------------------------------------*/
	point = new GLatLng(40.51755516071824, -89.00408506393433);
    marker = new GMarker(point, {icon:sportsIcon, title:"Weibring Golf Club"})
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Weibring Golf Club (GC)",
		id: "weibring_golf_club_gc",
		abrv: "gc",
		html: "<div class='infoBox'><h2>Weibring Golf Club (GC)</h2><img src='/images/thumbs/gcthumb.jpg'><p>Sports<br><a href=javascript:showMoreInformation('/locations/weibring_golf_club_gc.shtml')>More Information</a></p></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);

/*---------------------------------------------------------------------------------*/
/*                      Gregory street property                                    */
/*---------------------------------------------------------------------------------*/
    point = new GLatLng(40.51760817557899, -89.01345133781433);
    marker = new GMarker(point, {icon:sportsIcon});
	markerArray[SPORTS_NUM].push(marker);
	infoHTML = {
		name: "Gregory Street Property (GSPF)",
		id: "gregory_street_property_gspf",
		abrv: "gspf",
		html: "<div class='infoBox'><h2>Gregory Street Property</h2><img src='/images/thumbs/gregoryPropetyThumb.jpg'><p>Facilities<br><a href=javascript:showMoreInformation('/locations/gregory_street_property_gspf.shtml')>More Information</a></p></div>"
	}
	markerDataArray[SPORTS_NUM].push(infoHTML);
	markerEnabledArray[SPORTS_NUM].push(0);

//display Sports
function sportsCheck(chkBox, num, link)
{
	layersChecked[SPORTS_NUM] = true;

	var num = getIDnum(chkBox);

	if ( markerEnabledArray[SPORTS_NUM][num]==1)
	{
		markerEnabledArray[SPORTS_NUM][num] = 1;
		enableMarker(SPORTS_NUM, num);

		if (!printMap)
			locationClick(SPORTS_NUM, num, markerDataArray[SPORTS_NUM][num].html);
	}
	else
	{
		markerEnabledArray[SPORTS_NUM][num] = 0;
		disableMarker(SPORTS_NUM, num);
	}

	if (!printMap)
		allNoneCheck(markerArray[SPORTS_NUM].length, SPORTS_NUM, 'chkAllSports', 'chkSports');

}

function sports()
{
	if(layersChecked[SPORTS_NUM] == true)
	{
		if (!printMap && !mapLoad && outsideBoundsCenter())
			map.panTo(layerCenterArray[SPORTS_NUM]);	

		for(i = 0; i < markerArray[SPORTS_NUM].length; i++)
		{
			markerEnabledArray[SPORTS_NUM][i] = 3;
			enableMarker(SPORTS_NUM, i);
		}
	}
	else
	{
		for(i = 0; i < markerArray[SPORTS_NUM].length; i++)
		{
			markerEnabledArray[SPORTS_NUM][i] = 0;
			disableMarker(SPORTS_NUM, i);
		}
	}

	if (!printMap)
		allCheckUncheck('chkAllSports', 'chkSports', markerArray[SPORTS_NUM].length);
}
