// 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(/~~/,"
","Anthony\'s Nose, Peekskill, Westchester Co., New York, USA");
cm(41.3,-73.9416666667,"~~15958.html\">McCoy\'s Gold Mine, Camp Smith, Peekskill, Westchester Co., New York, USA
","McCoy\'s Gold Mine, Camp Smith, Peekskill, Westchester Co., New York, USA");
cm(41.29,-73.9208333333,"~~27609.html\">De Luca Mine (McCoy Mine), Peekskill, Westchester Co., New York, USA
","De Luca Mine (McCoy Mine), Peekskill, Westchester Co., New York, USA");
cm(41.272777557373,-73.9413909912109,"~~15928.html\">Dickey Brook, Peekskill, Westchester Co., New York, USA
","Dickey Brook, Peekskill, Westchester Co., New York, USA");
cm(41.2916666667,-73.9166666667,"~~16440.html\">Mohegan Quarries, Peekskill, Westchester Co., New York, USA
","Mohegan Quarries, Peekskill, Westchester Co., New York, USA");
cm(41.2833333333,-73.9166666667,"~~26947.html\">September Mine, Peekskill, Westchester Co., New York, USA
","September Mine, Peekskill, Westchester Co., New York, USA");
cm(41.3416666667,-73.9166666667,"~~13436.html\">Todd Mine, Peekskill, Westchester Co., New York, USA
","Todd Mine, Peekskill, Westchester Co., New York, USA");
var zoombox=new GLatLngBounds(new GLatLng(41.272777557373,-73.9780555556),new GLatLng(41.3416666667,-73.9166666667));
var zoomlevel = map.getBoundsZoomLevel(zoombox);
if(zoomlevel>15) zoomlevel=15;
map.setCenter(zoombox.getCenter(),zoomlevel);
}