var map;
var _mPreferMetric = true; // Makes metric scale on the top level, instead of imperial. Used with the scale map control.
var nextMarkerId;
var allMarkers = new Array();
nextMarkerId = 0;
			
function createMarker(point,tabs,options) {		
	var marker = new GMarker(point,options);			
	GEvent.addListener(marker, "click", function() {
		map.setZoom(13);
		map.panTo(point);		
		//alert("createMarker!");	
		marker.openInfoWindowTabsHtml(tabs);				
	});
	return marker;
}

function panToMarker(id) {		
	var marker = allMarkers[id][0];
	var tabs = allMarkers[id][1];		
	map.setZoom(12);
	map.panTo(marker.getLatLng());			
	marker.openInfoWindowTabsHtml(tabs);			
}