//document.write("<h1>Hello</h1>");

function wagt_map_1() {

  if(GBrowserIsCompatible()) {

    if(!document.getElementById('wagt_map_1')) return false;

    var map = new GMap2(document.getElementById('wagt_map_1'));

    map.enableContinuousZoom();

    map.enableDoubleClickZoom();

    map.addControl(new GLargeMapControl());

    map.addControl(new GMapTypeControl());

    var geocoder = new GClientGeocoder();

    

    var icon = new GIcon();

    var markerStyle = 'Push-Pin';

    var markerColor = 'Pacifica';

    icon.image = 'http://google.webassist.com/google/markers/pushpin/pacifica.png';

    icon.shadow = 'http://google.webassist.com/google/markers/pushpin/shadow.png';

    icon.iconSize = new GSize(40,41);

    icon.shadowSize = new GSize(40,41);

    icon.iconAnchor = new GPoint(7,38);

    icon.infoWindowAnchor = new GPoint(26,4);

    icon.printImage = 'http://google.webassist.com/google/markers/pushpin/pacifica.gif';

    icon.mozPrintImage = 'http://google.webassist.com/google/markers/pushpin/pacifica_mozprint.png';

    icon.printShadow = 'http://google.webassist.com/google/markers/pushpin/shadow.gif';

    icon.transparent = 'http://google.webassist.com/google/markers/pushpin/pacifica_transparent.png';



    var address_0 = {

	  street: '5830 Las Positas Road',

	  city: 'San Livermore',

      state: 'CA',

      zip: '94551',

      country: '',

      infowindow: 'default',

      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: #000;"><strong>Address:</strong><br />5830 Las Positas Road <br />Livermore, Ca 94551</span>',

      full: '5830 Las Positas RoadLivermore, Ca, 94551',

      isdefault: true

    };

    

    geocoder.getLatLng (

      address_0.full,

      function(point) {

        if(point) {

          map.setCenter(point, 13);

          var marker = new GMarker(point, icon);

          GEvent.addListener(marker, 'click', function() {

            marker.openInfoWindowHtml(address_0.infowindowtext);

          });

          map.addOverlay(marker);

          marker.openInfoWindowHtml(address_0.infowindowtext);

        }

        else {

         // map.setCenter(new GLatLng(37.4419, -122.1419), 13);

		  map.setCenter(new GLatLng(37.700996, -121.724730), 13); 

        }

      }

    );



  }

}