//<![CDATA[
/*	
var usericon = new GIcon();
usericon.image = "/mapicons/stategreen.png";
usericon.shadow = "/mapicons/mm_20_shadow.png";
usericon.iconSize = new GSize(12, 20);
usericon.shadowSize = new GSize(22, 20);
usericon.iconAnchor = new GPoint(6, 20);
usericon.infoWindowAnchor = new GPoint(5, 1);
var map;
*/
function load(lat,lng,zoom,html) {
      if (GBrowserIsCompatible()) {
       
       var usericon = new GIcon();
		usericon.image = "/images/mapicons/stategreen.png";
		usericon.shadow = "/images/mapicons/mm_20_shadow.png";
		usericon.iconSize = new GSize(12, 20);
		usericon.shadowSize = new GSize(22, 20);
		usericon.iconAnchor = new GPoint(6, 20);
		usericon.infoWindowAnchor = new GPoint(5, 1);
       
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(lat,lng), zoom);
        map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.addControl(new GOverviewMapControl());
        var point = new GLatLng(lat,lng);
        var marker = new GMarker(point,usericon)
  		map.addOverlay(marker);
  		
		  GEvent.addListener(marker, 'click', function() {
			marker.openInfoWindowHtml(html);
  		});
  		
  		GEvent.trigger(marker, "click");
      }
    }
    
    
    function loadpoint(lat,lng,html){
		var point = new GLatLng(lat,lng);
        var marker = new GMarker(point)
  		map.addOverlay(marker);
  		var html = '<div style="white-space:nowrap;"><strong>Dubuque Country Club</strong> (<a href="#">Zoom</a>)<br /><a href="#">Recent Sightings</a></div>';
  		GEvent.addListener(marker, 'click', function() {
			marker.openInfoWindowHtml(html);
  		});
	}

    //]]>