'+e.city+", "+e.state+" "+e.zip+'
'+e.bed+' '+e.bath+' '+e.size+'
'+e.fullPrice+"
"}function init_canvas_projection(e){function t(){}t.prototype=new google.maps.OverlayView,t.prototype.constructor=t,t.prototype.onAdd=function(){},t.prototype.draw=function(){},t.prototype.onRemove=function(){},canvasProjectionOverlay=new t,canvasProjectionOverlay.setMap(e)}function convert_offset(e,t,a){var s=canvasProjectionOverlay.getProjection(),r=s.fromLatLngToContainerPixel(e);return r.x=r.x+t,r.y=r.y+a,s.fromContainerPixelToLatLng(r)}function getMapPin(e){return e.ctStatus=e.ctStatus.trim(),"svg"==mapping_ajax_object.listing_marker_type?(svgSize=mapping_ajax_object.ct_listing_marker_svg_size,svgWidth=2*svgSize,svgHeight=2*svgSize,enableMarkerPrice=mapping_ajax_object.ct_enable_marker_price,priceZoomLevel=parseInt(mapping_ajax_object.search_marker_price_zoom_level),svgVersion="?ver=1.0.7",null==e.mapZoom&&(e.mapZoom=map.getZoom()),showMarkerWithPrice(e)?(svgWidth=40,svgHeight=60,labelOriginY=22,e.priceDisplay="true",svgURL=e.siteURL+"/images/svgs/map-marker-price.svg","for-sale"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-for-sale.svg"),"active"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-for-sale.svg"),"for-rent"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-for-rent-rental.svg"),"rental"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-for-rent-rental.svg"),"reo-bank-owned"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-reo-bank-owned.svg"),"short-sale"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-reduced-short-sale.svg"),"leased"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-leased-rented.svg"),"rented"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-leased-rented.svg"),"reduced"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-reduced-short-sale.svg"),"sold"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-sold.svg"),"pending"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-pending.svg"),"open-house"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-open-house.svg"),"available"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-available.svg"),"new-addition"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-new-addition.svg"),"new-listing"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-new-addition.svg"),"special-offer"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-for-sale.svg")):(labelOriginY=10,e.priceDisplay="false",svgWidth=3*svgSize,svgHeight=3*svgSize,svgURL=e.siteURL+"/images/svgs/map-marker.svg","for-sale"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-for-sale.svg"),"active"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-for-sale.svg"),"for-rent"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-for-rent-rental.svg"),"rental"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-for-rent-rental.svg"),"reo-bank-owned"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-reo-bank-owned.svg"),"short-sale"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-reduced-short-sale.svg"),"leased"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-leased-rented.svg"),"rented"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-leased-rented.svg"),"reduced"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-reduced-short-sale.svg"),"sold"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-sold.svg"),"pending"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-pending.svg"),"open-house"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-open-house.svg"),"available"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-available.svg"),"new-addition"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-new-addition.svg"),"new-listing"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-new-addition.svg"),"special-offer"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-for-sale.svg")),svgURL=svgURL+"#"+e.listingID+svgVersion,{url:svgURL,size:new google.maps.Size(svgWidth,svgHeight),scaledSize:new google.maps.Size(svgWidth,svgHeight),labelOrigin:new google.maps.Point(20,labelOriginY)}):"commercial"==e.commercial?{url:e.siteURL+"/images/map-pin-com.png#"+e.listingID,size:new google.maps.Size(40,46),scaledSize:new google.maps.Size(40,46)}:"land"==e.land||"lot"==e.land?{url:e.siteURL+"/images/map-pin-land.png#"+e.listingID,size:new google.maps.Size(40,46),scaledSize:new google.maps.Size(40,46)}:{url:e.siteURL+"/images/map-pin-res.png#"+e.listingID,size:new google.maps.Size(40,46),scaledSize:new google.maps.Size(40,46)}}function cancelDrawing(){jQuery("#map-wrap .drawInstructionBar").remove(),jQuery("#ct-map-navigation, #compare-panel").show(),jQuery("#map .gm-style > div > div > div > div > img").show(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(1) > div:nth-child(4)").show(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(3)").css("opacity","1"),drawBounds=null}function drawFreeHand (){poly=new google.maps.Polyline({map:map,clickable:!1});var e=google.maps.event.addListener(map,"mousemove",function(e){poly.getPath().push(e.latLng)}),t=google.maps.event.addListenerOnce(map,"mouseup",function(a){google.maps.event.removeListener(e),google.maps.event.removeListener(t);var s=poly.getPath();poly.setMap(null),poly=new google.maps.Polygon({map:map,path:s,strokeOpacity:.3,fillOpacity:.3,strokeColor:"#8e9092",strokeWeight:1}),google.maps.event.clearListeners(map.getDiv(),"mousedown"),getMarkersInsideDraw(a,poly),drawMarkers.length>0?(oldZoom=map.getZoom(),oldBounds=map.getBounds(),jQuery("#number-listings-progress").css("display","block"),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(3)").css("opacity","0"),doAjax("","",1),jQuery("#map-wrap .drawInstructionBar").remove(),jQuery("#ct-map-navigation, #compare-panel").show()):(cancelDrawing(),disableDrawMode())})}function disableDrawMode(){map.setOptions({draggable:!0,draggableCursor:"grab",zoomControl:!0,scrollwheel:!0,disableDoubleClickZoom:!0}),jQuery("#map .gm-style > div > div > div > div > img").show(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(1) > div:nth-child(4)").show(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(3)").css("opacity","1"),drawingMode=!1}function enableDrawMode(){jQuery("#map .gm-style > div > div > div > div > img").hide(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(1) > div:nth-child(4)").hide(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(3)").css("opacity","0"),drawingMode=!0,map.setOptions({draggable:!1,draggableCursor:"crosshair",zoomControl:!1,scrollwheel:!1,disableDoubleClickZoom:!1,clickableIcons:!1})}function getMarkersInsideDraw(e,t){drawMarkers=[],drawBounds=new google.maps.LatLngBounds;for(var a=0;a
").html(ne).text(),ne=ne.replace("+"," "),sw=getUrlParameter("sw",t),sw=jQuery("
").html(sw).text(),sw=sw.replace("+"," "),paged=getUrlParameter("paged",t),doAjax(ne,sw,paged),jQuery("html, body").animate({scrollTop:0},"slow")),null!=poly&&(jQuery("#number-listings-progress").css("display","block"),e.preventDefault(),paged=parseInt(jQuery(this).html()),doAjax("","",paged),jQuery("html, body").animate({scrollTop:0},"slow")))}),jQuery(document).on("mouseenter",".side-results .listing",function(e){var t=jQuery(this).attr("data-listing-id");if(open_info_window&&(open_info_window.close(),jQuery('img[src="'+open_info_window.closeBoxURL_+'"]').click()),null!=t)for(var a=0;a
0?tempMarker.find(".markerClass").first().addClass("ct-active-marker"):tempMarker.append('
'),marker_list[a].infobox)){var s=new google.maps.LatLng(map.getBounds().getNorthEast().lat(),map.getBounds().getSouthWest().lng()),r=new google.maps.LatLng(map.getBounds().getSouthWest().lat(),map.getBounds().getNorthEast().lng()),i=map.getBounds().getSouthWest().distanceFrom(marker_list[a].getPosition()),o=map.getBounds().getNorthEast().distanceFrom(marker_list[a].getPosition()),n=s.distanceFrom(marker_list[a].getPosition()),l=r.distanceFrom(marker_list[a].getPosition());switch(Math.min(i,o,n,l)){case l:ibOffset=new google.maps.Size(-300,150);break;case o:ibOffset=new google.maps.Size(-300,250);break;case n:ibOffset=new google.maps.Size(50,300);break;case i:ibOffset=new google.maps.Size(50,100)}marker_list[a].infobox.setOptions({pixelOffset:ibOffset}),marker_list[a].infobox.open(map,marker_list[a]),open_info_window=marker_list[a].infobox}}),jQuery(document).on("mouseleave",".side-results .listing, .listing-search-results .listing",function(e){var t=jQuery(this).attr("data-listing-id");if(null!=t)for(var a=0;a1){var i=parseFloat(e.latlong.split(",")[0]),o=parseFloat(e.latlong.split(",")[1]),n=new google.maps.LatLng(i,o);-1==markerExistsByLatLng(i,o)&&a(n,e,t)}else s.geocode({address:r},function(s,r){if(r==google.maps.GeocoderStatus.OK){var i=s[0].geometry.location;-1==markerExistsByLatLng(i.lat(),i.lng())&&a(i,e,t)}})}return window.onload=function(){var a=document.getElementById("ct-gmap-next"),s=document.getElementById("ct-gmap-prev");null!=document.getElementById("ct-gmap-draw")&&document.getElementById("ct-gmap-draw").addEventListener("click",function(){return null!=poly?(poly.setMap(null),poly=null,e.map.fitBounds(oldBounds),e.map.setZoom(oldZoom),google.maps.event.trigger(e.map,"zoom_changed"),cancelDrawing(),disableDrawMode(),jQuery(".draw-mode").find("span").html(""),jQuery(".draw-mode").removeClass("draw-mode"),drawMarkers=[],!1):(jQuery("#ct-map-navigation, #compare-panel").hide(),jQuery("#map-wrap").append('Click and drag to draw your search.
Cancel '),jQuery(this).addClass("draw-mode"),jQuery(this).find("span").html("Clear"),enableDrawMode(),drawListener=google.maps.event.addDomListener(map.getDiv(),"mousedown",function(e){drawingMode?drawFreeHand ():disableDrawMode()}),!1)}),null!=a&&document.getElementById("ct-gmap-next").addEventListener("click",function(){!function(){for(++t>marker_list.length&&(t=1);!1===marker_list[t-1].visible;)++t>marker_list.length&&(t=1);google.maps.event.trigger(marker_list[t-1],"click")}()}),null!=s&&document.getElementById("ct-gmap-prev").addEventListener("click",function(){!function(){for(--t<1&&(t=marker_list.length);!1===marker_list[t-1].visible;)--t>marker_list.length&&(t=1);google.maps.event.trigger(marker_list[t-1],"click")}()})},e.init_property_map=function(t,a,r){var o=ctMapGlobal.mapType,n=ctMapGlobal.mapStyle;ctMapGlobal.mapCustomStyles;if("custom"==n)if(null!=a&&""!=a.mapcenter)var l={zoom:10,center:new google.maps.LatLng(a.mapcenter),mapTypeId:google.maps.MapTypeId[o],disableDefaultUI:!1,scrollwheel:!1,streetViewControl:!1,styles:[{featureType:"water",stylers:[{visibility:"on"},{color:"#acbcc9"}]},{featureType:"landscape",stylers:[{color:"#f2e5d4"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#c5c6c6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#e4d7c6"}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#fbfaf7"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#c5dac6"}]},{featureType:"administrative",stylers:[{visibility:"on"},{lightness:33}]},{featureType:"road"},{featureType:"poi.park",elementType:"labels",stylers:[{visibility:"on"},{lightness:20}]},{},{featureType:"road",stylers:[{lightness:20}]}]};else l={mapTypeId:google.maps.MapTypeId[o],disableDefaultUI:!1,scrollwheel:!1,streetViewControl:!1,styles:[{featureType:"water",stylers:[{visibility:"on"},{color:"#acbcc9"}]},{featureType:"landscape",stylers:[{color:"#f2e5d4"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#c5c6c6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#e4d7c6"}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#fbfaf7"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#c5dac6"}]},{featureType:"administrative",stylers:[{visibility:"on"},{lightness:33}]},{featureType:"road"},{featureType:"poi.park",elementType:"labels",stylers:[{visibility:"on"},{lightness:20}]},{},{featureType:"road",stylers:[{lightness:20}]}]};else l={zoom:10,center:new google.maps.LatLng(a.mapcenter),mapTypeId:google.maps.MapTypeId[o],disableDefaultUI:!1,scrollwheel:!1,streetViewControl:!0};lat=getUrlParameter("lat",""),lng=getUrlParameter("lng",""),skipBounds=!1,lat&&lng&&(l.center={lat:parseFloat(lat),lng:parseFloat(lng)},skipBounds=!0);var g={ignoreHidden:!0,maxZoom:mapping_ajax_object.search_cluster_zoom_level,styles:[{textColor:"#ffffff",url:r+"/images/cluster-icon.png",height:48,width:48}]};if(e.map=new google.maps.Map(document.getElementById("map"),l),map=e.map,e.bounds=new google.maps.LatLngBounds,init_canvas_projection(e.map),null!=a){var c=google.maps.event.addListener(e.map,"idle",function(){if(t&&t.length)for(mapZoom=1,i=0;i{skipBounds=!1,getMapBounds(e.map)},debounceTime)),google.maps.event.addListener(e.map,"zoom_changed",debounce(()=>{skipBounds=!1,getMapBounds(e.map)},debounceTime))});google.maps.event.addListenerOnce(map,"tilesloaded",function(){})}},e}();
(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e=0,s={horizontal:{},vertical:{}},c=1,f={},u="waypoints-context-id",p="resize.waypoints",y="scroll.waypoints",v=1,w="waypoints-waypoint-ids",g="waypoint",S="waypoints",o=function(){function t(t){var e=this;this.$element=t,this.element=t[0],this.didResize=!1,this.didScroll=!1,this.id="context"+c++,this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[u]=this.id,f[this.id]=this,t.bind(y,function(){var t;if(!e.didScroll&&!a)return e.didScroll=!0,t=function(){return e.doScroll(),e.didScroll=!1},i.setTimeout(t,n[S].settings.scrollThrottle)}),t.bind(p,function(){var t;if(!e.didResize)return e.didResize=!0,t=function(){return n[S]("refresh"),e.didResize=!1},i.setTimeout(t,n[S].settings.resizeThrottle)})}return t.prototype.doScroll=function(){var t,e=this;return t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!a||t.vertical.oldScroll&&t.vertical.newScroll||n[S]("refresh"),n.each(t,function(t,i){var r,o,l;return l=[],o=i.newScroll>i.oldScroll,r=o?i.forward:i.backward,n.each(e.waypoints[t],function(t,e){var n,r;return i.oldScroll<(n=e.offset)&&n<=i.newScroll?l.push(e):i.newScroll<(r=e.offset)&&r<=i.oldScroll?l.push(e):void 0}),l.sort(function(t,e){return t.offset-e.offset}),o||l.reverse(),n.each(l,function(t,e){if(e.options.continuous||t===l.length-1)return e.trigger([r])})}),this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.refresh=function(){var t,e,i,r=this;return i=n.isWindow(this.element),e=this.$element.offset(),this.doScroll(),t={horizontal:{contextOffset:i?0:e.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:e.top,contextScroll:i?0:this.oldScroll.y,contextDimension:i?n[S]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},n.each(t,function(t,e){return n.each(r.waypoints[t],function(t,i){var r,o,l,s,c;if(r=i.options.offset,l=i.offset,o=n.isWindow(i.element)?0:i.$element.offset()[e.offsetProp],n.isFunction(r)?r=r.apply(i.element):"string"==typeof r&&(r=parseFloat(r),i.options.offset.indexOf("%")>-1&&(r=Math.ceil(e.contextDimension*r/100))),i.offset=o-e.contextOffset+e.contextScroll-r,(!i.options.onlyOnScroll||null==l)&&i.enabled)return null!==l&&l<(s=e.oldScroll)&&s<=i.offset?i.trigger([e.backward]):null!==l&&l>(c=e.oldScroll)&&c>=i.offset?i.trigger([e.forward]):null===l&&e.oldScroll>=i.offset?i.trigger([e.forward]):void 0})})},t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([p,y].join(" ")),delete f[this.id]},t}(),l=function(){function t(t,e,i){var r,o;"bottom-in-view"===i.offset&&(i.offset=function(){var t;return t=n[S]("viewportHeight"),n.isWindow(e.element)||(t=e.$element.height()),t-n(this).outerHeight()}),this.$element=t,this.element=t[0],this.axis=i.horizontal?"horizontal":"vertical",this.callback=i.handler,this.context=e,this.enabled=i.enabled,this.id="waypoints"+v++,this.offset=null,this.options=i,e.waypoints[this.axis][this.id]=this,s[this.axis][this.id]=this,(r=null!=(o=this.element[w])?o:[]).push(this.id),this.element[w]=r}return t.prototype.trigger=function(t){if(this.enabled)return null!=this.callback&&this.callback.apply(this.element,t),this.options.triggerOnce?this.destroy():void 0},t.prototype.disable=function(){return this.enabled=!1},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},t.prototype.destroy=function(){return delete s[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},t.getWaypointsByElement=function(t){var e,i;return(i=t[w])?(e=n.extend({},s.horizontal,s.vertical),n.map(i,function(t){return e[t]})):[]},t}(),d={init:function(t,e){return null==(e=n.extend({},n.fn[g].defaults,e)).handler&&(e.handler=t),this.each(function(){var t,i,r,s;return t=n(this),r=null!=(s=e.context)?s:n.fn[g].defaults.context,n.isWindow(r)||(r=t.closest(r)),r=n(r),(i=f[r[0][u]])||(i=new o(r)),new l(t,i,e)}),n[S]("refresh"),this},disable:function(){return d._invoke.call(this,"disable")},enable:function(){return d._invoke.call(this,"enable")},destroy:function(){return d._invoke.call(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0)return t.push(n[e-1])})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(et.oldScroll.y})},left:function(t){return null==t&&(t=i),h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){return null==t&&(t=i),h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;return e=n.extend({},s.vertical,s.horizontal),n.each(e,function(e,n){return n[t](),!0})},_filter:function(t,e,i){var r,o;return(r=f[n(t)[0][u]])?(o=[],n.each(r.waypoints[e],function(t,e){if(i(r,e))return o.push(e)}),o.sort(function(t,e){return t.offset-e.offset}),n.map(o,function(t){return t.element})):[]}},n[S]=function(){var t,n;return n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],h[n]?h[n].apply(null,t):h.aggregate.call(null,n)},n[S].settings={resizeThrottle:100,scrollThrottle:30},r.on("load.waypoints",function(){return n[S]("refresh")})})}).call(this);
;window.Modernizr=function(a,b,c){function u(a){j.cssText=a}function v(a,b){return u(prefixes.join(a+";")+(b||""))}function w(a,b){return typeof a===b}function x(a,b){return!!~(""+a).indexOf(b)}function y(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:w(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m={},n={},o={},p=[],q=p.slice,r,s={}.hasOwnProperty,t;!w(s,"undefined")&&!w(s.call,"undefined")?t=function(a,b){return s.call(a,b)}:t=function(a,b){return b in a&&w(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=q.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(q.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(q.call(arguments)))};return e});for(var z in m)t(m,z)&&(r=z.toLowerCase(),e[r]=m[z](),p.push((e[r]?"":"no-")+r));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)t(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},u(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+p.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;fi;i++)this.element.addEventListener(n[i],e,!1);return this},off:function(t,e){for(var n=t.split(" "),i=0;n.length>i;i++)this.element.removeEventListener(n[i],e,!1);return this},trigger:function(t,e){var n=i.DOCUMENT.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e;var r=this.element;return i.utils.hasParent(e.target,r)&&(r=e.target),r.dispatchEvent(n),this},enable:function(t){return this.enabled=t,this}};var r=null,o=!1,s=!1;i.event={bindDom:function(t,e,n){for(var i=e.split(" "),r=0;i.length>r;r++)t.addEventListener(i[r],n,!1)},onTouch:function(t,e,n){var a=this;this.bindDom(t,i.EVENT_TYPES[e],function(c){var u=c.type.toLowerCase();if(!u.match(/mouse/)||!s){u.match(/touch/)||u.match(/pointerdown/)||u.match(/mouse/)&&1===c.which?o=!0:u.match(/mouse/)&&1!==c.which&&(o=!1),u.match(/touch|pointer/)&&(s=!0);var h=0;o&&(i.HAS_POINTEREVENTS&&e!=i.EVENT_END?h=i.PointerEvent.updatePointer(e,c):u.match(/touch/)?h=c.touches.length:s||(h=u.match(/up/)?0:1),h>0&&e==i.EVENT_END?e=i.EVENT_MOVE:h||(e=i.EVENT_END),(h||null===r)&&(r=c),n.call(i.detection,a.collectEventData(t,e,a.getTouchList(r,e),c)),i.HAS_POINTEREVENTS&&e==i.EVENT_END&&(h=i.PointerEvent.updatePointer(e,c))),h||(r=null,o=!1,s=!1,i.PointerEvent.reset())}})},determineEventTypes:function(){var t;t=i.HAS_POINTEREVENTS?i.PointerEvent.getEvents():i.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],i.EVENT_TYPES[i.EVENT_START]=t[0],i.EVENT_TYPES[i.EVENT_MOVE]=t[1],i.EVENT_TYPES[i.EVENT_END]=t[2]},getTouchList:function(t){return i.HAS_POINTEREVENTS?i.PointerEvent.getTouchList():t.touches?t.touches:(t.indentifier=1,[t])},collectEventData:function(t,e,n,r){var o=i.POINTER_TOUCH;return(r.type.match(/mouse/)||i.PointerEvent.matchType(i.POINTER_MOUSE,r))&&(o=i.POINTER_MOUSE),{center:i.utils.getCenter(n),timeStamp:(new Date).getTime(),target:r.target,touches:n,eventType:e,pointerType:o,srcEvent:r,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation(),this.srcEvent.preventDefault&&this.srcEvent.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return i.detection.stopDetect()}}}},i.PointerEvent={pointers:{},getTouchList:function(){var t=this,e=[];return Object.keys(t.pointers).sort().forEach(function(n){e.push(t.pointers[n])}),e},updatePointer:function(t,e){return t==i.EVENT_END?this.pointers={}:(e.identifier=e.pointerId,this.pointers[e.pointerId]=e),Object.keys(this.pointers).length},matchType:function(t,e){if(!e.pointerType)return!1;var n={};return n[i.POINTER_MOUSE]=e.pointerType==e.MSPOINTER_TYPE_MOUSE||e.pointerType==i.POINTER_MOUSE,n[i.POINTER_TOUCH]=e.pointerType==e.MSPOINTER_TYPE_TOUCH||e.pointerType==i.POINTER_TOUCH,n[i.POINTER_PEN]=e.pointerType==e.MSPOINTER_TYPE_PEN||e.pointerType==i.POINTER_PEN,n[t]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}},i.utils={extend:function(t,n,i){for(var r in n)t[r]!==e&&i||(t[r]=n[r]);return t},hasParent:function(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1},getCenter:function(t){for(var e=[],n=[],i=0,r=t.length;r>i;i++)e.push(t[i].pageX),n.push(t[i].pageY);return{pageX:(Math.min.apply(Math,e)+Math.max.apply(Math,e))/2,pageY:(Math.min.apply(Math,n)+Math.max.apply(Math,n))/2}},getVelocity:function(t,e,n){return{x:Math.abs(e/t)||0,y:Math.abs(n/t)||0}},getAngle:function(t,e){var n=e.pageY-t.pageY,i=e.pageX-t.pageX;return 180*Math.atan2(n,i)/Math.PI},getDirection:function(t,e){var n=Math.abs(t.pageX-e.pageX),r=Math.abs(t.pageY-e.pageY);return n>=r?t.pageX-e.pageX>0?i.DIRECTION_LEFT:i.DIRECTION_RIGHT:t.pageY-e.pageY>0?i.DIRECTION_UP:i.DIRECTION_DOWN},getDistance:function(t,e){var n=e.pageX-t.pageX,i=e.pageY-t.pageY;return Math.sqrt(n*n+i*i)},getScale:function(t,e){return t.length>=2&&e.length>=2?this.getDistance(e[0],e[1])/this.getDistance(t[0],t[1]):1},getRotation:function(t,e){return t.length>=2&&e.length>=2?this.getAngle(e[1],e[0])-this.getAngle(t[1],t[0]):0},isVertical:function(t){return t==i.DIRECTION_UP||t==i.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(t,e){var n,i=["webkit","khtml","moz","Moz","ms","o",""];if(e&&t.style){for(var r=0;i.length>r;r++)for(var o in e)e.hasOwnProperty(o)&&(n=o,i[r]&&(n=i[r]+n.substring(0,1).toUpperCase()+n.substring(1)),t.style[n]=e[o]);"none"==e.userSelect&&(t.onselectstart=function(){return!1})}}},i.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(t,e){this.current||(this.stopped=!1,this.current={inst:t,startEvent:i.utils.extend({},e),lastEvent:!1,name:""},this.detect(e))},detect:function(t){if(this.current&&!this.stopped){t=this.extendEventData(t);for(var e=this.current.inst.options,n=0,r=this.gestures.length;r>n;n++){var o=this.gestures[n];if(!this.stopped&&e[o.name]!==!1&&o.handler.call(o,t,this.current.inst)===!1){this.stopDetect();break}}return this.current&&(this.current.lastEvent=t),t.eventType==i.EVENT_END&&!t.touches.length-1&&this.stopDetect(),t}},stopDetect:function(){this.previous=i.utils.extend({},this.current),this.current=null,this.stopped=!0},extendEventData:function(t){var e=this.current.startEvent;if(e&&(t.touches.length!=e.touches.length||t.touches===e.touches)){e.touches=[];for(var n=0,r=t.touches.length;r>n;n++)e.touches.push(i.utils.extend({},t.touches[n]))}var o=t.timeStamp-e.timeStamp,s=t.center.pageX-e.center.pageX,a=t.center.pageY-e.center.pageY,c=i.utils.getVelocity(o,s,a);return i.utils.extend(t,{deltaTime:o,deltaX:s,deltaY:a,velocityX:c.x,velocityY:c.y,distance:i.utils.getDistance(e.center,t.center),angle:i.utils.getAngle(e.center,t.center),direction:i.utils.getDirection(e.center,t.center),scale:i.utils.getScale(e.touches,t.touches),rotation:i.utils.getRotation(e.touches,t.touches),startEvent:e}),t},register:function(t){var n=t.defaults||{};return n[t.name]===e&&(n[t.name]=!0),i.utils.extend(i.defaults,n,!0),t.index=t.index||1e3,this.gestures.push(t),this.gestures.sort(function(t,e){return t.indexe.index?1:0}),this.gestures}},i.gestures=i.gestures||{},i.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(t,e){switch(t.eventType){case i.EVENT_START:clearTimeout(this.timer),i.detection.current.name=this.name,this.timer=setTimeout(function(){"hold"==i.detection.current.name&&e.trigger("hold",t)},e.options.hold_timeout);break;case i.EVENT_MOVE:t.distance>e.options.hold_threshold&&clearTimeout(this.timer);break;case i.EVENT_END:clearTimeout(this.timer)}}},i.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},handler:function(t,e){if(t.eventType==i.EVENT_END){var n=i.detection.previous,r=!1;if(t.deltaTime>e.options.tap_max_touchtime||t.distance>e.options.tap_max_distance)return;n&&"tap"==n.name&&t.timeStamp-n.lastEvent.timeStamp0&&t.touches.length>e.options.swipe_max_touches)return;(t.velocityX>e.options.swipe_velocity||t.velocityY>e.options.swipe_velocity)&&(e.trigger(this.name,t),e.trigger(this.name+t.direction,t))}}},i.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,correct_for_drag_min_distance:!0,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(t,n){if(i.detection.current.name!=this.name&&this.triggered)return n.trigger(this.name+"end",t),this.triggered=!1,e;if(!(n.options.drag_max_touches>0&&t.touches.length>n.options.drag_max_touches))switch(t.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:if(t.distancet.deltaY?i.DIRECTION_UP:i.DIRECTION_DOWN:0>t.deltaX?i.DIRECTION_LEFT:i.DIRECTION_RIGHT),this.triggered||(n.trigger(this.name+"start",t),this.triggered=!0),n.trigger(this.name,t),n.trigger(this.name+t.direction,t),(n.options.drag_block_vertical&&i.utils.isVertical(t.direction)||n.options.drag_block_horizontal&&!i.utils.isVertical(t.direction))&&t.preventDefault();break;case i.EVENT_END:this.triggered&&n.trigger(this.name+"end",t),this.triggered=!1}}},i.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(t,n){if(i.detection.current.name!=this.name&&this.triggered)return n.trigger(this.name+"end",t),this.triggered=!1,e;if(!(2>t.touches.length))switch(n.options.transform_always_block&&t.preventDefault(),t.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:var r=Math.abs(1-t.scale),o=Math.abs(t.rotation);if(n.options.transform_min_scale>r&&n.options.transform_min_rotation>o)return;i.detection.current.name=this.name,this.triggered||(n.trigger(this.name+"start",t),this.triggered=!0),n.trigger(this.name,t),o>n.options.transform_min_rotation&&n.trigger("rotate",t),r>n.options.transform_min_scale&&(n.trigger("pinch",t),n.trigger("pinch"+(1>t.scale?"in":"out"),t));break;case i.EVENT_END:this.triggered&&n.trigger(this.name+"end",t),this.triggered=!1}}},i.gestures.Touch={name:"touch",index:-1/0,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(t,n){return n.options.prevent_mouseevents&&t.pointerType==i.POINTER_MOUSE?(t.stopDetect(),e):(n.options.prevent_default&&t.preventDefault(),t.eventType==i.EVENT_START&&n.trigger(this.name,t),e)}},i.gestures.Release={name:"release",index:1/0,handler:function(t,e){t.eventType==i.EVENT_END&&e.trigger(this.name,t)}},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return i}):"object"==typeof module&&"object"==typeof module.exports?module.exports=i:t.Hammer=i})(this);
!function(e){function n(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")}function t(e,n){var t=s(e,n)?c:a;t(e,n)}if(Modernizr.touch){var s,a,c;"classList"in document.documentElement?(s=function(e,n){return e.classList.contains(n)},a=function(e,n){e.classList.add(n)},c=function(e,n){e.classList.remove(n)}):(s=function(e,t){return n(t).test(e.className)},a=function(e,n){s(e,n)||(e.className=e.className+" "+n)},c=function(e,t){e.className=e.className.replace(n(t)," ")});var o={hasClass:s,addClass:a,removeClass:c,toggleClass:t,has:s,add:a,remove:c,toggle:t};"function"==typeof define&&define.amd?define(o):e.classie=o,[].slice.call(document.querySelectorAll("ul.grid > li > figure")).forEach(function(e,n){e.querySelector("figcaption > a").addEventListener("touchstart",function(e){e.stopPropagation()},!1),e.addEventListener("touchstart",function(e){o.toggle(this,"cs-hover")},!1)})}}(window);
function manageFeaturedTags(){jQuery("h6.snipe.status.featured").removeClass("featured"),jQuery("h6.snipe.status span").text(function(e,o){return o.replace("Featured","")}),jQuery("h6.snipe span").text(function(e,o){return o.replace("Ghost","")}),jQuery("h6.snipe span").text(function(e,o){return o.replace("Weekly","")}),jQuery("h6.snipe span").text(function(e,o){return o.replace("Week","")}),jQuery("h6.snipe span").text(function(e,o){return o.replace("Daily","")}),jQuery("h6.snipe span").text(function(e,o){return o.replace("Day","")}),jQuery("h6.snipe").show()}function popup(e,o,n,t){var i=screen.width/2-n/2,l=screen.height/2-t/2;window.open(e,o,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width="+n+", height="+t+", top="+l+", left="+i)}jQuery.noConflict(),function(e){"use strict";e(".flexslider").resize(),e("#ct_login_submit").click(function(){e("#login-register-progress").css("display","inline-block"),e("#login-register-progress").delay(1700).fadeOut(300)}),e("#ct_register_submit").click(function(){return e("#register-progress").css("display","inline-block"),e("#register-progress").delay(1700).fadeOut(300),e.ajax({url:mapping_ajax_object.ajax_url,type:"POST",data:e("#ct_registration_form").serialize()+"&action=ct_add_new_member",success:function(o){if(console.log(o),o.success)location.href=o.redirect;else{let n="";o.errors&&e.each(o.errors,function(e,o){n+=''+o+" "}),e("#ct_account_register_errors").html(''+n+"
")}}}),!1}),e(".wp-social-login-provider-list a").addClass("btn"),e("#masthead ul.sub-menu").closest("li").addClass("drop"),e("#masthead .multicolumn > ul > li.menu-item-has-children > a").each(function(){if("#"==e(this).attr("href")||""==e(this).attr("href")){var o=e(this);e(''+e(this).text()+" ").insertAfter(o),o.remove()}}),e("#ct_ct_status option[value='ghost']").remove(),e("#ct_orderby").change(function(){var o=e(this).val(),n=window.location.href.replace("&ct_orderby=priceASC","").replace("&ct_orderby=priceDESC","").replace("&ct_orderby=dateASC","").replace("&ct_orderby=dateDESC","");window.location.href=""!=o?n+"&ct_orderby="+o:n;var t=window.location.href,i=t.indexOf("#");i>0&&(window.location=t.substring(0,i))}),e(".post-categories").remove(),e("#disclaimer").html(function(e,o){return o.replace(/ /g,"")}),e("#disclaimer").html(function(e,o){return o.replace(" ","")}),e(".alike-button").click(function(){}),e("#compare-panel-btn,.alike-button").on("click",function(o){o.preventDefault();var n=e("#compare-list"),t=e("#compare-list").width();n.toggleClass("open"),e("i.fa-chevron-left").toggleClass("fa-chevron-right"),n.hasClass("open")?n.animate({right:"0px"}):n.animate({right:-t},240)}),e("#header_status_multi label[for=ct_status_multi]").click(function(){return e("#header_status_multi").toggleClass("open"),!1}),e(document).click(function(){e("#header_status_multi").removeClass("open")}),e("#header_status_multi, #header_status_multi label[for=ct_status_multi]").on("click",function(e){e.stopPropagation()}),e("#idx-overview.info-toggle").click(function(){return e("#idx-overview.info-toggle + .info-inner").slideToggle("fast"),e("#idx-overview.info-toggle").toggleClass("info-toggle-open"),!1}),e("#idx-features.info-toggle").click(function(){return e("#idx-features.info-toggle + .info-inner").slideToggle("fast"),e("#idx-features.info-toggle").toggleClass("info-toggle-open"),!1}),e("#idx-rooms.info-toggle").click(function(){return e("#idx-rooms.info-toggle + .info-inner").slideToggle("fast"),e("#idx-rooms.info-toggle").toggleClass("info-toggle-open"),!1}),e("#idx-schools.info-toggle").click(function(){return e("#idx-schools.info-toggle + .info-inner").slideToggle("fast"),e("#idx-schools.info-toggle").toggleClass("info-toggle-open"),!1}),e("#idx-hoa.info-toggle").click(function(){return e("#idx-hoa.info-toggle + .info-inner").slideToggle("fast"),e("#idx-hoa.info-toggle").toggleClass("info-toggle-open"),!1}),e("#book-this-listing.info-toggle").click(function(){return e("#book-this-listing.info-toggle + .info-inner").slideToggle("fast"),e("#book-this-listing.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-floor-plans.info-toggle").click(function(){return e("#listing-floor-plans.info-toggle + .info-inner").slideToggle("fast"),e("#listing-floor-plans.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-floor-plans.info-toggle").click(function(){return e("#listing-floor-plans.info-toggle + .info-inner").slideToggle("fast"),e("#listing-floor-plans.info-toggle").toggleClass("info-toggle-open"),!1}),e("#energy-efficiency.info-toggle").click(function(){return e("#energy-efficiency.info-toggle + .info-inner").slideToggle("fast"),e("#energy-efficiency.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-prop-features.info-toggle").click(function(){return e("#listing-prop-features.info-toggle + .info-inner").slideToggle("fast"),e("#listing-prop-features.info-toggle").toggleClass("info-toggle-open"),!1}),e("#open-house-info.info-toggle").click(function(){return e("#open-house-info.info-toggle + .info-inner").slideToggle("fast"),e("#open-house-info.info-toggle").toggleClass("info-toggle-open"),!1}),e("#rental-info.info-toggle").click(function(){return e("#rental-info.info-toggle + .info-inner").slideToggle("fast"),e("#rental-info.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-reviews-info.info-toggle").click(function(){return e("#listing-reviews-info.info-toggle + .info-inner").slideToggle("fast"),e("#listing-reviews-info.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-video-heading.info-toggle").click(function(){return e("#listing-video-heading.info-toggle + .info-inner").slideToggle("fast"),e("#listing-video-heading.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-virtual-tour-heading.info-toggle").click(function(){return e("#listing-virtual-tour-heading.info-toggle + .info-inner").slideToggle("fast"),e("#listing-virtual-tour-heading.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-nearby-heading.info-toggle").click(function(){return e("#listing-nearby-heading.info-toggle + .info-inner").slideToggle("fast"),e("#listing-nearby-heading.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-map-heading.info-toggle").click(function(){return e("#listing-map-heading.info-toggle + .info-inner").slideToggle("fast"),e("#listing-map-heading.info-toggle").toggleClass("info-toggle-open"),!1}),e("#tools-toggle").click(function(){e("#text-toggle").text(function(e,o){return o===object_name.close_tools?object_name.open_tools:object_name.close_tools}),e("#tools ul").toggle("fast")}),e(".map-toggle").click(function(){e("#text-toggle").text(function(e,o){return o===object_name.close_map?object_name.open_map:object_name.close_map}),e("i.fa-minus-square").toggleClass("fa-plus-square"),e("#map-wrap").slideToggle(200,function(){})}),e(".search-toggle").click(function(){e("#text-toggle").text(function(e,o){return o===object_name.open_search?object_name.close_search:object_name.open_search}),e("i.fa-plus-square").toggleClass("fa-minus-square"),e(".advanced-search").slideToggle(200,function(){})}),e(".login-register").click(function(){return e("#overlay").addClass("open"),e("html, body").animate({scrollTop:0},800),!1}),e(".close").click(function(){e("#overlay").removeClass("open")}),e(".ct-registration").click(function(){e("#login").slideUp("slow",function(){e("#register").slideDown("slow")})}),e(".ct-lost-password").click(function(){e("#login").slideUp("slow",function(){e("#lost-password").slideDown("slow")})}),e(".ct-login").click(function(){e("#register").slideUp("slow",function(){e("#login").slideDown("slow")})}),e("#overlay.listing-modal .close").click(function(){e("#overlay.listing-modal").removeClass("open"),e("body").css("overflow",""),console.log("modal close")}),e(".agent-contact, .brokerage-contact").click(function(){e("#overlay.contact-modal").addClass("open")}),e(".close").click(function(){e("#overlay.contact-modal").removeClass("open"),e(".formError").hide()}),e(".brokerage-contact").click(function(){e("#overlay.contact-modal").addClass("open")}),e(".close").click(function(){e("#overlay.contact-modal").removeClass("open"),e(".formError").hide()}),e(".booking-form-calendar").show(),e(".booking_form_div").show(),e("#your-profile h3").addClass("marT0 col span_3 first"),e("table.form-table").addClass("col span_9"),e("table.form-table tbody").addClass("col span_12"),e("#your-profile .description").addClass("muted"),e(".user-profile-img").addClass("col span_3 first"),e("#your-profile").show(),e(".wpfp-link.remove-parent:contains('remove')").html(" "),e(".wpfp-link.remove-parent").show(),e(".gallery-icon").addClass("zoom"),e(".advanced-search.dsidxpress .submit").addClass("btn"),e("article, .videoplayer").fitVids(),e("img").removeAttr("width").removeAttr("height"),manageFeaturedTags(),e(".aq-block-aq_testimonial_block .testimonials").flexslider({animation:"fade",animationLoop:!0,animationSpeed:600,slideshowSpeed:4e3,directionNav:!1,controlNav:!1,smoothHeight:!0}),e(".symple-skillbar").each(function(){e(this).find(".symple-skillbar-bar").animate({width:e(this).attr("data-percent")},1500)}),e(".container").fitVids(),e(".prev-next .nav-prev a").addClass("fa fa-arrow-left"),e(".prev-next .nav-next a").addClass("fa fa-arrow-right"),e(".page-template-template-sitemap-php #main-content li a").before(' '),e("li.related:nth-child(3n+3), .testimonial-home li:nth-child(2n+1)").addClass("last"),e('.est-payment a[href*="#"]:not([href="#"]), .single-listings #listing-map-btn a[href*="#"]:not([href="#"]), .single-listings #listing-sections a[href*="#"]:not([href="#"]), .single-listings #call-email a[href*="#"]:not([href="#"]), .widget_ct_scrolltolistingcontact a[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var o=e(this.hash);if((o=o.length?o:e("[name="+this.hash.slice(1)+"]")).length)return e("html, body").animate({scrollTop:o.offset().top-220},1e3),!1}})}(jQuery);
var ctAccount=function(){var r=jQuery,o={},t={};return o.init=function(){t.loginForm=r("#ct_login_form"),t.loginSubmit=r("#ct_login_submit"),t.error_wrapper=r("#ct_account_errors"),t.loginSubmit.click(function(o){o.preventDefault();t.loginSubmit.serialize();return r("body").css("cursor","progress"),r.post(window.object_name.ct_ajax_url,r("#ct_login_form").serialize(),function(o){if("object"==typeof o)if(o.success)console.log(o),location.href=o.redirect;else if(r("body").css("cursor","default"),!o.success){for(var c='',e=0;eError : '+o.errors[e]+" ";c+="
",t.error_wrapper.html(c)}}),!1})},o}();jQuery(document).ready(function(r){"use strict";ctAccount.init()});
!function($){$.fn.validationEngine=function(e){if($.validationEngineLanguage?allRules=$.validationEngineLanguage.allRules:allRules={required:{regex:"none",alertText:validationError.required,alertTextCheckboxMultiple:validationError.requiredCheckboxMulti,alertTextCheckboxe:validationError.requiredCheckbox},length:{regex:"none",alertText:"*Between ",alertText2:" and ",alertText3:" characters allowed"},minCheckbox:{regex:"none",alertText:"* Checks allowed Exceeded"},confirm:{regex:"none",alertText:"* Your field is not matching"},telephone:{regex:"/^[0-9-() ]+$/",alertText:validationError.invalidTelephone},email:{regex:"/^[a-zA-Z0-9_.-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,4}$/",alertText:validationError.invalidEmail},date:{regex:"/^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}$/",alertText:validationError.invalidDate},onlyNumber:{regex:"/^[0-9 ]+$/",alertText:validationError.numbersOnly},noSpecialCaracters:{regex:"/^[0-9a-zA-Z]+$/",alertText:validationError.noSpecialChar},ajaxUser:{file:"validateUser.php",alertTextOk:"* This user is available",alertTextLoad:"* Loading, please wait",alertText:"* This user is already taken"},ajaxName:{file:"validateUser.php",alertText:"* This name is already taken",alertTextOk:"* This name is available",alertTextLoad:"* Loading, please wait"},onlyLetter:{regex:"/^[a-zA-Z ']+$/",alertText:validationError.letterOnly}},e=jQuery.extend({allrules:allRules,inlineValidation:!0,ajaxSubmit:!1,promptPosition:"topRight",success:!1,failure:function(){}},e),$.validationEngine.ajaxValidArray=new Array,$(this).bind("submit",function(a){return $.validationEngine.onSubmitValid=!0,0!=$.validationEngine.submitValidation(this,e)?(e.failure&&e.failure(),!1):1!=$.validationEngine.submitForm(this,e)&&void 0}),1==e.inlineValidation){function a(a){0!=$.validationEngine.intercept&&$.validationEngine.intercept?$.validationEngine.intercept=!1:($.validationEngine.onSubmitValid=!1,$.validationEngine.loadValidation(a,e))}$(this).find("[class^=validate]").not("[type=checkbox]").bind("blur",function(e){a(this)}),$(this).find("[class^=validate][type=checkbox]").bind("click",function(e){a(this)})}},$.validationEngine={submitForm:function(caller){return $.validationEngine.settings.ajaxSubmit?($.ajax({type:"POST",url:$.validationEngine.settings.ajaxSubmitFile,async:!0,data:$(caller).serialize(),success:function(data){if(console.log(data),data)$(caller).css("opacity",1),$(caller).animate({opacity:0,height:0},function(){if($(caller).css("display","none"),$(caller).before(""+$.validationEngine.settings.ajaxSubmitMessage+"
"),$.validationEngine.closePrompt(".formError",!0),$(".ajaxSubmit").slideDown("slow"),$.validationEngine.settings.success)return $.validationEngine.settings.success&&$.validationEngine.settings.success(),!1});else for(data=eval("("+data+")"),errorNumber=data.jsonValidateReturn.length,index=0;index\x3c!-- --\x3e ')),"topLeft"!=$.validationEngine.settings.promptPosition&&"topRight"!=$.validationEngine.settings.promptPosition||($(l).append(r),$(r).html('
'))}return $(n).html(a),callerTopPosition=$(e).offset().top,callerleftPosition=$(e).offset().left,callerWidth=$(e).width(),inputHeight=$(l).height(),"topRight"==$.validationEngine.settings.promptPosition&&(callerleftPosition+=callerWidth-30,callerTopPosition+=-inputHeight-10),"topLeft"==$.validationEngine.settings.promptPosition&&(callerTopPosition+=-inputHeight-10),"centerRight"==$.validationEngine.settings.promptPosition&&(callerleftPosition+=callerWidth+13),"bottomLeft"==$.validationEngine.settings.promptPosition&&(callerHeight=$(e).height(),callerleftPosition=callerleftPosition,callerTopPosition=callerTopPosition+callerHeight+15),"bottomRight"==$.validationEngine.settings.promptPosition&&(callerHeight=$(e).height(),callerleftPosition+=callerWidth-30,callerTopPosition+=callerHeight+15),$(l).css({top:callerTopPosition,left:callerleftPosition,opacity:0}),$(l).animate({opacity:.87},function(){return!0})},updatePromptText:function(e,a,i,t){updateThisPrompt=$(e).attr("id"),updateThisPrompt="."+updateThisPrompt,"pass"==i?$(updateThisPrompt).addClass("greenPopup"):$(updateThisPrompt).removeClass("greenPopup"),"load"==i?$(updateThisPrompt).addClass("blackPopup"):$(updateThisPrompt).removeClass("blackPopup"),t?$(updateThisPrompt).addClass("ajaxed"):$(updateThisPrompt).removeClass("ajaxed"),$(updateThisPrompt).find(".formErrorContent").html(a),callerTopPosition=$(e).offset().top,inputHeight=$(updateThisPrompt).height(),"bottomLeft"!=$.validationEngine.settings.promptPosition&&"bottomRight"!=$.validationEngine.settings.promptPosition||(callerHeight=$(e).height(),callerTopPosition=callerTopPosition+callerHeight+15),"centerRight"==$.validationEngine.settings.promptPosition&&(callerleftPosition+=callerWidth+13),"topLeft"!=$.validationEngine.settings.promptPosition&&"topRight"!=$.validationEngine.settings.promptPosition||(callerTopPosition=callerTopPosition-inputHeight-10),$(updateThisPrompt).animate({top:callerTopPosition})},loadValidation:function(e,a){return $.validationEngine.settings=a,rulesParsing=$(e).attr("class"),rulesRegExp=/\[(.*)\]/,getRules=rulesRegExp.exec(rulesParsing),str=getRules[1],pattern=/\W+/,result=str.split(pattern),$.validationEngine.validateCall(e,result)},validateCall:function(caller,rules){var promptText="",prompt=$(caller).attr("id"),caller=caller;ajaxValidate=!1;var callerName=$(caller).attr("name");for($.validationEngine.isError=!1,$.validationEngine.showTriangle=!0,callerType=$(caller).attr("type"),i=0;i