// Copyright (c) mindat.org 1993-2009 function j(lat,long) {var point = new GLatLng(lat,long); map.setCenter(point, 16);} function cm(lat,long,html,name) { var point = new GLatLng(lat,long); var marker = new GMarker(point,{icon:icon, title:name}); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(jsunpack(html)); // // map.panTo(marker.getPoint()); var zoom = map.getZoom(); if(zoom<9) zoom=9; map.setZoom(zoom); map.setCenter(marker.getPoint(), zoom); }); GEvent.addListener(marker,"mouseover", function() { marker.setImage("kml-gm-o.png"); }); GEvent.addListener(marker,"mouseout", function() { marker.setImage("kml-gm.png"); }); clus.AddMarker(marker,name); } function jsunpack(txt) { txt=txt.replace(/~~/,"
"); txt=txt.replace(/~!/,""); txt=txt.replace(/~\)/,"
Reference: "); return (txt); } function loadPoints() { cm(41.2561111111,-74.4541666667,"~~185769.html\">Amity giant spinel locality, Amity, Town of Warwick, Orange Co., New York, USA

","Amity giant spinel locality, Amity, Town of Warwick, Orange Co., New York, USA"); cm(41.2702777778,-74.4488888889,"~~185689.html\">Clintonite type locality, Amity, Town of Warwick, Orange Co., New York, USA
","Clintonite type locality, Amity, Town of Warwick, Orange Co., New York, USA"); cm(41.2716666667,-74.4461111111,"~~185768.html\">Eurich farm, Amity, Town of Warwick, Orange Co., New York, USA
","Eurich farm, Amity, Town of Warwick, Orange Co., New York, USA"); cm(41.2775,-74.4286111111,"~~185690.html\">Rudy farm, Amity, Town of Warwick, Orange Co., New York, USA
","Rudy farm, Amity, Town of Warwick, Orange Co., New York, USA"); cm(41.2658333333,-74.4394444444,"~~185688.html\">Warwickite type locality, Amity, Town of Warwick, Orange Co., New York, USA
","Warwickite type locality, Amity, Town of Warwick, Orange Co., New York, USA"); var zoombox=new GLatLngBounds(new GLatLng(41.2561111111,-74.4541666667),new GLatLng(41.2775,-74.4286111111)); var zoomlevel = map.getBoundsZoomLevel(zoombox); if(zoomlevel>15) zoomlevel=15; map.setCenter(zoombox.getCenter(),zoomlevel); }