// Example:

// simplePreload( '01.gif', '02.gif' ); 

function simplePreload()

{ 

  var args = simplePreload.arguments;

  document.imageArray = new Array(args.length);

  for(var i=0; i<args.length; i++)

  {

    document.imageArray[i] = new Image;

    document.imageArray[i].src = args[i];

  }

}


var imgSwitch = new Array(54);
imgSwitch[0] = new Image();
imgSwitch[1] = new Image();
imgSwitch[2] = new Image();
imgSwitch[3] = new Image();
imgSwitch[4] = new Image();
imgSwitch[5] = new Image();
imgSwitch[6] = new Image();
imgSwitch[7] = new Image();
imgSwitch[8] = new Image();
imgSwitch[9] = new Image();
imgSwitch[10] = new Image();
imgSwitch[11] = new Image();
imgSwitch[12] = new Image();
imgSwitch[13] = new Image();
imgSwitch[14] = new Image();
imgSwitch[15] = new Image();
imgSwitch[16] = new Image();
imgSwitch[17] = new Image();
imgSwitch[18] = new Image();
imgSwitch[19] = new Image();
imgSwitch[20] = new Image();
imgSwitch[21] = new Image();
imgSwitch[22] = new Image();
imgSwitch[23] = new Image();
imgSwitch[24] = new Image();
imgSwitch[25] = new Image();
imgSwitch[26] = new Image();
imgSwitch[27] = new Image();
imgSwitch[28] = new Image();
imgSwitch[29] = new Image();
imgSwitch[30] = new Image();
imgSwitch[31] = new Image();
imgSwitch[32] = new Image();
imgSwitch[33] = new Image();
imgSwitch[34] = new Image();
imgSwitch[35] = new Image();
imgSwitch[36] = new Image();
imgSwitch[37] = new Image();
imgSwitch[38] = new Image();
imgSwitch[39] = new Image();
imgSwitch[40] = new Image();
imgSwitch[41] = new Image();
imgSwitch[42] = new Image();
imgSwitch[43] = new Image();
imgSwitch[44] = new Image();
imgSwitch[45] = new Image();
imgSwitch[46] = new Image();
imgSwitch[47] = new Image();
imgSwitch[48] = new Image();
imgSwitch[49] = new Image();
imgSwitch[50] = new Image();
imgSwitch[51] = new Image();
imgSwitch[52] = new Image();
imgSwitch[53] = new Image();
imgSwitch[0].src="images/maps/location-Albany.jpg";
imgSwitch[1].src="images/maps/location-Allegany.jpg";
imgSwitch[2].src="images/maps/location-Broome.jpg";
imgSwitch[3].src="images/maps/location-Cattaraugus.jpg";
imgSwitch[4].src="images/maps/location-Cayuga.jpg";
imgSwitch[5].src="images/maps/location-Chautauqua.jpg";
imgSwitch[6].src="images/maps/location-Chemung.jpg";
imgSwitch[7].src="images/maps/location-Chenango.jpg";
imgSwitch[8].src="images/maps/location-Clinton.jpg";
imgSwitch[9].src="images/maps/location-Columbia.jpg";
imgSwitch[10].src="images/maps/location-Cortland.jpg";
imgSwitch[11].src="images/maps/location-Delaware.jpg";
imgSwitch[12].src="images/maps/location-Dutchess.jpg";
imgSwitch[13].src="images/maps/location-Erie.jpg";
imgSwitch[14].src="images/maps/location-Essex.jpg";
imgSwitch[15].src="images/maps/location-Franklin.jpg";
imgSwitch[16].src="images/maps/location-Fulton.jpg";
imgSwitch[17].src="images/maps/location-Genesee.jpg";
imgSwitch[18].src="images/maps/location-Greene.jpg";
imgSwitch[19].src="images/maps/location-Hamilton.jpg";
imgSwitch[20].src="images/maps/location-Herkimer.jpg";
imgSwitch[21].src="images/maps/location-Jefferson.jpg";
imgSwitch[22].src="images/maps/location-Lewis.jpg";
imgSwitch[23].src="images/maps/location-Livingston.jpg";
imgSwitch[24].src="images/maps/location-Tompkins.jpg";
imgSwitch[25].src="images/maps/location-Madison.jpg";
imgSwitch[26].src="images/maps/location-Montgomery.jpg";
imgSwitch[27].src="images/maps/location-Monroe.jpg";
imgSwitch[28].src="images/maps/location-Niagara.jpg";
imgSwitch[29].src="images/maps/location-Onondaga.jpg";
imgSwitch[30].src="images/maps/location-Ontario.jpg";
imgSwitch[31].src="images/maps/location-Orange.jpg";
imgSwitch[32].src="images/maps/location-Orleans.jpg";
imgSwitch[33].src="images/maps/location-Oswego.jpg";
imgSwitch[34].src="images/maps/location-Otsego.jpg";
imgSwitch[35].src="images/maps/location-Putnam.jpg";
imgSwitch[36].src="images/maps/location-Rensselaer.jpg";
imgSwitch[37].src="images/maps/location-Rockland.jpg";
imgSwitch[38].src="images/maps/location-Saratoga.jpg";
imgSwitch[39].src="images/maps/location-Schenectady.jpg";
imgSwitch[40].src="images/maps/location-Seneca.jpg";
imgSwitch[41].src="images/maps/location-Schuyler.jpg";
imgSwitch[42].src="images/maps/location-Steuben.jpg";
imgSwitch[43].src="images/maps/location-St-lawrence.jpg";
imgSwitch[44].src="images/maps/location-Sullivan.jpg";
imgSwitch[45].src="images/maps/location-Tioga.jpg";
imgSwitch[46].src="images/maps/location-Warren.jpg";
imgSwitch[47].src="images/maps/location-Washington.jpg";
imgSwitch[48].src="images/maps/location-Wayne.jpg";
imgSwitch[49].src="images/maps/location-Westchester.jpg";
imgSwitch[50].src="images/maps/location-Wyoming.jpg";
imgSwitch[51].src="images/maps/location-Yates.jpg";
imgSwitch[52].src="images/maps/location-Schoharie.jpg";
imgSwitch[53].src="images/maps/location-Ulster-County.jpg";
function change(nImg, nCap)
{
	document.getElementById("picChange").src= imgSwitch[nImg-1].src;
	document.getElementById("picChange").height= imgSwitch[nImg-1].height;
	document.getElementById("picChange").width= imgSwitch[nImg-1].width;
	document.getElementById('imageCaption').innerHTML=nCap;
} // end function