var hot_lat=0;
var hot_long=0;

function loadMapa()
{
  if (GBrowserIsCompatible())
  {
	  
    var map = new GMap2(document.getElementById("mapa"),{ size: new GSize(575,320) });
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng(hot_long, hot_lat), 16);
    map.getContainer().style.overflow='hidden';

    // Create our "tiny" marker icon
    var icon = new GIcon();
    icon.image = "/CLIENTES/bookingengine.hotusa.com/images/google_icon.png";
    //icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
    icon.iconSize = new GSize(32, 42);
    //icon.shadowSize = new GSize(22, 20);
    icon.iconAnchor = new GPoint(32, 42);
    icon.infoWindowAnchor = new GPoint(5, 1);
    var point = new GLatLng(hot_long, hot_lat);
    map.addOverlay(new GMarker(point, icon));
  }
}

var myLatlng = new google.maps.LatLng(41.016612,0.188184);
var myOptions = {
  zoom: 4,
  center: myLatlng,
  mapTypeId: google.maps.MapTypeId.ROADMAP
}

var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

var contentString = '<div id="content">'+
    '<div id="siteNotice">'+
    '</div>'+
    '<h1 id="firstHeading" class="firstHeading">Uluru</h1>'+
    '<div id="bodyContent">'+
    '<p><b>Uluru</b>, also referred to as <b>Ayers Rock</b>, is a large ' +
    'sandstone rock formation in the southern part of the '+
    'Northern Territory, central Australia. It lies 335 km (208 mi) '+
    'south west of the nearest large town, Alice Springs; 450 km '+
    '(280 mi) by road. Kata Tjuta and Uluru are the two major '+
    'features of the Uluru - Kata Tjuta National Park. Uluru is '+
    'sacred to the Pitjantjatjara and Yankunytjatjara, the '+
    'Aboriginal people of the area. It has many springs, waterholes, '+
    'rock caves and ancient paintings. Uluru is listed as a World '+
    'Heritage Site.</p>'+
    '<p>Attribution: Uluru, <a href="http://en.wikipedia.org/w/index.php?title=Uluru&oldid=297882194">'+
    'http://en.wikipedia.org/w/index.php?title=Uluru</a> (last visited June 22, 2009).</p>'+
    '</div>'+
    '</div>';

var infowindow = new google.maps.InfoWindow({
    content: contentString
});

var marker = new google.maps.Marker({
    position: myLatlng,
    map: map,
    title:"Uluru (Ayers Rock)"
});

google.maps.event.addListener(marker, 'click', function() {
  infowindow.open(map,marker);
});


function selPestFit(pest)
{
    for (var compt=0;compt<=4;compt++)
    {
        try { document.getElementById("pestfit_"+compt).className="pestfitsec";  } catch(err55) {}
        try { document.getElementById("pestfitdiv_"+compt).style.visibility="hidden"; } catch(err56) {}
    }
    try { document.getElementById("pestfit_"+pest).className="pestfitprim";  } catch(err58) {}
    try { document.getElementById("pestfitdiv_"+pest).style.visibility="visible"; } catch(err59) {}
}

