var map;
var baseIcon;
var bounds;
 var myPano;
    
function initialize() {
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map_canvas"));
    map.setCenter(new GLatLng(29.86, -95.4001), 10);
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
	

    // Create a base icon for all of our markers that specifies the
    // shadow, icon dimensions, etc.
    baseIcon = new GIcon(G_DEFAULT_ICON);
    baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
    baseIcon.iconSize = new GSize(20, 34);
    baseIcon.shadowSize = new GSize(37, 34);
    baseIcon.iconAnchor = new GPoint(9, 34);
    baseIcon.infoWindowAnchor = new GPoint(9, 2);

    bounds = new GLatLngBounds();

 
  }
}

function showAddress(address, ndx, fm, id, lat, lon) {
 if (address == "")
 {
	
 }
 else
	{
	 
		 geocoder = new GClientGeocoder();
		  if (geocoder) {
			map = new GMap2(document.getElementById("map_canvas"));
			geocoder.getLatLng(
			  address,
			  function(point) {
				if (!point) {
				  //alert(address + " not found");
				} else {
				  map.setCenter(point, 13);
				 
				 
					map.addOverlay(new GMarker(point));

				
				  
				  bounds.extend(point);
				  
				  
				}
			  }
			);
	
  }
}}



     
    function handleNoFlash(errorCode) {
      
        alert("Street View Is Unavailable For This Address");
        return;
      
    }  

