function setHome(){
	getContent().innerHTML=sendRequest("http://www.atleticacampi.it/pages/home.php");
	new verticalMarquee('news_panel');
	}
	function setManifestazioni(){
	getContent().innerHTML=sendRequest("http://www.atleticacampi.it/pages/manifestazioni.php");
	}
	function setFoto(dir){
	var html='<iframe src="http://www.atleticacampi.it/gallery/index.php';
	if(dir!=null && dir!=''){
		html=html+'?jgall_dir='+dir+'%2F"';}
	else{
		html=html+'"';}
	html=html+ ' height="695" width="100%" style="align: center" scrolling="auto" border="0"></iframe>';
	getContent().innerHTML=html;
	}
	function setChiSiamo(){
	getContent().innerHTML=sendRequest("http://www.atleticacampi.it/pages/chisiamo.php");
	}
	function setContatti(){
	getContent().innerHTML=sendRequest("http://www.atleticacampi.it/pages/contatti.php");
	load();
	}
	function setSponsor(){
	getContent().innerHTML=sendRequest("http://www.atleticacampi.it/pages/sponsor.php");
	}
function getContent(){
	return document.getElementById("content");
}
function getXMLHTTPRequest(){  
var request = false;  
  try{  
  // Browser non Microsoft  
   request = new XMLHttpRequest();  
    } catch (e){  
    // Internet Explorer Browsers  
 try{  
  request = new ActiveXObject("Msxml2.XMLHTTP");  
        } catch (e) {  
             try{  
               request = new ActiveXObject("Microsoft.XMLHTTP");  
             } catch (e){  
                 //Il browser non supporta XMLHTTPRequest  
                  alert("Ill tuo Browser Non è supportato. Scarica Mozilla Firefox");  
                   return false;  
             }  
          }  
     
      }  
     return request;  
  }  
 function sendRequest(url)
    {
        var response = null;
        var connection = getXMLHTTPRequest();
        try
        {
            connection.open("GET", url, false);
            connection.send();
            if(connection.readyState == 4) response = connection.responseText;
	return response;
        }
        catch(e)
        {
            alert("ERROR: The remote host could not be found or the connection was refused.");
            return false;
        }
        alert(response);
        return false;
    } 
    var map = null;
    var geocoder = null;
    function load() {
      if (GBrowserIsCompatible()) {
 map = new GMap2(document.getElementById("map"));
 map.setMapType(G_HYBRID_MAP);
 
 /*mappa - satellite - ibrida */
 map.addControl(new GMapTypeControl());
 
 /*controller con barra vert*/
 map.addControl(new GLargeMapControl());
 
 /*zoom box, in basso a dx*/
 map.addControl(new GOverviewMapControl(),
 new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(9, 9)));
 /*COORDINATE DI PARTENZA DELLA MAPPA*/
 map.setCenter(new GLatLng(43.822259, 11.118974), 17);
 geocoder = new GClientGeocoder();
      }
    }
 /*cerca un indirizzo*/
    function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " non trovato");
            } else {
   /*zoom*/
              map.setCenter(point, 32);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address);
            }
          }
        );
      }
    }







