//<![CDATA[
/*
var map = new GMap2(document.getElementById("mimimap"));

map.addControl(new GSmallMapControl());
//map.addControl(new GMapTypeControl());

// set Center
map.setCenter(new GLatLng(40, 10), 1);
*/
var map;

function showRecenterMap (lat,lng,zoom, mapcontrol)
{
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("mimimap"),{mapTypes:[G_NORMAL_MAP,G_HYBRID_MAP]});
		if (mapcontrol == "L")		
			map.addControl(new GLargeMapControl());
		else
			map.addControl(new GSmallMapControl());
		//map.addControl(new GMapTypeControl());
		map.enableContinuousZoom();
		map.enableDoubleClickZoom();
		map.setCenter(new GLatLng(lat, lng), zoom);

	} else {
		alert("your browser is not compatible with Maps, get Firefox!")
	}
}

function createMarker(point, texthtml, shadow, icon)
{
	// Create a lettered icon for this point using our icon class
	// marks images
	var baseIcon = new GIcon(G_DEFAULT_ICON);
//	baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
	baseIcon.shadow = shadow;
	baseIcon.iconSize = new GSize(31, 27);
	baseIcon.shadowSize = new GSize(42, 23);
	baseIcon.iconAnchor = new GPoint(9, 34);
	baseIcon.infoWindowAnchor = new GPoint(9, 2);
	
	
	var letteredIcon = new GIcon(baseIcon);
//	letteredIcon.image = "http://www.google.com/mapfiles/markerB.png";
	letteredIcon.image = icon;
	markerOptions = { icon:letteredIcon };

	// Set up our GMarkerOptions object
	var marker = new GMarker(point, markerOptions);
	
	GEvent.addListener(marker, "click", function() {
	marker.openInfoWindowHtml(texthtml);
	});
	return marker;
}
//]]>