
	var map;
	var pointsarray=new Array();
	var markersArray = [];
		
	function AddPoint(Vlat, Vlong, text,ID, IconPath) {
		
		if (IconPath=="") {
			 pointsarray[ID] = new google.maps.Marker({
				position: new google.maps.LatLng(Vlat, Vlong),
				map: map,
				animation: google.maps.Animation.DROP,
				title: text		
			});
		} else {
			 pointsarray[ID] = new google.maps.Marker({
				position: new google.maps.LatLng(Vlat, Vlong),
				map: map,
				animation: google.maps.Animation.DROP,
				title: text,	
				icon: IconPath					
			});
		}
			  
		markersArray.push(pointsarray[ID]);
	}
	
	function mapGoto(Vlat, Vlong,zoommin) {
		if (map.getZoom()<zoommin) {
			map.setZoom(zoommin);
		}
		newLocation = new google.maps.LatLng(Vlat, Vlong);
		map.setCenter(newLocation);
	}
	
	function mapGotoZoomMin(Vlat, Vlong,zoommin) {
		if (map.getZoom()<zoommin) {
			map.setZoom(zoommin);
		}
		newLocation = new google.maps.LatLng(Vlat, Vlong);
		map.panTo(newLocation);
	}
	
	function mapHighlightPoint(Vlat, Vlong,zoommin, ID) {
		if (map.getZoom()<zoommin) {
			map.setZoom(zoommin);
		}
		newLocation = new google.maps.LatLng(Vlat, Vlong);
		pointsarray[ID].setAnimation(google.maps.Animation.BOUNCE);
		eval("setTimeout('pointsarray[" + ID + "].setAnimation(0);',600);");
		map.panTo(newLocation);
	}	



	function initmap(mapname, Zoom, Vlat, Vlong) {
		var myLatlng = new google.maps.LatLng(Vlat, Vlong);
		var myOptions = {
			zoom: Zoom,
			center: myLatlng,
			mapTypeId: google.maps.MapTypeId.ROADMAP
		}
		map = new google.maps.Map(document.getElementById(mapname), myOptions);
		
	}
	
