    //<![CDATA[
    
function find2(lng,lat,address,name,link,id,rate){
  var center = new GLatLng(lng,lat);
  map.panTo(center);
  var marker = new GMarker(center);
  //map.clearOverlays();
  map.addOverlay(marker);
  var myHTML;
  myHTML =  "<br/><table style=\"width:260px;height:130px\">";
  if(link != ""){
    myHTML += "<tr><td valign=\"top\" style=\"font-size:13px;\"><b><a style=\"color:#00f;font-size:13px;\" href=\""+link+"\">" + name+ "</a></b><br/><br/>"+address;
  } else {
    myHTML += "<tr><td valign=\"top\" style=\"font-size:13px;\"><b style=\"font-size:13px;\">" + name+ "</b><br/><br/>"+address;
  }
  
  if(rate > 0){
    myHTML +="<br/><br/><img src=\"images/"+rate+"stars.gif\" width=\"150\" height=\"16\" style=\"float:left;\"/>";
  }
  myHTML += "</td><td align=\"right\" valign=\"top\">";
  if(id != ""){
  	myHTML += "<img src=\"images/est/thumbs/"+id+".jpg\" onerror=\"this.width=0\">";
  }
  myHTML += "</td></tr></table>"
  marker.openInfoWindowHtml(myHTML);
}

function find3(lng,lat,address,name,link,id,rate){
  var center = new GLatLng(lng,lat);
  map.panTo(center);
  var marker = new GMarker(center);
  //map.clearOverlays();
  map.addOverlay(marker);
  var myHTML;
  myHTML =  "<br/><table style=\"width:260px;height:30px\">";
  myHTML += "<tr><td valign=\"top\" style=\"font-size:13px;\"><b style=\"font-size:13px;\">" + name+ "</b><br/><br/>"+address;

  myHTML += "</td></tr></table>"
  marker.openInfoWindowHtml(myHTML);
}

    
    
var map
function showmap(x,y,message){

 var mymap = document.getElementById("map")
 
// Center the map on Palo Alto.
 map = new GMap(document.getElementById("map"));

map.addControl(new GSmallMapControl());
map.centerAndZoom(new GPoint(x, y), 2);

// Create one of our tiny markers at the given point.


var bounds = map.getBoundsLatLng();
var width = bounds.maxX - bounds.minX;
var height = bounds.maxY - bounds.minY;

  var point = new GPoint(x, y);
  var marker = createMarker(point);
  map.addOverlay(marker);

}



function showmap2(x,y,message){

var map = new GMap2(document.getElementById("map2"));
            map.setCenter(new GLatLng(x,y), 13);


}
  
function createMarker(point) {
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);

  var marker = new GMarker(point, icon);
  
  return marker;
  
}




function ShowNews(ele,showhide){


	if (showhide){
		showhide="block";
	} else {
		showhide="none";
	}
	document.getElementById(ele).style.display=showhide;
	return true;
}

function EmailFriend(url){
	window.location = "mailto:"+"?subject="+ escape("I thought this link might interest you.") + "&body="+escape(document.title+"  "+url);
}


    //]]>

