    var geocoder= null;
     
    function addMarker(map, address,msg,center){
    
    		 if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              //alert(address + " not found");
            } else {
            var marker=new GMarker(point);
                map.addOverlay(marker);
          		 if (center){
          				map.setCenter(point, 11);
					//marker.openInfoWindowHtml(msg);
					//alert (point.lat()+" - "+point.lng());
				}
                GEvent.addListener(marker, "click", function() {
				         //marker.openInfoWindowHtml(msg);
				         });
	            }
	          }
	        );
	      }
    		
    
    }
    
    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
		var mapControl = new GMapTypeControl();
			map.addControl(mapControl);
			map.addControl(new GLargeMapControl());

        map.setCenter(new GLatLng(39.168057, 8.5204919), 11);
 		  geocoder = new GClientGeocoder();

        var markers = new Array();
        
        markers[0]= " 39°14'28.71\"N   8°27'57.66\"E";
//         markers[2]= "is pillonis";
//         markers[3]= "sant'anna arresi";
//         markers[4]= "Sant'antioco";
         var messages = new Array();
        messages[0]= "Nuovo Cineteatro Bacu Abis";
		/*messages[2]= "Is Pillonis";
		messages[3]= "Sant'anna Arresi";
		messages[4]= "Sant'Antioco";*/


        addMarker(map, markers[0],messages[0],true);
        addMarker(map, markers[1],messages[1],false);
//         for ( i in markers) {
//         		addMarker(map, markers[i],messages[i],false);
//         		//alert("ecco");
//         }
      }
    }
