
	google.load("maps","2");

	var map			= null;
	var geocoder	= null;

	function vp_mapInitialize( mapID, latitude, longitude, shadowURL, markerURL, zoomLevel, infoText )
	{
		map			= new google.maps.Map2 ( document.getElementById ( mapID ) );
		geocoder	= new GClientGeocoder();
		var center	= new google.maps.LatLng ( latitude, longitude );
		var baseIcon = new GIcon ( G_DEFAULT_ICON );
		
		baseIcon.shadow				= shadowURL;
		baseIcon.image				= markerURL;
		baseIcon.iconSize			= new GSize(21, 31);
		baseIcon.shadowSize			= new GSize(52, 29);
		baseIcon.iconAnchor			= new GPoint(10, 31);
		baseIcon.infoWindowAnchor	= new GPoint(9, 2);
		
		markerOptions = { icon:baseIcon };
		var marker = new GMarker ( center, markerOptions );

		map.setCenter ( center, zoomLevel );
		map.addControl ( new GSmallZoomControl() );
	
		map.addOverlay ( marker );
		
		if ( infoText != undefined )
			GEvent.addListener ( marker, "click", vp_map_createInfoOpener ( marker, infoText ), 200 );
	}

	function vp_map_createInfoOpener ( marker, infoText, maxWidthPx )
	{
		return function() { marker.openInfoWindowHtml ( infoText, { maxWidth: maxWidthPx } ) };
	}
	