function nascondi(){nascondiWebcam();nascondiFumettoW();infowindow.close();nascondiFumetto();status==null;panorama = map.getStreetView();toggle = panorama.getVisible(); if (toggle == true) {      panorama.setVisible(false);    }nascondiFumettoA();nascondiFumettoB();nascondiFumettoC();nascondiFumettoD();nascondiFumettoE();nascondiFumettoF();nascondiRomania();nascondiVeneto();nascondiUmbria();nascondiPuglia();nascondiBasilicata();nascondiTerremoto();nascondi3D();nascondiGIS();infowindowCoord.close();if (marker) {        marker.setMap(null);          }if (markerCoord) {        markerCoord.setMap(null);          }  if (markerAlt) {        markerAlt.setMap(null);          } if (ruler1) {        ruler1.setMap(null);          }  if (ruler2) {        ruler2.setMap(null);          }if (rulerpoly) {        rulerpoly.setMap(null);          } if (ruler1label) {      ruler1label.setMap(null);           } if (ruler2label) {      ruler2label.setMap(null);           }directionsDisplay.setMap(null);document.getElementById("side-container").style.visibility = "hidden";document.getElementById('dir-container').style.visibility = "hidden";document.getElementById('georef').style.visibility = "hidden";document.getElementById('MenuStrumenti').style.visibility = "hidden";document.getElementById('menuInfo').style.visibility = "hidden";document.getElementById('menuStereoFot').style.visibility = "hidden";document.getElementById('status').style.visibility = "hidden";document.getElementById("gisonline").style.visibility="hidden";document.getElementById("gis3d").style.visibility="hidden";document.getElementById("terremotoL").style.visibility="hidden";document.getElementById("basilicataL").style.visibility="hidden";document.getElementById("pugliaL").style.visibility="hidden";document.getElementById("umbriaL").style.visibility="hidden";document.getElementById("venetoL").style.visibility="hidden";document.getElementById("romaniaL").style.visibility="hidden";document.getElementById("pescopaganoL").style.visibility="hidden";document.getElementById("pignolaL").style.visibility="hidden";document.getElementById("motore").style.visibility = "hidden";document.getElementById('map3d').style.display="none";document.getElementById("MenuWebcam").style.visibility="hidden";document.getElementById("webdolomiti").style.visibility="hidden";document.getElementById("webaosta").style.visibility="hidden";document.getElementById("webcentro").style.visibility="hidden";document.getElementById("websud").style.visibility="hidden";document.getElementById('Menu3D').style.visibility = "hidden";}function rilieviFotogrammetrici(){nascondi();map.setZoom(6);map.setCenter(new google.maps.LatLng(43.253205, 17.83081));var image = 'http://stereofot.it/tools/images/35_yellow.png';for (var i = 0; i < pointA.length; i++) {    var location = pointA[i];    var markerA = new google.maps.Marker({        position: location,         map: map,        icon: image    });          attachSecretMessageA(markerA, i);        puntiA.push(markerA);  }   function attachSecretMessageA(markerA, number) {  fumettoA[number] = new google.maps.InfoWindow(      { content: nomeA[number]      });  google.maps.event.addListener(markerA, 'click', function() {     nascondiFumettoA();     fumettoA[number].open(map,markerA);  });}function nascondiFumettoA(){	for (i = 0; i < fumettoA.length; i++) {    	fumettoA[i].close();    }}function nascondiFumetto(){	infowindow.close();}for (var i = 0; i < pointC.length; i++) {    var location = pointC[i];   markerC = new google.maps.Marker({        position: location,         map: map,        icon: image    });          attachSecretMessageC(markerC, i);        puntiC.push(markerC);  }   function attachSecretMessageC(markerC, number) {  fumettoC[number] = new google.maps.InfoWindow(      { content: nomeC[number]      });  google.maps.event.addListener(markerC, 'click', function() {     nascondiFumettoC();     fumettoC[number].open(map,markerC);  });} for (var i = 0; i < pointB.length; i++) {    var location = pointB[i];    var markerB = new google.maps.Marker({        position: location,         map: map,        icon: image    });          attachSecretMessageB(markerB, i);        puntiB.push(markerB);  } for (var i = 0; i < pointE.length; i++) {    var location = pointE[i];    var titolo = nomeE[i];    var markerE = new google.maps.Marker({        position: location,         map: map,        icon: image    });          attachSecretMessageE(markerE, i);        puntiE.push(markerE);  } for (var i = 0; i < pointD.length; i++) {    var location = pointD[i];    var titolo = nomeD[i];    var markerD = new google.maps.Marker({        position: location,         map: map,        icon: image    });          attachSecretMessageD(markerD, i);        puntiE.push(markerD);  }for (var i = 0; i < pointF.length; i++) {    var location = pointF[i];    var titolo = nomeF[i];    var markerF= new google.maps.Marker({        position: location,         map: map,        icon: image    });          attachSecretMessageF(markerF, i);        puntiF.push(markerF);  }}var sound6Embed;  function sound6Play() {                                if ( !sound6Embed ) {                                        sound6Embed = document.createElement("embed");                                        sound6Embed.setAttribute("src", "accessori10/audio/geolocation.wav");                                        sound6Embed.setAttribute("hidden", true);                                        sound6Embed.setAttribute("autostart", true);                                } else sound6Stop();                                sound6Embed.removed = false;                                document.body.appendChild(sound6Embed);                        }                                                function sound6Stop() {                                if ( sound6Embed && !sound6Embed.removed ) {                                        document.body.removeChild(sound6Embed);                                        sound6Embed.removed = true;                                }                        }var sound5Embed;  function sound5Play() {                                if ( !sound5Embed ) {                                        sound5Embed = document.createElement("embed");                                        sound5Embed.setAttribute("src", "accessori10/audio/altitudine.wav");                                        sound5Embed.setAttribute("hidden", true);                                        sound5Embed.setAttribute("autostart", true);                                } else sound5Stop();                                sound5Embed.removed = false;                                document.body.appendChild(sound5Embed);                        }                                                function sound5Stop() {                                if ( sound5Embed && !sound5Embed.removed ) {                                        document.body.removeChild(sound5Embed);                                        sound5Embed.removed = true;                                }                        }                        var sound4Embed;  function sound4Play() {                                if ( !sound4Embed ) {                                        sound4Embed = document.createElement("embed");                                        sound4Embed.setAttribute("src", "accessori10/audio/misure.wav");                                        sound4Embed.setAttribute("hidden", true);                                        sound4Embed.setAttribute("autostart", true);                                } else sound4Stop();                                sound4Embed.removed = false;                                document.body.appendChild(sound4Embed);                        }                                                function sound4Stop() {                                if ( sound4Embed && !sound4Embed.removed ) {                                        document.body.removeChild(sound4Embed);                                        sound4Embed.removed = true;                                }                        } var sound3Embed;  function sound3Play() {                                if ( !sound3Embed ) {                                        sound3Embed = document.createElement("embed");                                        sound3Embed.setAttribute("src", "accessori10/audio/coordinate.wav");                                        sound3Embed.setAttribute("hidden", true);                                        sound3Embed.setAttribute("autostart", true);                                } else sound3Stop();                                sound3Embed.removed = false;                                document.body.appendChild(sound3Embed);                        }                                                function sound3Stop() {                                if ( sound3Embed && !sound3Embed.removed ) {                                        document.body.removeChild(sound3Embed);                                        sound3Embed.removed = true;                                }                        }                         var sound2Embed;  function sound2Play() {                                if ( !sound2Embed ) {                                        sound2Embed = document.createElement("embed");                                        sound2Embed.setAttribute("src", "accessori10/audio/clickmenu.wav");                                        sound2Embed.setAttribute("hidden", true);                                        sound2Embed.setAttribute("autostart", true);                                } else sound2Stop();                                sound2Embed.removed = false;                                document.body.appendChild(sound2Embed);                        }                                                function sound2Stop() {                                if ( sound2Embed && !sound2Embed.removed ) {                                        document.body.removeChild(sound2Embed);                                        sound2Embed.removed = true;                                }                        } //menuStereofotvar ricerc = new Array();ricerc[0] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/storia.html";ricerc[1] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/rilievo.html";ricerc[2] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/architettonico.html";ricerc[3] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/finalizzazione.html";ricerc[4] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/indagine.html";ricerc[5] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/ricognizione.html";ricerc[6] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/rilevamento.html";ricerc[7] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/restituzione.html";ricerc[8] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/urbano.html";ricerc[9] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/ergonomia.html";ricerc[10] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/GIS.html";ricerc[11] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/informazione.html";ricerc[12] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/acquisizione.html";ricerc[13] = "http://rilievo.stereofot.it/ricerca/rilievo/ricerca98/aggiorna.html"; function ricerca(number) {	if (number == null) {         alert("Questo documento non esiste!");         return;      }     var newWindow = window.open(ricerc[number],'document',"menubar=yes,status=yes,Toolbar=no,location=no,scrollbars=yes,resizable=yes,height=620,width=850");newWindow.focus();}document.write("<div id='menuInfo' style='background-image: url(http://stereofot.it/accessori/blu.png);   position: absolute; top: 80px; left: 250px; visibility: hidden; padding: 20px; z-index:40;   -moz-box-shadow: 5px 5px 15px black;-webkit-box-shadow: 5px 5px 15px black; box-shadow: 5px 5px 15px black;border-radius: 20px;  -moz-border-radius: 20px;  -webkit-border-radius: 20px;'  class='didaM'><P><span class=didascalia>Sistema Informativo Globale</span></A><UL><LI><A HREF=javascript:ricerca(0) class=mappa>La premessa storica<LI><A HREF=javascript:ricerca(1) class=mappa>Il rilievo<UL><LI><A HREF=javascript:ricerca(2) class=mappa> Il rilievo architettonico<UL><LI> <A HREF=javascript:ricerca(3) class=mappa>La finalizzazione<LI><A HREF=javascript:ricerca(4) class=mappa>L'indagine preliminare<LI><A HREF=javascript:ricerca(5) class=mappa>La prima ricognizione<LI><A HREF=javascript:ricerca(6) class=mappa>Il rilevamento<LI><A HREF=javascript:ricerca(7) class=mappa>La restituzione</UL><LI><A HREF=javascript:ricerca(8) class=mappa>Il rilievo urbano</UL><LI><A HREF=javascript:ricerca(9) class=mappa>L'ergonomia<LI><A HREF=javascript:ricerca(10) class=mappa>Il G.I.S. (Geographical Information System)<UL><LI><A HREF=javascript:ricerca(11) class=mappa>L'informazione<LI><A HREF=javascript:ricerca(12) class=mappa>L'acquisizione<LI><A HREF=javascript:ricerca(13) class=mappa> L'aggiornamento</UL></UL></P></div>");document.write(" <div id='status' style='width:250px; position:absolute; left:750px; top:5px; z-index:4; font-family: Arial; font-weight:normal;  font-size: 13px;  color: white; background-color:black; text-align=left; visibility: hidden;   -moz-box-shadow: 5px 5px 15px black;-webkit-box-shadow: 5px 5px 15px black; box-shadow: 5px 5px 15px black;border-radius: 20px;  -moz-border-radius: 20px;  -webkit-border-radius: 20px;'>&nbsp;  </div>  <div id='MenuStrumenti' style='background-image: url(http://serracapriola.net/accessori08/immagini/sfondoblu.png);   width: 180; position: absolute; top: 90px; left: 770px; visibility: hidden; padding: 20px; z-index:10;   -moz-box-shadow: 5px 5px 15px black;-webkit-box-shadow: 5px 5px 15px black; box-shadow: 5px 5px 15px black;border-radius: 20px;  -moz-border-radius: 20px;  -webkit-border-radius: 20px;'  class='didaM'><P>STRUMENTI<BR><BR><A HREF='javascript:nascondi();' class=mappa>Nascondi menu</A><BR><A HREF='javascript:percorsi();' class=mappa>Percorsi stradali</A><BR><A HREF='javascript:CercaIndirizzi();' class=mappa>Localizza indirizzo</A><BR><A HREF='javascript:altitudine();' class=mappa>Rilievo altitudine</A><BR><A HREF='javascript:addruler();' class=mappa>Misura distanze</A><BR><A HREF='javascript:coordinate();' class=mappa>Georeferenziazione</A></P><P align=right class=didascalia><A href=javascript:nascondi(); class='mappa'>chiudi</A></P></div><BR></P></div>");function strumentiS(){if(document.getElementById("MenuStrumenti").style.visibility=="hidden"){nascondi();document.getElementById("MenuStrumenti").style.visibility="visible";document.getElementById("status").style.visibility="visible"; 	}else{document.getElementById("MenuStrumenti").style.visibility="hidden";document.getElementById("status").style.visibility="hidden";	}}//interstazionefunction copertina(){if(document.getElementById("menuInfo").style.visibility=="hidden"){nascondi();document.getElementById("menuInfo").style.visibility="visible";	}else{	document.getElementById("menuInfo").style.visibility="hidden";	}}//menuInfovar storia = new Array();storia[0] = "http://stereofot.it/carta/cosa.html";storia[1] = "http://stereofot.it/carta/serve.html";storia[2] = "http://stereofot.it/carta/funziona.html";storia[3] = "http://stereofot.it/carta/maps.html";storia[4] = "http://stereofot.it/carta/earth.html";storia[5] = "http://stereofot.it/carta/sketchup.html";storia[6] = "http://stereofot.it/carta/galleria3D.html";storia[7] = "http://stereofot.it/carta/fotogrammetria.html";storia[8] = "http://stereofot.it/carta/stereofot.html";storia[9] = "http://rilievo.stereofot.it/stampa/fotarch.html";storia[10] = "http://rilievo.stereofot.it/filmati/dvd/4ripresa/fotarch.html";storia[11] = "http://stereofot.it/carta/ricerca.html";storia[12] = "http://stereofot.it/carta/georeferenza.html";storia[13] = "http://stereofot.it/carta/fotarch.html";storia[14] = "http://www.youtube.com/daddabboA";storia[15] = "http://www.youtube.com/daddabboA#p/c/8B67A025286099B1/1/hc5e5nS_c4U";storia[16] = "http://stereofot.it/carta/LMinistro.html";storia[17] = "http://www.youtube.com/daddabboA"; function story(number) {	if (number == null) {         alert("Questo documento non esiste!");         return;      }     var newWindow = window.open(storia[number], 'document',"menubar=yes,status=yes,Toolbar=no,location=no,scrollbars=yes,resizable=yes,height=620,width=850");newWindow.focus();}document.write("<div id='menuStereoFot' style='background-image: url(http://stereofot.it/accessori/blu.png);  width: 300px; position: absolute; top: 70px; left: 250px; visibility: hidden; padding: 20px; z-index:40;   -moz-box-shadow: 5px 5px 15px black;-webkit-box-shadow: 5px 5px 15px black; box-shadow: 5px 5px 15px black;border-radius: 20px;  -moz-border-radius: 20px;  -webkit-border-radius: 20px;' class=didaM><A HREF=javascript:story(13) class='mappa'>Perch&eacute;?</A><BR><A HREF=javascript:story(0) class='mappa'>Cos&#39;&egrave;</A><BR><A HREF=javascript:story(1) class='mappa'>a Cosa serve</A><BR><A HREF=javascript:story(2) class='mappa'>Come funziona</A><BR><BR><A HREF=javascript:story(11) class='mappa'>Le tappe della ricerca</A><BR><A HREF=javascript:story(15) class='mappa'>La documentazione dei Beni Culturali</A> <span class=didascalia>(video)</span><BR><A HREF=javascript:story(14) class='mappa'>La Carta dei Beni Culturali</A> <span class=didascalia>(video)</span><BR><BR><A HREF=javascript:story(12) class='mappa'>La georeferenziazione</A><BR><A HREF=javascript:story(3) class='mappa'>Maps Google</A><BR><A HREF=javascript:story(4) class='mappa'>Google Earth</A><BR><A HREF=javascript:story(5) class='mappa'>SketchUp</A><BR><A HREF=javascript:story(6) class='mappa'>Galleria di immagini 3D</A><BR><BR><A HREF=javascript:story(7) class='mappa'>La fotogrammetria</A><BR><A HREF=javascript:story(8) class='mappa'>StereoFot &reg;</A><BR><BR><A HREF=javascript:story(9) class='mappa'>Rassegna stampa</A><BR><A HREF=javascript:story(10) class='mappa'>I video</A><BR><A HREF=javascript:story(17) class='mappa'>Canale You Tube</A><BR><BR><A HREF=javascript:story(16) class='mappa'>Lettera al Ministro S. Bondi</A></div>");function sistema(){if(document.getElementById("menuStereoFot").style.visibility=="hidden"){nascondi();document.getElementById("menuStereoFot").style.visibility="visible";document.getElementById("status").style.visibility="visible"; 	}else{document.getElementById("menuStereoFot").style.visibility="hidden";document.getElementById("status").style.visibility="hidden";	}}//coordinatevar geocoder;  var map;  var infowindowCoord = new google.maps.InfoWindow();  var markerCoord;  var latlngCoord;  var indirizzo;  function coordinate(){    	sound3Play();   	nascondi();//  	map.setZoom(15);  	var image = 'http://serracapriola.net/accessori08/immagini/mm_30_yellow.png';  	markerCoord = new google.maps.Marker({    map: map,  position: map.getCenter() ,   icon: image,    draggable: true,  });   latlngCoord = markerCoord.getPosition();    google.maps.event.addListener(markerCoord, 'dragend', function() {    latlngCoord = markerCoord.getPosition();     geocoder.geocode({'latLng': latlngCoord}, function(results, status) {      if (status == google.maps.GeocoderStatus.OK) {        if (results[0]) {    	 var latitu =latlngCoord.lat();     var longitu=latlngCoord.lng();      var latitud = Math.round(latitu*100000000)/100000000;      var longitud = Math.round(longitu*100000000)/100000000;	  var la = latlngCoord.lat();        var lati = Math.abs(la);        var A = parseInt(lati);        var latit = (lati - A)*60;        var B = parseInt(latit);        var C = parseInt((latit - B)*60*1000)/1000;        if (la< 0){        var latitudine = A + "&deg;" + B +"&#146;" + C + "&quot;" + "S";        } else{           var latitudine = A + "&deg;" + B +"&#146;" + C + "&quot;" + "N" ;        }          var lo = latlngCoord.lng();        var lon = Math.abs(lo);        var A1 = parseInt(lon);        var long = (lon - A1)*60;        var B1 = parseInt(long);        var C1 = parseInt((long - B1)*60*100)/100;        if (lo< 0){        var longitudine = A1 + "&deg;" + B1 +"&#146;" + C1 + "&quot;" + "W";                } else{                var longitudine = A1 + "&deg;" + B1 +"&#146;" + C1 + "&quot;" + "E" ;         }    	 infowindowCoord.setContent([    	   '<table width=300 border=0><tr><td nowrap class=didascaliaN><FONT color=red>',    latitudine,    ', ',    longitudine,     '</font><BR> <B>lat, long</B>: ',    latitu,    ', ',    longitu,    '<BR></td></tr></table>',    results[0].formatted_address  ].join(''));    infowindowCoord.open(map, markerCoord);       } else {          alert("No results found");        }      } else {       ; alert("Geocoder failed due to: " + status);      }    });           });   google.maps.event.addListener(markerCoord, 'mousedown', function() {      infowindowCoord.close();      });  }        //altitudine function getElevation(event) { var latlng  = markerAlt.getPosition();    var locations = [];    locations.push(latlng);    var positionalRequest = {      'locations': locations    }    elevator.getElevationForLocations(positionalRequest, function(results, status) {      if (status == google.maps.ElevationStatus.OK) {              if (results[0]) {          infowindow.setContent("Questa zona si trova a quota: <BR><center><H3><B><font color=red> " + Math.round(results[0].elevation) + "  metri  s. l. m.</font></B></H3></center>");          infowindow.open(map, markerAlt);        } else {          alert("No results found");        }      } else {        alert("Elevation service failed due to: " + status);      }    });   }   function altitudine() {  	sound5Play();   	nascondi();  	var image = 'http://serracapriola.net/accessori08/immagini/mm_30_yellow.png';  markerAlt = new google.maps.Marker({    map: map,    position: map.getCenter() ,    icon: image,    draggable: true,     });   elevator = new google.maps.ElevationService();    google.maps.event.addListener(markerAlt, 'dragend',getElevation);        google.maps.event.addListener(markerAlt, 'mousedown', function() {      infowindow.close();   });    }   //indirizzidocument.write("<div id='georef' style='background: yellow; padding:10px; width: 550px;height: 25px; position: absolute; top: 520px; left:410px; z-index:5; font-family: Arial; font-weight:bold; font-style:italic; font-size: 10px; line-height:15px; color: blue; visibility: hidden; border-radius: 10px;  -moz-border-radius: 10px;  -webkit-border-radius: 10px; opacity: .85; '>Scrivi l&acute;indirizzo:<input id='address' ty pe='textbox' size='50' value='piazza Madonnella, Bari, Italy'<input type='button' value='Georeferenzia' onclick='cercaInd()'></div>");var marker;  function CercaIndirizzi() {  nascondi();  document.getElementById('georef').style.visibility = "visible";  }  function cercaInd() {    document.getElementById('georef').style.visibility = "visible";      if (marker) {        marker.setMap(null);          }    var address = document.getElementById("address").value;    var image = 'http://serracapriola.net/accessori08/immagini/mm_30_yellow.png';    geocoder.geocode( { 'address': address}, function(results, status) {      if (status == google.maps.GeocoderStatus.OK) {    posizione = results[0].geometry.location        map.setCenter(posizione);             map.setZoom(16);       marker = new google.maps.Marker({            map: map,             position: posizione,            icon: image,});       var latlngCoord = posizione;  var latitud = Math.round((latlngCoord.lat())*1000000)/1000000;  var longitud = Math.round((latlngCoord.lng())*1000000)/1000000;  var la = latlngCoord.lat();        var lati = Math.abs(la);        var A = parseInt(lati);        var latit = (lati - A)*60;        var B = parseInt(latit);        var C = parseInt((latit - B)*60*100)/100;        if (la< 0){        var latitudine = A + "&deg;" + B +"&#146;" + C + "&quot;" + "S";        } else{           var latitudine = A + "&deg;" + B +"&#146;" + C + "&quot;" + "N" ;        }          var lo = latlngCoord.lng();        var lon = Math.abs(lo);        var A1 = parseInt(lon);        var long = (lon - A1)*60;        var B1 = parseInt(long);        var C1 = parseInt((long - B1)*60*100)/100;        if (lo< 0){        var longitudine = A1 + "&deg;" + B1 +"&#146;" + C1 + "&quot;" + "W";         } else{         var longitudine = A1 + "&deg;" + B1 +"&#146;" + C1 + "&quot;" + "E" ;         }     infowindowCoord.setContent([    	  '<b>Coordinate</b> (lat, long):<BR><FONT color=red>',    latitudine,    ', ',    longitudine,     '</font><BR>',    latitud,    ', ',    longitud  ].join(''));      infowindowCoord.open(map, marker);      } else {        alert("Geocode was not successful for the following reason: " + status);      }    });  }//percorsidocument.write('<div id="side-container">Scrivi l&acute;indirizzo di <b>partenza: </b><BR><input id="start" type="textbox" size="27" value="piazza Madonnella,Bari,Italy"><BR>Scrivi l&acute;indirizzo di <b>arrivo: </b><BR><input id="end" type="textbox" size="27" value="piazza di Spagna, Roma, Italy"><BR><input type="button" value="chiudi" onclick="chiudiP()"><input type="button" value="calcola il percorso" onclick="calcRoute()"></div><div id="dir-container"></div>'); function percorsi() {nascondi(); document.getElementById("side-container").style.visibility = "visible";  }     function calcRoute() {     document.getElementById('dir-container').style.visibility = "visible";directionsDisplay.setMap(map);   var start = document.getElementById("start").value;    var end = document.getElementById("end").value;    var request = {        origin:start,         destination:end,        travelMode: google.maps.DirectionsTravelMode.DRIVING    };    directionsService.route(request, function(response, status) {      if (status == google.maps.DirectionsStatus.OK) {        directionsDisplay.setDirections(response);        }    });    }         function chiudiP(){directionsDisplay.setMap(null);document.getElementById("side-container").style.visibility = "hidden";document.getElementById('dir-container').style.visibility = "hidden";  };var motor = new Array();motor[0] = "http://stereofot.it:591/studenti/FMPro?-db=gis.fp5&-lay=GIS&-format=carta2.htm&-view";motor[1] = "http://stereofot.it:591/studenti/FMPro?-db=gis.fp5&-format=daticarta2.htm&-lay=GIS&Oggetto=Chiesa&lavoro=completo&-max=10&-find= ";motor[2] = "http://stereofot.it:591/studenti/FMPro?-db=gis.fp5&-format=daticarta2.htm&-lay=GIS&Oggetto=Masseria&lavoro=completo&-max=10&-find=";motor[3] = "http://stereofot.it:591/studenti/FMPro?-db=gis.fp5&-format=daticarta2.htm&-lay=GIS&Oggetto=castello&lavoro=completo&-max=10&-find=";motor[4] = "http://stereofot.it:591/studenti/FMPro?-db=gis.fp5&-format=daticarta2.htm&-lay=GIS&Oggetto=Edificio&lavoro=completo&-max=10&-find=";motor[5] = "http://stereofot.it:591/studenti/FMPro?-db=gis.fp5&-format=daticarta2.htm&-lay=GIS&Oggetto=Palazzo&lavoro=completo&-max=10&-find=";motor[6] = "http://stereofot.it:591/studenti/FMPro?-db=gis.fp5&-format=daticarta2.htm&-lay=GIS&Oggetto=Monastero&lavoro=completo&-max=10&-find=' name=";motor[7] = "http://stereofot.it:591/studenti/FMPro?-db=gis.fp5&-format=daticarta2.htm&-lay=GIS&Oggetto=Centro%20urbano&lavoro=completo&-max=10&-find=";motor[8] = "http://stereofot.it:591/studenti/FMPro?-db=gis.fp5&-format=daticarta2.htm&-lay=GIS&Oggetto=Territorio&lavoro=completo&-max=10&-find=";motor[9] = "http://rilievo.stereofot.it:591/StereoFot/FMPro?-db=StereoFot.fp5&-lay=Scheda&-format=carta24B.htm&-view";motor[10] = "http://rilievo.stereofot.it:591/StereoFot/FMPro?-db=StereoFot.fp5&-lay=Scheda&-format=carta18B.htm&-view";motor[11] = "http://rilievo.stereofot.it:591/StereoFot/FMPro?-db=StereoFot.fp5&-lay=Scheda&-format=cartaAnaglB.htm&-view";motor[12] = "http://rilievo.stereofot.it:591/StereoFot/FMPro?-db=StereoFot.fp5&-lay=Scheda&-format=cartaInvB.htm&-view";motor[13] = "http://rilievo.stereofot.it:591/StereoFot/FMPro?-db=StereoFot.fp5&-lay=Scheda&-format=motore.htm&-view"; function motore(number) { 	nascondi();         quadro2.location=motor[number];         document.getElementById("motore").style.visibility = "visible"; }document.write ("<div  id='motore' style='position:absolute; left:160px; top:63px;  visibility: hidden;  z-index:5; ' > <iframe src='http://stereofot.it/accessori10/immagini/quadro.jpg' name='quadro2'  width='850' height='520' frameborder='0' scrolling='auto'></iframe></div>");   var aer = new Array();aer[0] = "basilicata/MVirtuMT.html";aer[1] = "basilicata/SPietroMT.html";aer[2] = "puglia/basilicaSN.html";aer[3] = "puglia/castelloBA.html";aer[4] = "puglia/cattedraleBA.html";aer[5] = "puglia/colosso.html";aer[6] = "puglia/exMonasteroBarletta.html";aer[7] = "puglia/SEgidioBitonto.html";aer[8] = "puglia/SLeoneBitonto.html";aer[9] = "puglia/SMMiracoli.html";aer[10] = "puglia/SPietroNuovo.html";aer[11] = "puglia/SScolastica.html";aer[12] = "puglia/STeresaBA.html";aer[13] = "veneto/BasilicaSMarcoVE.html";aer[14] = "veneto/bovoloVE.html";aer[15] = "veneto/maninVE.html";aer[16] = "veneto/palazzoVE.html";aer[17] = "veneto/PQueriniVE.html";aer[18] = "veneto/SFrancescoVE.html";aer[19] = "veneto/TolentiniVE.html"; function aerea(number) { 	nascondi();         quadro2.location="http://stereofot.it/bing3d/" + aer[number];         document.getElementById("motore").style.visibility = "visible";         } var indirizzomodello = new Array();indirizzomodello[0] = "http://stereofot.it/google3D.php?f=presenta";indirizzomodello[1] = "http://stereofot.it/google3D.php?f=modello";indirizzomodello[2] = "http://stereofot.it/google3D.php?f=modelloBA";indirizzomodello[3] = "http://stereofot.it/google3D.php?f=modelloSN";indirizzomodello[4] = "http://stereofot.it/google3D.php?f=modelloCattBA";indirizzomodello[5] = "http://stereofot.it/google3D.php?f=modelloCastBA";indirizzomodello[6] = "http://stereofot.it/google3D.php?f=modelloCentro";indirizzomodello[7] = "http://stereofot.it/google3D.php?f=modelloCastello";indirizzomodello[8] = "http://stereofot.it/google3D.php?f=modelloSMM";indirizzomodello[9] = "http://stereofot.it/google3D.php?f=modelloSM";indirizzomodello[10] = "http://stereofot.it/google3D.php?f=modelloSAnna";indirizzomodello[11] = "http://stereofot.it/google3D.php?f=modelloSAngelo";indirizzomodello[12] = "http://stereofot.it/google3D.php?f=modelloSStrinita";indirizzomodello[13] = "http://stereofot.it/google3D.php?f=modelloSFTr";indirizzomodello[14] = "http://stereofot.it/google3D.php?f=modelloConvento";indirizzomodello[15] = "http://stereofot.it/google3D.php?f=modelloSantaFosca";indirizzomodello[16] = "http://stereofot.it/google3D.php?f=modelloAndria";indirizzomodello[17] = "http://stereofot.it/google3D.php?f=modelloToffol";indirizzomodello[18] = "http://stereofot.it/google3D.php?f=modelloSelva";indirizzomodello[19] = "http://stereofot.it/google3D.php?f=modelloBernard";indirizzomodello[20] = "http://stereofot.it/google3D.php?f=modelloFranceschin";indirizzomodello[21] = "http://stereofot.it/google3D.php?f=modelloPescul"; function modelli(number) { 		nascondi(); 		 mod3d.location= indirizzomodello[number]; 		 document.getElementById('map3d').style.display = "block"; 		      }   function modello3d() { 		if(document.getElementById("Menu3D").style.visibility=="hidden"){nascondi();document.getElementById("Menu3D").style.visibility="visible"; 	}else{document.getElementById("Menu3D").style.visibility="hidden";	}} document.write("<div id='Menu3D' style='background-image: url(http://serracapriola.net/accessori08/immagini/sfondoblu.png);   width: 180; position: absolute; top: 90px; left: 770px; visibility: hidden; padding: 20px; z-index:10;   -moz-box-shadow: 5px 5px 15px black;-webkit-box-shadow: 5px 5px 15px black; box-shadow: 5px 5px 15px black;border-radius: 20px;  -moz-border-radius: 20px;  -webkit-border-radius: 20px;'  class='dida'><P><A HREF='http://sketchup.google.com/3dwarehouse/cldetails?mid=6b57e99d4e25f5e1e96ddace4f4e2014' target=blanc   class='mappa'>MODELLI   GOOGLE  3D</A><BR><BR><A href=javascript:modelli(1)  class='mappa'>Citt&agrave; italiane in 3D</A><BR><A HREF=http://stereofot.it/bari3D/fotarch.html target=blanc class=mappa>Bari in 3D<BR><A href=javascript:modelli(3)  class='mappa'>&nbsp;&nbsp; Basilica di San Nicola</A><BR><A href=javascript:modelli(4)  class='mappa'>&nbsp;&nbsp; Cattedrale</A><BR><A href=javascript:modelli(5)  class='mappa'>&nbsp;&nbsp; Castello</A><BR><A HREF=http://3d.serracapriola.net/fotarch.html target=blanc class=mappa>Serracapriola in 3D<BR><A href=javascript:modelli(6)  class='mappa'>&nbsp;&nbsp; Centro Storico</A><BR><A href=javascript:modelli(7)  class='mappa'>&nbsp;&nbsp; Castello</A><BR><A href=javascript:modelli(8)  class='mappa'>&nbsp;&nbsp; Chiesa di S. Mercurio</A><BR><A href=javascript:modelli(9)  class='mappa'>&nbsp;&nbsp; Chiesa di S. Maria</A><BR><A href=javascript:modelli(10)  class='mappa'>&nbsp;&nbsp; Chiesa di S. Anna</A><BR><A href=javascript:modelli(11)  class='mappa'>&nbsp;&nbsp; Chiesa di S. Angelo</A><BR><A href=javascript:modelli(12)  class='mappa'>&nbsp;&nbsp; Chiesa della SS. Trinit&agrave;</A><BR><A href=javascript:modelli(13)  class='mappa'>&nbsp;&nbsp; Chiesa di S. Filomena</A><BR><A href=javascript:modelli(14)  class='mappa'>&nbsp;&nbsp; Convento</A><BR><A HREF=http://stereofot.it/selva3D/fotarch.html target=blanc class=mappa>Selva di Cadore in 3D<BR><A href=javascript:modelli(15)  class='mappa'>&nbsp;&nbsp; Santa Fosca</A><BR><A href=javascript:modelli(16)  class='mappa'>&nbsp;&nbsp; L&#39;Andria</A><BR><A href=javascript:modelli(17)  class='mappa'>&nbsp;&nbsp; Toffol</A><BR><A href=javascript:modelli(18)  class='mappa'>&nbsp;&nbsp; Selva di Cadore</A><BR><A href=javascript:modelli(19)  class='mappa'>&nbsp;&nbsp; Bernard</A><BR><A href=javascript:modelli(20)  class='mappa'>&nbsp;&nbsp; Franceschin</A><BR><A href=javascript:modelli(21) class='mappa'>&nbsp;&nbsp; Pescul</A></P><P align=right class=mini><A HREF='javascript:chiudi3D()'  class='mappa'>chiudi</A></div>");  function chiudi3D(){document.getElementById("Menu3D").style.visibility = "hidden";  };
