   //<![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(40.42764289183607, -3.6962127685546875), 13);
    
      // Set up markers with info windows 
      
    
      var point = new GLatLng(40.423779759677885, -3.701920509338379);
      var marker = createMarker(point,'La Ardosa','<div style="width:240px"><b>La Ardosa</b>. Col&#243;n, 13. Metro: Tribunal. Tel: 91 521 49 79. This is one of the oldest Irish Bars in Madrid and lays claim to being the first to celebrate St. Patrick&#39;s Day, as well as possessing Madrid&#39;s oldest Guinness tap, installed in 1984. It&#39;s a small bar with wooden floors and offers a limited range of tapas. <a href="http://www.laardosa.com/" target="_blank">Website</a></div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.43505001084948, -3.683338165283203);
      var marker = createMarker(point,'Bo Finn','<div style="width:240px"><b>Bo Finn</b>. Vel&#225;zquez, 97. Metro: N&#250;&#241;ez de Balboa. Tel: 91 521 49 79. Located in Madrid&#39;s posh Salamanca district, this Irish bar which tends to host more Spanish guests than foreigners. <a href="http://www.bofinn.com/" target="_blank">Website</a></div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.41585270189854, -3.702269196510315);
      var marker = createMarker(point,'Dubliners','<div style="width:240px"><b>Dubliners</b>. Espoz y Mina, 7. Metro: Sol. Tel: 91 522 7509. Dubliners is located right next-door to O&#39;Connell&#39;s (see below). Its main attraction is the large screen offering English League Football and all other important European soccer matches. Typical dishes from the isles are offered, including Shepherd&#39;s Pie and Bangers &amp; Mash, together with more international dishes such as Lasagne or Pizza. It often has special offers such as a Bucket of Beer (6 bottles of Heineken or Coronita) for 15 euros (10 euros during the mid-week Happy Hour).</div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.43032163544315, -3.7173378467559814);
      var marker = createMarker(point,'Finbar&#39;s','<div style="width:240px"><b>Finbar&#39;s</b>. Marqu&#233;s de Urquijo, 10. Metro: Arg&#252;elles. Tel: 91 548 37 93. Medium-sized bar offering a variety of beers and whiskies, together with other specialities such as Strongbow cider. 3 large TV screens show different sports and both Spanish tapas and English/Irish food is available. Usually has a large number of English speaking clients. <a href="http://www.finbarsmadrid.com/" target="_blank">Website</a></div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.423918607595155, -3.694753646850586);
      var marker = createMarker(point,'Finnegan&#39;s','<div style="width:240px"><b>Finnegan&#39;s</b>. Plaza de las Salesas, 9. Metro: Chueca. Tel: 91 310 05 21. An established favourite of the Irish and English community who often gather to see 6 Nations Rugby and other sports. On St. Patrick&#39;s Day they prepare special menus of Irish food and have different beer promotions and offers. <a href="http://www.finnegansmadrid.com/" target="_blank">Website</a></div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.41654702042635, -3.7015879154205322);
      var marker = createMarker(point,'La Fontana de Oro','<div style="width:240px"><b>La Fontana de Oro</b>. Victoria, 1. Metro: Sol. Tel: 91 531 04 20. Named after a P&#233;rez Galdos novel, this establishment is said to be one of the oldest taverns in Madrid, since it was founded at the beginning of the 19th Century and has a classic look to accompany its age. Live music is frequent here, and is its main attraction, together with the ubiquitous Guinness and traditional dishes.</div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.448612641697096, -3.674626350402832);
      var marker = createMarker(point,'Friend&#39;s Tavern','<div style="width:240px"><b>Friend&#39;s Tavern</b>. Pradillo, 30. Metro: Alfonso XIII. Tel: 91 515 39 74. Offers many and varied Spanish tapas, together with the more traditional  beers and whiskies.</div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.45565008680846, -3.6938953399658203);
      var marker = createMarker(point,'The Irish Rover','<div style="width:240px"><b>The Irish Rover</b>. Avenida del Brasil, 9. Metro: Santiago Bernab&#233;u. Tel: 91 597 48 11. Another classic amongst Irish bars in Madrid, offering live music practically every day, and virtually all-day food, since they open from mid-day until almost 5am at weekends. They regularly promote a Guest Beer, which is offered at a discount. <a href="http://www.theirishrover.com/" target="_blank">Website</a></div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.416730809425594, -3.6743152141571045);
      var marker = createMarker(point,'Jarritus','<div style="width:240px"><b>Jarritus</b>. Alcalde Sainz de Baranda, 32. Metro: Sainz de Baranda. Tel: 91 574 18 16. The decor reminds one of genuine old Irish bars. They normally put on live music to celebrate St. Patrick&#39;s Day.</div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.41983880957956, -3.6914652585983276);
      var marker = createMarker(point,'The James Joyce','<div style="width:240px"><b>The James Joyce</b>. Alcal&#225;, 59. Metro: Banco de Espa&#241;a. Tel: 91 578 19 65. Known until recently as the Kitty O&#39;Shea, this central pub is reputedly one of only a handful in Madrid actually owned and run by Irish proprietors.  It is possible to sit outside in the summer, and live music is frequent throughout the year. <a href="http://www.jamesjoycemadrid.com/" target="_blank">Website</a></div>')
      map.addOverlay(marker);          
	  
      var point = new GLatLng(40.42522539747959, -3.6951935291290283);
      var marker = createMarker(point,'The Lock Inn','<div style="width:240px"><b>The Lock Inn</b>. Calle Santa Teresa, 14. Metro: Alonso Mart&#237;nez. Tel: 91 310 39 84. Two floors with different screens for sports, serving Spanish and international food, Spanish and imported beers, and a good selection of alcohol. The lower floor can be reserved for private parties such as birthdays, meetings, meals, etc.</div>')
      map.addOverlay(marker);      	  
	  
    
      var point = new GLatLng(40.42858209762519, -3.703240156173706);
      var marker = createMarker(point,'Molly Malone&#39;s','<div style="width:240px"><b>Molly Malone&#39;s</b>. Manuela Malasa&#241;a, 11. Metro: Bilbao. Apart from sampling the traditional drinks and food, this bar offers the possibility of purchasing rugby shirts and other Gaelic products. Live music is frequent here, especially on St. Patrick&#39;s Day when a special menu is also offered. <a href="http://www.theirishrover.com/" target="_blank">Website</a></div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.41611000901211, -3.7069523334503174);
      var marker = createMarker(point,'Moore&#39;s','<div style="width:240px"><b>Moore&#39;s</b>. Felipe III, 4. Metro: Sol. Tel: 91 365 58 02. Here they celebrate St. Patrick&#39;s Day over an entire week with special menus, contests, promotions and raffles.</div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.426434155519274, -3.701244592666626);
      var marker = createMarker(point,'Moore&#39;s','<div style="width:240px"><b>Moore&#39;s</b>. Barcel&#243;, 1. Metro: Tribunal. Tel: 91 532 63 31. The other Moore&#39;s. Has special nights (e.g. Curry night) and offers and promotions during sports events.</div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.415738342865545, -3.7022584676742553);
      var marker = createMarker(point,'O&#39;Connell&#39;s','<div style="width:240px"><b>O&#39;Connell&#39;s</b>. Espoz y Mina, 7. Metro: Sol. Tel: 91 531 64 19. Spacious pub, often full to the rafters at weekends. Has large sports screens and opens late every day. Live music is available, especially during St. Patrick&#39;s Day, and a small disco area is sometimes also set up for late-night dancing. Has similar offers to Dubliners next door, such as the Bucket of Beer. One of their specialities is the large Irish Breakfast.</div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.42836975659423, -3.695300817489624);
      var marker = createMarker(point,'O&#39;Connor&#39;s','<div style="width:240px"><b>O&#39;Connor&#39;s</b>. Almagro, 3. Metro: Alonso Mart&#237;nez. Tel: 91 310 44 35. Located close to the Alonso Mart&#237;nez square. <a href="http://www.oconnorsmadrid.com/" target="_blank">Website</a></div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.41580777515875, -3.700418472290039);
      var marker = createMarker(point,'O&#39;Neill&#39;s','<div style="width:240px"><b>O&#39;Neill&#39;s</b>. Pr&#237;ncipe, 12. Metro: Sevilla. Tel: 91 521 20 30. Irish owned and run, it is said to be one of the most spacious Irish pubs in Europe, and is located close to the Huertas district. 2 large screens show all the major European football matches, and occasional live shows and other events are staged (e.g. a Celtic Music Festival). Home cooked food is well represented on the international menu. <a href="http://www.oneillspubs.com/" target="_blank">Website</a></div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.45190286148501, -3.678102493286133);
      var marker = createMarker(point,'Paddy&#39;s Irish Tavern','<div style="width:240px"><b>Paddy&#39;s Irish Tavern</b>. Concha Espina, 69. Metro: Concha Espina. Tel: 91 562 26 54. Another Irish Pub that spends a whole week celebrating St. Patrick&#39;s Day with parties, special Jameson, Guinness &amp; Kilkenny promotions and live music.</div>')
      map.addOverlay(marker);   

      var point = new GLatLng(40.42349389541637, -3.7015128135681152);
      var marker = createMarker(point,'The Quiet Man','<div style="width:240px"><b>The Quiet Man</b>. Valverde, 44. Metro: Tribunal. Tel:  91 523 46 89. Blues and other types of live music regularly available. Visiting British groups on tour are said to pass by here from time to time.</div>')
      map.addOverlay(marker);  	  
    
      var point = new GLatLng(40.42583794649835, -3.713507652282715);
      var marker = createMarker(point,'The Swan','<div style="width:240px"><b>The Swan</b>. Ventura Rodr&#237;guez, 4. Metro: Ventura Rodr&#237;guez. Tel: 91 542 05 90. On St. Patrick&#39;s Day they sometimes offer green-tinted beer!</div>')
      map.addOverlay(marker);          
    
      var point = new GLatLng(40.425486752409895, -3.7016844749450683);
      var marker = createMarker(point,'Taberna Triskel','<div style="width:240px"><b>Taberna Triskel</b>. San Vicente Ferrer, 3. Metro: Tribunal. Tel: 91 523 27 83. Small tavern in the Malasa&#241;a district, frequently offering live music.</div>')
      map.addOverlay(marker);
	  
      var point = new GLatLng(40.412041990883246, -3.7119412422180176);
      var marker = createMarker(point,'Ugly Paddy','<div style="width:240px"><b>Ugly Paddy</b>. Calle de los Mancebos, 4. Metro: La Latina. Tel: 91 365 52 65. Opened recently in the La Latina district - two large sports screens, good variety of beers and offering live music and darts championships.</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/

    //]]>	  