// 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(-19.215,-43.1652777778,"~~205561.html\">Brejaúba pegmatite, Ferros, Minas Gerais, Southeast Region, Brazil

","Brejaúba pegmatite, Ferros, Minas Gerais, Southeast Region, Brazil"); cm(-19.2188888889,-43.1469444444,"~~205562.html\">Caracol pegmatite, Ferros, Minas Gerais, Southeast Region, Brazil
","Caracol pegmatite, Ferros, Minas Gerais, Southeast Region, Brazil"); cm(-19.3930555556,-42.9447222222,"~~205566.html\">Coité pegmatite, Ferros, Minas Gerais, Southeast Region, Brazil
","Coité pegmatite, Ferros, Minas Gerais, Southeast Region, Brazil"); cm(-19.3186111111,-42.9761111111,"~~42816.html\">Providência farm, Ferros, Minas Gerais, Southeast Region, Brazil
","Providência farm, Ferros, Minas Gerais, Southeast Region, Brazil"); var zoombox=new GLatLngBounds(new GLatLng(-19.3930555556,-43.1652777778),new GLatLng(-19.215,-42.9447222222)); var zoomlevel = map.getBoundsZoomLevel(zoombox); if(zoomlevel>15) zoomlevel=15; map.setCenter(zoombox.getCenter(),zoomlevel); }