Searching<\/div>");Rent==0&&(Rent=null);Bathrooms==0&&(Bathrooms=null);MinRent==""&&(MinRent=null);MaxRent==""&&(MaxRent=null);MinBed==""&&(MinBed=null);MaxBed==""&&(MaxBed=null);$("#cbHomeFurnitureInterest").length>0&&(FurnitureInterest=$("#cbHomeFurnitureInterest").prop("checked"));n={customerID:CustomerID,query:queryString,latne:northLat,lngne:northLng,latsw:southLat,lngsw:southLng,minBeds:MinBed,maxBeds:MaxBed,baths:Bathrooms,minRent:MinRent,maxRent:MaxRent,shortTerm:shortTermHousing,military:militaryHousing,student:studentHousing,pageID:pageID,pageSize:pageSize,furnitureInterest:FurnitureInterest,dogsOK:DogsOK,catsOK:CatsOK,amenities:SearchItems,sort:SortBy};$.session.set("searchRequest",JSON.stringify(n));$("#dAdvancedSearch").is(":visible")&&ToggleAdvancedSearch();console.log(JSON.stringify(n));results=[];t=10;r=!1;$("#modSearching").modal("show");i();GoogleTrackEvent("Search");$.ajax({url:"/PropertySearch/GetSearchResults",type:"POST",data:JSON.stringify(n),contentType:"application/json",dataType:"json",success:function(n){$.session.set("searchData",JSON.stringify(n));window.location.pathname.toLocaleLowerCase()!="/apartments"&&(window.location="/apartments");console.log("About to Call Pop Res");PopulateSearchResults()},error:function(n){console.log("Error: "+JSON.stringify(n))}})}function PopulateSearchResults(){var i=null,n,r,t,u,f;if($("#dSearchResults").length!=0){if($.session.get("popOnReturn")!=null&&(i=parseFloat($.session.get("popOnReturn"))),initializeMap(),n=JSON.parse($.session.get("searchData")),r=parseInt($.session.get("searchIndex")),n==null){$.session.get("nLat")!=null&&processSearch();return}n.length==0&&(t="",t+='
您的搜索没有返回结果请修改搜索方式',SearchItems.length>0&&(t+="
NOTE: Your Results Were Filtered<\/strong>"),t+="<\/div>",$("#dSearchResults").html(t));allMarkers=[];$.each(n,function(t,r){var e,u,s,o,f;results.push({propertyID:r.PropertyID,URL:r.URL});t==0&&(resultCount=r.ResultCount,e=pageID*pageSize,e>resultCount&&(e=resultCount),u="",u+="显示+BORGCONT+结果,SearchFiltered(Filtered)<\/strong>"),SortBy!=null&&(u+="(Sorted)<\/strong>"),u+="<\/span>",$("#dSearchCount").html(u),$("#dSearchResults").html(""));$("#dSearchResultsCity").length?$("#dSearchResultsCity").append(PopulateSearchResultCityPage(r,!1,t)):$("#dSearchResults").append(PopulateSearchResult(r,!1,t));$("#dSearchResults").append("
Back To Top<\/a><\/div><\/div>");s={lat:r.Latitude,lng:r.Longitude};o=iconNormal;r.IsFavorite&&(o=iconFavorite);f=new google.maps.Marker({position:s,map:gmap,title:r.PropertyName,id:r.PropertyID,icon:o,map_icon_label:t+1,isFavorite:r.IsFavorite});f=AddInfoWindow(f,r,t);allMarkers.push(f);i!=null&&i==t&&(allMarkers[allMarkers.length-1].setIcon(iconOver),allMarkers[allMarkers.length-1].setOptions({zIndex:99999}),new google.maps.event.trigger(allMarkers[allMarkers.length-1],"click"),new google.maps.event.trigger(allMarkers[allMarkers.length-1],"onmouseover"));t==n.length-1&&$("#dSearchResults").append("