function Marker(n){google.maps.Marker.apply(this,arguments);n.map_icon_label&&(this.MarkerLabel=new MarkerLabel({map:this.map,marker:this,text:n.map_icon_label}),this.MarkerLabel.bindTo("position",this,"position"))}function ClearAllSearchCookies(){$.session.remove("MaxRent");$.session.remove("MinRent");$.session.remove("MaxRent");$.session.remove("MinBed");$.session.remove("MaxBed");$.session.remove("Bathrooms");$.session.remove("Bedrooms");$.session.remove("LeaseType");$.session.remove("searchAddress");$.session.remove("PlaceID");$.session.remove("SortBy");$.session.remove("searchData")}function Initialize(){var t,n;for(document.geoCodeRequestCompleteFlag=0,initializeMap(),populateSearchFields(),t=document.getElementsByClassName("searchText"),n=0;n 0?!0:CatsOK&&!isNaN(CatsOK)?!0:DogsOK&&!isNaN(DogsOK)?!0:MinRent!=null&&!isNaN(MinRent)?!0:MaxRent!=null&&!isNaN(MaxRent)?!0:MinBed!=null&&!isNaN(MinBed)?!0:MaxBed!=null&&!isNaN(MaxBed)?!0:Rent!=null&&!isNaN(Rent)?!0:studentHousing!=null&&!isNaN(studentHousing)&&studentHousing?!0:shortTermHousing!=null&&!isNaN(shortTermHousing)&&shortTermHousing?!0:militaryHousing!=null&&!isNaN(militaryHousing)&&militaryHousing?!0:SearchItems.length>0?!0:!1}function processSearchClick(link,query){return $.session.set("searchIndex",0),getLatLng(query,link),!1}function AddGooglePlaceListener(n){var i=new google.maps.places.AutocompleteSessionToken,r={componentRestrictions:{country:"us"},sessionToken:i},t=new google.maps.places.Autocomplete(n,r);google.maps.event.addListener(t,"place_changed",function(){var n=t.getPlace();n!=null?($.session.set("PlaceID",n.place_id),$("#txtPlaceID").val(n.place_id)):$("#txtPlaceID").val("")})}function getLatLng(n){var r=null,t,i;document.geoCodeRequestCompleteFlag=0;t=new google.maps.Geocoder;i=$("#txtPlaceID").val();n=="new york, new york"&&(n="new york, ny");i!=""?t.geocode({placeId:i},function(n,t){if(t==google.maps.GeocoderStatus.OK){result=n[0].geometry;document.geoCodeRequestCompleteFlag=1;var e=$("#NELAT"),o=$("#NELNG"),s=$("#SWLAT"),h=$("#SWLNG");if(result!=null){var c=searchFilterDistance,f=new google.maps.Circle({center:result.location,radius:c}).getBounds(),i=f.getNorthEast(),u=f.getSouthWest();e.val(i.lat());o.val(i.lng());s.val(u.lat());h.val(u.lng());$.session.set("nLat",i.lat());$.session.set("nLng",i.lng());$.session.set("sLat",u.lat());$.session.set("sLng",u.lng());northLat=i.lat();northLng=i.lng();southLat=u.lat();southLng=u.lng();processSearch()}}return document.geoCodeRequestCompleteFlag=0,r}):t.geocode({address:n},function(n,t){if(t==google.maps.GeocoderStatus.OK){result=n[0].geometry;document.geoCodeRequestCompleteFlag=1;var e=$("#NELAT"),o=$("#NELNG"),s=$("#SWLAT"),h=$("#SWLNG");if(result!=null){var c=searchFilterDistance,f=new google.maps.Circle({center:result.location,radius:c}).getBounds(),i=f.getNorthEast(),u=f.getSouthWest();e.val(i.lat());o.val(i.lng());s.val(u.lat());h.val(u.lng());$.session.set("nLat",i.lat());$.session.set("nLng",i.lng());$.session.set("sLat",u.lat());$.session.set("sLng",u.lng());northLat=i.lat();northLng=i.lng();southLat=u.lat();southLng=u.lng();processSearch()}}return document.geoCodeRequestCompleteFlag=0,r})}function CheckLeaseType(){var n=parseFloat($("input:radio[name='leaseType']:checked").val());$.session.set("LeaseType",n);$.session.set("searchIndex",0);shortTermHousing=!1;studentHousing=!1;militaryHousing=!1;switch(n){case 1:shortTermHousing=!0;break;case 2:militaryHousing=!0;break;case 3:studentHousing=!0}}function UpdateRent(n){Rent=parseFloat($(n).val());$.session.set("MaxRent",Rent);pageID=1;$("#pagination").twbsPagination("destroy");processSearch()}function UpdateMinRent(n){MinRent=parseFloat(n);$.session.set("MinRent",MinRent)}function UpdateMaxRent(n){MaxRent=parseFloat(n);$.session.set("MaxRent",MaxRent)}function UpdateMinBed(n){MinBed=n;$.session.set("MinBed",MinBed)}function UpdateMaxBed(n){MaxBed=n;$.session.set("MaxBed",MaxBed)}function UpdateBedrooms(n){Bedrooms=parseFloat($(n).val());$.session.set("Bedrooms",Bedrooms);pageID=1;$("#pagination").twbsPagination("destroy");processSearch()}function UpdateBathrooms(n){Bathrooms=parseFloat(n);$.session.set("Bathrooms",Bathrooms)}function processSearch(){function i(){var n="",r="";switch(t){case 10:n="Searching for your next apartment...";r=" sst!++++万博manbetx博彩ExpmentSearch.comQQQ/strong发送
破例例9:n=看地图...r=mention万博manbetx博彩公寓Search.comQQQ/strong$200奖励!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++万博manbetx博彩ExpmentSearch.com/strong支付/加固你租公寓";break;case7:n='Calling全城objective++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

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("