function invia(){
$('div_expo').fade('out');
$('risposta').fade('in');
$('div_expo').morph('.myClass');
$('risposta').morph('.myResponse2');
$('cssform').morph({height: 200});
new Fx.Scroll(window).toElement('container');
setTimeout("ajax()",2000);
		
	}

    function load() {
			theHaddress='<div style="height:66px;width:210px;"><p><img src="/images/logo-map.png" alt="Porto degli Argonauti" /><br /><b>Argonauti Resort</b><br />Lido di Macchia - Marina di Pisticci (MT)</p></div>';
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		        map.setCenter(new GLatLng(40.342161,16.807365), 11);
		        var frogIcon = new GIcon(G_DEFAULT_ICON);
		        frogIcon.image = "/images/pointer-map.png";
		        frogIcon.shadow = "true";
				frogIcon.iconSize = new GSize(30, 47);
				markerOptions = { icon:frogIcon };

				map.addControl(new GLargeMapControl());
				var marker = new GMarker(map.getCenter(), markerOptions);
				GEvent.addListener(marker, "click", function() {
					marker.openInfoWindowHtml(theHaddress);
				});
				map.addOverlay(marker);
				marker.openInfoWindowHtml(theHaddress);
      }
    }

	function ajax(){
	$('cont').setStyle('background', 'none');
	$('messaggio').morph('.risultato2');
	$('messaggio').fade('in');
	$('risposta').morph('.myResponse');
	$('risposta').fade('out');


	var ajax = new Request.HTML({
		url: 'form.php',
		encoding: 'iso-8859-1',
		onSuccess: function(html){
						$('messaggio').adopt(html);
		},
		onFailure: function(){
			$('messaggio').set('text', 'Richiesta fallita.');
		}		
	}).post($('form_ap'));


	}		
