function Init(map)
{
	gMap2 = map;
	geocoder = new GClientGeocoder();

	gMap2.addControl(new GSmallMapControl());
	gMap2.addControl(new GMapTypeControl());
//	gMap2.setCenter(new GLatLng("-6.2735", "35.3116"), "13");
}

function LoadMap(resp)
{
	var coords = resp.split(",");
	if (gMap2 == undefined)
	{
		womGo();
	}
	
	gMap2.setCenter(new GLatLng(coords[2], coords[1]));
	gMap2.setZoom(parseInt(coords[3]));
	
	var cIcon = new GIcon();
	cIcon.image = "/images/markerBlue.png";
	cIcon.shadow = "/images/markerShadow.png";
	cIcon.iconSize = new GSize(13, 23);
	cIcon.shadowSize = new GSize(25, 23);
	cIcon.iconAnchor = new GPoint(12,29);
	cIcon.infoWindowAnchor = new GPoint(5, 1);
	
	//add the point and then map it onto the google map
	var point = new GMarker(new GLatLng(coords[5], coords[4]),{icon: cIcon, draggable: false, bouncy: false});
	gMap2.addOverlay(point);
}
