function ResetGeoMap(suburbGlat , suburbGLong)
{
    if(oMap) {
        oMap.closeInfoWindow();
        oMap.setCenter(new GLatLng(suburbGlat,suburbGLong), 13);
    }
}

/****************
 Propeerty_display
*****************/

function Suburb_property_display(WebRef, oMapMarker)
{
    if(WebRef == 'null' || WebRef == 'Please select a province.') return true;
    oMapMarker.openInfoWindowHtml("<div style='text-align: center'>\n\
                                        <img src='"+MUFFIN_SHARED_URL+"/images/_lib/loading/remaxloading.gif'>\n\
                                    </div>");
        $url = '/?page=property_details&webref='+WebRef+'&content=main&prop_details_mini=true';
        new Ajax.Request($url,
        {
            onSuccess : function (response){
                oMapMarker.openInfoWindowHtml(response.responseText);
            }
        });
    return true;
}


function suburb_office_display(oMapMarker )
{
    //if(Office.id == 'null' || Office.id == undefined ) return true;
    oMapMarker.openInfoWindowHtml("<div style='text-align: center'>\n\
                                        <img src='"+MUFFIN_SHARED_URL+"/images/_lib/loading/remaxloading.gif'>\n\
                                    </div>");
    oMapMarker.openInfoWindowHtml("<span class='rmx'>RE<span class='email_labels'>/</span>MAX </span><strong>"+oMapMarker.name+"</strong> "+
        "<br />Location: "+oMapMarker.suburb +", "+oMapMarker.city +" "+
        "<br /> - <a href=\"http://"+document.domain+"?page=property_one_liners&officeid="+oMapMarker.OfficeID+"\">View office listings </a>" +
        "<br /> - <a href=\"http://"+document.domain+"?page=meettheteam&officeID="+oMapMarker.OfficeID+"\">View office agents </a>;");
    return true;
}
