//<![CDATA[

   var geocoder;
   var map;

   var hotel = "HotelName";
  // var address = "Mässans Gata 24 Göteborg, Sweden";
	var address  = "Luntmakargatan 68 Stockholm Sweden";

   // On page load, call this function

   function load(hotel,address)
   {
	  //alert(hotel);
	  // set passed parameter to this object
	  this.hotel = hotel;
      
      // Create new map object
      map = new GMap2(document.getElementById("map"));
	  map.addControl(new GMapTypeControl());
	  
	  // Create distance to map
	  var scale = new GScaleControl(); 
	  map.addControl(scale);
	  
	  // Create navigation to map
	  map.addControl(new GSmallMapControl());

      // Create new geocoding object
      geocoder = new GClientGeocoder();
	  
	  // Create overview
	  map.addControl(new GOverviewMapControl());

      // 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[0];

	  // Retrieve the latitude and longitude
      point = new GLatLng(place.Point.coordinates[1],
                          place.Point.coordinates[0]);

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

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

      // Add the marker to map
      map.addOverlay(marker);
	  
      // Add address information to marker
      marker.openInfoWindowHtml("<b>"+hotel+"</b>" +"<br>" +place.address);
	  
	  
	  
	  
   }

    //]]>