function GMapload(rsmaptype, rsmaplatitude, rsmaplongitude, rsmapzoom) {
  if (GBrowserIsCompatible()) {
						
  var map = new GMap2(document.getElementById("map"));
  map.addControl(new GSmallMapControl());
		if(rsmaptype=='full'){
    map.addControl(new GMapTypeControl());
		}
  map.setCenter(new GLatLng(rsmaplatitude, rsmaplongitude), rsmapzoom);

  // Create our "tiny" marker icon
  var icon = new GIcon();
  icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
  icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
  icon.iconSize = new GSize(12, 20);
  icon.shadowSize = new GSize(22, 20);
  icon.iconAnchor = new GPoint(6, 20);
  icon.infoWindowAnchor = new GPoint(5, 1);

  
  var bounds = map.getBounds();
  var southWest = bounds.getSouthWest();
  var northEast = bounds.getNorthEast();
  var lngSpan = northEast.lng() - southWest.lng();
  var latSpan = northEast.lat() - southWest.lat();
  var i = 0;
  var point = new GLatLng(rsmaplatitude, rsmaplongitude);
  map.addOverlay(new GMarker(point, icon));
  }
}

