
// 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 = [];
 

 
 
      // This function picks up the click and opens the corresponding info window
      function myclick(i) {
        GEvent.trigger(gmarkers[i], "click");
      }
 
function func_county_map() {


 
      // 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.push(marker);

	 bounds.extend(point);
         return marker;
      }
 
      // create the map
	var map = new GMap2(document.getElementById("map_canvas"));
	map.setUIToDefault();

	map.setCenter(new GLatLng( 0,0), 1);
	var bounds = new GLatLngBounds();
 
// add the points    
      var point = new GLatLng(26.6394680,-82.0283990);
      var marker = createMarker(point,"Champion Self Storage","<table><tr><td colspan=\"2\"><b>Champion Self Storage</b></td></tr><tr><td><img src=\"images/48pic1_tn.jpg\" style=\"height:70px; border:1px solid black;\"/></td><td valign=\"top\" style=\"font:9pt arial;\">2607 SW Pine Island Rd.<br/>Cape Coral, FL. 33991<br/>239.282.2866<br/><a href=\"http://championselfstorage.com\" target=\"_blank\">Visit website</a></td></tr></table>")
      map.addOverlay(marker);


          map.setZoom(map.getBoundsZoomLevel(bounds));
 
          // ===== determine the centre from the bounds ======
          map.setCenter(bounds.getCenter());


}



