// JavaScript Document

    //<![CDATA[

    var marca = "";
    var html_hasta = "";
           
    function load() {
      if (GBrowserIsCompatible()) {
         var map = new GMap2(document.getElementById("ubicacion"));
          var centro = new GLatLng(42.943269,-2.643918);
          var tics = new GLatLng(42.943269,-2.643918);
             var controles = new GSmallMapControl();
          marca = new GMarker(tics);
          var html = "<strong>EUSKATFUND S.L.<br>Indicaciones: <a href='javascript:hastaAqui()'>Como llegar hasta aquí</a></span>";
          html_hasta = "<span class='nota'>Calle y Ciudad de origen</span><form action='http://maps.google.es/maps' method='get' target='_blank'><input type='text' SIZE=40 MAXLENGTH=40 name='saddr' id='saddr' value='' /><br /><INPUT style='margin:0px 0px 0px 0px; padding:0px 0px 0px 0px;'  value='Como llegar' TYPE='SUBMIT' class='boton'><input style='margin:0px 0px 0px 0px; padding:0px 0px 0px 0px;' type='hidden' name='daddr' value='"+tics.lat()+","+tics.lng()+"' />";
        map.setCenter(centro, 14);
        map.addOverlay(marca);
        map.addControl(controles);
        map.setMapType(G_NORMAL_MAP);
         //map.openInfoWindowHtml(tics,html);
         marca.openInfoWindowHtml(html);
         GEvent.addListener(marca, "click", function() {marca.openInfoWindowHtml(html);});
      }else {
         var divmap = document.getElementById("map");
         var imgmap = document.createElement("img");
         imgmap.setAttribute("src","imagenes/localizacion.jpg");
         imgmap.setAttribute("alt","Xare Sistemas");
         divmap.appendChild(imgmap);
         alert("Lo siento Google Maps no es compatible con este navegador");
       }
    }
    function hastaAqui() {
        marca.openInfoWindowHtml(html_hasta);
    }

    //]]>

