//<![CDATA[

    function load(lat,long,texto) {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        var center = new GLatLng(lat,long);
        map.addControl(new GSmallMapControl());
   map.enableContinuousZoom();
map.enableDoubleClickZoom(); 
        map.setCenter(center, 13);
        

        // Creates a marker at the given point with the given number label
        function createMarker(point, texto) {
          var marker = new GMarker(point);
          GEvent.addListener(marker, "mouseover", function() {
            marker.openInfoWindowHtml(texto);
          });
          return marker;
        }

var polyline = new GPolyline([
new GLatLng(42.38955059439677, -3.5686254501342773),
new GLatLng(42.38672955655012, -3.572230339050293),
new GLatLng(42.38501785381301, -3.57755184173584),
new GLatLng(42.38314760672845, -3.5825729370117188),
new GLatLng(42.380136074854136, -3.5868215560913086),
new GLatLng(42.37468324964047, -3.5941171646118164),
new GLatLng(42.36732752605568, -3.6122703552246094),
new GLatLng(42.36659824790532, -3.616647720336914),
new GLatLng(42.36463232550283, -3.6206817626953125),
new GLatLng(42.3618418784011, -3.6351442337036133),
new GLatLng(42.359669683225945, -3.6461949348449707),
new GLatLng(42.36160405047349, -3.646860122680664),
new GLatLng(42.359669683225945, -3.6461949348449707),
new GLatLng(42.353596651583956, -3.66818904876709),
new GLatLng(42.34628603620164, -3.681643009185791),
new GLatLng(42.344795264061574, -3.6844968795776367),
new GLatLng(42.34392298737363, -3.685634136199951),
new GLatLng(42.342987258926556, -3.6858701705932617),
new GLatLng(42.33983105519003, -3.6847329139709473),
new GLatLng(42.338419435411495, -3.6848831176757812),
new GLatLng(42.33735673444584, -3.6855697631835938),
new GLatLng(42.338419435411495, -3.6848831176757812),
new GLatLng(42.33659538539874, -3.686707019805908),
new GLatLng(42.33348644779249, -3.694925308227539),
new GLatLng(42.33232848787315, -3.6963415145874023),
new GLatLng(42.33118636953523, -3.696577548980713),
new GLatLng(42.32828339208249, -3.696320056915283),
new GLatLng(42.326998424862104, -3.6968350410461426),
new GLatLng(42.32580861699557, -3.6982083320617676),
new GLatLng(42.32406352475262, -3.6998820304870605),
new GLatLng(42.32035107660549, -3.701341152191162),
new GLatLng(42.3147343925447, -3.7033581733703613),
new GLatLng(42.31179892035123, -3.702714443206787),
new GLatLng(42.3074033897998, -3.702392578125),
new GLatLng(42.302737761673356, -3.702971935272217),
new GLatLng(42.29688143296883, -3.703594207763672)
], "#FF0000", 10);
map.addOverlay(polyline);


        var point= new GLatLng(lat,long);

map.addOverlay(createMarker(point, texto));



var icon = new GIcon();
icon.image = "http://batolor.cobertec.com/imagenes/senal.png";
icon.shadow = "";
icon.iconSize = new GSize(100, 62);
icon.shadowSize = new GSize(106, 62);
icon.iconAnchor = new GPoint(5, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
var point = new GLatLng(42.35496035991531, -3.6496925354003906);
map.addOverlay(new GMarker(point, icon));
      }
    }

    //]]>   





 
