//<![CDATA[
	var map;
 	var geocoder;


   // On page load, call this function

   function load()
   {
      // Create new map object
      map = new GMap2(document.getElementById("map"));
	  
	   // Create new geocoding object
      geocoder = new GClientGeocoder();

      // Retrieve location information, pass it to addToMap()
      geocoder.getLocations(address, addToMap);
   }  
	  
	// This function adds the point to the map

   function addToMap(response)
   {
      // Retrieve the object
      place = response.Placemark(14);

      // Retrieve the latitude and longitude
      point = new GLatLng(place.Point.coordinates(48.2961149,10.0697729),
                          place.Point.coordinates(14));

      // Center the map on this point
      map.setCenter(point, 14);

      // Create a marker
      marker = new GMarker(point);

      // Add the marker to map
      map.addOverlay(marker);

      // Add address information to marker
      marker.openInfoWindowHtml(place.address);
   }  
	  
	 /////////****************

// Creates a marker at the given point with the given number label
function createMarker(point, content) {
  var marker = new GMarker(point);
  GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml(content);
  });
  return marker;
}


function load() {
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map"));
    map.addControl(new GMapTypeControl()); 
    map.addControl(new GLargeMapControl()); 
    map.setCenter(new GLatLng(48.2961149,10.0697729), 13);
    map.setMapType(G_HYBRID_MAP);
    
    map.addOverlay(createMarker(new GLatLng(48.2961149,10.0697729), '<strong>SMG Sportplatzmaschinenbau GmbH</strong><br>'+
																  'Robert-Bosch-Strasse 3<br>'+
																  'D - 89269 Vöhringen'));  

  }
}

function showCenter(){
    var coord = map.getCenter();
    prompt('Lat:', coord.lat());
    prompt('Lng:', coord.lng());
}

//]]>