// JavaScript Document
function createMarker(point, direccion, icon) {
  var marker = new GMarker(point,icon);
  GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml(direccion);
  });
  return marker;
}



    function load() {
      if (GBrowserIsCompatible()) {
        var mapagoogle = new GMap2(document.getElementById("mapa"));
		mapagoogle.addControl(new GLargeMapControl());
		mapagoogle.addControl(new GMapTypeControl());
        mapagoogle.setCenter(new GLatLng(41.53842,2.445982), 15);
		
		var icon = new GIcon();
		icon.image = "http://www.taxiclassmataro.com/imagenes/icono_taxi_class_mataro.png";
		//icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		icon.iconSize = new GSize(30, 30);
		icon.shadowSize = new GSize(22, 20);
		icon.iconAnchor = new GPoint(6, 20);
		icon.infoWindowAnchor = new GPoint(5, 1);

		
		var point = new GLatLng(41.53842,2.445982);
		var direccion ="<img src='http://taxiclassmataro.com/imagenes/logo-taxi-class-mataro-small.jpg'/><br/>Taxi & Class Matar&oacute;<br/>678 032 617 | 695 191 166 <br/><br/>";
		mapagoogle.addOverlay(createMarker(point, direccion, icon));
		mapagoogle.addControl(new GOverviewMapControl());

		//map.addOverlay(new GMarker(point));

		
      }
    }
