var map1;
function body_onload(via, numero) {
  var g = new PGGeoCod({provincia:    null,
                        comune:       'roma',
                        indirizzo:    via,
                        civico:       numero,
                        onComplete:   'afterGeoCod'});
}

function afterGeoCod(pgAddress) {
  if (pgAddress) {
        var pgPoint = new PGPoint({ pgAddress:pgAddress, html:'<div style="width:40px; height:40px"><img id="arrow" src="'+url_img+'" /></div>'});
		map1 = new PGMappy({nameContainer: 'mapcontainer', mapWidth:227, mapHeight:227, z:1, pgPoint:pgPoint});
	    map1.pointAdder(pgPoint);
		$(".mapbox").css("visibility","visible");
	 }
 
}
 
