// JavaScript Document
// JavaScript Document
    function load2() {
      if (GBrowserIsCompatible()) {
	  
	  // Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc.
        var baseIcon = new GIcon(G_DEFAULT_ICON);
        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
        baseIcon.iconSize = new GSize(20, 34);
        baseIcon.shadowSize = new GSize(37, 34);
        baseIcon.iconAnchor = new GPoint(9, 34);
        baseIcon.infoWindowAnchor = new GPoint(9, 2);

	    function createMarker(point, index, title) {
          // Create a lettered icon for this point using our icon class
          var letter = String.fromCharCode("A".charCodeAt(0) + index);
          var letteredIcon = new GIcon(baseIcon);
          letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
          // Set up our GMarkerOptions object
          markerOptions = { icon:letteredIcon, title:title };
          var marker = new GMarker(point, markerOptions);

          GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml("<span class=texto><b>" + letter + "</b>:"+ title + '</span>');
          });
          return marker;
        }
        //var map = new GMap2(document.getElementById("map"));
		var map = new GMap2(document.getElementById("wide"));
				
		map.removeMapType(G_HYBRID_MAP);
	map.setCenter(new GLatLng(-0.16572916691555924,-78.48323822021484), 13);

		map.addControl(new GSmallMapControl());
        //map.addControl(new GMapTypeControl());		
		var bottomRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10,10));
				map.addControl(new GMapTypeControl(), bottomRight);				
		// agencia principal		
		var latlng = new GLatLng(-0.15962341640661618,-78.47319602966309);								
		map.addOverlay(createMarker(latlng, 0, 'Oficina Administrativa: Palmeras N45-74 y Orquídeas'));	
	// quicentro
	 var point2 = new GLatLng(-0.17672510735313832,-78.47903251647949);
		  map.addOverlay(createMarker(point2, 1, 'Agencia Quicentro:,Quicentro Piso 3 - Local 13-14'));
		  // megamaxi
	 var point3 = new GLatLng(-0.1802012333735126,-78.4782063961029);      
		   map.addOverlay(createMarker(point3, 2, 'Agencia Megamaxi: Av. 6 de diciembre y Germán Alemán'));		  
		  // el bosques 
		   var point4 = new GLatLng(-0.1622412420784124,-78.49814057350159);         
		   map.addOverlay(createMarker(point4, 3, 'Agencia El Bosque: C.C El Bosque Local 25'));			  
		  // amazonas 
		   var point5 = new GLatLng(-0.20735576188300586,-78.49699258804321);       
		   map.addOverlay(createMarker(point5, 4, 'Agencia Amazonas: Av. Amazonas 239 y 18 de Septiembre'));			
      }
	  else
	  {
	  alert("el navegador no es compatible");
	  }	  
    }
 