	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; 
		}
	}

var map = null;
var geocoder = null;

function location_map_load(address) {
   if (GBrowserIsCompatible()) {
     var 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 swapimg(id,link) {
    var height = document.getElementById(id).height;
	var width = document.getElementById(id).width;
	if(width > height) {
		document.getElementById('main_img').width="428";
		document.getElementById('main_img').src=link;
	}
	else {
		document.getElementById('main_img').width="241";
		document.getElementById('main_img').src=link;
	}
}

