function load(latitude, longitude, review_title, review_rating, username, location) {


 if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map"));
    var marker = null;
    map.addControl(new GLargeMapControl());
    map.addControl(new GScaleControl());
    map.addControl(new GHierarchicalMapTypeControl());
    //map.addControl(new GOverviewMapControl());
    var point = new GLatLng(latitude, longitude);
    map.setCenter(point , 13);

	var infoString = '<div class="gmapshover"><div class="gmapsrtitle">'+review_title+'</div><div class="gmapsrating"><img src="'+urlSite+'assets/images/rating-'+review_rating+'.jpg" alt="rating" /></div><div class="gmapsusername">by '+username+'</div><div class="gmapslocation">'+location+'</div></div>';
 
    marker = createMarker(point, 1, infoString, '');
  map.addOverlay(marker);
   
   marker.openInfoWindowHtml(infoString);

  }

}


// Creates a marker whose info window displays the letter corresponding
	// to the given index.
	function createMarker(point,index, infoString, link) {
	  // Create a base icon for all of our markers that specifies the
	  // shadow, icon dimensions, etc.
	  var baseIcon = new GIcon(G_DEFAULT_ICON);
	  baseIcon.iconSize = new GSize(26, 24);
	  baseIcon.shadowSize = new GSize(26, 24);
	  baseIcon.iconAnchor = new GPoint(26, 24);
	  baseIcon.infoWindowAnchor = new GPoint(9, 2);
	  // Create a lettered icon for this point using our icon class
	  var letter = String.fromCharCode("1".charCodeAt(0) + index);
	  var letteredIcon = new GIcon(baseIcon);
	  letteredIcon.image = urlSite + "assets/images/pinmarker.png";
	
	  // Set up our GMarkerOptions object
	  markerOptions = { icon:letteredIcon };

	 var marker = new GMarker(point, markerOptions);

      if(link != ""){
      GEvent.addListener(marker, "mouseover", function() {
	  	 marker.openInfoWindowHtml(infoString);
	  });
			
	  GEvent.addListener(marker, "click", function() {
	      window.location = link;
	  });
	
	  GEvent.addListener(marker, "mouseout", function() {
	     marker.closeInfoWindow();
	  });
      }else{
	      GEvent.addListener(marker, "click", function() {
		  	 marker.openInfoWindowHtml(infoString);
		  });
      }

	 
	  return marker;
	}
