   //<![CDATA[
    

    if (GBrowserIsCompatible()) { 

	
function OpenNewWindow(Name, URL, width, height, scroll)
	{
		var wndopt = "width="+width+",height="+height+",scrollbars="+scroll+",top=10,left=10,menubar=no,resizable=no";
		NewWin=window.open(URL, Name, wndopt);
		NewWin.focus();
	}	
	
	
      // this variable will collect the html which will eventually be placed in the side_bar
      var side_bar_html = "";
    
      // arrays to hold copies of the markers and html used by the side_bar
      // because the function closure trick doesnt work there
      var gmarkers = [];
      var i = 0;

      var baseIcon = new GIcon();
          baseIcon.iconSize=new GSize(32,32);
          baseIcon.shadowSize=new GSize(56,32);
          baseIcon.iconAnchor=new GPoint(16,32);
          baseIcon.infoWindowAnchor=new GPoint(16,0);
          



      // A function to create the marker and set up the event window
      function createMarker(point,name,html,icon) {
        var marker = new GMarker(point,icon);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        // save the info we need to use later for the side_bar
        gmarkers[i] = marker;
        // add a line to the side_bar html
		side_bar_html += '<li><a class="maplink" href="javascript:myclick(' + i + ')">' + name + '</a></li>';
        i++;
        return marker;
      }


      // This function picks up the click and opens the corresponding info window
      function myclick(i) {
        GEvent.trigger(gmarkers[i], "click");
      }

// Display the map, with some controls and set the initial location 
      var map = new GMap2(document.getElementById("map"));
	  map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
	  map.setCenter(new GLatLng(25.794636, -108.989525), 15, G_PHYSICAL_MAP);
	  map.addMapType(G_PHYSICAL_MAP);
    
      // Set up markers with info windows 
	  
	   var point = new GLatLng(25.795177,-108.989546);
      var marker = createMarker(point,'Pravda','<div style="width:184px"><strong>Pravda</strong><br><font color="#0066FF"> Ubicado en Ignacio Zaragoza y Callej&oacute;n Juan Carrasco</font><br> <a href="http://www.pravda.com.mx/" target="_blank"><br>Sitio web</a></div>')
      map.addOverlay(marker);  
      
      
    
      var point = new GLatLng(25.80694,-108.99520);
      var marker = createMarker(point,'Las Micheladas','<div style="width:184px"><strong>Las Micheladas</strong><br><font color="#0066FF">Blvd. Jiquilpan casi esq. con Blvd. R&iacute;o Fuerte</font><br><a href="http://www.lasmicheladas.com.mx/" target="_blank"><br>Sitio web</a></div>')
      map.addOverlay(marker);    
            
      
    
      var point = new GLatLng(25.80283,-108.99836);
      var marker = createMarker(point,'Bar Bibo','<div style="width:184px"><strong>Bar Bibo</strong><br><font color="#0066FF">Plaza Campanario Col. Scally</font><br><a href="http://www.mochisonline.com/bibo/" target="_blank"><br>Sitio web</a></div>')
      map.addOverlay(marker);  
 
	  var point = new GLatLng(25.791168,-108.99593);
      var marker = createMarker(point,'El Libanez Bar Rock','<div style="width:184px"><strong>El Libanez Bar Rock</strong><br><font color="#0066FF">Independencia entre Guerrero y &Aacute;ngel Flores</font><br><a href="http://www.libanez.com.mx/" target="_blank"><br>Sitio web</a></div>')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(25.81253,-108.95787);
      var marker = createMarker(point,'Apocalipsis','<div style="width:184px"><strong>Apocalipsis</strong><br><font color="#0066FF">Apocalipsis Discotheque</font><br><font size="1">Carretera Internacional y Blvd. Macario Gaxiola</font><a href="http://www.apocalipsisdisco.com" target="_blank"><br>Sitio web</a></div>')
      map.addOverlay(marker);
	   
	  var point = new GLatLng(25.782658,-108.998322);
      var marker = createMarker(point,'New Stardus','<div style="width:184px"><strong>New Stardust Billar & Beer</strong><br><font color="#0066FF">Zaragoza y Netzahualc&oacute;yotl, Planta Alta</font><br><a href="http://www.newstardus.com/" target="_blank"><br>Sitio web</a></div>')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(25.79975,-108.98594);
      var marker = createMarker(point,'Bungalows Live Bar','<div style="width:184px"><strong>Bungalows Live Bar</strong><br><font color="#0066FF">Zaragoza esquina con Loaiza</font><br><a href="http://www.bungalowslive.com/" target="_blank"><br>Sitio web</a></div>')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(25.795351,-108.989825);
      var marker = createMarker(point,'Andamio RX','<div style="width:184px"><strong>Andamio RX</strong><br><font color="#0066FF">Ubicado en Ignacio Zaragoza y Callej&oacute;n Juan Carrasco</font><br><a href="http://www.mochisonline.com/" target="_blank"><br>Sitio web</a></div>')
      map.addOverlay(marker);
	  
	   var point = new GLatLng(25.794868,-108.990104);
      var marker = createMarker(point,'Hooligans Bar','<div style="width:184px"><strong>Hooligans Bar</strong><br><font color="#0066FF">Rend&oacute;n entre Leyva y Zaragoza</font><br><a href="http://www.hooligansbar.com/" target="_blank"><br>Sitio web</a></div>')
      map.addOverlay(marker);
	    
	   var point = new GLatLng(25.792782,-108.988259);
      var marker = createMarker(point,'Btween','<div style="width:184px"><strong>Btween Bar & Disco</strong><br><font color="#0066FF">Serd&aacute;n esquina con Allende</font><br><a href="http://www.btween.com.mx/" target="_blank"><br>Sitio web</a></div>')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(25.78572,-109.00408);
      var marker = createMarker(point,'La Marchanta','<div style="width:184px"><strong>La Marchanta</strong><br><font color="#0066FF">Plaza Encuentro</font><br><a href="http://www.lamarchanta.com.mx/" target="_blank"><br>Sitio web</a></div>')
      map.addOverlay(marker);
	  
      // put the assembled side_bar_html contents into the side_bar div
      document.getElementById("side_bar").innerHTML = side_bar_html;


    }
    
    // display a warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }

    // This Javascript is based on code provided by the
    // Blackpool Community Church Javascript Team
    // http://www.commchurch.freeserve.co.uk/   
    // http://www.econym.demon.co.uk/googlemaps/

    //]]>
