//	var map;
//	var batch=[];
//	var blueIcon = new GIcon(G_DEFAULT_ICON);
	
//	blueIcon.image = "http://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png";
	
	// James Tolley edited this file so that these functions do not get called. 4/15/08
    function loadXX() {
      if (GBrowserIsCompatible()) {      	
		map = new GMap2(document.getElementById("Gmap"));        
		if (map){
			map.addControl(new GLargeMapControl());
			map.setCenter(new GLatLng(37.4419, -100.1569), 3);        	
		}		
      }
    }
    function showMarkersXX()
    {
    	var locationElement = document.getElementById("locations");
    	var locations;
    	if (locationElement)
    	{
    		l = locationElement.firstChild.nodeValue;
    		locations = l.split('|');
    	}
 		//locateSchools("27 Seneca Lane, Bordentown, NJ 08505");
    	if ( locations.length > 0 )
    	{
    		for (var i=0; i < locations.length; i=i+2) {    			
    			locateSchools(locations[i],locations[i+1]);
    		}
    	}
    }
    function locateSchoolsXX(address, info)
    {
    	var geocoder = new GClientGeocoder();
        //alert(address);
        //alert(info);

    	geocoder.getLatLng(address,
						      function(point) {
						        if (point) {
						          var marker = new GMarker(point);						          
  								  GEvent.addListener(marker, "click", function() {
  								  	var myinfoarray = info.split('~');
  								  	var school = myinfoarray[0];
  								  	var blurb = myinfoarray[2];
  								  	var html = "<table><tr><td>"
  								  	html = html.concat(school);
  								  	html = html.concat("</td></tr>");
  								  	html = html.concat("<tr><td>", address,"</td></tr>");
  								  	html = html.concat('<tr><td><hr style="color:grey"></td></tr>');
  								  	html = html.concat('<tr><td>',blurb,'</td></tr>' );  								  	
    								map.openInfoWindowHtml(point, html);
  									});								  
						          map.addOverlay(marker);
						        }
						      }
    	);
    }
    function addToMapXX(response)
    {
    	      // Retrieve the object
      place = response.Placemark[0];
      alert(place);

      // Retrieve the latitude and longitude
      point = new GLatLng(place.Point.coordinates[1],
                          place.Point.coordinates[0]);

      // Center the map on this point
      map.setCenter(point, 13);

      // Create a marker
      marker = new GMarker(point);

      // Add the marker to map
      map.addOverlay(marker);

      // Add address information to marker
      //marker.openInfoWindowHtml(place.address);
    }
