//<![CDATA[
		   
var map = null;
var geocoder = null;

// SET ICONS
	var icon = new GIcon();
	icon.image = "../images/markers/blank.png";
	icon.iconSize = new GSize(15, 23);
	icon.iconAnchor = new GPoint(17, 15);
	icon.infoWindowAnchor = new GPoint(6, 8);
//


// Creates a marker at the given point with the given parmeters

function load() {
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("map"));
		// SET CONTROLS
		map.setCenter(point, zoom);
		map.addControl(new GSmallMapControl());
		// END CONTROLS
		
		geocoder = new GClientGeocoder();
		// MAP 1
			// CALL CREATE MARKER FUNCTION
			map.addOverlay(createMarker(mapImage, mapName, address, point, myIcon));
		// END MAP 1
		
    }
}

function createMarker(myImage, myName, myAddress, myPoint, myIcon) {
	
	icon.image = myIcon;
	var myMarker = new GMarker(myPoint, icon);
	
	GEvent.addListener(myMarker, "click", function() {
		myMarker.openInfoWindowHtml(
			 "<font face='Arial, Helvetica, sans-serif' size='2'> " + myName +""+ myAddress +"</font>"
		);
	}
);		
	return myMarker;

}

//]]>
