<!--

	function createMarker(point,icona,messaggio) {
		var marker = new GMarker(point,icona);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(messaggio);
		});
		return marker;
	}
	
	var arrCoor=new Array()
		var arrRagSoc
		function img_icon(coordinate,rag_soc,map,url_logo,mx,my)
		{
				var icon = new GIcon();
				icon.image = url_logo;
				icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
				icon.iconSize = new GSize(mx,my);
				icon.shadowSize = new GSize(30, 20);
				icon.iconAnchor = new GPoint(6, 20);
				icon.infoWindowAnchor = new GPoint(5, 1);
				var point = new GLatLng(coordinate[0].Placemark[0].Point.coordinates[1], coordinate[0].Placemark[0].Point.coordinates[0]);
				var descrizionePunto="<b>"+rag_soc+"</b>"
				if (coordinate[0].Placemark[0].AddressDetails.Country.AdministrativeArea!=undefined)
				{
				 if (coordinate[0].Placemark[0].AddressDetails.Country.AdministrativeArea.SubAdministrativeArea!=undefined)
 				  {
 				  	if (coordinate[0].Placemark[0].AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality!=undefined)
 				  		{	
 				  			if (coordinate[0].Placemark[0].AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.Thoroughfare!=undefined)
		 				  		{
			 				  		if (coordinate[0].Placemark[0].AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.Thoroughfare.ThoroughfareName!=undefined)
			 				  		{
											descrizionePunto+="<br>"+coordinate[0].Placemark[0].AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.Thoroughfare.ThoroughfareName
											descrizionePunto+=",<br>"+coordinate[0].Placemark[0].AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.PostalCode.PostalCodeNumber
											descrizionePunto+=" "+coordinate[0].Placemark[0].AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.LocalityName
											descrizionePunto+=" "+coordinate[0].Placemark[0].AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.SubAdministrativeAreaName
										}
									}
							}
					}
				}
		  	map.addOverlay(createMarker(point,icon,descrizionePunto));
				map.addControl(new GMapTypeControl());
		}

//-->

