var disclaimer="Notice: The information provided by this application has been compiled from recorded deeds, plats, tax maps, surveys, and other public records and data. It is not a legally recorded map survey. Data presented does not meet plan submittal requirements for the City of Troy. Users of this data are hereby notified that the source information represented should be consulted for verification. The City of Troy makes no warranty, expressed or implied, regarding the accuracy, completeness, or usefulness of the information presented.  The City of Troy assumes no responsibility for errors that arise from the use of this information. If errors or discrepancies are found, please notify the City of Troy GIS Administrator.";
function OpenAdvancedMap() {
  if (confirm(disclaimer)) {
    window.open('http://gis.troymi.gov/Geocortex/Essentials/External/Web/viewer.aspx?Site=AdvancedViewer&ReloadKey=True','GIS','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes');
  }
}
function OpenBaseMap() {
  if (confirm(disclaimer)) {
  window.open('http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=Tax Parcels','BaseMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}
function OpenParksMap() {
  if (confirm(disclaimer)) {
 /* window.open('http://gis.troymi.gov/ArcGIS/Maps/Parks.html','ParksMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes'); */
  window.open('  http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=City Parks','ParksMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}
function OpenVoteMap() {
  if (confirm(disclaimer)) {
  /* window.open('http://gis.troymi.gov/ArcGIS/Maps/Voting.html','VoteMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');*/
  window.open('http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=Voting Precincts','VoteMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}
function OpenZipCodeMap() {
  if (confirm(disclaimer)) {
   /*window.open('http://gis.troymi.gov/ArcGIS/Maps/ZipCodes.html','ZipCodeMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');*/
  window.open('  http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=Zip Codes','ZipCodeMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}

function OpenRefuseMap() {
  if (confirm(disclaimer)) {
  /*window.open('http://gis.troymi.gov/ArcGIS/Maps/Trash.html','RefuseMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');*/
    window.open('http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=Refuse Pickup','RefuseMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
	  }
}
function OpenSchoolDistMap() {
  if (confirm(disclaimer)) {
   /*window.open('http://gis.troymi.gov/ArcGIS/Maps/School.html','SchoolDistMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');*/
  window.open('  http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=School District','SchoolDistMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}

	

function OpenPropertySearch() {
  if (confirm(disclaimer)) {
  window.open('/ParcelDataSearch','GISPropertySearch','width=1000,height=700,top=10,left=10, scrollbars=auto,resizable=yes,toolbar=yes');
  }
}
function OpenAerialsMap() {
  if (confirm(disclaimer)) {
  window.open('http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=Aerial Photography','AerialPhotos','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  /*window.open('http://gis.troymi.gov/ArcGIS/Maps/HistoricalAerials.html','AerialPhotos','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10, scrollbars=yes,resizable=yes,toolbar=yes');*/
  }
}


function OpenZoningMap() {
  if (confirm(disclaimer)) {
  window.open('  http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=Form Based Zoning','Zoning','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10, scrollbars=yes,resizable=yes,toolbar=yes');
 /*  window.open('http://gis.troymi.gov/ArcGIS/Maps/Zoning.html','Zoning','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10, scrollbars=yes,resizable=yes,toolbar=yes');*/
  }
}

function OpenBikeMap() {
  if (confirm(disclaimer)) {
    /*window.open('http://gis.troymi.gov/ArcGIS/Maps/BikeRoutes.html','Bike','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10, scrollbars=yes,resizable=yes,toolbar=yes');*/
    window.open('http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=Bike Routes','Bike','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10, scrollbars=yes,resizable=yes,toolbar=yes');
  }
}


function Open1872Map() {
  if (confirm(disclaimer)) {
  window.open('http://www.troymi.gov/GIS/Viewer_HistMap.htm?layers=0001','1872','width=700,height=600,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}
function Open1896Map() {
  if (confirm(disclaimer)) {
  window.open('http://www.troymi.gov/GIS/Viewer_HistMap.htm?layers=0010','1896','width=700,height=600,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}
function Open1906Map() {
  if (confirm(disclaimer)) {
  window.open('http://www.troymi.gov/GIS/Viewer_HistMap.htm?layers=0100','1906','width=700,height=600,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}
function Open1916Map() {
  if (confirm(disclaimer)) {
  window.open('http://www.troymi.gov/GIS/Viewer_HistMap.htm?layers=1000','1916','width=700,height=600,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}



function OpenElemSchoolMap() {
  if (confirm(disclaimer)) {
   /*window.open('http://gis.troymi.gov/ArcGIS/Maps/ElemSchool.html','ElemSchoolMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');*/
  window.open('http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=Elementary Schools','ElemSchoolMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}
      function OpenMiddleSchoolMap() {
  if (confirm(disclaimer)) {
  /*window.open('http://gis.troymi.gov/ArcGIS/Maps/MiddleSchool.html','MiddleSchoolMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');*/
    window.open('http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=Middle Schools','MiddleSchoolMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}
      function OpenHighSchoolMap() {
  if (confirm(disclaimer)) {
  /*window.open('http://gis.troymi.gov/ArcGIS/Maps/HighSchool.html','HighSchoolDistMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');*/
   window.open('http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=High Schools','HighSchoolDistMap','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes');
  }
}

function OpenFEMAMap() {
  if (confirm(disclaimer)) {
   window.open('http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=Flood Plain Boundarys','FEMA','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10, scrollbars=yes,resizable=yes,toolbar=yes');
  }
}

function OpenTopoMap() {
  if (confirm(disclaimer)) {
   window.open('http://gis.troymi.gov/SilverlightViewer/Viewer.html?Viewer=Topographic Map','Topo','width='+screen.availWidth+',height='+screen.availHeight+',top=10,left=10, scrollbars=yes,resizable=yes,toolbar=yes');
  }
}
