//<![CDATA[

	function lgmap(BD_longitud,BD_latitud,BD_nombre) {
		if (GBrowserIsCompatible()) {

		  var icon = new GIcon();

			icon.image = "img/ico_google.png";
			icon.iconSize = new GSize(30, 30);
			icon.iconAnchor = new GPoint(10, 25);
			icon.infoWindowAnchor = new GPoint(10, 7);

		  function createMarker(point, icon, html, name, poblacion) {
			var marker = new GMarker(point, icon);
			GEvent.addListener(marker, "click", function() {
			  marker.openInfoWindowHtml(html);
			});

			return marker;
		  }


		  var map = new GMap2(document.getElementById('g_map'));

			map.setCenter(new GLatLng(BD_longitud, BD_latitud), 15);
			map.setMapType(G_SATELLITE_MAP);

			map.addControl(new GSmallMapControl());
			map.addControl(new GMapTypeControl());

		  texto_globo='<div id="globo" style="width:200px">'+BD_nombre+'</div>';

		  var point = new GLatLng(BD_longitud, BD_latitud);
		  var marker = createMarker(point,icon,texto_globo);
		  map.addOverlay(marker);

		  var map_moving = 0;

		}
		else
			{
			  alert("Google Maps no es compatible con su navegador, lo sentimos.");
			}
	}
   // ]]>

