// JavaScript Document
    //<![CDATA[

    // global arrays to hold copies of the markers used by the side_bar
    var gmarkers = [];
    
    // global "map" variable
    var map;

    // This function picks up the click and opens the corresponding info window
    function myclick(i) {
      GEvent.trigger(gmarkers[i], "click");
    }
    
    // This function zooms in or out
    // its not necessary to check for out of range zoom numbers, because the API checks
    function myzoom(a) {
      map.setZoom(map.getZoom() + a);
    }

    function onLoad() {
     if (GBrowserIsCompatible()) {
      // this variable will collect the html which will eventualkly be placed in the side_bar
      var side_bar_html = "";
      var i = 0;

      // A function to create the marker and set up the event window
      function createMarker(point,name,html) {
        var marker = new GMarker(point);
        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 += '<a href="javascript:myclick(' + i + ')">' + name + '</a><br>';
        i++;
        return marker;
      }

      // create the map using the global "map" variable
      map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      map.setCenter(new GLatLng(35.449344, -81.002498), 13);

      // add the points    
      var point = new GLatLng(35.449344, -81.002498);
      var marker = createMarker(point,"<strong>Nevoles Pizzeria</strong>","<strong>Nevoles Pizzeria</strong><br>7260 Hwy. 73, Suite 118<br>Denver, NC 28037")
      map.addOverlay(marker);
                       
    }

    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }
   } // end of onLoad function

   // This Javascript is based on code provided by the
   // Blackpool Community Church Javascript Team
   // http://www.commchurch.freeserve.co.uk/   
    // http://econym.googlepages.com/index.htm

   //]]>