
    // Boundary rectangle: (-181, -181) - (181, 181)
    // Filter Type: none
    var map;
    var baseIcon;
    var idList = new Array();
    var markers = new Array();
    var queueInfoWindow;

    // Creates a marker whose info window displays the caption
    function createMarker(map, latitude, longitude, html_caption, icon, id) {
      inArray = 0;
      if (id > 0) {
        for (i=0; i<idList.length; i++) {
           if (idList[i] == id) inArray = 1;
        }
      }

      if (!inArray) {
        idList[idList.length] = id;
        var point = new GPoint(longitude, latitude);
        var marker = new GMarker(point, icon);
        GEvent.addListener(marker, "click", markers[id] = function() {
          marker.openInfoWindowHtml(html_caption);
        });
        map.addOverlay(marker);
      }
    }

   function map_update() {
      bounds = map.getBounds();
      sw = bounds.getSouthWest();
      ne = bounds.getNorthEast();
      lat1 = sw.lat();
      lat2 = ne.lat();
      lng1 = sw.lng();
      lng2 = ne.lng();

    }

    function map_init(latitude, longitude, zoom) {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        GEvent.addListener(map, "moveend", map_update);
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(latitude, longitude), zoom);

        baseIcon = new GIcon();
        baseIcon.shadow = "/images/golf/teeShadow.png";
        baseIcon.iconSize = new GSize(30, 30);
        baseIcon.shadowSize = new GSize(27, 28);
        baseIcon.iconAnchor = new GPoint(10, 28);
        baseIcon.infoWindowAnchor = new GPoint(12, 5);
    
        icon_park_1 = new GIcon(baseIcon);
        icon_park_1.image = "images/Pine-Trees-icon.gif"
		
        icon_history_2 = new GIcon(baseIcon);
        icon_history_2.image = "images/Historic-haus-icon.gif"
		
        icon_golf_3 = new GIcon(baseIcon);
        icon_golf_3.image = "images/Golf1a.gif"
      
          createMarker(map, 27.835695, -97.067809,
"<span class=c_h><a href='http://www.texasoutside.com'>Port Aransas</a></span><br/>"
, icon_park_1, 3);
      }
    }
    
