   var map = null;
   var geocoder = null;
   var baseIcon = null;
   var expanded = false;

   function gmailLoad() {
	//alert("loading");
	//init();
    if (GBrowserIsCompatible()) {
	    map = new GMap2(document.getElementById("map"));
	    map.setCenter(new GLatLng(37.4419, -122.1419), 13);
	    geocoder = new GClientGeocoder();
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		var baseIcon = new GIcon();
		baseIcon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
		baseIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		baseIcon.iconSize = new GSize(35, 32);
		baseIcon.shadowSize = new GSize(70, 32);
		baseIcon.iconAnchor = new GPoint(5, 1);
		baseIcon.infoWindowAnchor = new GPoint(5, 1)
		icon = new GIcon(baseIcon);
		icon.image = "http://tapat1180.com/images/tap_icon.png";
		icon.shodow="http://tapat1180.com/images/tap_logo_shadow.png";
		showAddress("1180 Peachtree St NE, Atlanta, GA 30309");
    
    }

	//new Ajax.Updater('contact_container',
	//      "contact_form.html", {
	//            method: 'get'
	//      }
	//);

 
   }//close gmailLoadf()

   function showAddress(address) {
     if (geocoder) {
       geocoder.getLatLng(
         address,
         function(point) {
           if (!point) {
             //alert(address + " not found");
           } else {
             map.setCenter(point, 13);
             var marker = new GMarker(point, icon);
             map.addOverlay(marker);
             //marker.openInfoWindowHtml(address);
			 map.setZoom(16);
			
			GEvent.addListener(marker, "click", function() {
		    		marker.openInfoWindowHtml("<font color='#000'>TAP is GREAT</font>");
		  		});
           }
         }
       );
     }
   }


function createMarker(point) {
  // Create a lettered icon for this point using our icon class
  //var letter = String.fromCharCode("A".charCodeAt(0) + index);
  var icon = new GIcon(baseIcon);
  icon.image = "http://jasonamster.com/clients/tap/images/tap_icon.png";
  var marker = new GMarker(point, icon);

  GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml("TAP is GREAT");
  });
  return marker;
}


function send(){
	var params = Form.serialize($('contact_form'));
	new Ajax.Updater('contact_form', 'email.php', {asynchronous:true, parameters:params});
}



	

	
