function makeIcon()
{
    var sicon = new GIcon();
    sicon.image = "waveslogo.png";
    sicon.iconAnchor = new GPoint(16, 16);
    sicon.infoWindowAnchor = new GPoint(16, 0);
    sicon.iconSize = new GSize(32, 32);
    sicon.shadow = "sun-shadow.png";
    sicon.shadowSize = new GSize(59, 32);

    return sicon;
}


function initialize() {
	if (GBrowserIsCompatible()) {
	
		// A function to create the marker and set up the event window
		// Dont try to unroll this function. It has to be here for the function closure
		// Each instance of the function preserves the contends of a different instance
		// of the "marker" and "html" variables which will be needed later when the event triggers.
	
	
		// Display the map, with some controls and set the initial location
		var map = new GMap2(document.getElementById("map"));
		var pos = new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(7, 27));
		map.addControl(new GSmallMapControl(), pos);
		map.addControl(new GMapTypeControl(useShortNames="true"));
		map.setCenter(centerpoint,14);
	
		// Set up three markers with info windows
	
		var point = centerpoint;
	var options = {
		title: "Waves Coffee House",
		clickable: false,
		icon: makeIcon()
	};
	var marker = new GMarker(point, options);
		map.addOverlay(marker);	
	}
	
	// display a warning if the browser was not compatible
	else {
		alert("Sorry, the Google Maps API is not compatible with this browser");
	}
}