var QueryTesto = "Ricerca un termine ...";
var map = null;    
var geocoder = null;

function QueryOnLoad(nome){
var thisObj=document.getElementById(nome);
thisObj.value = QueryTesto;
}

function QueryOnBlur(thisObj){
if(thisObj.value.length == 0){ thisObj.value = QueryTesto; }else{}
}

function QueryOnClick(thisObj){
if(thisObj.value == QueryTesto){ thisObj.value = ""; }else{ }
}

function initialize() {
if (GBrowserIsCompatible()) {
 var address      = "Via dell'Artigianato n.25,Pressana,Verona,Italy";
 var pointAddress = new GLatLng(parseFloat(45.27683),parseFloat(11.41456));
 var addressText  = "<span style='font-size:9px;color:black;'><b>Full-Tech</b><br>Via dell'Artigianato n.25, Pressana VR</span>";
 map              = new GMap2(document.getElementById("map"));
 geocoder         = new GClientGeocoder();

 map.addControl(new GLargeMapControl());
 map.addControl(new GMapTypeControl());
 
  if(pointAddress!=null){
    var marker = new GMarker(pointAddress);
	  map.clearOverlays();
	  map.setCenter(pointAddress, 13);
	  map.addOverlay(marker);
	  marker.openInfoWindowHtml(addressText);
  }else{
   if (geocoder) {        
    geocoder.getLatLng(address,function(point) { 
    if (!point) { alert(address + " not found"); } else {
	  var marker = new GMarker(point);
	  map.clearOverlays();
	  map.setCenter(point, 13);
	  map.addOverlay(marker);
	  marker.openInfoWindowHtml(addressText);
   }});}
  }

}}

