// JavaScript Document
function hideDiv(id)
	{
		document.getElementById(id).style.display='none';
	}
	function hideDiv2(id)
	{
		document.getElementById(id).style.display='none';
		playman();
	}
    //<![CDATA[

    if (GBrowserIsCompatible()) {
	 var tinyIcon = new GIcon();
	  tinyIcon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
	  tinyIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
	  tinyIcon.iconSize = new GSize(12, 20);
	  tinyIcon.shadowSize = new GSize(22, 20);
	  tinyIcon.iconAnchor = new GPoint(6, 20);
	  tinyIcon.infoWindowAnchor = new GPoint(5, 1);
	  // Set up our GMarkerOptions object literal
	  markerOptions = { icon:tinyIcon };
      // this variable will collect the html which will eventualkly be placed in the side_bar
    
      // arrays to hold copies of the markers used by the side_bar
      // because the function closure trick doesnt work there
      var gmarkers = [];

      // A function to create the marker and set up the event window
      function createMarker(point,name,html) {
        var marker = new GMarker(point, markerOptions);
		 
	    GEvent.addListener(marker, "click", function() {
          var thezoom = map.getZoom();
	  if(thezoom>2){marker.openInfoWindowHtml(html);}
        });
        // save the info we need to use later for the side_bar
        gmarkers.push(marker);
        // add a line to the side_bar html
        return marker;
      }


      // This function picks up the click and opens the corresponding info window
      function myclick(i) {
        GEvent.trigger(gmarkers[i], "click");}



      // create the map
      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      map.setCenter(new GLatLng(39.0960, -97.0313), 4);
	   var thezoom = map.getZoom();
	  




	//document.getElementById('loader').style.display = 'none';
    }

    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }