   // map.js
    //<![CDATA[
    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
	// get ready to disable this line
	// before set center
	map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl());

	// Geocoding
	geocoder = new GClientGeocoder();
	if (geocoder) {
		geocoder.getLatLng(
		  // adjust address to suit
		  '10929 San Pablo Ave, El Cerrito, CA 94530',
	          function(point) {
		    if (!point) {
	              alert(address + " not found");
		    } else {
	          map.setCenter(point, 13);
			 map.panDirection(0,1);
			 //map.panBy(10);
		      var marker = new GMarker(point);
	              map.addOverlay(marker);
			      // adjust html to suit, being careful to escape single quotes.
					  marker.openInfoWindowHtml('<table><tr><td><p align=left><a target=_new href=http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Marty\'s+Motors+10929+San+Pablo+Ave+El+Cerrito+CA+94530&sll=37.916255,-122.312141&sspn=0.008024,0.013819&ie=UTF8&ll=37.917947,-122.312143&spn=0.008024,0.013819&z=16&iwloc=A><font face="arial" size="2" color="#000000">Marty\'s Motors</a><br>10929 San Pablo Ave.<br>El Cerrito, CA 94530<br>(510) 250-2051</font><br><a target=_new href=http://martysmotors.com>MartysMotors.com</a><br><br><a target=_new href=http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Marty%27s+Motors+10929+San+Pablo+Ave+El+Cerrito+CA+94530&sll=37.916255,-122.312141&sspn=0.008024,0.013819&ie=UTF8&ll=37.917947,-122.312143&spn=0.008024,0.013819&z=16&iwloc=A>Get Directions</a></p></td></tr></table>' );

			}
		}
		);



	}
      }
    }

