    var geocoder;
   	var map;
   	
   	var _address = "";
    var _colorCode = "";
    var _schoolName = "";
    var _schoolAddress = "";
    var _schoolCity = "";
    var _schoolState = "";
    var _schoolZip = "";
     
   	//Start with this function //address will be null for other pages than map.aspx
   function load_google_map(address, colorCode, schoolName, schoolAddress, schoolCity, schoolState, schoolZip)
   {
        if(address == "")
            return;
        
        _address = address;
        _colorCode = colorCode;
        _schoolName = schoolName;
        _schoolAddress = schoolAddress;
        _schoolCity = schoolCity;
        _schoolState = schoolState;
        _schoolZip = schoolZip;
      
      // Create new map object
      map = new GMap2(document.getElementById("map"));
        
      // Create new geocoding object
      geocoder = new GClientGeocoder();

      // Retrieve location information, pass it to addToMap()
      geocoder.getLocations(address, addToMap);
   }

   // This function adds the point to the map
   function addToMap(response)
   {
      // Retrieve the object
      place = response.Placemark[0];
      
      // 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);

      //Build school info
      var schoolInfo = "<div style='font-family:arial; font-size:11px;' ><font color='" + _colorCode + "' ><b>" + _schoolName + "<br>" + _schoolAddress + " " + _schoolCity + " " + _schoolState + " " + _schoolZip + "</b></font>";
      schoolInfo += "<br>Enter your address to get directions: <form style='margin:0px;' action='http://maps.google.com/maps' method='get' target='_blank'><input style='font-size:11px; font-family:arial;' type='text' size='40' maxlength='75' name='saddr' id='saddr' value=''> <input class='button'  style='font-size:11px; font-family:arial;' value='Go' type='submit'><input type='hidden' id='daddr' name='daddr' value='" + _address + "'></form></div>";
      
      
      // Add address information to marker
      marker.openInfoWindowHtml(schoolInfo);
            
      map.addControl(new GSmallMapControl());
      map.addControl(new GMapTypeControl());
   }   