    var map = null;
    var geocoder = null;

    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        // map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        geocoder = new GClientGeocoder();
      }
    }

    function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml("<strong style='color:#000;'>Fórmula V en directo</strong><br/><img src='http://www.formulav.es/wp-content/themes/default/images/fotos/thumb_mapa.jpg' vspace=5/><br/><strong style='color:#000;'>" + titulo + "</strong><br style='clear:both' />");
			  //marker.openInfoWindowHtml("<strong>" + titulo + "</strong><br/>" + address);
            }
          }
        );
      }
    }




/* function load() {
      if (GBrowserIsCompatible()) {
		var point = new GLatLng('<?php the_title(); ?>');
        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        //map.addControl(new GMapTypeControl());
        map.setCenter(point, 16);
		var contenido = "<table><tr><td valign='top' style='width:55px;'><img src='" + logotipo + "/images/" + ruta + "/logotipo50x50.gif' /></td><td nowrap='nowrap'><font size='3'><strong>" + nombre + "</strong></font><br />" + calle + "<br />" + codigo + ", " + localidad + "<br />" + provincia + "<br />Tel.: " + "<font size='3'><strong>" + telefono + "</strong></font></td></tr></table>";
		//map.infoWindowAnchor = new GPoint(0, 0);
		map.openInfoWindowHtml(point,contenido);
		// Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc.
        var baseIcon = new GIcon();
        baseIcon.iconSize = new GSize(56, 48);
        //baseIcon.shadowSize = new GSize(55, 37);
        baseIcon.iconAnchor = new GPoint(28, 24);
        baseIcon.infoWindowAnchor = new GPoint(28, 24);
        baseIcon.infoShadowAnchor = new GPoint(28, 24);
        // Creates a marker whose info window displays the letter corresponding
        // to the given index.
        function createMarker(point, index) {
          // Create a lettered icon for this point using our icon class
          var icon = new GIcon(baseIcon);
          icon.image = "http://aire-acondicionado.degarantia.com/wp-content/themes/default/images/icono_dg_mapa.png";
          var marker = new GMarker(point, icon);
		  GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(contenido);
          });
          return marker;
        }
		
        // Add 10 markers to the map at random locations
       // var point = new GLatLng(coord1,coord2);
        map.addOverlay(createMarker(point));
		//map.createMarker(point);
      }
    }
    //]]>*/
