
		jQuery(document).ready(function() { 

			var geocoder = null,
			    map = null;
			    
			mapCanvas = document.getElementById("map");
			
			if (mapCanvas !== null || GBrowserIsCompatible()) {
        	
						map = new GMap2(mapCanvas);
					
        		      geocoder = new GClientGeocoder();
        		
	            if (geocoder) {
                    geocoder.getLatLng(
											Meeting.street_address + ' ' + Meeting.city + ', ' + Meeting.state + ' ' + Meeting.zip ,
                      function(point) {
                        if (!point) 
                        {
                          //alert("The address was not found.");
                        } 
                        else 
                        {
                          map.setCenter(point, 13);
                          var marker = new GMarker(point);
                          map.addOverlay(marker);
                          var html = '<h3>Location of next meeting!</h3><p id="meeting_location">' + Meeting.hosted_by + '</p><p>' + Meeting.street_address+'</p><p>' + Meeting.city + ', ' + Meeting.state + ' ' + Meeting.zip+'</p>';
                          marker.openInfoWindowHtml(html);
                        }
                      }
                    );
              }// end of if geocoder
			
      		}// end of if browser compatible
		
		
			jQuery('#directions_form').submit(function(e){
				e.preventDefault();
                var start = jQuery('#start').val();
                 var directionsPanel = document.getElementById("directions");
                 var directions = new GDirections(map, directionsPanel);
                 directions.load("from: "+start+" to: " + Meeting.street_address + " " + Meeting.city + ', ' + Meeting.state + ' ' + Meeting.zip);
			});
	
		
		jQuery('#print_directions').click(function(e){
			e.preventDefault();
			window.print();
		});
		
		
		
		});// end of ready
		
		
		
		
		jQuery(document).unload(function() {
			GUnload();
		});

