function ShowMoreInfo(A){var B=obj(A);if(B){B.style.display="block"}}function HideMoreInfo(A){var B=obj(A);if(B){B.style.display="none"}}function alterPropertySearch(E,A){var D=obj(E);if(D){D.value=A}var B=obj("sidebar_form_property");if(B){if(DoPropertySearch()){var C=new QueryString("../search/property/"+searchType+"ajax.jsp",B);PullPage(C)}}}var searchType="map";function changePage(B){if(B<0||B>=NumPages){return }var A=new QueryString("../search/property/"+searchType+"ajax.jsp",obj("sidebar_form_property"));A.add("pg",B);
A.nocache=true;PullPage(A)}function changeOptions(){if(obj("bottompaginationcontainer")){var A=obj("bottompaginationcontainer").getElementsByTagName("select")[0];A.innerHTML="";for(var B=0;B<NumPages;B++){A.options[A.options.length]=new Option(B+1,B+1)}}}function PullPage(objQueryString){var mainCon=obj("searchtypeselector").getElementsByTagName("a");mainCon[0].href="/search/property/gallery.jsp?"+objQueryString.getData();mainCon[1].href="/search/property/list.jsp?"+objQueryString.getData();mainCon[2].href="/search/property/map.jsp?"+objQueryString.getData();
obj("Loading").style.display="";g_CyberAjaxQueue.schedule("PullPage",objQueryString,function(){if(searchType=="map"){g_pRfgMapContainer.resultmap.DeleteAllShapes()}obj("PropertyContainer").innerHTML=this.xmlObject.responseText;var Scripts=obj("PropertyContainer").getElementsByTagName("script");for(var i=0;i<Scripts.length;i++){eval(Scripts[i].innerHTML)}obj("Loading").style.display="none"},function(){},false,false)}function switchToCityStateSearch(){AddClass("propertysidebartypecontainer_map","hide");RemoveClass("propertysidebartypecontainer_loc","hide");
obj("propertysearchtype").value="loc";obj("propertyshape_1").value=""}function switchToMapSearch(){RemoveClass("propertysidebartypecontainer_map","hide");AddClass("propertysidebartypecontainer_loc","hide");obj("propertysearchtype").value="map";obj("propertywhere_1").value=""}function DoPropertySearch(A){try{RemoveAllDefaultData(A)}catch(B){}return true}function DoAgentSearch(A){RemoveAllDefaultData(A)}function DoOfficeSearch(A){RemoveAllDefaultData(A)}function onCompleteGotoListing(D){var C=D.responseXML.getElementsByTagName("propertymininav");
if(!C||C.length!=1){onErrorGotoListing(D);return }DisableFormElements("searchactions",false);var B=C[0];var A=B.getElementsByTagName("property");if(A&&A.length>=1){var E=CyberGetNodeValue(A[0],"id");document.location.href="../property/index.jsp@property="+escape(E)}else{alert("There are no more properties in your current search.")}}function onErrorGotoListing(A){DisableFormElements("searchactions",false);alert("Could not select property")}function GotoListing(C,A){if(C==0){document.location.href="../property/index.jsp@property="+escape(A)
}else{var B="property="+escape(A);B+="&offset="+C;B+="&"+GetCookie("lsp");var D="/ajaxservlet/search/propertymininav?"+B;if(C>0){DisableFormElements("viewnextlisting",true)}else{DisableFormElements("viewpreviouslisting",true)}g_CyberAjaxQueue.schedule("propertymininav",D,onCompleteGotoListing,onErrorGotoListing,true,true,null)}};
