    //<![CDATA[
     if (GBrowserIsCompatible())
     {
     //Global variables *****************************************************************
	  var iconStart = new GIcon();
	  iconStart.image = "http://classic.cota.com/Maps/Images/icong.png";
	  iconStart.shadow = "";
	  iconStart.iconSize = new GSize(19, 20);
	  iconStart.shadowSize = new GSize(22, 20);
	  iconStart.iconAnchor = new GPoint(6, 20);
	  iconStart.infoWindowAnchor = new GPoint(5, 1);

	  var iconStop = new GIcon();
	  iconStop.image = "http://classic.cota.com/Maps/Images/iconr.png";
	  iconStop.shadow = "";
	  iconStop.iconSize = new GSize(19, 20);
	  iconStop.shadowSize = new GSize(22, 20);
	  iconStop.iconAnchor = new GPoint(6, 20);
	  iconStop.infoWindowAnchor = new GPoint(5, 1);

      //***************** Broad @ High - Columbus Ohio
      var lat = -83.000633;
      var lon = 39.962231;
	  var map = "";
      var markerBusStop = "";
	  var pointBusStop = "";

     // Functions *****************************************************************

      function StartMeUp()
	  {
      map = new GMap(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      map.centerAndZoom(new GPoint(lat,lon), 6);
      pointBusStop = map.getCenterLatLng();


      GEvent.addListener(map, 'click', function(overlay, point)
        {
	    if (overlay)
	     {
	  	  // alert("overlay");
	     }
	    else if (point)
	     {
	      pointBusStop = point;
		  map.removeOverlay(markerBusStop);
		  markerBusStop = new GMarker(point,iconStart);
		  map.addOverlay(markerBusStop);
	     } //end else
	    } //end gevent
 	  );    

      } //end function



	  function subClear()
	  {
	   map.clearOverlays();
	   document.frmBusStop.txtStatus.value = "";
	  }

      function subHelp()
      {
       alert("Click on the map. Push the Find Stops button.");
      }

      function subCancel()
      {
       window.location="http://infoweb.cota.com/hiwire?.a=iStopLookup";
      }

	 
     //process RADIUS radio button on the form
     function subFindStopsStart()
	 { 
	 var Radius = 0;
	 for (var i=0; i < document.frmBusStop.Radius.length; i++)
     {
      if (document.frmBusStop.Radius[i].checked)
      {
       switch(document.frmBusStop.Radius[i].value)
       {
        case "25":
		 Radius = document.frmBusStop.Radius[i].value;
         break
        case "50":
		 Radius = document.frmBusStop.Radius[i].value;
         break
        case "100":
		 Radius = document.frmBusStop.Radius[i].value;
         break
       }//end switch
      }//end if
     }//end for
	 subFindStops(Radius);
	 }//end function
	 
	 //Find all the bus stops from a given location on the map within a certain radius
	 function subFindStops(Radius)
	  { 
       document.frmBusStop.txtStatus.value = "Working ...";
       var xRadius = (Radius/100);  
       map.clearOverlays();
	   map.centerAndZoom(pointBusStop, 1);

	   var html = "<div style='width: 200px;'>";
	   html = html + "Stops within a quarter mile radius of this location.";
	   html = html + "<br></div>";
	   var MapCenter = new GMarker(map.getCenterLatLng());    //* tag center of map
	   GEvent.addListener(MapCenter, "click", function() {
	     MapCenter.openInfoWindowHtml(html);
	     });
	   map.addOverlay(MapCenter);
	   html = "Gathering stop data. Please wait.";
	   MapCenter.openInfoWindowHtml(html);

	   var datMarkers = GXmlHttp.create();
	   var StopCount = 0;
	   // datMarkers.open("GET", "../cotamaps/xml/webstops.xml", true);
	   datMarkers.open("GET", "http://classic.cota.com/Maps/webstops.xml", true);
	   datMarkers.onreadystatechange = function()
	   {
	    if (datMarkers.readyState == 4)
	    {
	    var xmlDoc = datMarkers.responseXML;
	    // obtain the array of markers and loop through it
	    var mark = xmlDoc.documentElement.getElementsByTagName("row");
	    for (var i = 0; i < mark.length; i++)
	     {
	     // obtain the attribues of each marker
	     var lon = parseFloat(mark[i].getAttribute("Lon"));
	     var lat = parseFloat(mark[i].getAttribute("Lat"));
	     var point = new GPoint(lon,lat);
	     if (distance_between_points(point,map.getCenterLatLng()) / 1609.344 <= xRadius)
	      {
	       StopCount += 1;
	       var stopid = mark[i].getAttribute("Stopid");
	       var stopname = mark[i].getAttribute("Stopname");
	       var stopabbr = mark[i].getAttribute("Stopabbr");
	       map.addOverlay(CreateMarker(point, StopHtml(stopid, stopname)));
	      }
	     }
	     document.frmBusStop.txtStatus.value = StopCount + " Stops Found.";
	     html = "<div style='width: 300px;'>";
	     html = html + "Stops within " + xRadius + " mile radius of this location. ";
	   	 html = html + "<br> " + StopCount + " Stops Found.";
	   	 html = html + "<br></div>";
	     MapCenter.openInfoWindowHtml(html);
	    } //*end of rs4
	   } //*end of orsc
	   datMarkers.send(null);
      }

      function StopHtml(stopid, stopname)
      {
       var html = "Stop ID: ";
	   html = html + stopid;
	   html = html + "<br>";
	   html = html + "Stop Name: ";
	   html = html + stopname;
	   html = html + "<br><p align='center'><table><tr>";
	   html = html + "<td>Click <a href='http://infoweb.cota.com/hiwire?.a=iStopLookupDetails&StopId=" + stopid + "'>"
	   html = html + "Here</a> to choose this stop.</td>"
       html = html + "</tr></table></p>";
       return(html);
      }

      function CreateMarker(point, html)
       {
        var marker = new GMarker(point, iconStop);
        GEvent.addListener(marker, "click", function() {
           marker.openInfoWindowHtml(html);
        });
        return marker;
       }

	  //**************************************************************************************	  
	  
     }
     else
     {
	  alert("Sorry, the Google Maps API is not compatible with this browser");
     }
	 
    window.onload = StartMeUp;
    //]]>

