//============================================================================================
// Loads all of the images needed for the map navigation buttons
function tocItem (name)
{
	this.on = new Image();
	this.on.src = "../images/" + name + "on.gif"
	this.off = new Image();
	this.off.src = "../images/" + name + "off.gif"
}

function toc_new (name)
{
	tocItem[name] = new tocItem(name);
}

function img_act (imgName)
{
	if (document.images) document[imgName].src = tocItem[imgName].on.src;
}

function img_inact (imgName)
{
	if (document.images) document [imgName].src = tocItem[imgName].off.src;
}

if (document.images != null) load_toc ('toc', 21);

function load_toc (name, num)
{
	for (i = 1; i <= num; i++) toc_new(name + i);
}

//============================================================================================
// Define a function to get the map object
function getMap()	//Get MGMap Object
{
   	if (navigator.appName == "Netscape")
		return parent.MAPFRAME.document.map;
	else
		return parent.MAPFRAME.map;
}

//============================================================================================
// Defines what the map navigation buttons do
// Zoom in
function zoomin()
{
	var theMap = getMap();
	if (!theMap.isBusy())
		theMap.zoomInMode();
	//else alert('The map is busy...Please try again in a few seconds.');
}

// Zoom out
function zoomout()
{
	var theMap = getMap();
	if (!theMap.isBusy())
		theMap.zoomOutMode();
	//else alert('The map is busy...Please try again in a few seconds.');
}

// Zoom to the previous windows extent
function zoomprevious()
{
	var theMap = getMap();
	if (!theMap.isBusy())
		theMap.zoomPrevious();
	//else alert('The map is busy...Please try again in a few seconds.');
}

// Zoom to the county's extent
function zoomcounty()
{
	var theMap = getMap();
	if (!theMap.isBusy())
		theMap.zoomOut();
	//else alert('The map is busy...Please try again in a few seconds.');
}

// Pan
function pan()
{
	var theMap = getMap();
	if (!theMap.isBusy())
		theMap.panMode();
	//else alert('The map is busy...Please try again in a few seconds.');
}

// Measure
function measure()
{
	var theMap = getMap();
	if (!theMap.isBusy())
		theMap.viewDistance('FT');
	//else alert('The map is busy...Please try again in a few seconds.');
}

// Print the map
function print()
{
	var theMap = getMap();
	if (!theMap.isBusy())
	{
		// Set parameters for map
		var theSetup = theMap.getPageSetup();
		theSetup.setIncludeLegend(false);
		theSetup.setUsePlotScale(false);
		theSetup.setInclude("mg_url", false);
		var theAttr = theSetup.getTitleTextAttr();
		theAttr.setFontName("Verdana");
//		theAttr.setFontStyle("Bold");
		theAttr.setHeight(10.0, "");
		theAttr.setHorizAlign(1);
		theAttr.setVertAlign(1);
		
		//construct the title and disclaimer
		var theTitle = 'Flood Control District of Maricopa County (FCDMC) - Unofficial Document'
		//if parcels are on, then need to include that in the disclaimer note
		var mapGroup = theMap.GetMapLayerGroup("Land");
		var mapLayer = theMap.getMapLayer("assessorparcel");
		if ((mapGroup.GetVisibility()) && (mapLayer.IsVisible()) && (theMap.getScale() <= 20000))
		{
			var theTitle = theTitle +
							'\nFCDMC does not guarantee the positional accuracy of the parcel lines. The parcel lines ' +
							'\nare for illustration purposes only and are not intended to be used as a survey product.'
					//		'\nThe assessors parcel boundary lines are not intended to be used as a survey product.'
		}
		//if the countywide contours are on, then need to include that in the disclaimer note
		var mapGroup = theMap.GetMapLayerGroup("Terrain");
		var mapLayer1 = theMap.getMapLayer("elv_ln_10ft_countywide");
		var mapLayer2 = theMap.getMapLayer("elv_pt_10ft_countywide");
		if ((mapGroup.GetVisibility()) && ((mapLayer1.IsVisible()) || (mapLayer2.IsVisible())) && (theMap.getScale() <= 10000))
		{
			var theTitle = theTitle +
							'\nContours: 10' + "' " + 'interval, NAVD88 vertical datum, captured 12/16/2000 through 2/21/2002, scale of capture 1"=500' + "'."
		}
		//append the aerial year to the title
		var theTitle = theTitle +
						'\nAerial year: ' + document.forms[0].SelectedYear.value
		theSetup.setTitle(theTitle);
		theMap.printDlg();
	}
	else alert('The map is busy...Please try again in a few seconds.');
}

// Copy map to the clipboard
function copyclipboard()
{
	var theMap = getMap();
	if (!theMap.isBusy())
		theMap.copyMap();
	//else alert('The map is busy...Please try again in a few seconds.');
}

// Select map objects
function selectobject()
{
	var theMap = getMap();
	if (!theMap.isBusy())
	{
		theMap.selectMode();
		
		//turn on the tile index if it has been turned off
		turnOnTileIndex(theMap)
	}
	//else alert('The map is busy...Please try again in a few seconds.');
}
		
//============================================================================================
// Functions that open another window
// Opens window for all of the quick zoom to/search by methods
function searchbyWinopen()
{
	window.open('searchbyindex.cfm','searchbyWin','toolbar=0,location=0,directories=0,status=0,menubar=0,dependent=no,scrollbars=0,resizable=0,height=335,width=500');
}

// Opens window for the help information
function helpWinopen()
{
	window.open('helpwin.cfm','helpWin','toolbar=0,location=0,directories=0,status=0,menubar=0,dependent=no,scrollbars=1,resizable=1,height=500,width=500');
}

// Opens window for the 1930 oblique photo location help
var obliquePhotoWin = null;
function help1930ObliquePhotoopen()
{
	obliquePhotoWin = window.open('help1930ObliquePhoto_Step1.cfm','help1930ObliquePhotoWin','toolbar=0,location=0,directories=0,status=1,menubar=1,dependent=no,scrollbars=1,resizable=1,height=500,width=840');
}

// Global variable for opening/closing window later
var reportWin = null;
// Create a report from the selected features
function reportWinopen()
{
	//Check to see if the map is busy.
	var theMap = getMap();
	if (!theMap.isBusy())
	{
		//Check to see if any records are selected.
		var theSelected = theMap.getSelection();
		if (theSelected.getNumObjects() == "0")
		{
			var msg="No tiles have been selected or there are no tiles available " +
					"\nin the area that you are viewing. Click on the arrow button " +
					"\nto make a selection and/or change viewing area."
			alert(msg);
		}
		else
		{
			//The selection could be parcels, need to check.
			//For the current year selected, check to see if any features are selected
			if (document.forms[0].SelectedYear.value == "FY 09/10 - 4inch")
			{
				var theLayer = theMap.getMapLayer("ortho2010-4inindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 09/10 - 4inch"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 09/10 - 1foot")
			{
				var theLayer = theMap.getMapLayer("ortho2010-1ftindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 09/10 - 1foot"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 08/09 - 4inch")
			{
				var theLayer = theMap.getMapLayer("ortho2009-4inindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 08/09 - 4inch"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 08/09 - 1foot")
			{
				var theLayer = theMap.getMapLayer("ortho2009-1ftindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 08/09 - 1foot"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 07/08 - 4inch")
			{
				var theLayer = theMap.getMapLayer("ortho2008-4inindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 07/08 - 4inch"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 07/08 - 6inch")
			{
				var theLayer = theMap.getMapLayer("ortho2008-6inindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 07/08 - 6inch"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 07/08 - 1foot")
			{
				var theLayer = theMap.getMapLayer("ortho2008-1ftindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 07/08 - 1foot"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 07/08 - 2foot")
			{
				var theLayer = theMap.getMapLayer("ortho2008-2ftindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 07/08 - 2foot"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 06/07 - 4inch")
			{
				var theLayer = theMap.getMapLayer("ortho2007-4inindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 06/07 - 4inch"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 06/07 - 1foot")
			{
				var theLayer = theMap.getMapLayer("ortho2007-1ftindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 06/07 - 1foot"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 05/06 - 4inch")
			{
				var theLayer = theMap.getMapLayer("ortho2006-4inindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 05/06 - 4inch"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 05/06 - 1foot")
			{
				var theLayer = theMap.getMapLayer("ortho2006-1ftindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 05/06 - 1foot"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 05/06 - 2foot")
			{
				var theLayer = theMap.getMapLayer("ortho2006-2ftindex");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 05/06 - 2foot"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 04/05")
			{
				var theLayer = theMap.getMapLayer("ortho2005index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 04/05"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 03/04")
			{
				var theLayer = theMap.getMapLayer("ortho2004index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 03/04"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}		
			else if (document.forms[0].SelectedYear.value == "FY 02/03")
			{
				var theLayer = theMap.getMapLayer("ortho2003index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 02/03"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 01/02")
			{
				var theLayer = theMap.getMapLayer("ortho2002index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 01/02"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 00/01")
			{
				var theLayer = theMap.getMapLayer("ortho2001index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 00/01"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 99/00")
			{
				var theLayer = theMap.getMapLayer("semi2000index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 99/00"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "98/99")
			{
				var theLayer = theMap.getMapLayer("semi1999index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "98/99"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 97/98")
			{
				var theLayer = theMap.getMapLayer("semi1998index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 97/98"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 96/97")
			{
				var theLayer = theMap.getMapLayer("semi1997index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 96/97"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "FY 92/93")
			{
				var theLayer = theMap.getMapLayer("semi1993index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "FY 92/93"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1991")
			{
				var theLayer = theMap.getMapLayer("semi1991index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1991"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1990")
			{
				var theLayer = theMap.getMapLayer("semi1990index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1990"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1986")
			{
				var theLayer = theMap.getMapLayer("semi1986index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1986"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1979")
			{
				var theLayer = theMap.getMapLayer("semi1979index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1979"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1969")
			{
				var theLayer = theMap.getMapLayer("semi1969index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1969"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1964")
			{
				var theLayer = theMap.getMapLayer("semi1964index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1964"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1962")
			{
				var theLayer = theMap.getMapLayer("semi1962index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1962"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1959")
			{
				var theLayer = theMap.getMapLayer("semi1959index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1959"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1951")
			{
				var theLayer = theMap.getMapLayer("semi1951index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1951"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1949")
			{
				var theLayer = theMap.getMapLayer("semi1949index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1949"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1937")
			{
				var theLayer = theMap.getMapLayer("semi1937index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1937"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			else if (document.forms[0].SelectedYear.value == "1930")
			{
				var theLayer = theMap.getMapLayer("semi1930index");
				if (theSelected.getMapObjectsEx(theLayer))
				{
					var theOrder = theSelected.getAsString(theLayer,"");
					var theYear = "1930"
					var theOrderSize = theSelected.getMapObjectsEx(theLayer).size()
				}
				else var theOrder = "";
			}
			
			//Are any aerial tiles selected.
			if (theOrder == "")
			{
				var msg="No tiles have been selected or there are no tiles available " +
					"\nin the area that you are viewing. Click on the arrow button " +
					"\nto make a selection and/or change viewing area."
				alert(msg);
			}
			else
			{
				//Selected features need to be aerial tiles, not parcels.
				if (theOrderSize > "375")
				{
					var msg="You have selected more than 375 aerial photo tiles. To make this " +
							"\nlarge of a request, you will need to place separate orders with " +
							"\neach order containing no more than 375 aerial photo tiles, or " +
							"\ncontact Eric Feldman directly at (602) 506-8736."
					alert(msg);
				}
				else
				{
					//Focus on the report window if open
					if (reportWin)
					{
						reportWin.focus();
					}		
					//Send selected features to the report generator and open a window with the results
					var theSearch = "reportOrder.cfm?purchase=" + theOrder + "&databaseyear=" + theYear;
					reportWin = window.open(theSearch,'reportWin','toolbar=0,location=0,directories=0,status=1,menubar=0,dependent=no,scrollbars=1,resizable=0,height=400,width=700');
					reportWin.focus();
				}
			}
		}
	}
	else alert('The map is busy...Please try again in a few seconds.');
}

//============================================================================================
// Zoom functions called from address, street intersection and township/range windows
//  Zooms to the extents passed into this function by zoom to address
function zoomToExtents(MinX, MinY, MaxX, MaxY, zoomScale)
{
	var theMap = getMap();
	var centerY = (MinX + MaxX) / 2.0;
	var centerX = (MinY + MaxY) / 2.0;
	theMap.setAutoRefresh(true);  
	var result = theMap.zoomScale(centerX,centerY, zoomScale);
}

//  Zooms to the extents passed into this function by zoom to intersection and township/range
function zoomToLocation(lat, lon, zoomScale)
{
	var theMap = getMap();
	theMap.setAutoRefresh(true);  
	var result = theMap.zoomScale(lat, lon, zoomScale);
}

// Turns on the parcel group and/or layer and then passes the extents to zoomToExtents
function zoomToParcel(MinX, MinY, MaxX, MaxY, zoomScale)
{
	var theMap = getMap();
	
	//prevent theMap from entering a busy state
	theMap.SetAutoRefresh(false)
	
	//check to see if the parcel group and boundary layer are on
	var mapGroup = theMap.GetMapLayerGroup("Land")
	var mapLayer = theMap.getMapLayer("assessorparcel");
	//turn on the parcel layer
	var mapLayerOff = false
	if (!mapLayer.IsVisible())
	{
		var mapLayerOff = true
		mapLayer.SetVisibility(true)
	}
	//turn on the parcel group
	var mapGroupOff = false
	if (!mapGroup.GetVisibility())
	{
		var mapGroupOff = true
		mapGroup.SetVisibility(true)
		//mapLayer.setrebuild(true)
	}
	//if the layer group or layer was off, then the legend and map need to be refreshed
	if ((mapLayerOff) || (mapGroupOff))
	{
		theMap.RedrawLegend()
	}
//	theMap.setAutoRefresh(true);
    zoomToExtents(MinX, MinY, MaxX, MaxY, zoomScale)
}

//============================================================================================
//to keep the drop down list and the map in-sync, don't allow the year to be changed when the 
//map is busy
function checkMapStatus()
{
	var theMap = getMap();
	if (theMap.isBusy())
	{
		alert("The aerials cannot be changed while the map is busy. " +
			"\nTry again when the map is finished drawing.");
	}
}

// Only one aerial group layer and tile index can be turned on at a time for viewing/purchasing.
// Setup layer to be from the most recent to the oldest since most people want most recent.
// Set a variable to false for the 1930 layer previously being viewed. This is so that the 
// oblique message only appears the first time the layer is accessed.
aerial1930View = false
function aerialLayerGroupSettings()
{
	var theMap = getMap();
	if (!theMap.isBusy())
	{
		//prevent theMap from entering a busy state
		theMap.SetAutoRefresh(false)
		
		//set a variable for each aerial layer group
		var aerials10_4inLayerGroup = theMap.GetMapLayerGroup("Aerials FY 09/10 - 4inch");
		var aerials10_1ftLayerGroup = theMap.GetMapLayerGroup("Aerials FY 09/10 - 1foot");
		var aerials09_4inLayerGroup = theMap.GetMapLayerGroup("Aerials FY 08/09 - 4inch");
		var aerials09_1ftLayerGroup = theMap.GetMapLayerGroup("Aerials FY 08/09 - 1foot");
		var aerials08_4inLayerGroup = theMap.GetMapLayerGroup("Aerials FY 07/08 - 4inch");
		var aerials08_6inLayerGroup = theMap.GetMapLayerGroup("Aerials FY 07/08 - 6inch");
		var aerials08_1ftLayerGroup = theMap.GetMapLayerGroup("Aerials FY 07/08 - 1foot");
		var aerials08_2ftLayerGroup = theMap.GetMapLayerGroup("Aerials FY 07/08 - 2foot");
		var aerials07_4inLayerGroup = theMap.GetMapLayerGroup("Aerials FY 06/07 - 4inch");
		var aerials07_1ftLayerGroup = theMap.GetMapLayerGroup("Aerials FY 06/07 - 1foot");
		var aerials06_4inLayerGroup = theMap.GetMapLayerGroup("Aerials FY 05/06 - 4inch");
		var aerials06_1ftLayerGroup = theMap.GetMapLayerGroup("Aerials FY 05/06 - 1foot");
		var aerials06_2ftLayerGroup = theMap.GetMapLayerGroup("Aerials FY 05/06 - 2foot");
		var aerials05LayerGroup = theMap.GetMapLayerGroup("Aerials FY 04/05");
		var aerials04LayerGroup = theMap.GetMapLayerGroup("Aerials FY 03/04");
		var aerials03LayerGroup = theMap.GetMapLayerGroup("Aerials FY 02/03");
		var aerials02LayerGroup = theMap.GetMapLayerGroup("Aerials FY 01/02");
		var aerials01LayerGroup = theMap.GetMapLayerGroup("Aerials FY 00/01");
		var aerials00LayerGroup = theMap.GetMapLayerGroup("Aerials FY 99/00");
		var aerials99LayerGroup = theMap.GetMapLayerGroup("Aerials 98/99");
		var aerials98LayerGroup = theMap.GetMapLayerGroup("Aerials FY 97/98");
		var aerials97LayerGroup = theMap.GetMapLayerGroup("Aerials FY 96/97");
		var aerials93LayerGroup = theMap.GetMapLayerGroup("Aerials FY 92/93");
		var aerials91LayerGroup = theMap.GetMapLayerGroup("Aerials 1991");
		var aerials90LayerGroup = theMap.GetMapLayerGroup("Aerials 1990");
		var aerials86LayerGroup = theMap.GetMapLayerGroup("Aerials 1986");
		var aerials79LayerGroup = theMap.GetMapLayerGroup("Aerials 1979");
		var aerials69LayerGroup = theMap.GetMapLayerGroup("Aerials 1969");
		var aerials64LayerGroup = theMap.GetMapLayerGroup("Aerials 1964");
		var aerials62LayerGroup = theMap.GetMapLayerGroup("Aerials 1962");
		var aerials59LayerGroup = theMap.GetMapLayerGroup("Aerials 1959");
		var aerials51LayerGroup = theMap.GetMapLayerGroup("Aerials 1951");
		var aerials49LayerGroup = theMap.GetMapLayerGroup("Aerials 1949");
		var aerials37LayerGroup = theMap.GetMapLayerGroup("Aerials 1937");
		var aerials30LayerGroup = theMap.GetMapLayerGroup("Aerials 1930");
		
		//turn off all aerial layer groups
		aerials10_4inLayerGroup.SetVisibility(false)
		aerials10_1ftLayerGroup.SetVisibility(false)
		aerials09_4inLayerGroup.SetVisibility(false)
		aerials09_1ftLayerGroup.SetVisibility(false)
		aerials08_4inLayerGroup.SetVisibility(false)
		aerials08_6inLayerGroup.SetVisibility(false)
		aerials08_1ftLayerGroup.SetVisibility(false)
		aerials08_2ftLayerGroup.SetVisibility(false)
		aerials07_4inLayerGroup.SetVisibility(false)
		aerials07_1ftLayerGroup.SetVisibility(false)
		aerials06_4inLayerGroup.SetVisibility(false)
		aerials06_1ftLayerGroup.SetVisibility(false)
		aerials06_2ftLayerGroup.SetVisibility(false)
		aerials05LayerGroup.SetVisibility(false)
		aerials04LayerGroup.SetVisibility(false)
		aerials03LayerGroup.SetVisibility(false)
		aerials02LayerGroup.SetVisibility(false)
		aerials01LayerGroup.SetVisibility(false)
		aerials00LayerGroup.SetVisibility(false)
		aerials99LayerGroup.SetVisibility(false)
		aerials98LayerGroup.SetVisibility(false)
		aerials97LayerGroup.SetVisibility(false)
		aerials93LayerGroup.SetVisibility(false)
		aerials91LayerGroup.SetVisibility(false)
		aerials90LayerGroup.SetVisibility(false)
		aerials86LayerGroup.SetVisibility(false)
		aerials79LayerGroup.SetVisibility(false)
		aerials69LayerGroup.SetVisibility(false)
		aerials64LayerGroup.SetVisibility(false)
		aerials62LayerGroup.SetVisibility(false)
		aerials59LayerGroup.SetVisibility(false)
		aerials51LayerGroup.SetVisibility(false)
		aerials49LayerGroup.SetVisibility(false)
		aerials37LayerGroup.SetVisibility(false)
		aerials30LayerGroup.SetVisibility(false)
		
		//set a variable for each aerial tile index layer
		var aerials10_4inIndexLayer = theMap.GetMapLayer("ortho2010-4inindex");
		var aerials10_1ftIndexLayer = theMap.GetMapLayer("ortho2010-1ftindex");
		var aerials09_4inIndexLayer = theMap.GetMapLayer("ortho2009-4inindex");
		var aerials09_1ftIndexLayer = theMap.GetMapLayer("ortho2009-1ftindex");
		var aerials08_4inIndexLayer = theMap.GetMapLayer("ortho2008-4inindex");
		var aerials08_6inIndexLayer = theMap.GetMapLayer("ortho2008-6inindex");
		var aerials08_1ftIndexLayer = theMap.GetMapLayer("ortho2008-1ftindex");
		var aerials08_2ftIndexLayer = theMap.GetMapLayer("ortho2008-2ftindex");
		var aerials07_4inIndexLayer = theMap.GetMapLayer("ortho2007-4inindex");
		var aerials07_1ftIndexLayer = theMap.GetMapLayer("ortho2007-1ftindex");
		var aerials06_4inIndexLayer = theMap.GetMapLayer("ortho2006-4inindex");
		var aerials06_1ftIndexLayer = theMap.GetMapLayer("ortho2006-1ftindex");
		var aerials06_2ftIndexLayer = theMap.GetMapLayer("ortho2006-2ftindex");
		var aerials05IndexLayer = theMap.GetMapLayer("ortho2005index");
		var aerials04IndexLayer = theMap.GetMapLayer("ortho2004index");
		var aerials03IndexLayer = theMap.GetMapLayer("ortho2003index");
		var aerials02IndexLayer = theMap.GetMapLayer("ortho2002index");
		var aerials01IndexLayer = theMap.GetMapLayer("ortho2001index");
		var aerials00IndexLayer = theMap.GetMapLayer("semi2000index");
		var aerials99IndexLayer = theMap.GetMapLayer("semi1999index");
		var aerials98IndexLayer = theMap.GetMapLayer("semi1998index");
		var aerials97IndexLayer = theMap.GetMapLayer("semi1997index");
		var aerials93IndexLayer = theMap.GetMapLayer("semi1993index");
		var aerials91IndexLayer = theMap.GetMapLayer("semi1991index");
		var aerials90IndexLayer = theMap.GetMapLayer("semi1990index");
		var aerials86IndexLayer = theMap.GetMapLayer("semi1986index");
		var aerials79IndexLayer = theMap.GetMapLayer("semi1979index");
		var aerials69IndexLayer = theMap.GetMapLayer("semi1969index");
		var aerials64IndexLayer = theMap.GetMapLayer("semi1964index");
		var aerials62IndexLayer = theMap.GetMapLayer("semi1962index");
		var aerials59IndexLayer = theMap.GetMapLayer("semi1959index");
		var aerials51IndexLayer = theMap.GetMapLayer("semi1951index");
		var aerials49IndexLayer = theMap.GetMapLayer("semi1949index");
		var aerials37IndexLayer = theMap.GetMapLayer("semi1937index");
		var aerials30IndexLayer = theMap.GetMapLayer("semi1930index");
		
//changed the process to turn on the tile index automatically if the user turned it off
/*		
		//determine if the current aerial tile index layer is turned on
		if (aerials05IndexLayer.getShowInLegend())
			var tileIndexVisible = aerials05IndexLayer.GetVisibility()
		else if (aerials04IndexLayer.getShowInLegend())
			var tileIndexVisible = aerials04IndexLayer.GetVisibility()
		else if (aerials03IndexLayer.getShowInLegend())
			var tileIndexVisible = aerials03IndexLayer.GetVisibility()
		else if (aerials02IndexLayer.getShowInLegend())
			var tileIndexVisible = aerials02IndexLayer.GetVisibility()
		else if (aerials01IndexLayer.getShowInLegend())
			var tileIndexVisible = aerials01IndexLayer.GetVisibility()
*/		
		//turn off all aerial tile index layers from displaying in the legend
		aerials10_4inIndexLayer.setShowInLegend(false)
		aerials10_1ftIndexLayer.setShowInLegend(false)
		aerials09_4inIndexLayer.setShowInLegend(false)
		aerials09_1ftIndexLayer.setShowInLegend(false)
		aerials08_4inIndexLayer.setShowInLegend(false)
		aerials08_6inIndexLayer.setShowInLegend(false)
		aerials08_1ftIndexLayer.setShowInLegend(false)
		aerials08_2ftIndexLayer.setShowInLegend(false)
		aerials07_4inIndexLayer.setShowInLegend(false)
		aerials07_1ftIndexLayer.setShowInLegend(false)
		aerials06_4inIndexLayer.setShowInLegend(false)
		aerials06_1ftIndexLayer.setShowInLegend(false)
		aerials06_2ftIndexLayer.setShowInLegend(false)
		aerials05IndexLayer.setShowInLegend(false)
		aerials04IndexLayer.setShowInLegend(false)
		aerials03IndexLayer.setShowInLegend(false)
		aerials02IndexLayer.setShowInLegend(false)
		aerials01IndexLayer.setShowInLegend(false)
		aerials00IndexLayer.setShowInLegend(false)
		aerials99IndexLayer.setShowInLegend(false)
		aerials98IndexLayer.setShowInLegend(false)
		aerials97IndexLayer.setShowInLegend(false)
		aerials93IndexLayer.setShowInLegend(false)
		aerials91IndexLayer.setShowInLegend(false)
		aerials90IndexLayer.setShowInLegend(false)
		aerials86IndexLayer.setShowInLegend(false)
		aerials79IndexLayer.setShowInLegend(false)
		aerials69IndexLayer.setShowInLegend(false)
		aerials64IndexLayer.setShowInLegend(false)
		aerials62IndexLayer.setShowInLegend(false)
		aerials59IndexLayer.setShowInLegend(false)
		aerials51IndexLayer.setShowInLegend(false)
		aerials49IndexLayer.setShowInLegend(false)
		aerials37IndexLayer.setShowInLegend(false)
		aerials30IndexLayer.setShowInLegend(false)
		
		//turn off all aerial tile index layers
		aerials10_4inIndexLayer.SetVisibility(false)
		aerials10_1ftIndexLayer.SetVisibility(false)
		aerials09_4inIndexLayer.SetVisibility(false)
		aerials09_1ftIndexLayer.SetVisibility(false)
		aerials08_4inIndexLayer.SetVisibility(false)
		aerials08_6inIndexLayer.SetVisibility(false)
		aerials08_1ftIndexLayer.SetVisibility(false)
		aerials08_2ftIndexLayer.SetVisibility(false)
		aerials07_4inIndexLayer.SetVisibility(false)
		aerials07_1ftIndexLayer.SetVisibility(false)
		aerials06_4inIndexLayer.SetVisibility(false)
		aerials06_1ftIndexLayer.SetVisibility(false)
		aerials06_2ftIndexLayer.SetVisibility(false)
		aerials05IndexLayer.SetVisibility(false)
		aerials04IndexLayer.SetVisibility(false)
		aerials03IndexLayer.SetVisibility(false)
		aerials02IndexLayer.SetVisibility(false)
		aerials01IndexLayer.SetVisibility(false)
		aerials00IndexLayer.SetVisibility(false)
		aerials99IndexLayer.SetVisibility(false)
		aerials98IndexLayer.SetVisibility(false)
		aerials97IndexLayer.SetVisibility(false)
		aerials93IndexLayer.SetVisibility(false)
		aerials91IndexLayer.SetVisibility(false)
		aerials90IndexLayer.SetVisibility(false)
		aerials86IndexLayer.SetVisibility(false)
		aerials79IndexLayer.SetVisibility(false)
		aerials69IndexLayer.SetVisibility(false)
		aerials64IndexLayer.SetVisibility(false)
		aerials62IndexLayer.SetVisibility(false)
		aerials59IndexLayer.SetVisibility(false)
		aerials51IndexLayer.SetVisibility(false)
		aerials49IndexLayer.SetVisibility(false)
		aerials37IndexLayer.SetVisibility(false)
		aerials30IndexLayer.SetVisibility(false)
		
		//turn on the selected layer group
		if (document.forms[0].SelectedYear.value == "FY 09/10 - 4inch")
		{
			aerials10_4inLayerGroup.SetVisibility(true)
			aerials10_4inIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials10_4inIndexLayer.getVisibility())
				aerials10_4inIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 09/10 - 1foot")
		{
			aerials10_1ftLayerGroup.SetVisibility(true)
			aerials10_1ftIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials10_1ftIndexLayer.getVisibility())
				aerials10_1ftIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 08/09 - 4inch")
		{
			aerials09_4inLayerGroup.SetVisibility(true)
			aerials09_4inIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials09_4inIndexLayer.getVisibility())
				aerials09_4inIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 08/09 - 1foot")
		{
			aerials09_1ftLayerGroup.SetVisibility(true)
			aerials09_1ftIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials09_1ftIndexLayer.getVisibility())
				aerials09_1ftIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 07/08 - 4inch")
		{
			aerials08_4inLayerGroup.SetVisibility(true)
			aerials08_4inIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials08_4inIndexLayer.getVisibility())
				aerials08_4inIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 07/08 - 6inch")
		{
			aerials08_6inLayerGroup.SetVisibility(true)
			aerials08_6inIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials08_6inIndexLayer.getVisibility())
				aerials08_6inIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 07/08 - 1foot")
		{
			aerials08_1ftLayerGroup.SetVisibility(true)
			aerials08_1ftIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials08_1ftIndexLayer.getVisibility())
				aerials08_1ftIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 07/08 - 2foot")
		{
			aerials08_2ftLayerGroup.SetVisibility(true)
			aerials08_2ftIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials08_2ftIndexLayer.getVisibility())
				aerials08_2ftIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 06/07 - 4inch")
		{
			aerials07_4inLayerGroup.SetVisibility(true)
			aerials07_4inIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials07_4inIndexLayer.getVisibility())
				aerials07_4inIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 06/07 - 1foot")
		{
			aerials07_1ftLayerGroup.SetVisibility(true)
			aerials07_1ftIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials07_1ftIndexLayer.getVisibility())
				aerials07_1ftIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 05/06 - 4inch")
		{
			aerials06_4inLayerGroup.SetVisibility(true)
			aerials06_4inIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials06_4inIndexLayer.getVisibility())
				aerials06_4inIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 05/06 - 1foot")
		{
			aerials06_1ftLayerGroup.SetVisibility(true)
			aerials06_1ftIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials06_1ftIndexLayer.getVisibility())
				aerials06_1ftIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 05/06 - 2foot")
		{
			aerials06_2ftLayerGroup.SetVisibility(true)
			aerials06_2ftIndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials06_2ftIndexLayer.getVisibility())
				aerials06_2ftIndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 04/05")
		{
			aerials05LayerGroup.SetVisibility(true)
			aerials05IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials05IndexLayer.getVisibility())
				aerials05IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 03/04")
		{
			aerials04LayerGroup.SetVisibility(true)
			aerials04IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials04IndexLayer.getVisibility())
				aerials04IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 02/03")
		{
			aerials03LayerGroup.SetVisibility(true)
			aerials03IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials03IndexLayer.getVisibility())
				aerials03IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 01/02")
		{
			aerials02LayerGroup.SetVisibility(true)
			aerials02IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials02IndexLayer.getVisibility())
				aerials02IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 00/01")
		{
			aerials01LayerGroup.SetVisibility(true)
			aerials01IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials01IndexLayer.getVisibility())
				aerials01IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 99/00")
		{
			aerials00LayerGroup.SetVisibility(true)
			aerials00IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials00IndexLayer.getVisibility())
				aerials00IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "98/99")
		{
			aerials99LayerGroup.SetVisibility(true)
			aerials99IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials99IndexLayer.getVisibility())
				aerials99IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 97/98")
		{
			aerials98LayerGroup.SetVisibility(true)
			aerials98IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials98IndexLayer.getVisibility())
				aerials98IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 96/97")
		{
			aerials97LayerGroup.SetVisibility(true)
			aerials97IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials97IndexLayer.getVisibility())
				aerials97IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "FY 92/93")
		{
			aerials93LayerGroup.SetVisibility(true)
			aerials93IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials93IndexLayer.getVisibility())
				aerials93IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1991")
		{
			aerials91LayerGroup.SetVisibility(true)
			aerials91IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials91IndexLayer.getVisibility())
				aerials91IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1990")
		{
			aerials90LayerGroup.SetVisibility(true)
			aerials90IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials90IndexLayer.getVisibility())
				aerials90IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1986")
		{
			aerials86LayerGroup.SetVisibility(true)
			aerials86IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials86IndexLayer.getVisibility())
				aerials86IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1979")
		{
			aerials79LayerGroup.SetVisibility(true)
			aerials79IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials79IndexLayer.getVisibility())
				aerials79IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1969")
		{
			aerials69LayerGroup.SetVisibility(true)
			aerials69IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials69IndexLayer.getVisibility())
				aerials69IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1964")
		{
			aerials64LayerGroup.SetVisibility(true)
			aerials64IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials64IndexLayer.getVisibility())
				aerials64IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1962")
		{
			aerials62LayerGroup.SetVisibility(true)
			aerials62IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials62IndexLayer.getVisibility())
				aerials62IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1959")
		{
			aerials59LayerGroup.SetVisibility(true)
			aerials59IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials59IndexLayer.getVisibility())
				aerials59IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1951")
		{
			aerials51LayerGroup.SetVisibility(true)
			aerials51IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials51IndexLayer.getVisibility())
				aerials51IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1949")
		{
			aerials49LayerGroup.SetVisibility(true)
			aerials49IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials49IndexLayer.getVisibility())
				aerials49IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1937")
		{
			aerials37LayerGroup.SetVisibility(true)
			aerials37IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials37IndexLayer.getVisibility())
				aerials37IndexLayer.SetVisibility(true)
		}
		else if (document.forms[0].SelectedYear.value == "1930")
		{
			aerials30LayerGroup.SetVisibility(true)
			aerials30IndexLayer.setShowInLegend(true)
			//turn on the tiles if the previous tile index was on
//			if (tileIndexVisible)
			if (!aerials30IndexLayer.getVisibility())
				aerials30IndexLayer.SetVisibility(true)
			
			//set the variable to true for the layer previously being viewed
			if (!aerial1930View)
			{
				msg="The 1930 aerial photography has some oblique photos associated " +
					"\nwith it. Click on the select button and look for the blue directional " +
					"\narrows on the map. Move the mouse over a directional arrow. The " +
					"\nselect tool will change to a hand. Double click on the directional " +
					"\narrow to view the oblique photo for that location. The direction of " +
					"\nthe arrow indicates the way that the camera was facing. "
/*
					"\n\nThere are many oblique photos that have not been located yet. " +
					"\nIf you would like to help us locate where these are at, please " +
					"\nclick on the link on the right side of the map and follow the " +
					"\ninstructions."
*/
				alert(msg);
				aerial1930View = true
			}
		}
		
		//Currently the only year with oblique photography is 1930. The mapinfo window gets
		//changed to another message (oblique photo location help) in this case.
		if (document.forms[0].SelectedYear.value == "1930")
		{
//			parent.MAPINFO.location.href="./mapinfo-1930obliquephoto.cfm"
			var obliques30Layer = theMap.GetMapLayer("1930 Oblique Photography");
			obliques30Layer.setShowInLegend(true)
			obliques30Layer.SetVisibility(true)
		}
		else
		{
//			parent.MAPINFO.location.href="./mapinfo.cfm"
			var obliques30Layer = theMap.GetMapLayer("1930 Oblique Photography");
			obliques30Layer.setShowInLegend(false)
			obliques30Layer.SetVisibility(false)
		}
		
		//refresh the map
		theMap.RedrawLegend()
		theMap.SetAutoRefresh(true)
		theMap.Refresh()
	}
	else alert('The map is busy...Please try again in a few seconds.');
}

//
function turnOnTileIndex(theMap)
{
	//called from the selectobject function
	//prevent theMap from entering a busy state
	theMap.SetAutoRefresh(false)
	
	//turn on the current tile index if the user has turned it off
	if (document.forms[0].SelectedYear.value == "FY 09/10 - 4inch")
	{
		var indexLayer = theMap.GetMapLayer("ortho2010-4inindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 09/10 - 1foot")
	{
		var indexLayer = theMap.GetMapLayer("ortho2010-1ftindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 08/09 - 4inch")
	{
		var indexLayer = theMap.GetMapLayer("ortho2009-4inindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 08/09 - 1foot")
	{
		var indexLayer = theMap.GetMapLayer("ortho2009-1ftindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 07/08 - 4inch")
	{
		var indexLayer = theMap.GetMapLayer("ortho2008-4inindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 07/08 - 6inch")
	{
		var indexLayer = theMap.GetMapLayer("ortho2008-6inindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 07/08 - 1foot")
	{
		var indexLayer = theMap.GetMapLayer("ortho2008-1ftindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 07/08 - 2foot")
	{
		var indexLayer = theMap.GetMapLayer("ortho2008-2ftindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 06/07 - 4inch")
	{
		var indexLayer = theMap.GetMapLayer("ortho2007-4inindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 06/07 - 1foot")
	{
		var indexLayer = theMap.GetMapLayer("ortho2007-1ftindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 05/06 - 4inch")
	{
		var indexLayer = theMap.GetMapLayer("ortho2006-4inindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 05/06 - 1foot")
	{
		var indexLayer = theMap.GetMapLayer("ortho2006-1ftindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 05/06 - 2foot")
	{
		var indexLayer = theMap.GetMapLayer("ortho2006-2ftindex");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 04/05")
	{
		var indexLayer = theMap.GetMapLayer("ortho2005index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 03/04")
	{
		var indexLayer = theMap.GetMapLayer("ortho2004index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 02/03")
	{
		var indexLayer = theMap.GetMapLayer("ortho2003index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 01/02")
	{
		var indexLayer = theMap.GetMapLayer("ortho2002index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 00/01")
	{
		var indexLayer = theMap.GetMapLayer("ortho2001index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 99/00")
	{
		var indexLayer = theMap.GetMapLayer("semi2000index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "98/99")
	{
		var indexLayer = theMap.GetMapLayer("semi1999index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 97/98")
	{
		var indexLayer = theMap.GetMapLayer("semi1998index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 96/97")
	{
		var indexLayer = theMap.GetMapLayer("semi1997index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "FY 92/93")
	{
		var indexLayer = theMap.GetMapLayer("semi1993index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1991")
	{
		var indexLayer = theMap.GetMapLayer("semi1991index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1990")
	{
		var indexLayer = theMap.GetMapLayer("semi1990index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1986")
	{
		var indexLayer = theMap.GetMapLayer("semi1986index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1979")
	{
		var indexLayer = theMap.GetMapLayer("semi1979index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1969")
	{
		var indexLayer = theMap.GetMapLayer("semi1969index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1964")
	{
		var indexLayer = theMap.GetMapLayer("semi1964index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1962")
	{
		var indexLayer = theMap.GetMapLayer("semi1962index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1959")
	{
		var indexLayer = theMap.GetMapLayer("semi1959index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1951")
	{
		var indexLayer = theMap.GetMapLayer("semi1951index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1949")
	{
		var indexLayer = theMap.GetMapLayer("semi1949index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1937")
	{
		var indexLayer = theMap.GetMapLayer("semi1937index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	else if (document.forms[0].SelectedYear.value == "1930")
	{
		var indexLayer = theMap.GetMapLayer("semi1930index");
		var indexVisible = indexLayer.GetVisibility();
		if (!indexVisible)
			indexLayer.SetVisibility(true)
	}
	
	//refresh the map
	theMap.RedrawLegend()
	theMap.SetAutoRefresh(true)
	theMap.Refresh()	
}

// display basic information on the currently selected aerials
function currentAerialInfo()
{
	//display a information message box for the current selected aerials
	if (document.forms[0].SelectedYear.value == "FY 09/10 - 4inch")
	{
		var msg = "Fiscal Year (FY): July 1, 2009 to June 30, 2010 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 50 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.32 foot pixel resolution. The " +
			"\nflight dates range from Oct. 17, 2009 through Nov. 10, 2009." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $250.00. The file sizes for the color aerials are much larger than " +
			"\nthe black & white aerials from previous years. A TIFF file (one tile) " +
			"\naverage size is 700 megabytes and a SID file (one tile) average " +
			"\nsize is 35 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 09/10 - 1foot")
	{
		var msg = "Fiscal Year (FY): July 1, 2009 to June 30, 2010 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.8 foot pixel resolution. The " +
			"\nflight dates range from Oct. 17, 2009 through Nov. 15, 2009." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $75.00. The file sizes for the color aerials are much larger than " +
			"\nthe black & white aerials from previous years. A TIFF file (one tile) " +
			"\naverage size is 111 megabytes and a SID file (one tile) average " +
			"\nsize is 6 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 08/09 - 4inch")
	{
		var msg = "Fiscal Year (FY): July 1, 2008 to June 30, 2009 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 50 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.32 foot pixel resolution. The " +
			"\nflight dates range from Oct. 26, 2008 through Dec. 21, 2008." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $125.00. The file sizes for the color aerials are much larger than " +
			"\nthe black & white aerials from previous years. A TIFF file (one tile) " +
			"\naverage size is 700 megabytes and a SID file (one tile) average " +
			"\nsize is 35 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 08/09 - 1foot")
	{
		var msg = "Fiscal Year (FY): July 1, 2008 to June 30, 2009 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.8 foot pixel resolution. The " +
			"\nflight dates range from Oct. 25, 2008 through Dec. 21, 2008." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $50.00. The file sizes for the color aerials are much larger than " +
			"\nthe black & white aerials from previous years. A TIFF file (one tile) " +
			"\naverage size is 111 megabytes and a SID file (one tile) average " +
			"\nsize is 6 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 07/08 - 4inch")
	{
		var msg = "Fiscal Year (FY): July 1, 2007 to June 30, 2008 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 50 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.32 foot pixel resolution. The " +
			"\nflight dates range from Oct. 25, 2007 through Dec. 14, 2007." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $125.00. The file sizes for the color aerials are much larger than " +
			"\nthe black & white aerials from previous years. A TIFF file (one tile) " +
			"\naverage size is 700 megabytes and a SID file (one tile) average " +
			"\nsize is 35 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 07/08 - 6inch")
	{
		var msg = "Fiscal Year (FY): July 1, 2007 to June 30, 2008 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 100 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.50 foot pixel resolution. The " +
			"\nflight dates range from Oct. 23, 2007 through Dec. 3, 2007." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $100.00. The file sizes for the color aerials are much larger than " +
			"\nthe black & white aerials from previous years. A TIFF file (one tile) " +
			"\naverage size is 111 megabytes and a SID file (one tile) average " +
			"\nsize is 6 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 07/08 - 1foot")
	{
		var msg = "Fiscal Year (FY): July 1, 2007 to June 30, 2008 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.8 foot pixel resolution. The " +
			"\nflight dates range from Oct. 23, 2007 through Jan. 9, 2008." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $50.00. The file sizes for the color aerials are much larger than " +
			"\nthe black & white aerials from previous years. A TIFF file (one tile) " +
			"\naverage size is 111 megabytes and a SID file (one tile) average " +
			"\nsize is 6 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 07/08 - 2foot")
	{
		var msg = "Fiscal Year (FY): July 1, 2007 to June 30, 2008 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.8 foot pixel resolution. The " +
			"\nflight dates range from Oct. 23, 2007 through Jan. 9, 2008." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF image format. " +
			"\nThis product is not sold on a per image basis. All images (4839) that " +
			"\nmake up this feature are sold as a single bundled product, no alter- " +
			"\nations. The price is $500.00."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 06/07 - 4inch")
	{
		var msg = "Fiscal Year (FY): July 1, 2006 to June 30, 2007 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 50 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.32 foot pixel resolution. The " +
			"\nflight dates range from Oct. 27, 2006 through Nov. 21, 2006." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $125.00. The file sizes for the color aerials are much larger than " +
			"\nthe black & white aerials from previous years. A TIFF file (one tile) " +
			"\naverage size is 700 megabytes and a SID file (one tile) average " +
			"\nsize is 35 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 06/07 - 1foot")
	{
		var msg = "Fiscal Year (FY): July 1, 2006 to June 30, 2007 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.8 foot pixel resolution. The " +
			"\nflight dates range from Oct. 27, 2006 through Nov. 21, 2006." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $50.00. The file sizes for the color aerials are much larger than " +
			"\nthe black & white aerials from previous years. A TIFF file (one tile) " +
			"\naverage size is 111 megabytes and a SID file (one tile) average " +
			"\nsize is 6 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 05/06 - 4inch")
	{
		var msg = "Fiscal Year (FY): July 1, 2005 to June 30, 2006 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 50 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.32 foot pixel resolution. The " +
			"\nflight dates range from Jan. 7, 2006 through Feb. 11, 2006." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $125.00. The file sizes for the color aerials are much larger than " +
			"\nthe black & white aerials from previous years. A TIFF file (one tile) " +
			"\naverage size is 700 megabytes and a SID file (one tile) average " +
			"\nsize is 35 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 05/06 - 1foot")
	{
		var msg = "Fiscal Year (FY): July 1, 2005 to June 30, 2006 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.8 foot pixel resolution. The " +
			"\nflight dates range from Jan. 7, 2006 through Feb. 11, 2006." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $50.00. The file sizes for the color aerials are much larger than " +
			"\nthe black & white aerials from previous years. A TIFF file (one tile) " +
			"\naverage size is 111 megabytes and a SID file (one tile) average " +
			"\nsize is 6 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 05/06 - 2foot")
	{
		var msg = "Fiscal Year (FY): July 1, 2005 to June 30, 2006 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 10000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 2 foot pixel resolution. The " +
			"\nflight dates range from Jan. 7, 2006 through Feb. 11, 2006." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in SID image " +
			"\nformat. This product is not sold on a per image basis. All images " +
			"\n(5479) that make up this feature are sold as a single bundled product, " +
			"\nno alterations. The price is $150.00."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 04/05")
	{
		var msg = "Fiscal Year (FY): July 1, 2004 to June 30, 2005 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.8 foot pixel resolution. The " +
			"\nflight dates range from Nov. 4, 2004 through Dec. 3, 2004." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $50.00. The file sizes for the color aerials are much larger " +
			"\nthan the black & white aerials from previous years. A TIFF file " +
			"\n(one tile) average size is 111 megabytes and a SID file (one tile)" +
			"\naverage size is 6 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 03/04")
	{
		var msg = "Fiscal Year (FY): July 1, 2003 to June 30, 2004 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 0.8 foot pixel resolution. The " +
			"\nflight dates range from Dec. 3, 2003 through Jan. 8, 2004." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in color and available in TIF and SID " +
			"\nimage formats. It is sold based on a predefined 5000' x 5000' tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. The price per image " +
			"\nis $50.00. The file sizes for the color aerials are much larger " +
			"\nthan the black & white aerials from previous years. A TIFF file " +
			"\n(one tile) average size is 111 megabytes and a SID file (one tile)" +
			"\naverage size is 6 megabytes."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 02/03")
	{
		var msg = "Fiscal Year (FY): July 1, 2002 to June 30, 2003 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 1 foot pixel resolution. The " +
			"\nflight dates range from Dec. 4, 2002 through Dec. 8, 2002." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF and " +
			"\nSID image formats. It is sold based on a predefined 5000' x 5000' " +
			"\ntiling scheme (the Aerial Tile Index), no alterations. The price per " +
			"\nimage is $50.00."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 01/02")
	{
		var msg = "Fiscal Year (FY): July 1, 2001 to June 30, 2002 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 1 foot pixel resolution. The " +
			"\nflight dates range from Dec. 19, 2001 through Feb. 22, 2002." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF and " +
			"\nSID image formats. It is sold based on a predefined 5000' x 5000' " +
			"\ntiling scheme (the Aerial Tile Index), no alterations. The price per " +
			"\nimage is $50.00."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 00/01")
	{
		var msg = "Fiscal Year (FY): July 1, 2000 to June 30, 2001 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are ortho-rectified with a positional " +
			"\naccuracy of +/- 5 feet and have a 1 foot pixel resolution. The " +
			"\nflight dates range from Dec. 16, 2000 through Mar. 15, 2001." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF and " +
			"\nSID image formats. It is sold based on a predefined 5000' x 5000' " +
			"\ntiling scheme (the Aerial Tile Index), no alterations. The price per " +
			"\nimage is $50.00."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 99/00")
	{
		var msg = "Fiscal Year (FY): July 1, 1999 to June 30, 2000 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 1 foot " +
			"\npixel resolution. The flight dates range from Jan. 13, 2000 through " +
			"\nApr. 5, 2000." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF and " +
			"\nSID image formats. It is sold based on a Township-Range-Section " +
			"\nor 1/4 Township-Range [9 sections] tiling scheme (the Aerial Tile " +
			"\nIndex), no alterations. Since section size varies, there is no stand- " +
			"\nard tile size (an average section is approx. 5280' x 5280'). Each in-" +
			"\ndividual aerial generally covers more area than what the tile indi- " +
			"\ncates. This means that adjacent tiles will typically have an overlap " +
			"\narea where the aerial is duplicated. The price is $35.00 for the first " +
			"\nimage and $20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "98/99")
	{
		var msg = "1998/99 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 60000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 1 foot " +
			"\npixel resolution. The flight dates range from Dec. 13, 1998 through " +
			"\nOct. 9, 1999." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF and " +
			"\nSID image formats. It is sold based on a Township-Range-Section " +
			"\nor 1/4 Township-Range [9 sections] tiling scheme (the Aerial Tile " +
			"\nIndex), no alterations. Since section size varies, there is no stand- " +
			"\nard tile size (an average section is approx. 5280' x 5280'). Each in-" +
			"\ndividual aerial generally covers more area than what the tile indi- " +
			"\ncates. This means that adjacent tiles will typically have an overlap " +
			"\narea where the aerial is duplicated. The price is $35.00 for the first " +
			"\nimage and $20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 97/98")
	{
		var msg = "Fiscal Year (FY): July 1, 1997 to June 30, 1998 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 10000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 2 foot " +
			"\npixel resolution. The flight dates range from Jan. 25, 1998 through " +
			"\nMar. 10, 1998." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF image " +
			"\nformat. It is sold based on a 1/4 Township-Range [9 sections] tiling " +
			"\nscheme (the Aerial Tile Index), no alterations. Since section size " +
			"\nvaries, there is no standard tile size (an average section is approx. " +
			"\n5280' x 5280'). Each individual aerial generally covers more area than " +
			"\nwhat the tile indicates. This means that adjacent tiles will typically have " +
			"\nan overlap area where the aerial is duplicated. The price is $35.00 for " +
			"\nthe first image and $20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 96/97")
	{
		var msg = "Fiscal Year (FY): July 1, 1996 to June 30, 1997 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 10000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 2 foot " +
			"\npixel resolution. The flight dates range from Dec. 2, 1996 through " +
			"\nFeb. 5, 1997." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF image " +
			"\nformat. It is sold based on a 1/9 Township-Range [4 sections] (2 foot " +
			"\npixel areas) or 1/4 Township-Range [9 sections] (2.5 foot pixel areas) " +
			"\ntiling scheme (the Aerial Tile Index), no alterations. Since section size " +
			"\nvaries, there is no standard tile size (an average section is approx. " +
			"\n5280' x 5280'). Each individual aerial generally covers more area than " +
			"\nwhat the tile indicates. This means that adjacent tiles will typically " +
			"\nhave an overlap area where the aerial is duplicated. The price is " +
			"\n$35.00 for the first image and $20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "FY 92/93")
	{
		var msg = "Fiscal Year (FY): July 1, 1992 to June 30, 1993 " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 10000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 4 foot " +
			"\npixel resolution. The flight dates range from Jan. 21, 1993 through " +
			"\nFeb. 6, 1993." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF image " +
			"\nformat. It is sold based on a tiling scheme that is loosely based on a " +
			"\nTownship-Range-Section (the Aerial Tile Index), no alterations. " +
			"\nSince section size varies, there is no standard tile size (an average" +
			"\nsection is approx. 5280' x 5280'). Each individual aerial generally " +
			"\ncovers more area than what the tile indicates. This means that ad-" +
			"\njacent tiles will typically have an overlap area where the aerial is " +
			"\nduplicated. The price is $35.00 for the first image and $20.00 per " +
			"\nimage thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1991")
	{
		var msg = "1991 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 10000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 4 foot " +
			"\npixel resolution. The flight date is Nov. 5, 1991." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF image " +
			"\nformat. It is sold based on a tiling scheme that is loosely based on a " +
			"\nTownship-Range-Section (the Aerial Tile Index), no alterations. " +
			"\nSince section size varies, there is no standard tile size (an average" +
			"\nsection is approx. 5280' x 5280'). Each individual aerial generally " +
			"\ncovers more area than what the tile indicates. This means that ad-" +
			"\njacent tiles will typically have an overlap area where the aerial is " +
			"\nduplicated. The price is $35.00 for the first image and $20.00 per " +
			"\nimage thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1990")
	{
		var msg = "1990 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 7000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 4 foot " +
			"\npixel resolution. The flight date is Oct. 29, 1990." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF image " +
			"\nformat. It is sold based on a tiling scheme that is loosely based on a " +
			"\nTownship-Range-Section (the Aerial Tile Index), no alterations. " +
			"\nSince section size varies, there is no standard tile size (an average" +
			"\nsection is approx. 5280' x 5280'). Each individual aerial generally " +
			"\ncovers more area than what the tile indicates. This means that ad-" +
			"\njacent tiles will typically have an overlap area where the aerial is " +
			"\nduplicated. The price is $35.00 for the first image and $20.00 per " +
			"\nimage thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1986")
	{
		var msg = "1986 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 10000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 4 foot " +
			"\npixel resolution. The flight date is Nov. 8, 1986." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF image " +
			"\nformat. It is sold based on a tiling scheme that is loosely based on a " +
			"\nTownship-Range-Section (the Aerial Tile Index), no alterations. " +
			"\nSince section size varies, there is no standard tile size (an average" +
			"\nsection is approx. 5280' x 5280'). Each individual aerial generally " +
			"\ncovers more area than what the tile indicates. This means that ad-" +
			"\njacent tiles will typically have an overlap area where the aerial is " +
			"\nduplicated. The price is $35.00 for the first image and $20.00 per " +
			"\nimage thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1979")
	{
		var msg = "1979 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 15000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 2 foot " +
			"\npixel resolution. The flight date is Dec. 15, 1979." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in SID image " +
			"\nformat. It is sold based on a predefined 21000' x 21000' (approx.) " +
			"\ntiling scheme (the Aerial Tile Index), no alterations. Each individual " +
			"\naerial generally covers more area than what the tile indicates. This " +
			"\nmeans that adjacent tiles will typically have an overlap area where " +
			"\nthe aerial is duplicated. The price is $35.00 for the first image and " +
			"\n$20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1969")
	{
		var msg = "1969 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 15000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 2 foot " +
			"\npixel resolution. The flight dates range from Jan. 2, 1969 through " +
			"\nMar. 8, 1969. " +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in SID image " +
			"\nformat. It is sold based on a predefined 21000' x 21000' (approx.) " +
			"\ntiling scheme (the Aerial Tile Index), no alterations. Each individual " +
			"\naerial generally covers more area than what the tile indicates. This " +
			"\nmeans that adjacent tiles will typically have an overlap area where " +
			"\nthe aerial is duplicated. The price is $35.00 for the first image and " +
			"\n$20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1964")
	{
		var msg = "1964 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 30000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 11 foot " +
			"\npixel resolution. The flight date is 1964, month unknown. " +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF image " +
			"\nformat. It is sold based on a predefined 67000' x 66500' (approx.) " +
			"\ntiling scheme (the Aerial Tile Index), no alterations. The price is " +
			"\n$35.00 for the first image and $20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1962")
	{
		var msg = "1962 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 15000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 4 foot " +
			"\npixel resolution. The flight dates range from 1961 to 1962, months " +
			"\nunknown." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF image " +
			"\nformat. It is sold based on a predefined 5000' x 5000' tiling scheme " +
			"\n(the Aerial Tile Index), no alterations. The price is $35.00 for the " +
			"\nfirst image and $20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1959")
	{
		var msg = "1959 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 15000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 2 foot " +
			"\npixel resolution. The flight dates range from Feb. 15, 1959 through " +
			"\nFeb. 20, 1959." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in SID image " +
			"\nformat. It is sold based on a Township-Range-Section tiling scheme " +
			"\n(the Aerial Tile Index), no alterations. Since section size varies, " +
			"\nthere is no standard tile size (an average section is approx.  " +
			"\n5280' x 5280'). Each individual aerial generally covers more area " +
			"\nthan what the tile indicates. This means that adjacent tiles will typi-" +
			"\ncally have an overlap area where the aerial is duplicated. The price " +
			"\nis $35.00 for the first image and $20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1951")
	{
		var msg = "1951 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 30000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 2 foot " +
			"\npixel resolution. The flight date is Apr. 25, 1951." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF image " +
			"\nformat. It is sold based on a tiling scheme (the Aerial Tile Index) that " +
			"\nvaries in size based on the source photography, no alterations. Each " +
			"\nindividual aerial generally covers more area than what the tile indi- " +
			"\ncates. This means that adjacent tiles will typically have an overlap " +
			"\narea where the aerial is duplicated. The price is $35.00 for the first " +
			"\nimage and $20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1949")
	{
		var msg = "1949 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 10000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 1.75 " +
			"\nfoot pixel resolution. The flight dates range from Feb. 14, 1949 " +
			"\nthrough Apr. 3, 1949." +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF and " +
			"\nSID image formats. It is sold based on a predefined 15000' x 15000' " +
			"\ntiling scheme (the Aerial Tile Index), no alterations. Each individual " +
			"\naerial generally covers more area than what the tile indicates. This " +
			"\nmeans that adjacent tiles will typically have an overlap area where " +
			"\nthe aerial is duplicated. The price is $35.00 for the first image and " +
			"\n$20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1937")
	{
		var msg = "1937 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 20000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 9 foot " +
			"\npixel resolution. The flight date is 1937, month unknown. " +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in TIF and " +
			"\nSID image formats. It is sold based on a predefined 76500' x 91000' " +
			"\n(approx.) tiling scheme (the Aerial Tile Index), no alterations. Each " +
			"\nindividual aerial generally covers more area than what the tile in-" +
			"\ndicates. This means that adjacent tiles will typically have an over-" +
			"\nlap area where the aerial is duplicated. The price is $35.00 for the " +
			"\nfirst image and $20.00 per image thereafter."
		alert(msg);
	}
	else if (document.forms[0].SelectedYear.value == "1930")
	{
		var msg = "1930 Aerial Photography " +
			"\n\nViewing Information:" +
			"\nThis aerial photography is viewable from a scale of > 200 to 20000 " +
			"\nin this web application. The current scale is displayed in the third " +
			"\npane from the left along the bottom of the map, or second pane " +
			"\nfrom the right. The Aerial Tile Index boundaries are viewable at all " +
			"\nscales to depict the area that is covered by the aerial photography." +
			"\n\nProjection & Accuracy Information: " +
			"\nThe coordinate system is Stateplane NAD83 HARN, Arizona Central, " +
			"\nInternational Feet. The aerials are semi-rectified, so the positional " +
			"\naccuracy varies throughout each aerial. The images have a 3 foot " +
			"\npixel resolution. The flight dates range from Jan. 28, 1930 through " +
			"\nJan. 29, 1930. " +
			"\n\nPurchase Information: " +
			"\nThis aerial photography is in black & white and available in SID image " +
			"\nformat. It is sold based on a tiling scheme (the Aerial Tile Index) that " +
			"\nvaries in size based on the source photography, no alterations. Each " +
			"\nindividual aerial generally covers more area than what the tile indi- " +
			"\ncates. This means that adjacent tiles will typically have an overlap " +
			"\narea where the aerial is duplicated. The price is $35.00 for the first " +
			"\nimage and $20.00 per image thereafter."
		alert(msg);
	}
}

//============================================================================================
// Help window text for each of the buttons on the map
/*Removed for a single help window for all of the buttons
function helpWin(value)
{
	if(value == "1")
		parent.HELPWIN.location.href="helpZoomin.cfm";
	if(value == "2")
		parent.HELPWIN.location.href="helpZoomout.cfm";
	if(value == "3")
		parent.HELPWIN.location.href="helpZoomcounty.cfm";
	if(value == "4")
		parent.HELPWIN.location.href="helpPan.cfm";
	if(value == "5")
		parent.HELPWIN.location.href="helpPrint.cfm";
	if(value == "6")
		parent.HELPWIN.location.href="helpSelect.cfm";
	if(value == "8")
		parent.HELPWIN.location.href="helpOrder.cfm";
	if(value == "9")
		parent.HELPWIN.location.href="helpMeasure.cfm";
	if(value == "10")
		parent.HELPWIN.location.href="helpStop.cfm";
	if(value == "11")
		parent.HELPWIN.location.href="helpZoomprevious.cfm";
	if(value == "12")
		parent.HELPWIN.location.href="helpAddress.cfm";
	if(value == "13")
		parent.HELPWIN.location.href="helpIntersection.cfm";
	if(value == "14")
		parent.HELPWIN.location.href="helpTwnshprng.cfm";
}
*/

//============================================================================================
// Upon loading the map for Netscape users, check viewer plug-in version
function init()
{
	// For Netscape browsers, check for plug-in version
	if (navigator.appName == "Netscape")
	{
		// Check the plug-in version by returning the API version
		var version = getMap().getApiVersion();
		//If the API/Plug-In version is previous to 5.0,
		//display the message
		if (version < "5.0")
		{
			updateDownloadMsg();
		}
	}
}

// Called from function INIT
function updateDownloadMsg()
{
	// Display dialog box.
	msg = "You do not have the latest version of the " +
	"Autodesk MapGuide Viewer. This web page is " +
	"currently using version 5.0. Click OK to update " +
	"or Cancel to continue."
	// If user clicks OK, load download page from Autodesk web site
	if (confirm(msg))
	{
		top.window.location =
		"http://www.autodesk.com/prods/mapguide/ver5/download/index.htm";
	}
	else
	{
		msg="The Autodesk Mapguide Viewer was not updated. Some " +
		"functionality of this web site may be limited or " +
		"possibly not work at all. If you experience this " +
		"situation, reload this web page and click OK when " +
		"prompted to update the viewer."
		alert(msg);
		//history.go(-1);
	}
}

