
var map = null;
var geocoder = null;

function location_map_load(address) {
   if (GBrowserIsCompatible()) {
     map = new GMap2(document.getElementById("map"));
     geocoder = new GClientGeocoder();
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
							map.addControl(new GSmallZoomControl());
							map.addControl(new GMapTypeControl());
              map.setCenter(point, 15);
              var marker = new GMarker(point);
              map.addOverlay(marker);
//              marker.openInfoWindowHtml('New house');
            }
          }
        );
      }
    }
}
function bookmarkLink(t,u)
	{
	if (window.sidebar)
		{
		// Mozilla Firefox Bookmark
		window.sidebar.addPanel(t, u,"");
		}
	else if( window.external )
		{
		// IE Favorite
		window.external.AddFavorite( u, t);
		}
	else if(window.opera && window.print)
		{
		// Opera Hotlist
		return true;
		}
	}

function clearOtherSearches(w)
{
if(w=='uniqueID') document.search.city.options[0].selected = true;
if(w=='uniqueID') document.search.bedrooms.options[0].selected = true;
if(w=='city') document.search.uniqueID.options[0].selected = true;
if(w=='bedrooms') document.search.uniqueID.options[0].selected = true;
return true;
}


