
/* Script to launch link whilst still being strict compliant */
function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} 
window.onload = externalLinks;

/*Menu*/

	        $(function() {
            $("#lmenu").lavaLamp({
                fx: "backout", 
                speed: 700,
                click: function(event, menuItem) {
                    return true;
                }
            });
        });
			
/* Google MAP */
var map;

  function initialize() {
    if (GBrowserIsCompatible()) {
      map = new GMap2(document.getElementById("map_canvas"));
	  map.setMapType(G_HYBRID_MAP);
	  map.setCenter(new GLatLng(50.881431, -3.04385), 18);
map.openInfoWindow(map.getCenter(),
                   document.createTextNode("The Howley Tavern!"));

	   var customUI = map.getDefaultUI();
        // Remove MapType.G_HYBRID_MAP
        map.setUI(customUI);
    }
  }



