!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../ie","../version","../widget"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.13.3",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){var t,i,s;if(!n)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),i=1===(this._mouseDownEvent=e).which,s=!("string"!=typeof(t=this).options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length,i&&!s&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)),!0},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});
(function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return}var c=b.ui.mouse.prototype,e=c._mouseInit,a;function d(g,h){if(g.originalEvent.touches.length>1){return}g.preventDefault();var i=g.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(h,true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);g.target.dispatchEvent(f)}c._touchStart=function(g){var f=this;if(a||!f._mouseCapture(g.originalEvent.changedTouches[0])){return}a=true;f._touchMoved=false;d(g,"mouseover");d(g,"mousemove");d(g,"mousedown")};c._touchMove=function(f){if(!a){return}this._touchMoved=true;d(f,"mousemove")};c._touchEnd=function(f){if(!a){return}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click")}a=false};c._mouseInit=function(){var f=this;f.element.bind("touchstart",b.proxy(f,"_touchStart")).bind("touchmove",b.proxy(f,"_touchMove")).bind("touchend",b.proxy(f,"_touchEnd"));e.call(f)}})(jQuery);
jQuery(document).ready(function($){"use strict";if("undefined"!=typeof HOUZEZ_ajaxcalls_vars){var houzezMap,houzezOSM,osm_markers_cluster,lastClickedMarker,markers=new Array,markerCluster=null,current_marker=0,has_compare=$("#compare-controller").length,custom_fields=HOUZEZ_ajaxcalls_vars.custom_fields,search_custom_fields=$.parseJSON(custom_fields),markerPricePins=HOUZEZ_ajaxcalls_vars.markerPricePins,houzez_map_system=HOUZEZ_ajaxcalls_vars.houzez_map_system,is_mapbox=HOUZEZ_ajaxcalls_vars.is_mapbox,api_mapbox=HOUZEZ_ajaxcalls_vars.api_mapbox,is_marker_cluster=HOUZEZ_ajaxcalls_vars.is_marker_cluster,ajaxurl=HOUZEZ_ajaxcalls_vars.admin_url+"admin-ajax.php",login_sending=HOUZEZ_ajaxcalls_vars.login_loading,userID=HOUZEZ_ajaxcalls_vars.user_id,houzez_reCaptcha=HOUZEZ_ajaxcalls_vars.houzez_reCaptcha,login_redirect_type=HOUZEZ_ajaxcalls_vars.redirect_type,login_redirect=HOUZEZ_ajaxcalls_vars.login_redirect,prop_lat=HOUZEZ_ajaxcalls_vars.property_lat,prop_lng=HOUZEZ_ajaxcalls_vars.property_lng,autosearch_text=HOUZEZ_ajaxcalls_vars.autosearch_text,paypal_connecting=HOUZEZ_ajaxcalls_vars.paypal_connecting,mollie_connecting=HOUZEZ_ajaxcalls_vars.mollie_connecting,process_loader_refresh=HOUZEZ_ajaxcalls_vars.process_loader_refresh,process_loader_spinner=HOUZEZ_ajaxcalls_vars.process_loader_spinner,process_loader_circle=HOUZEZ_ajaxcalls_vars.process_loader_circle,process_loader_cog=HOUZEZ_ajaxcalls_vars.process_loader_cog,success_icon=HOUZEZ_ajaxcalls_vars.success_icon,confirm_message=HOUZEZ_ajaxcalls_vars.confirm,confirm_featured=HOUZEZ_ajaxcalls_vars.confirm_featured,confirm_featured_remove=HOUZEZ_ajaxcalls_vars.confirm_featured_remove,confirm_relist=HOUZEZ_ajaxcalls_vars.confirm_relist,is_singular_property=HOUZEZ_ajaxcalls_vars.is_singular_property,property_map=HOUZEZ_ajaxcalls_vars.property_map,property_map_street=HOUZEZ_ajaxcalls_vars.property_map_street,currency_symb=HOUZEZ_ajaxcalls_vars.currency_symbol,marker_spiderfier=HOUZEZ_ajaxcalls_vars.marker_spiderfier,advanced_search_price_range_min=parseInt(HOUZEZ_ajaxcalls_vars.advanced_search_widget_min_price),advanced_search_price_range_max=parseInt(HOUZEZ_ajaxcalls_vars.advanced_search_widget_max_price),advanced_search_price_range_min_rent=parseInt(HOUZEZ_ajaxcalls_vars.advanced_search_min_price_range_for_rent),advanced_search_price_range_max_rent=parseInt(HOUZEZ_ajaxcalls_vars.advanced_search_max_price_range_for_rent),advanced_search_widget_min_area=parseInt(HOUZEZ_ajaxcalls_vars.advanced_search_widget_min_area),advanced_search_widget_max_area=parseInt(HOUZEZ_ajaxcalls_vars.advanced_search_widget_max_area),advanced_search_price_slide=HOUZEZ_ajaxcalls_vars.advanced_search_price_slide,fave_page_template=HOUZEZ_ajaxcalls_vars.fave_page_template,fave_prop_featured=HOUZEZ_ajaxcalls_vars.prop_featured,featured_listings_none=HOUZEZ_ajaxcalls_vars.featured_listings_none,prop_sent_for_approval=HOUZEZ_ajaxcalls_vars.prop_sent_for_approval,houzez_rtl=HOUZEZ_ajaxcalls_vars.houzez_rtl,infoboxClose=HOUZEZ_ajaxcalls_vars.infoboxClose,clusterIcon=HOUZEZ_ajaxcalls_vars.clusterIcon,paged=HOUZEZ_ajaxcalls_vars.paged,sort_by=HOUZEZ_ajaxcalls_vars.sort_by,google_map_style=HOUZEZ_ajaxcalls_vars.google_map_style;if(""!=google_map_style)var google_map_style=JSON.parse(google_map_style);var googlemap_default_zoom=HOUZEZ_ajaxcalls_vars.googlemap_default_zoom,googlemap_zoom_cluster=HOUZEZ_ajaxcalls_vars.googlemap_zoom_cluster,map_icons_path=HOUZEZ_ajaxcalls_vars.map_icons_path,google_map_needed=HOUZEZ_ajaxcalls_vars.google_map_needed,simple_logo=HOUZEZ_ajaxcalls_vars.simple_logo,retina_logo=HOUZEZ_ajaxcalls_vars.retina_logo,retina_logo_mobile=HOUZEZ_ajaxcalls_vars.retina_logo_mobile,retina_logo_mobile_splash=HOUZEZ_ajaxcalls_vars.retina_logo_mobile_splash,retina_logo_splash=HOUZEZ_ajaxcalls_vars.retina_logo_splash,retina_logo_height=HOUZEZ_ajaxcalls_vars.retina_logo_height,retina_logo_width=HOUZEZ_ajaxcalls_vars.retina_logo_width,transparent_menu=HOUZEZ_ajaxcalls_vars.transparent_menu,transportation=HOUZEZ_ajaxcalls_vars.transportation,supermarket=HOUZEZ_ajaxcalls_vars.supermarket,schools=HOUZEZ_ajaxcalls_vars.schools,libraries=HOUZEZ_ajaxcalls_vars.libraries,pharmacies=HOUZEZ_ajaxcalls_vars.pharmacies,hospitals=HOUZEZ_ajaxcalls_vars.hospitals,currency_position=HOUZEZ_ajaxcalls_vars.currency_position,currency_updating_msg=HOUZEZ_ajaxcalls_vars.currency_updating_msg,submission_currency=HOUZEZ_ajaxcalls_vars.submission_currency,wire_transfer_text=HOUZEZ_ajaxcalls_vars.wire_transfer_text,direct_pay_thanks=HOUZEZ_ajaxcalls_vars.direct_pay_thanks,direct_payment_title=HOUZEZ_ajaxcalls_vars.direct_payment_title,direct_payment_button=HOUZEZ_ajaxcalls_vars.direct_payment_button,direct_payment_details=HOUZEZ_ajaxcalls_vars.direct_payment_details,measurement_unit=HOUZEZ_ajaxcalls_vars.measurement_unit,measurement_updating_msg=HOUZEZ_ajaxcalls_vars.measurement_updating_msg,thousands_separator=HOUZEZ_ajaxcalls_vars.thousands_separator,rent_status_for_price_range=HOUZEZ_ajaxcalls_vars.for_rent_price_range,current_tempalte=HOUZEZ_ajaxcalls_vars.current_tempalte,not_found=HOUZEZ_ajaxcalls_vars.not_found,property_detail_top=HOUZEZ_ajaxcalls_vars.property_detail_top,keyword_search_field=HOUZEZ_ajaxcalls_vars.keyword_search_field,keyword_autocomplete=HOUZEZ_ajaxcalls_vars.keyword_autocomplete,template_thankyou=HOUZEZ_ajaxcalls_vars.template_thankyou,direct_pay_text=HOUZEZ_ajaxcalls_vars.direct_pay_text,search_result_page=HOUZEZ_ajaxcalls_vars.search_result_page,houzez_default_radius=HOUZEZ_ajaxcalls_vars.houzez_default_radius,enable_radius_search=HOUZEZ_ajaxcalls_vars.enable_radius_search,enable_radius_search_halfmap=HOUZEZ_ajaxcalls_vars.enable_radius_search_halfmap,houzez_primary_color=HOUZEZ_ajaxcalls_vars.houzez_primary_color,houzez_geocomplete_country=HOUZEZ_ajaxcalls_vars.geocomplete_country,houzez_logged_in=HOUZEZ_ajaxcalls_vars.houzez_logged_in,ipinfo_location=HOUZEZ_ajaxcalls_vars.ipinfo_location,delete_property_loading=HOUZEZ_ajaxcalls_vars.delete_property,delete_property_confirmation=HOUZEZ_ajaxcalls_vars.delete_confirmation,compare_button_url=HOUZEZ_ajaxcalls_vars.compare_button_url,compare_page_not_found=HOUZEZ_ajaxcalls_vars.compare_page_not_found;if(houzez_rtl="yes"==houzez_rtl,""!==retina_logo&&""!==retina_logo_width&&""!==retina_logo_height&&2==window.devicePixelRatio&&("yes"==transparent_menu?($(".houzez-header-transparent .logo-desktop img").attr("src",retina_logo_splash),$(".houzez-header-transparent .logo-desktop img").attr("width",retina_logo_width),$(".houzez-header-transparent .logo-desktop img").attr("height",retina_logo_height),$(".sticky_nav.header-section-4 .logo-desktop img").attr("src",retina_logo),$(".sticky_nav.header-section-4 .logo-desktop img").attr("width",retina_logo_width),$(".sticky_nav.header-section-4 .logo-desktop img").attr("height",retina_logo_height)):($(".logo-desktop img").attr("src",retina_logo),$(".logo-desktop img").attr("width",retina_logo_width),$(".logo-desktop img").attr("height",retina_logo_height))),""!==retina_logo_splash&&""!==retina_logo_width&&""!==retina_logo_height&&2==window.devicePixelRatio&&($(".splash-header .logo-desktop img").attr("src",retina_logo_splash),$(".splash-header .logo-desktop img").attr("width",retina_logo_width),$(".splash-header .logo-desktop img").attr("height",retina_logo_height)),""!==retina_logo_mobile&&2==window.devicePixelRatio&&$(".logo-mobile img").attr("src",retina_logo_mobile),""!==retina_logo_mobile_splash&&2==window.devicePixelRatio&&$(".logo-mobile-splash img").attr("src",retina_logo_mobile_splash),"yes"==google_map_needed){var houzezOSMTileLayer=function(){if("mapbox"==is_mapbox&&""!=api_mapbox)var e=L.tileLayer("https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token="+api_mapbox,{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',maxZoom:18,id:"mapbox.streets",accessToken:"your.mapbox.access.token"});else e=L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'});return e},houzez_initialize_osm_map=function(a){var e=houzezOSMTileLayer();a.addLayer(e),a.scrollWheelZoom.disable(),a.touchZoom.disable(),a.on("popupopen",function(e){"yes"==markerPricePins&&$(".leaflet-popup").addClass("leaflet-price-left")}),a.on("dblclick ",function(e){a.scrollWheelZoom.enabled()?(a.scrollWheelZoom.disable(),a.dragging.disable(),a.touchZoom.disable()):(a.scrollWheelZoom.enable(),a.dragging.enable(),a.touchZoom.enable())})},houzez_open_street_map=function(){L.latLng(25.68654,-80.431345);var e=!L.Browser.mobile;if(document.getElementById("houzez-listing-map"))houzezOSM=L.map("houzez-listing-map",{zoom:parseInt(googlemap_default_zoom),zoomControl:!1,dragging:e}).on("load",function(e){jQuery("#houzez-map-loading").hide()});else{if(!document.getElementById("mapViewHalfListings"))return;houzezOSM=L.map("mapViewHalfListings",{zoom:parseInt(googlemap_default_zoom),zoomControl:!1,dragging:e}).on("load",function(e){jQuery("#houzez-map-loading").hide()})}houzez_initialize_osm_map(houzezOSM)};"osm"==houzez_map_system&&houzez_open_street_map();var placesIDs=new Array,transportationsMarkers=new Array,supermarketsMarkers=new Array,schoolsMarkers=new Array,librariesMarkers=new Array,pharmaciesMarkers=new Array,hospitalsMarkers=new Array,drgflag=!0,houzez_is_mobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(drgflag=!1,houzez_is_mobile=!0),"google"==houzez_map_system){var houzezMapoptions={zoom:parseInt(googlemap_default_zoom),mapTypeId:google.maps.MapTypeId.ROADMAP,styles:google_map_style,zoomControl:!1,mapTypeControl:!1,streetViewControl:!1,overviewMapControl:!1,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL,position:google.maps.ControlPosition.RIGHT_TOP},streetViewControlOptions:{position:google.maps.ControlPosition.RIGHT_TOP}},houzezHeaderMapOptions={maxZoom:20,disableDefaultUI:!0,scroll:{x:$(window).scrollLeft(),y:$(window).scrollTop()},zoom:parseInt(googlemap_default_zoom),mapTypeId:google.maps.MapTypeId.ROADMAP,styles:google_map_style};document.getElementById("houzez-listing-map")?(houzezMap=new google.maps.Map(document.getElementById("houzez-listing-map"),houzezHeaderMapOptions),houzez_is_mobile?houzezMap.setOptions({gestureHandling:"cooperative"}):houzezMap.setOptions({scrollwheel:!1})):document.getElementById("mapViewHalfListings")&&(houzezMap=new google.maps.Map(document.getElementById("mapViewHalfListings"),houzezMapoptions),houzez_is_mobile?houzezMap.setOptions({gestureHandling:"cooperative"}):houzezMap.setOptions({scrollwheel:!0}));var infobox=new InfoBox({disableAutoPan:!1,maxWidth:275,alignBottom:!0,pixelOffset:new google.maps.Size(-135,-75),zIndex:null,boxClass:"houzezInfobox",closeBoxMargin:"0px -16px -16px -16px",closeBoxURL:infoboxClose,infoBoxClearance:new google.maps.Size(10,10),pane:"floatPane",enableEventPropagation:!1}),poiInfo=new InfoBox({disableAutoPan:!1,maxWidth:250,pixelOffset:new google.maps.Size(-72,-70),zIndex:null,boxStyle:{background:"#ffffff",opacity:1,padding:"6px","box-shadow":"0 1px 2px 0 rgba(0, 0, 0, 0.12)",width:"145px","text-align":"center","border-radius":"4px"},closeBoxMargin:"28px 26px 0px 0px",closeBoxURL:"",infoBoxClearance:new google.maps.Size(1,1),pane:"floatPane",enableEventPropagation:!1}),iw=new google.maps.InfoWindow,houzezGetPOIs=function(e,o,s){var a=new google.maps.places.PlacesService(o),r=o.getBounds(),t=new Array;switch(s){case"transportations":t=["bus_station","subway_station","train_station","airport"];break;case"supermarkets":t=["grocery_or_supermarket","shopping_mall"];break;case"schools":t=["school","university"];break;case"libraries":t=["library"];break;case"pharmacies":t=["pharmacy"];break;case"hospitals":t=["hospital"]}a.nearbySearch({location:e,bounds:r,radius:2e3,types:t},function(e,a){if(a===google.maps.places.PlacesServiceStatus.OK)for(var r=0;r<e.length;r++)-1==jQuery.inArray(e[r].place_id,placesIDs)&&(houzezCreatePOI(e[r],o,s),placesIDs.push(e[r].place_id))})},houzezCreatePOI=function(e,a,r){var o;switch(r){case"transportations":o=new google.maps.Marker({map:a,position:e.geometry.location,icon:map_icons_path+"transportation.png"}),transportationsMarkers.push(o);break;case"supermarkets":o=new google.maps.Marker({map:a,position:e.geometry.location,icon:map_icons_path+"supermarket.png"}),supermarketsMarkers.push(o);break;case"schools":o=new google.maps.Marker({map:a,position:e.geometry.location,icon:map_icons_path+"school.png"}),schoolsMarkers.push(o);break;case"libraries":o=new google.maps.Marker({map:a,position:e.geometry.location,icon:map_icons_path+"libraries.png"}),librariesMarkers.push(o);break;case"pharmacies":o=new google.maps.Marker({map:a,position:e.geometry.location,icon:map_icons_path+"pharmacy.png"}),pharmaciesMarkers.push(o);break;case"hospitals":o=new google.maps.Marker({map:a,position:e.geometry.location,icon:map_icons_path+"hospital.png"}),hospitalsMarkers.push(o)}google.maps.event.addListener(o,"mouseover",function(){poiInfo.setContent(e.name),poiInfo.open(a,this)}),google.maps.event.addListener(o,"mouseout",function(){poiInfo.open(null,null)})},houzezTooglePOIs=function(e,a){for(var r=0;r<a.length;r++)null!=a[r].getMap()?a[r].setMap(null):a[r].setMap(e)},houzezPoiControls=function(e,r,o){e.style.clear="both";var a=document.createElement("div");a.id="transportation",a.class="transportation",a.title=transportation,e.appendChild(a);var s=document.createElement("div");s.id="transportationIcon",s.innerHTML='<div class="icon"><img src="'+map_icons_path+'transportation-panel-icon.png" alt=""></div><span>'+transportation+"</span>",a.appendChild(s);var t=document.createElement("div");t.id="supermarkets",t.title=supermarket,e.appendChild(t);var n=document.createElement("div");n.id="supermarketsIcon",n.innerHTML='<div class="icon"><img src="'+map_icons_path+'supermarket-panel-icon.png" alt=""></div><span>'+supermarket+"</span>",t.appendChild(n);var i=document.createElement("div");i.id="schools",i.title=schools,e.appendChild(i);var l=document.createElement("div");l.id="schoolsIcon",l.innerHTML='<div class="icon"><img src="'+map_icons_path+'school-panel-icon.png" alt=""></div><span>'+schools+"</span>",i.appendChild(l);var c=document.createElement("div");c.id="libraries",c.title=libraries,e.appendChild(c);var p=document.createElement("div");p.id="librariesIcon",p.innerHTML='<div class="icon"><img src="'+map_icons_path+'libraries-panel-icon.png" alt=""></div><span>'+libraries+"</span>",c.appendChild(p);var _=document.createElement("div");_.id="pharmacies",_.title=pharmacies,e.appendChild(_);var d=document.createElement("div");d.id="pharmaciesIcon",d.innerHTML='<div class="icon"><img src="'+map_icons_path+'pharmacy-panel-icon.png" alt=""></div><span>'+pharmacies+"</span>",_.appendChild(d);var u=document.createElement("div");u.id="hospitals",u.title=hospitals,e.appendChild(u);var m=document.createElement("div");m.id="hospitalsIcon",m.innerHTML='<div class="icon"><img src="'+map_icons_path+'hospital-panel-icon.png" alt=""></div><span>'+hospitals+"</span>",u.appendChild(m),a.addEventListener("click",function(){var a=this;$(this).hasClass("active")?$(this).removeClass("active"):($(this).addClass("active"),houzezGetPOIs(o,r,"transportations")),houzezTooglePOIs(r,transportationsMarkers),google.maps.event.addListener(r,"bounds_changed",function(){if($(a).hasClass("active")){var e=r.getCenter();houzezGetPOIs(e,r,"transportations")}})}),t.addEventListener("click",function(){var a=this;$(this).hasClass("active")?$(this).removeClass("active"):($(this).addClass("active"),houzezGetPOIs(o,r,"supermarkets")),houzezTooglePOIs(r,supermarketsMarkers),google.maps.event.addListener(r,"bounds_changed",function(){if($(a).hasClass("active")){var e=r.getCenter();houzezGetPOIs(e,r,"supermarkets")}})}),i.addEventListener("click",function(){var a=this;$(this).hasClass("active")?$(this).removeClass("active"):($(this).addClass("active"),houzezGetPOIs(o,r,"schools")),houzezTooglePOIs(r,schoolsMarkers),google.maps.event.addListener(r,"bounds_changed",function(){if($(a).hasClass("active")){var e=r.getCenter();houzezGetPOIs(e,r,"schools")}})}),c.addEventListener("click",function(){var a=this;$(this).hasClass("active")?$(this).removeClass("active"):($(this).addClass("active"),houzezGetPOIs(o,r,"libraries")),houzezTooglePOIs(r,librariesMarkers),google.maps.event.addListener(r,"bounds_changed",function(){if($(a).hasClass("active")){var e=r.getCenter();houzezGetPOIs(e,r,"libraries")}})}),_.addEventListener("click",function(){var a=this;$(this).hasClass("active")?$(this).removeClass("active"):($(this).addClass("active"),houzezGetPOIs(o,r,"pharmacies")),houzezTooglePOIs(r,pharmaciesMarkers),google.maps.event.addListener(r,"bounds_changed",function(){if($(a).hasClass("active")){var e=r.getCenter();houzezGetPOIs(e,r,"pharmacies")}})}),u.addEventListener("click",function(){var a=this;$(this).hasClass("active")?$(this).removeClass("active"):($(this).addClass("active"),houzezGetPOIs(o,r,"hospitals")),houzezTooglePOIs(r,hospitalsMarkers),google.maps.event.addListener(r,"bounds_changed",function(){if($(a).hasClass("active")){var e=r.getCenter();houzezGetPOIs(e,r,"hospitals")}})})},houzezSetPOIControls=function(e,a){var r=document.createElement("div");new houzezPoiControls(r,e,a);r.index=1,r.style["padding-left"]="10px",e.controls[google.maps.ControlPosition.LEFT_BOTTOM].push(r)},remove_map_loader=function(){google.maps.event.addListener(houzezMap,"tilesloaded",function(){jQuery("#houzez-map-loading").hide()})},houzez_map_parallax=function(){var e=$(houzezMap.getDiv()).offset();houzezMap.panBy((houzezHeaderMapOptions.scroll.x-e.left)/3,(houzezHeaderMapOptions.scroll.y-e.top)/3),google.maps.event.addDomListener(window,"scroll",function(){var e=$(window).scrollTop(),a=$(window).scrollLeft(),r=houzezMap.get("scroll");r&&houzezMap.panBy(-(r.x-a)/3,-(r.y-e)/3),houzezMap.set("scroll",{x:a,y:e})})},houzez_map_bounds=function(){houzezMap.fitBounds(markers.reduce(function(e,a){return e.extend(a.getPosition())},new google.maps.LatLngBounds))},houzez_markerCluster=function(){if(0!=is_marker_cluster){var e=16;(googlemap_zoom_cluster=parseInt(googlemap_zoom_cluster))&&(e=googlemap_zoom_cluster),markerCluster=new MarkerClusterer(houzezMap,markers,{maxZoom:e,gridSize:60,styles:[{url:clusterIcon,width:48,height:48,textColor:"#fff"}]})}}}var houzezMapHover=function(){$("body").on("mouseenter",".gm-marker",function(){var e=$(this).attr("data-id");$(".gm-marker[data-id="+e+"]").addClass("hover-state")}).on("mouseleave",".gm-marker",function(){var e=$(this).attr("data-id");$(".gm-marker[data-id="+e+"]").removeClass("hover-state")}),$("body").on("click",".gm-marker",function(){$(lastClickedMarker).removeClass("active"),$(this).addClass("active"),lastClickedMarker=$(this)})};houzezMapHover()}if(1==has_compare){var compare_panel=function(){$(".panel-btn").on("click",function(){$(".compare-panel").hasClass("panel-open")?$(".compare-panel").removeClass("panel-open"):$(".compare-panel").addClass("panel-open")})},compare_panel_close=function(){$(".compare-panel").hasClass("panel-open")&&$(".compare-panel").removeClass("panel-open")},compare_panel_open=function(){$(".compare-panel").addClass("panel-open")},houzez_compare_listing=function(){$(".compare-property").click(function(e){e.preventDefault();var a=$(this),r={action:"houzez_compare_add_property",prop_id:a.attr("data-propid")};a.find("i.fa-plus").addClass("fa-spin"),$.post(ajaxurl,r,function(e){a.find("i.fa-plus").removeClass("fa-spin"),$.post(ajaxurl,{action:"houzez_compare_update_basket"},function(e){$("div#compare-properties-basket").replaceWith(e),compare_panel(),compare_panel_open()})})})};houzez_compare_listing(),$(document).on("click","#compare-properties-basket .compare-property-remove",function(e){e.preventDefault();var a=jQuery(this).parent().attr("property-id");$(this).parent().block({message:'<i class="'+process_loader_spinner+'"></i>',css:{border:"none",backgroundColor:"none",fontSize:"16px"}});var r={action:"houzez_compare_add_property",prop_id:a};$.post(ajaxurl,r,function(e){$.post(ajaxurl,{action:"houzez_compare_update_basket"},function(e){$("div#compare-properties-basket").replaceWith(e),compare_panel()})})}),jQuery(document).on("click",".compare-properties-button",function(){return""!=compare_button_url?window.location.href=compare_button_url:alert(compare_page_not_found),!1})}if(0<$(".houzez-print").length&&$(".houzez-print").click(function(e){var propID,printWindow;e.preventDefault(),propID=$(this).attr("data-propid"),printWindow=window.open("","Print Me","width=700 ,height=842"),$.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_create_print",propid:propID},success:function(e){printWindow.document.write(e),printWindow.document.close(),printWindow.focus()},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})}),houzez_rtl){var visual_composer_stretch_row=function(){var e=$('[data-vc-full-width="true"]');$.each(e,function(e,a){var r=$(this);r.addClass("vc_hidden");var o=r.next(".vc_row-full-width"),s=parseInt(r.css("margin-left"),10),t=parseInt(r.css("margin-right"),10),n=0-o.offset().left-s,i=$(window).width();if(r.css({position:"relative",left:n,right:n,"box-sizing":"border-box",width:$(window).width()}),!r.data("vcStretchContent")){var l=-1*n;l<0&&(l=0);var c=i-l-o.width()+s+t;c<0&&(c=0),r.css({"padding-left":l+"px","padding-right":c+"px"})}r.attr("data-vc-full-width-init","true"),r.removeClass("vc_hidden")})};visual_composer_stretch_row(),$(window).resize(function(){visual_composer_stretch_row()})}var view_btn=$(".view-btn ");0<view_btn.length&&(view_btn.click(function(){$.removeCookie("properties-layout"),$.removeCookie("layout-btn"),$(this).hasClass("btn-list")?($.cookie("properties-layout","list-view"),$.cookie("layout-btn","btn-list")):$(this).hasClass("btn-grid")?($.cookie("properties-layout","grid-view"),$.cookie("layout-btn","btn-grid")):$(this).hasClass("btn-grid-3-col")&&($.cookie("properties-layout","grid-view-3-col"),$.cookie("layout-btn","btn-grid-3-col"))}),"undefined"!=$.cookie("properties-layout")&&("list-view"==$.cookie("properties-layout")&&"template-search.php"!=fave_page_template&&"user_dashboard_favorites.php"!=fave_page_template?($(".property-listing").removeClass("grid-view grid-view-3-col"),$(".property-listing").addClass("list-view")):"grid-view"==$.cookie("properties-layout")&&"template-search.php"!=fave_page_template&&"user_dashboard_favorites.php"!=fave_page_template?($(".property-listing").removeClass("list-view grid-view grid-view-3-col"),$(".property-listing").addClass("grid-view")):"grid-view-3-col"==$.cookie("properties-layout")&&"template-search.php"!=fave_page_template&&"user_dashboard_favorites.php"!=fave_page_template&&($(".property-listing").removeClass("list-view grid-view"),$(".property-listing").addClass("grid-view grid-view-3-col"))),"undefined"!=$.cookie("layout-btn")&&("btn-list"==$.cookie("layout-btn")?($(".view-btn").removeClass("active"),$(".view-btn.btn-list").addClass("active")):"btn-grid"==$.cookie("layout-btn")?($(".view-btn").removeClass("active"),$(".view-btn.btn-grid").addClass("active")):"btn-grid-3-col"==$.cookie("layout-btn")&&($(".view-btn").removeClass("active"),$(".view-btn.btn-grid-3-col").addClass("active"))));var addCommas=function(e){for(var a=(e+="").split("."),r=a[0],o=1<a.length?"."+a[1]:"",s=/(\d+)(\d{3})/;s.test(r);)r=r.replace(s,"$1"+thousands_separator+"$2");return r+o},properties_module_section=$("#properties_module_section");if(0<properties_module_section.length){var properties_module_container=$("#properties_module_container"),paginationLink=$(".property-item-module ul.pagination li a"),fave_loader=$(".fave-svg-loader");$("body").on("click",".fave-load-more a",function(e){e.preventDefault();var $this=$(this);$this.prepend('<i class="fa-left '+process_loader_spinner+'"></i>');var $wrap=$this.closest("#properties_module_section").find("#module_properties"),prop_limit=$this.data("prop-limit"),paged=$this.data("paged"),grid_style=$this.data("grid-style"),type=$this.data("type"),status=$this.data("status"),state=$this.data("state"),city=$this.data("city"),area=$this.data("area"),label=$this.data("label"),user_role=$this.data("user-role"),featured_prop=$this.data("featured-prop"),offset=$this.data("offset"),sortby=$this.data("sortby");$.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_loadmore_properties",prop_limit:prop_limit,paged:paged,grid_style:grid_style,type:type,status:status,state:state,city:city,area:area,label:label,user_role:user_role,featured_prop:featured_prop,sort_by:sortby,offset:offset},success:function(e){"no_result"!=e?($this.closest("#properties_module_section").find("#module_properties").append(e),$this.data("paged",paged+1),$this.find("i").remove(),houzez_init_add_favorite(),houzez_init_remove_favorite(),$('[data-toggle="tooltip"]').tooltip(),1==has_compare&&houzez_compare_listing()):$this.closest("#properties_module_section").find(".fave-load-more").fadeOut("fast").remove()},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})})}var fave_property_status_changed=function(e,a){e==HOUZEZ_ajaxcalls_vars.for_rent?(a.find(".prices-for-all").addClass("hide"),a.find(".prices-for-all select").attr("disabled","disabled"),a.find(".prices-only-for-rent").removeClass("hide"),a.find(".prices-only-for-rent select").removeAttr("disabled","disabled"),a.find(".prices-only-for-rent select").selectpicker("refresh")):(a.find(".prices-only-for-rent").addClass("hide"),a.find(".prices-only-for-rent select").attr("disabled","disabled"),a.find(".prices-for-all").removeClass("hide"),a.find(".prices-for-all select").removeAttr("disabled","disabled"))};$('select[name="status"]').change(function(e){var a=$(this).val(),r=$(this).parents("form");fave_property_status_changed(a,r)});var selected_status_header_search=$('select[name="status"]').val();if(selected_status_header_search==HOUZEZ_ajaxcalls_vars.for_rent||""==selected_status_header_search||null==selected_status_header_search){var $form=$(".advanced-search, .widget_houzez_advanced_search");fave_property_status_changed(selected_status_header_search,$form)}$(".advanced-search-mobile #selected_status_mobile").change(function(e){var a=$(this).val(),r=$(this).parents("form");fave_property_status_changed(a,r)});var selected_status_header_search=$(".advanced-search-mobile #selected_status_mobile").val();if(selected_status_header_search==HOUZEZ_ajaxcalls_vars.for_rent||""==selected_status_header_search){var $form=$(".advanced-search-mobile");fave_property_status_changed(selected_status_header_search,$form)}$(".advanced-search-module #selected_status_module").change(function(e){var a=$(this).val(),r=$(this).parents("form");fave_property_status_changed(a,r)});var selected_status_module_search=$(".advanced-search-module #selected_status_module").val();if(selected_status_module_search==HOUZEZ_ajaxcalls_vars.for_rent||""==selected_status_module_search){var $form=$(".advanced-search-module");fave_property_status_changed(selected_status_module_search,$form)}$("#save_search_click").click(function(e){e.preventDefault();var $this=$(this),$from=$(".save_search_form");0===parseInt(userID,10)?$("#pop-login").modal("show"):$.ajax({url:ajaxurl,data:$from.serialize(),method:$from.attr("method"),dataType:"JSON",beforeSend:function(){$this.children("i").remove(),$this.prepend('<i class="fa-left '+process_loader_spinner+'"></i>')},success:function(e){e.success&&$("#save_search_click").addClass("saved")},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)},complete:function(){$this.children("i").removeClass(process_loader_spinner)}})}),$(".remove-search").click(function(e){e.preventDefault();var $this=$(this),prop_id=$this.data("propertyid"),removeBlock=$this.parents(".saved-search-block");confirm(confirm_message)&&$.ajax({url:ajaxurl,dataType:"JSON",method:"POST",data:{action:"houzez_delete_search",property_id:prop_id},beforeSend:function(){$this.children("i").remove(),$this.prepend('<i class="'+process_loader_spinner+'"></i>')},success:function(e){e.success&&removeBlock.remove()},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})}),$(".agent_contact_form").click(function(e){e.preventDefault();var $this=$(this),$form=$this.parents("form"),$result=$form.find(".form_messages");$.ajax({url:ajaxurl,data:$form.serialize(),method:$form.attr("method"),dataType:"JSON",beforeSend:function(){$this.children("i").remove(),$this.prepend('<i class="fa-left '+process_loader_spinner+'"></i>')},success:function(e){e.success?($result.empty().append(e.msg),$form.find("input").val(""),$form.find("textarea").val("")):($result.empty().append(e.msg),$this.children("i").removeClass(process_loader_spinner)),1==houzez_reCaptcha&&houzezReCaptchaReset()},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)},complete:function(){$this.children("i").removeClass(process_loader_spinner),$this.children("i").addClass(success_icon)}})}),$("#agent_detail_contact_btn").click(function(e){e.preventDefault();var current_element=$(this),$this=$(this),$form=$this.parents("form");jQuery.ajax({type:"post",url:ajaxurl,data:$form.serialize(),method:$form.attr("method"),dataType:"JSON",beforeSend:function(){current_element.children("i").remove(),current_element.prepend('<i class="fa-left '+process_loader_spinner+'"></i>')},success:function(e){current_element.children("i").removeClass(process_loader_spinner),e.success?($("#form_messages").empty().append(e.msg),current_element.children("i").addClass(success_icon)):$("#form_messages").empty().append(e.msg),1==houzez_reCaptcha&&houzezReCaptchaReset()},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})}),$(".schedule_contact_form").click(function(e){e.preventDefault();var $this=$(this),$form=$this.parents("form"),$result=$form.find(".form_messages");$.ajax({url:ajaxurl,data:$form.serialize(),method:$form.attr("method"),dataType:"JSON",beforeSend:function(){$this.children("i").remove(),$this.prepend('<i class="fa-left '+process_loader_spinner+'"></i>')},success:function(e){e.success?($result.empty().append(e.msg),$form.find("input").val(""),$form.find("textarea").val("")):$result.empty().append(e.msg)},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)},complete:function(){$this.children("i").removeClass(process_loader_spinner),$this.children("i").addClass(success_icon)}})}),$(".resend-for-approval-perlisting").click(function(e){e.preventDefault();var a=$(this).attr("data-propid");resend_for_approval_perlisting(a,$(this)),$(this).unbind("click")});var resend_for_approval_perlisting=function(prop_id,currentDiv){$.ajax({type:"POST",url:ajaxurl,dataType:"JSON",data:{action:"houzez_resend_for_approval_perlisting",propid:prop_id},success:function(e){e.success?currentDiv.parent().empty().append('<span class="label-success label">'+e.msg+"</span>"):currentDiv.parent().empty().append('<div class="alert alert-danger">'+e.msg+"</div>")},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})},houzez_init_add_favorite=function(){$(".add_fav").click(function(){var e=$(this).children("i"),a=$(this).attr("data-propid");add_to_favorite(a,e)})};houzez_init_add_favorite();var houzez_init_remove_favorite=function(){$(".remove_fav").click(function(){var e=$(this),a=$(this).attr("data-propid");add_to_favorite(a,e);e.parents(".item-wrap").remove()})};houzez_init_remove_favorite();var add_to_favorite=function(propID,curnt){0===parseInt(userID,10)?$("#pop-login").modal("show"):jQuery.ajax({type:"post",url:ajaxurl,dataType:"json",data:{action:"houzez_add_to_favorite",property_id:propID},beforeSend:function(){curnt.addClass("faa-pulse animated")},success:function(e){e.added?curnt.removeClass("fa-heart-o").addClass("fa-heart"):curnt.removeClass("fa-heart").addClass("fa-heart-o"),curnt.removeClass("faa-pulse animated")},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})};$(".fave-login-button").click(function(e){e.preventDefault();var a=$(this);houzez_login(a)}),$(".fave-register-button").click(function(e){e.preventDefault();var a=$(this);houzez_register(a)});var houzez_login=function(currnt){var $form=currnt.parents("form"),$messages=currnt.parents(".login-block").find(".houzez_messages");$.ajax({type:"post",url:ajaxurl,dataType:"json",data:$form.serialize(),beforeSend:function(){$messages.empty().append('<p class="success text-success"> '+login_sending+"</p>")},success:function(e){e.success?($messages.empty().append('<p class="success text-success"><i class="fa fa-check"></i> '+e.msg+"</p>"),"same_page"==login_redirect_type?window.location.reload():window.location.href=login_redirect):$messages.empty().append('<p class="error text-danger"><i class="fa fa-close"></i> '+e.msg+"</p>"),1==houzez_reCaptcha&&houzezReCaptchaReset()},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})},houzez_register=function(currnt){var $form=currnt.parents("form"),$messages=currnt.parents(".class-for-register-msg").find(".houzez_messages_register");$.ajax({type:"post",url:ajaxurl,dataType:"json",data:$form.serialize(),beforeSend:function(){$messages.empty().append('<p class="success text-success"> '+login_sending+"</p>")},success:function(e){e.success?$messages.empty().append('<p class="success text-success"><i class="fa fa-check"></i> '+e.msg+"</p>"):$messages.empty().append('<p class="error text-danger"><i class="fa fa-close"></i> '+e.msg+"</p>"),1==houzez_reCaptcha&&houzezReCaptchaReset()},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})};$("#houzez_forgetpass").click(function(){var user_login=$("#user_login_forgot").val(),security=$("#fave_resetpassword_security").val();$.ajax({type:"post",url:ajaxurl,dataType:"json",data:{action:"houzez_reset_password",user_login:user_login,security:security},beforeSend:function(){$("#houzez_msg_reset").empty().append('<p class="success text-success"> '+login_sending+"</p>")},success:function(e){e.success?$("#houzez_msg_reset").empty().append('<p class="success text-success"><i class="fa fa-check"></i> '+e.msg+"</p>"):$("#houzez_msg_reset").empty().append('<p class="error text-danger"><i class="fa fa-close"></i> '+e.msg+"</p>")},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})}),0<$("#houzez_reset_password").length&&$("#houzez_reset_password").click(function(e){e.preventDefault();var a=$(this),r=$('input[name="rp_login"]').val(),o=$('input[name="rp_key"]').val(),s=$('input[name="pass1"]').val(),t=$('input[name="pass2"]').val(),n=$('input[name="fave_resetpassword_security"]').val();$.ajax({type:"post",url:ajaxurl,dataType:"json",data:{action:"houzez_reset_password_2",rq_login:r,password:s,confirm_pass:t,rp_key:o,security:n},beforeSend:function(){a.children("i").remove(),a.prepend('<i class="fa-left '+process_loader_spinner+'"></i>')},success:function(e){e.success?(jQuery("#password_reset_msgs").empty().append('<p class="success text-success"><i class="fa fa-check"></i> '+e.msg+"</p>"),jQuery("#oldpass, #newpass, #confirmpass").val("")):jQuery("#password_reset_msgs").empty().append('<p class="error text-danger"><i class="fa fa-close"></i> '+e.msg+"</p>")},error:function(e){},complete:function(){a.children("i").removeClass(process_loader_spinner)}})}),$("#houzez_complete_order").click(function(e){var a,r,o,s,t,n;e.preventDefault(),r=$("input[name='houzez_payment_type']:checked").val(),t=$("input[name='featured_pay']").val(),n=$("input[name='is_upgrade']").val(),s=$("#houzez_property_id").val(),o=$("#houzez_listing_price").val(),"paypal"==r?(fave_processing_modal(paypal_connecting),fave_paypal_payment(s,t,n)):"stripe"==r?(a=$(this).parents("form"),"1"===t?a.find(".houzez_stripe_simple_featured button").trigger("click"):a.find(".houzez_stripe_simple button").trigger("click")):"direct_pay"==r&&(fave_processing_modal(direct_pay_text),direct_bank_transfer(s,o))});var fave_processing_modal=function(e){var a='<div class="modal fade" id="fave_modal" tabindex="-1" role="dialog" aria-labelledby="faveModalLabel" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-body houzez_messages_modal">'+e+"</div></div></div></div></div>";jQuery("body").append(a),jQuery("#fave_modal").modal()},fave_processing_modal_close=function(){jQuery("#fave_modal").modal("hide")},fave_paypal_payment=function(property_id,is_prop_featured,is_prop_upgrade){$.ajax({type:"post",url:ajaxurl,data:{action:"houzez_property_paypal_payment",prop_id:property_id,is_prop_featured:is_prop_featured,is_prop_upgrade:is_prop_upgrade},success:function(e){window.location.href=e},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})},houzez_membership_data=function(e){var a=$("input[name='houzez_payment_type']:checked").val(),r=$("input[name='houzez_package_price']").val(),o=$("input[name='houzez_package_id']").val(),s=$("#houzez_package_name").text();if("paypal"==a)fave_processing_modal(paypal_connecting),$("#paypal_package_recurring").is(":checked")?houzez_recuring_paypal_package_payment(r,s,o):houzez_paypal_package_payment(r,s,o);else if("mollie"==a)fave_processing_modal(mollie_connecting),houzez_mollie_package_payment(r,s,o);else if("stripe"==a){e.parents("form").find(".houzez_stripe_membership button").trigger("click")}else"direct_pay"==a?(fave_processing_modal(direct_pay_text),direct_bank_transfer_package(o,r,s)):"2checkout"==a||(fave_processing_modal(direct_pay_text),houzez_free_membership_package(o));return!1},houzez_register_user_with_membership=function(currnt){var $form=currnt.parents("form"),$messages=currnt.parents(".class-for-register-msg").find(".houzez_messages_register");$.ajax({type:"post",url:ajaxurl,dataType:"json",data:$form.serialize(),beforeSend:function(){$messages.empty().append('<p class="success text-success"> '+login_sending+"</p>")},success:function(e){e.success?houzez_membership_data(currnt):$messages.empty().append('<p class="error text-danger"><i class="fa fa-close"></i> '+e.msg+"</p>")},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})};$("#houzez_complete_membership").click(function(e){e.preventDefault();var a=$(this);"no"!=houzez_logged_in?houzez_membership_data(a):houzez_register_user_with_membership(a)});var houzez_paypal_package_payment=function(houzez_package_price,houzez_package_name,houzez_package_id){$.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_paypal_package_payment",houzez_package_price:houzez_package_price,houzez_package_name:houzez_package_name,houzez_package_id:houzez_package_id},success:function(e){window.location.href=e},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})},houzez_recuring_paypal_package_payment=function(houzez_package_price,houzez_package_name,houzez_package_id){jQuery.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_recuring_paypal_package_payment",houzez_package_name:houzez_package_name,houzez_package_id:houzez_package_id,houzez_package_price:houzez_package_price},success:function(e){window.location.href=e},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})},houzez_mollie_package_payment=function(houzez_package_price,houzez_package_name,houzez_package_id){$.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_mollie_package_payment",houzez_package_price:houzez_package_price,houzez_package_name:houzez_package_name,houzez_package_id:houzez_package_id},success:function(e){window.location.href=e},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})},direct_bank_transfer_package=function(e,a,r){jQuery.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_direct_pay_package",selected_package:e},success:function(e){window.location.href=e},error:function(e){}})},houzez_free_membership_package=function(e){jQuery.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_free_membership_package",selected_package:e},success:function(e){window.location.href=e},error:function(e){}})};$(".resend-for-approval").click(function(e){if(e.preventDefault(),confirm(confirm_relist)){var a=$(this).attr("data-propid");resend_for_approval(a,$(this)),$(this).unbind("click")}});var resend_for_approval=function(prop_id,currentDiv){$.ajax({type:"POST",url:ajaxurl,dataType:"JSON",data:{action:"houzez_resend_for_approval",propid:prop_id},success:function(e){if(e.success){currentDiv.parent().empty().append('<span class="label-success label">'+e.msg+"</span>");var a=parseInt(jQuery(".listings_remainings").text(),10);jQuery(".listings_remainings").text(a-1)}else currentDiv.parent().empty().append('<div class="alert alert-danger">'+e.msg+"</div>")},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})};$(".make-prop-featured").click(function(e){if(e.preventDefault(),confirm(confirm_featured)){var a=$(this).attr("data-propid"),r=$(this).attr("data-proptype");make_prop_featured(a,$(this),r),$(this).unbind("click")}});var make_prop_featured=function(prop_id,currentDiv,prop_type){$.ajax({type:"POST",url:ajaxurl,dataType:"JSON",data:{action:"houzez_make_prop_featured",propid:prop_id,prop_type:prop_type},success:function(e){if(e.success){currentDiv.parents(".item-wrap").find(".item-thumb").append('<span class="label-featured label">'+fave_prop_featured+"</span>"),currentDiv.remove(),window.location.reload();var a=parseInt(jQuery(".featured_listings_remaining").text(),10);jQuery(".featured_listings_remaining").text(a-1)}else currentDiv.parent().empty().append('<div class="alert alert-danger">'+featured_listings_none+"</div>")},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})};$(".remove-prop-featured").click(function(e){if(e.preventDefault(),confirm(confirm_featured_remove)){var a=$(this).attr("data-propid");remove_prop_featured(a,$(this)),$(this).unbind("click")}});var remove_prop_featured=function(prop_id,currentDiv){$.ajax({type:"POST",url:ajaxurl,dataType:"JSON",data:{action:"houzez_remove_prop_featured",propid:prop_id},success:function(e){e.success&&(currentDiv.parents(".item-wrap").find(".label-featured").remove(),currentDiv.remove(),window.location.reload())},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})},direct_bank_transfer=function(e,a){var r=$('input[name="featured_pay"]').val(),o=$('input[name="is_upgrade"]').val();jQuery.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_direct_pay_per_listing",prop_id:e,is_featured:r,is_upgrade:o},success:function(e){window.location.href=e},error:function(e){}})};$(".yahoo-login").click(function(){var e=$(this);houzez_login_via_yahoo(e)});var houzez_login_via_yahoo=function(current){var $form=current.parents("form"),$messages=current.parents(".login-block").find(".houzez_messages");$.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_yahoo_login"},beforeSend:function(){$messages.empty().append('<p class="success text-success"> '+login_sending+"</p>")},success:function(e){window.location.href=e},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})};$(".google-login").click(function(){var e=$(this);houzez_login_via_google(e)});var houzez_login_via_google=function(current){var $form=current.parents("form"),$messages=current.parents(".login-block").find(".houzez_messages");$.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_google_login_oauth"},beforeSend:function(){$messages.empty().append('<p class="success text-success"> '+login_sending+"</p>")},success:function(e){window.location.href=e},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})};$(".facebook-login").click(function(){var e=$(this);houzez_login_via_facebook(e)});var houzez_login_via_facebook=function(current){var $form=current.parents("form"),$messages=current.parents(".login-block").find(".houzez_messages");$.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_facebook_login_oauth"},beforeSend:function(){$messages.empty().append('<p class="success text-success"> '+login_sending+"</p>")},success:function(e){window.location.href=e},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})};$("#invoice_status, #invoice_type").change(function(){houzez_invoices_filter()}),$("#startDate, #endDate").focusout(function(){houzez_invoices_filter()});var houzez_invoices_filter=function(){var inv_status=$("#invoice_status").val(),inv_type=$("#invoice_type").val(),startDate=$("#startDate").val(),endDate=$("#endDate").val();$.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{action:"houzez_invoices_ajax_search",invoice_status:inv_status,invoice_type:inv_type,startDate:startDate,endDate:endDate},success:function(e){e.success&&($("#invoices_content").empty().append(e.result),$("#invoices_total_price").empty().append(e.total_price))},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})},houzezAddMarkers=function(e,d){if(1==marker_spiderfier)var u=new OverlappingMarkerSpiderfier(d,{markersWontMove:!0,markersWontHide:!0,keepSpiderfied:!0,circleSpiralSwitchover:1/0,nearbyDistance:50});$.each(e,function(e,a){var r=new google.maps.LatLng(a.lat,a.lng),o=a.data?a.data.post_title:a.title;if("yes"==markerPricePins)var s='<div data-id="'+a.id+'" class="gm-marker gm-marker-color-'+a.term_id+'"><div class="gm-marker-price">'+a.pricePin+"</div></div>",t=new RichMarker({map:d,position:r,draggable:!1,flat:!0,anchor:RichMarkerPosition.MIDDLE,content:s});else{var n=a.icon,i=new google.maps.Size(44,56);1.5<window.devicePixelRatio&&a.retinaIcon&&(n=a.retinaIcon,i=new google.maps.Size(44,56));var l={url:n,size:i,scaledSize:new google.maps.Size(44,56)};t=new google.maps.Marker({position:r,map:d,icon:l,draggable:!1,title:o,animation:google.maps.Animation.DROP})}var c=a.prop_meta;null==c&&(c="");var p,_=document.createElement("div");_.className="property-item item-grid map-info-box google-map-info-window",_.innerHTML='<div class="figure-block"><figure class="item-thumb"><div class="price hide-on-list"><span class="item-price">'+a.price+'</span></div><a href="'+a.url+'" class="hover-effect" tabindex="0">'+a.thumbnail+'</a></figure></div><div class="item-body"><div class="body-left"><div class="info-row"><h2><a href="'+a.url+'">'+o+"</a></h2><h4>"+a.address+'</h4></div><div class="table-list full-width info-row"><div class="cell"><div class="info-row amenities">'+c+"<p>"+a.type+"</p></div></div></div></div></div>",google.maps.event.addListener(t,"click",(p=t,function(){infobox.setContent(_),infobox.open(d,p)})),1==marker_spiderfier&&u.addMarker(t),markers.push(t)})},houzez_osm_markers=function(e,p){for(var _,a=[],r=0;r<e.length;r++)e[r].lat&&e[r].lng&&a.push([e[r].lat,e[r].lng]);1<a.length&&p.fitBounds(a),1==is_marker_cluster&&(osm_markers_cluster=new L.MarkerClusterGroup({iconCreateFunction:function(e){var a='<div class="houzez-osm-cluster">'+e.getAllChildMarkers().length+"</div>";return L.divIcon({html:a,className:"mycluster",iconSize:L.point(47,47)})},spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0})),$.each(e,function(e,a){var r=L.latLng(a.lat,a.lng),o=a.data?a.data.post_title:a.title;if("yes"==markerPricePins){var s='<div data-id="'+a.id+'" class="gm-marker gm-marker-color-'+a.term_id+'"><div class="gm-marker-price">'+a.pricePin+"</div></div>",t=L.divIcon({className:"someclass",iconSize:new L.Point(0,0),html:s});_=1==is_marker_cluster?new L.Marker(r,{icon:t}):L.marker(r,{icon:t}).addTo(p)}else{var n={riseOnHover:!0};if(""!=o&&(n.title=o),a.icon){var i={iconUrl:a.icon,iconSize:[44,56],iconAnchor:[20,57],popupAnchor:[1,-57]};a.retinaIcon&&(i.iconRetinaUrl=a.retinaIcon),n.icon=L.icon(i)}_=1==is_marker_cluster?new L.Marker(r,n):L.marker(r,n).addTo(p)}1==is_marker_cluster&&osm_markers_cluster.addLayer(_);var l=a.prop_meta;null==l&&(l="");var c=document.createElement("div");c.className="property-item item-grid map-info-box osm-info-window",c.innerHTML='<div class="figure-block"><figure class="item-thumb"><div class="price hide-on-list"><span class="item-price">'+a.price+'</span></div><a href="'+a.url+'" class="hover-effect" tabindex="0">'+a.thumbnail+'</a></figure></div><div class="item-body"><div class="body-left"><div class="info-row"><h2><a href="'+a.url+'">'+o+"</a></h2><h4>"+a.address+'</h4></div><div class="table-list full-width info-row"><div class="cell"><div class="info-row amenities">'+l+"<p>"+a.type+"</p></div></div></div></div></div>",markers.push(_),_.bindPopup(c)}),1==is_marker_cluster&&p.addLayer(osm_markers_cluster)},houzez_osm_marker_simple=function(e,n){$.each(e,function(e,a){var r=L.latLng(a.lat,a.lng),o=a.data?a.data.post_title:a.title,s={riseOnHover:!0};if(""!=o&&(s.title=o),a.icon){var t={iconUrl:a.icon,iconSize:[44,56],iconAnchor:[20,57],popupAnchor:[1,-57]};a.retinaIcon&&(t.iconRetinaUrl=a.retinaIcon),s.icon=L.icon(t)}L.marker(r,s).addTo(n)})},reloadOSMMarkers=function(){for(var e=0;e<markers.length;e++)houzezOSM.removeLayer(markers[e]);markers=[],osm_markers_cluster&&houzezOSM.removeLayer(osm_markers_cluster)},houzezAddMarkerSimple=function(e,c){$.each(e,function(e,a){var r=new google.maps.LatLng(a.lat,a.lng),o=a.data?a.data.post_title:a.title,s=a.icon,t=new google.maps.Size(44,56);if(1.5<window.devicePixelRatio&&a.retinaIcon&&(s=a.retinaIcon,t=new google.maps.Size(44,56)),"yes"==markerPricePins)var n='<div class="gm-marker gm-marker-color-'+a.term_id+'"><div class="gm-marker-price">'+a.pricePin+"</div></div>",i=new RichMarker({map:c,position:r,draggable:!0,flat:!0,anchor:RichMarkerPosition.MIDDLE,content:n});else{var l={url:s,size:t,scaledSize:new google.maps.Size(44,56)};i=new google.maps.Marker({position:r,map:c,icon:l,draggable:!1,title:o,animation:google.maps.Animation.DROP})}markers.push(i)})},houzez_map_zoomin=function(a){google.maps.event.addDomListener(document.getElementById("listing-mapzoomin"),"click",function(){var e=parseInt(a.getZoom(),10);console.log(e),20<++e&&(e=20),console.log("=="+e+" ++ "),a.setZoom(e)})},houzez_map_zoomout=function(a){google.maps.event.addDomListener(document.getElementById("listing-mapzoomout"),"click",function(){var e=parseInt(a.getZoom(),10);console.log(e),--e<0&&(e=0),console.log("=="+e+" -- "),a.setZoom(e)})},houzez_map_zoomin_osm=function(a){$("#listing-mapzoomin").on("click",function(){var e=parseInt(a.getZoom(),10);console.log(e),20<++e&&(e=20),console.log("=="+e+" ++ "),a.setZoom(e)})},houzez_map_zoomout_osm=function(a){$("#listing-mapzoomout").on("click",function(){var e=parseInt(a.getZoom(),10);console.log(e),--e<0&&(e=0),console.log("=="+e+" -- "),a.setZoom(e)})};document.getElementById("listing-mapzoomin")&&("osm"!=houzez_map_system?houzez_map_zoomin(houzezMap):houzez_map_zoomin_osm(houzezOSM)),document.getElementById("listing-mapzoomout")&&("osm"!=houzez_map_system?houzez_map_zoomout(houzezMap):houzez_map_zoomout_osm(houzezOSM));var houzez_change_map_type=function(e){return"roadmap"===e?houzezMap.setMapTypeId(google.maps.MapTypeId.ROADMAP):"satellite"===e?houzezMap.setMapTypeId(google.maps.MapTypeId.SATELLITE):"hybrid"===e?houzezMap.setMapTypeId(google.maps.MapTypeId.HYBRID):"terrain"===e&&houzezMap.setMapTypeId(google.maps.MapTypeId.TERRAIN),!1};$(".houzezMapType").on("click",function(){var e=$(this).data("maptype");houzez_change_map_type(e)});var houzez_map_next=function(e){for(++current_marker>markers.length&&(current_marker=1);!1===markers[current_marker-1].visible;)++current_marker>markers.length&&(current_marker=1);e.getZoom()<15&&e.setZoom(15),console.log(current_marker-1),"google"==houzez_map_system?google.maps.event.trigger(markers[current_marker-1],"click"):(e.setView(markers[current_marker-1].getLatLng()),markers[current_marker-1]._icon||markers[current_marker-1].__parent.spiderfy(),e.setZoom(20),current_marker-1==0||current_marker-1==markers.length?setTimeout(function(){markers[current_marker-1].fire("click")},500):markers[current_marker-1].fire("click"))},houzez_map_prev=function(e){for(--current_marker<1&&(current_marker=markers.length);!1===markers[current_marker-1].visible;)--current_marker>markers.length&&(current_marker=1);e.getZoom()<15&&e.setZoom(15),console.log(current_marker-1),"google"==houzez_map_system?google.maps.event.trigger(markers[current_marker-1],"click"):(e.setView(markers[current_marker-1].getLatLng()),markers[current_marker-1]._icon||markers[current_marker-1].__parent.spiderfy(),e.setZoom(20),current_marker-1==0||current_marker==markers.length?setTimeout(function(){markers[current_marker-1].fire("click")},500):markers[current_marker-1].fire("click"))};$("#houzez-gmap-next").on("click",function(){houzez_map_next("google"==houzez_map_system?houzezMap:houzezOSM)}),$("#houzez-gmap-prev").on("click",function(){houzez_map_prev("google"==houzez_map_system?houzezMap:houzezOSM)});var houzez_map_search_field=function(e){var a=new google.maps.places.SearchBox(e);houzezMap.controls[google.maps.ControlPosition.TOP_LEFT].push(e),houzezMap.addListener("bounds_changed",function(){a.setBounds(houzezMap.getBounds())});var o=[];a.addListener("places_changed",function(){var e=a.getPlaces();if(0!=e.length){o.forEach(function(e){e.setMap(null)}),o=[];var r=new google.maps.LatLngBounds;e.forEach(function(e){var a={url:e.icon,size:new google.maps.Size(71,71),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(17,34),scaledSize:new google.maps.Size(25,25)};o.push(new google.maps.Marker({map:houzezMap,icon:a,title:e.name,position:e.geometry.location})),e.geometry.viewport?r.union(e.geometry.viewport):r.extend(e.geometry.location)}),houzezMap.fitBounds(r)}})};if(document.getElementById("google-map-search")){var mapInput=document.getElementById("google-map-search");"google"==houzez_map_system&&houzez_map_search_field(mapInput)}var reloadMarkers=function(){for(var e=0;e<markers.length;e++)markers[e].setMap(null);markers=[]},houzezGeoLocation=function(o){var e=!0;!!window.chrome&&!!window.chrome.webstore&&"http:"===document.location.protocol&&0!=ipinfo_location&&(e=!1),e?navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(e){var r={lat:e.coords.latitude,lng:e.coords.longitude};(new google.maps.Geocoder).geocode({location:r},function(e,a){if("OK"===a)if(e[1]){console.log(e[1]);new google.maps.Marker({position:r,map:o})}else window.alert("No results found");else window.alert("Geocoder failed due to: "+a)});var a=new google.maps.Circle({radius:2e3,center:r,map:o,fillColor:houzez_primary_color,fillOpacity:.1,strokeColor:houzez_primary_color,strokeOpacity:.3});o.fitBounds(a.getBounds())},function(){handleLocationError(!0,o,o.getCenter())}):$.getJSON("http://ipinfo.io",function(e){var a={lat:1*(a=(a=e.loc).split(","))[0],lng:1*a[1]},r=new google.maps.Circle({radius:1e3,center:a,map:o,icon:clusterIcon,fillColor:houzez_primary_color,fillOpacity:.2,strokeColor:houzez_primary_color,strokeOpacity:.6});o.fitBounds(r.getBounds());new google.maps.Marker({position:a,animation:google.maps.Animation.DROP,map:o});o.setCenter(a)})};document.getElementById("houzez-gmap-location")&&google.maps.event.addDomListener(document.getElementById("houzez-gmap-location"),"click",function(){houzezGeoLocation(houzezMap)});var houzezLatLng=function(e){(new google.maps.Geocoder).geocode({address:e},function(e,a){if("OK"==a)return e[0].geometry.location})},half_map_ajax_pagi=function(){return $(".half_map_ajax_pagi a").click(function(e){e.preventDefault();var a=$(this).data("houzepagi"),r=$("form#half_map_search_form"),o=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(r,o,a)}),!1},houzez_header_listing_map=function(e,a,r,o,s,t,n,i,l,c,p,_,d,u,m,h,g,v,f,z,y,x,k,w){var b=$("#securityHouzezHeaderMap").val(),Z=HOUZEZ_ajaxcalls_vars.header_map_selected_city;$(".map-notfound").remove(),$.ajax({type:"POST",dataType:"json",url:ajaxurl,data:{action:"houzez_header_map_listings",initial_city:Z,keyword:e,country:a,state:r,location:o,area:s,status:t,type:n,label:i,property_id:l,bedrooms:c,bathrooms:p,min_price:_,max_price:d,currency:k,min_area:u,max_area:m,features:h,publish_date:g,search_lat:v,search_long:f,use_radius:x,search_location:y,search_radius:z,custom_fields_values:w,security:b},beforeSend:function(){$("#houzez-map-loading").show()},success:function(e){"google"==houzez_map_system&&(remove_map_loader(),houzez_map_parallax()),!0===e.getProperties?("osm"==houzez_map_system?(reloadOSMMarkers(),houzez_osm_markers(e.properties,houzezOSM)):(reloadMarkers(),houzezAddMarkers(e.properties,houzezMap),houzez_map_bounds(),1==is_marker_cluster&&houzez_markerCluster()),$("#houzez-map-loading").hide()):("osm"==houzez_map_system?reloadOSMMarkers():reloadMarkers(),$("#houzez-listing-map").append('<div class="map-notfound">'+not_found+"</div>"))},error:function(e,a,r){console.log(e.status),console.log(e.responseText),console.log(r)}})},houzez_half_map_listings=function(e,a,r,o,s,t,n,i,l,c,p,_,d,u,m,h,g,v,f,z,y,x,k,w,b,Z,O){var j=$("#securityHouzezHeaderMap").val(),M=$("#houzez_ajax_container"),C=$(".map-module-half .tabs-title span");return null!=O&&(paged=O),$.ajax({type:"POST",dataType:"json",url:ajaxurl,data:{action:"houzez_half_map_listings",keyword:e,location:o,country:a,state:r,area:s,status:t,type:n,label:i,property_id:l,bedrooms:c,bathrooms:p,min_price:_,max_price:d,currency:w,min_area:u,max_area:m,features:h,publish_date:g,search_lat:f,search_long:z,use_radius:k,search_location:x,search_radius:y,sort_half_map:Z,custom_fields_values:b,security:j,paged:paged,post_per_page:v},beforeSend:function(){$("#houzez-map-loading").show(),M.empty().append('<div class="list-loading"><div class="list-loading-bar"></div><div class="list-loading-bar"></div><div class="list-loading-bar"></div><div class="list-loading-bar"></div></div>')},success:function(e){return""!=e.query&&$('input[name="search_args"]').val(e.query),$(".map-notfound").remove(),"google"==houzez_map_system&&remove_map_loader(),!0===e.getProperties?("osm"==houzez_map_system?(reloadOSMMarkers(),houzez_osm_markers(e.properties,houzezOSM)):(reloadMarkers(),houzezAddMarkers(e.properties,houzezMap),houzez_map_bounds(),1==is_marker_cluster&&houzez_markerCluster(),houzez_is_mobile||houzez_infobox_trigger()),M.empty().html(e.propHtml),C.empty().html(e.total_results),half_map_ajax_pagi(),houzez_init_add_favorite(),houzez_init_remove_favorite(),$('[data-toggle="tooltip"]').tooltip(),1==has_compare&&houzez_compare_listing(),$("#houzez-map-loading").hide()):("osm"==houzez_map_system?reloadOSMMarkers():reloadMarkers(),$("#mapViewHalfListings").append('<div class="map-notfound">'+not_found+"</div>"),M.empty().html('<div class="map-notfound">'+not_found+"</div>"),C.empty().html(e.total_results)),!1},error:function(e,a,r){console.log(e.status),console.log(e.responseText),console.log(r)}}),!1},houzez_search_on_change=function(r,e,a,o,s,t,n,i){var l,c,p,_,d,u,m,h,g,v,f,z,y,x,k,w,b,Z,O,j,M,C,H;y=null!=o&&null!=s?(z=o,s):e.hasClass("widget")||0!=advanced_search_price_slide?(z=r.find('input[name="min-price"]').val(),r.find('input[name="max-price"]').val()):(z=r.find('select[name="min-price"]:not(:disabled)').val(),r.find('select[name="max-price"]:not(:disabled)').val()),p=r.find('select[name="state"]').val(),""!=(_=r.find('select[name="location"]').val())&&null!=_&&void 0!==_||(_="all"),"yes"!=t&&(d=r.find('select[name="area"]').val()),"yes"==n&&(d="",_="all"),"yes"==i&&(d=p="",_="all"),l=r.find('select[name="country"]').val(),c=r.find('select[name="currency"]').val(),u=r.find('select[name="status"]').val(),m=r.find('select[name="type"]').val(),v=r.find('select[name="bedrooms"]').val(),f=r.find('select[name="bathrooms"]').val(),h=r.find('select[name="label"]').val(),g=r.find('input[name="property_id"]').val(),x=r.find('input[name="min-area"]').val(),k=r.find('input[name="max-area"]').val(),w=r.find('input[name="keyword"]').val(),b=r.find('input[name="publish_date"]').val(),H=r.find(".features-list input[type=checkbox]:checked").map(function(e,a){return $(a).val()}).toArray(),Z=r.find('input[name="lat"]').val(),O=r.find('input[name="lng"]').val(),M=r.find('input[name="search_location"]').val(),j="template/property-listings-map.php"==current_tempalte?r.find('input[name="search_radius"]').val():r.find('select[name="radius"]').val(),C=$(r.find('input[name="use_radius"]')).is(":checked")?"on":"off";var E=[];if($.each(search_custom_fields,function(e,a){E.push(r.find("."+e).val())}),0!=is_marker_cluster&&null!=markerCluster&&markerCluster.clearMarkers(),"template/property-listings-map.php"==current_tempalte){var S=$("#houzez_sort_half_map").val();houzez_half_map_listings(w,l,p,_,d,u,m,h,g,v,f,z,y,x,k,H,b,search_no_posts,Z,O,j,M,C,c,E,S,a)}else houzez_header_listing_map(w,l,p,_,d,u,m,h,g,v,f,z,y,x,k,H,b,Z,O,j,M,C,c,E);return!1},populate_state_dropdown=function(e,a){var r;""!=(r=e.find('select[name="country"] option:selected').val())&&null!=r?("houzez_on_load"!=a&&e.find('select[name="location"], select[name="area"], select[name="state"]').selectpicker("val",""),e.find('select[name="state"] option').each(function(){var e=$(this).data("parentcountry");void 0!==e&&(e=e.toUpperCase()),""!=$(this).val()&&$(this).css("display","none"),e==r&&$(this).css("display","block")})):"houzez_on_load"==a||(e.find('select[name="location"], select[name="area"], select[name="state"]').selectpicker("val",""),e.find('select[name="state"] option').each(function(){$(this).css("display","block")}),e.find('select[name="area"] option').each(function(){$(this).css("display","block")})),e.find('select[name="location"], select[name="area"], select[name="state"]').selectpicker("refresh")},populate_city_dropdown=function(e,a){var r;""!=(r=e.find('select[name="state"] option:selected').val())&&null!=r?("houzez_on_load"!=a&&e.find('select[name="location"], select[name="area"]').selectpicker("val",""),e.find('select[name="location"] option').each(function(){var e=$(this).data("parentstate");""!=$(this).val()&&$(this).css("display","none"),e==r&&$(this).css("display","block")})):"houzez_on_load"==a||(e.find('select[name="location"], select[name="area"]').selectpicker("val",""),e.find('select[name="location"] option').each(function(){$(this).css("display","block")}),e.find('select[name="area"] option').each(function(){$(this).css("display","block")})),e.find('select[name="location"], select[name="area"]').selectpicker("refresh")},populate_area_dropdown=function(e,a){var r;""!=(r=e.find('select[name="location"] option:selected').val())&&null!=r?("houzez_on_load"!=a&&e.find('select[name="area"]').selectpicker("val",""),e.find('select[name="area"] option').each(function(){var e=$(this).data("parentcity");""!=$(this).val()&&$(this).css("display","none"),e==r&&$(this).css("display","block")})):(e.find('select[name="area"]').selectpicker("val",""),e.find('select[name="area"] option').each(function(){$(this).css("display","block")})),e.find('select[name="area"]').selectpicker("refresh")},select_areas_on_load=$(".advance-search-header, .map-module-half, .widget_houzez_advanced_search").find("form");if(populate_area_dropdown(select_areas_on_load,"houzez_on_load"),populate_city_dropdown(select_areas_on_load,"houzez_on_load"),populate_state_dropdown(select_areas_on_load,"houzez_on_load"),0<$("#houzez-listing-map").length||0<$("#mapViewHalfListings").length){$.each(search_custom_fields,function(e,a){$("."+e).on("change",function(){var e=$(this).parents("form"),a=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(e,a,current_page)}),console.log(e+":"+a)});var current_page=0;if($('select[name="sort_half_map"], select[name="currency"], select[name="area"], select[name="label"], select[name="bedrooms"], select[name="bathrooms"], select[name="min-price"], select[name="max-price"], input[name="min-price"], input[name="max-price"], input[name="min-area"], input[name="max-area"], select[name="type"], input[name="property_id"]').on("change",function(){var e=$(this).parents("form"),a=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(e,a,current_page)}),$('input[name="keyword"]').on("change",function(){var e=$(this).parents("form"),a=$(this).parents(".widget_houzez_advanced_search");setTimeout(function(){houzez_search_on_change(e,a,current_page)},100)}),"google"==houzez_map_system&&$("input.search_location").geocomplete({details:"form",country:houzez_geocomplete_country,geocodeAfterResult:!0}).bind("geocode:result",function(e,a){var r=$(this).parents("form"),o=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(r,o,current_page),console.log(a)}),$("#half_map_update").on("click",function(e){e.preventDefault();var a=$(this).parents("form"),r=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(a,r,current_page)}),$('select[name="radius"]').on("change",function(){var e=$(this).parents("form"),a=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(e,a,current_page)}),$('select[name="country"]').on("change",function(){var e=$(this).parents("form"),a=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(e,a,current_page,"","","","","yes"),populate_state_dropdown(e)}),$('select[name="state"]').on("change",function(){var e=$(this).parents("form"),a=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(e,a,current_page,"","","","yes"),populate_city_dropdown(e)}),$('select[name="location"]').on("change",function(){var e=$(this).parents("form"),a=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(e,a,current_page,"","","yes"),populate_area_dropdown(e)}),$('input[name="feature[]"]').on("change",function(){var e=$(this).parents("form"),a=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(e,a,current_page)}),$(".search-date").on("change",function(e){var a=$(this).parents("form"),r=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(a,r,current_page)}),$('select[name="status"]').on("change",function(){var e=$(this).parents("form"),a=$(this).parents(".widget_houzez_advanced_search");$(this).val()==rent_status_for_price_range?0!=advanced_search_price_slide?houzez_search_on_change(e,a,current_page,advanced_search_price_range_min_rent,advanced_search_price_range_max_rent):houzez_search_on_change(e,a,current_page):0!=advanced_search_price_slide?houzez_search_on_change(e,a,current_page,advanced_search_price_range_min,advanced_search_price_range_max):houzez_search_on_change(e,a,current_page)}),"template/property-listings-map.php"==current_tempalte){var sort_by=HOUZEZ_ajaxcalls_vars.sort_by,state=HOUZEZ_ajaxcalls_vars.search_state,country=HOUZEZ_ajaxcalls_vars.search_country,keyword=HOUZEZ_ajaxcalls_vars.search_keyword,location=HOUZEZ_ajaxcalls_vars.search_city,features=HOUZEZ_ajaxcalls_vars.search_feature,area=HOUZEZ_ajaxcalls_vars.search_area,status=HOUZEZ_ajaxcalls_vars.search_status,type=HOUZEZ_ajaxcalls_vars.search_type,label=HOUZEZ_ajaxcalls_vars.search_label,property_id=HOUZEZ_ajaxcalls_vars.search_property_id,bedrooms=HOUZEZ_ajaxcalls_vars.search_bedrooms,bathrooms=HOUZEZ_ajaxcalls_vars.search_bathrooms,min_price=HOUZEZ_ajaxcalls_vars.search_min_price,max_price=HOUZEZ_ajaxcalls_vars.search_max_price,currency=HOUZEZ_ajaxcalls_vars.search_currency,min_area=HOUZEZ_ajaxcalls_vars.search_min_area,max_area=HOUZEZ_ajaxcalls_vars.search_max_area,publish_date=HOUZEZ_ajaxcalls_vars.search_publish_date,search_no_posts=HOUZEZ_ajaxcalls_vars.search_no_posts,search_lat=HOUZEZ_ajaxcalls_vars.search_lat,search_long=HOUZEZ_ajaxcalls_vars.search_long,search_radius=HOUZEZ_ajaxcalls_vars.search_radius,search_location=HOUZEZ_ajaxcalls_vars.search_location,use_radius=HOUZEZ_ajaxcalls_vars.use_radius,custom_fields_array=[];$.each(search_custom_fields,function(e,a){custom_fields_array.push(a)}),houzez_half_map_listings(keyword,country,state,location,area,status,type,label,property_id,bedrooms,bathrooms,min_price,max_price,min_area,max_area,features,publish_date,search_no_posts,search_lat,search_long,search_radius,search_location,use_radius,currency,custom_fields_array,sort_by)}else houzez_header_listing_map()}else $('select[name="country"]').on("change",function(){var e=$(this).parents("form");populate_state_dropdown(e)}),$('select[name="location"]').on("change",function(){var e=$(this).parents("form");populate_area_dropdown(e)}),$('select[name="state"]').on("change",function(){var e=$(this).parents("form");populate_city_dropdown(e)}),"google"==houzez_map_system&&0<$("input.search_location").length&&$("input.search_location").geocomplete({details:"form",country:houzez_geocomplete_country,geocodeAfterResult:!0});"osm"==houzez_map_system&&0<$("input.search_location").length&&jQuery("input.search_location").autocomplete({source:function(e,a){jQuery.get("https://nominatim.openstreetmap.org/search",{format:"json",q:e.term},function(e){e.length?a(e.map(function(e){return{label:e.display_name,latitude:e.lat,longitude:e.lon,value:e.display_name}})):a([{value:"",label:"there are no results"}])},"json")},select:function(e,a){if($('input[name="lat"]').val(a.item.latitude),$('input[name="lng"]').val(a.item.longitude),0<$("#houzez-listing-map").length||0<$("#mapViewHalfListings").length){var r=$(this).parents("form"),o=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(r,o,current_page)}}});var price_range_main_search=function(e,a){if($(".price-range-advanced").slider({range:!0,min:e,max:a,values:[e,a],slide:function(e,a){if("after"==currency_position)var r=addCommas(a.values[0])+currency_symb,o=addCommas(a.values[1])+currency_symb;else r=currency_symb+addCommas(a.values[0]),o=currency_symb+addCommas(a.values[1]);$(".min-price-range-hidden").val(r),$(".max-price-range-hidden").val(o),$(".min-price-range").text(r),$(".max-price-range").text(o)},stop:function(e,a){if(0<$("#houzez-listing-map").length||0<$("#mapViewHalfListings").length){var r=$(this).parents("form"),o=$(this).parents("form");houzez_search_on_change(r,o,0)}}}),"after"==currency_position)var r=addCommas($(".price-range-advanced").slider("values",0))+currency_symb,o=addCommas($(".price-range-advanced").slider("values",1))+currency_symb;else r=currency_symb+addCommas($(".price-range-advanced").slider("values",0)),o=currency_symb+addCommas($(".price-range-advanced").slider("values",1));$(".min-price-range-hidden").val(r),$(".max-price-range-hidden").val(o),$(".min-price-range").text(r),$(".max-price-range").text(o)};0<$(".price-range-advanced").length&&price_range_main_search(advanced_search_price_range_min,advanced_search_price_range_max),$('.houzez-adv-price-range select[name="status"]').on("change",function(){$(this).val()==rent_status_for_price_range?price_range_main_search(advanced_search_price_range_min_rent,advanced_search_price_range_max_rent):price_range_main_search(advanced_search_price_range_min,advanced_search_price_range_max)});var selected_status_adv_search=$('.houzez-adv-price-range select[name="status"]').val();selected_status_adv_search==rent_status_for_price_range&&price_range_main_search(advanced_search_price_range_min_rent,advanced_search_price_range_max_rent);var price_range_widget=function(e,a){$("#slider-price").slider({range:!0,min:e,max:a,values:[e,a],slide:function(e,a){"after"==currency_position?($("#min-price").val(addCommas(a.values[0])+currency_symb),$("#max-price").val(addCommas(a.values[1])+currency_symb)):($("#min-price").val(currency_symb+addCommas(a.values[0])),$("#max-price").val(currency_symb+addCommas(a.values[1])))},stop:function(e,a){if(0<$("#houzez-listing-map").length){var r=$(this).parents("form"),o=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(r,o)}}}),"after"==currency_position?($("#min-price").val(addCommas($("#slider-price").slider("values",0))+currency_symb),$("#max-price").val(addCommas($("#slider-price").slider("values",1))+currency_symb)):($("#min-price").val(currency_symb+addCommas($("#slider-price").slider("values",0))),$("#max-price").val(currency_symb+addCommas($("#slider-price").slider("values",1))))};0<$("#slider-price").length&&price_range_widget(advanced_search_price_range_min,advanced_search_price_range_max),$("#widget_status").on("change",function(){$(this).val()==rent_status_for_price_range?price_range_widget(advanced_search_price_range_min_rent,advanced_search_price_range_max_rent):price_range_widget(advanced_search_price_range_min,advanced_search_price_range_max)});var selected_status_widget_search=$("#widget_status").val();selected_status_widget_search==rent_status_for_price_range&&price_range_widget(advanced_search_price_range_min_rent,advanced_search_price_range_max_rent),0<$("#slider-size").length&&($("#slider-size").slider({range:!0,min:advanced_search_widget_min_area,max:advanced_search_widget_max_area,values:[advanced_search_widget_min_area,advanced_search_widget_max_area],slide:function(e,a){$("#min-size").val(a.values[0]+" "+measurement_unit),$("#max-size").val(a.values[1]+" "+measurement_unit)},stop:function(e,a){if(0<$("#houzez-listing-map").length){var r=$(this).parents("form"),o=$(this).parents(".widget_houzez_advanced_search");houzez_search_on_change(r,o,0)}}}),$("#min-size").val($("#slider-size").slider("values",0)+" "+measurement_unit),$("#max-size").val($("#slider-size").slider("values",1)+" "+measurement_unit));var radius_search_slider=function(e){$("#radius-range-slider").slider({value:e,min:0,max:100,step:1,slide:function(e,a){$("#radius-range-text").html(a.value),$("#radius-range-value").val(a.value)},stop:function(e,a){if(0<$("#houzez-listing-map").length||0<$("#mapViewHalfListings").length){var r=$(this).parents("form"),o=$(this).parents("form");houzez_search_on_change(r,o,0)}}}),$("#radius-range-text").html($("#radius-range-slider").slider("value")),$("#radius-range-value").val($("#radius-range-slider").slider("value"))};0<$("#radius-range-slider").length&&radius_search_slider(houzez_default_radius);var houzez_infobox_trigger=function(){return $(".infobox_trigger").each(function(e){$(this).on("mouseenter",function(){houzezMap&&(houzezMap.getZoom()<15&&houzezMap.setZoom(15),google.maps.event.trigger(markers[e],"click"))}),$(this).on("mouseleave",function(){infobox.open(null,null)})}),!1},currencySwitcherList=$("#houzez-currency-switcher-list");0<currencySwitcherList.length&&($("#houzez-currency-switcher-list > li").click(function(e){e.stopPropagation(),currencySwitcherList.slideUp(200);var selectedCurrencyCode=$(this).data("currency-code");if(selectedCurrencyCode){$("#houzez-selected-currency span").html(selectedCurrencyCode),$("#houzez-switch-to-currency").val(selectedCurrencyCode);var security=$("#currency_switch_security").val(),houzez_switch_to_currency=$("#houzez-switch-to-currency").val();fave_processing_modal('<i class="'+process_loader_spinner+'"></i> '+currency_updating_msg),$.ajax({url:ajaxurl,dataType:"JSON",method:"POST",data:{action:"houzez_currency_converter",currency_converter:houzez_switch_to_currency,security:security},success:function(e){e.success?window.location.reload():console.log(e)},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})}}),$("#houzez-selected-currency").click(function(e){currencySwitcherList.slideToggle(200),e.stopPropagation()}),$("html").click(function(){currencySwitcherList.slideUp(100)}));var areaSwitcherList=$("#houzez-area-switcher-list");if(0<areaSwitcherList.length&&($("#houzez-area-switcher-list > li").click(function(e){e.stopPropagation(),areaSwitcherList.slideUp(200);var selectedAreaCode=$(this).data("area-code"),houzez_switch_area_text=$("#houzez_switch_area_text").val();if(selectedAreaCode){$("#houzez-selected-area span").html(houzez_switch_area_text),$("#houzez-switch-to-area").val(selectedAreaCode);var security=$("#area_switch_security").val(),houzez_switch_to_area=$("#houzez-switch-to-area").val();fave_processing_modal('<i class="'+process_loader_spinner+'"></i> '+measurement_updating_msg),$.ajax({url:ajaxurl,dataType:"JSON",method:"POST",data:{action:"houzez_switch_area",switch_to_area:houzez_switch_to_area,security:security},success:function(e){e.success?window.location.reload():console.log(e)},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})}}),$("#houzez-selected-area").click(function(e){areaSwitcherList.slideToggle(200),e.stopPropagation()}),$("html").click(function(){areaSwitcherList.slideUp(100)})),0!=keyword_autocomplete){var houzezAutoComplete=function(){var o=0,e=$(".auto-complete"),s=0;$('input[name="keyword"]').keyup(function(){var a=$(this).parents("form").find(".auto-complete"),e=$(this).val(),r=(e=$.trim(e)).length;2<=r&&r!=s?(s=r,a.fadeIn(),$.ajax({type:"POST",url:ajaxurl,data:{action:"houzez_get_auto_complete_search",key:e},beforeSend:function(){1==++o&&a.html('<div class="result"><p><i class="fa fa-spinner fa-spin fa-fw"></i> '+autosearch_text+"</p></div>")},success:function(e){0==--o&&(a.show(),""!=e&&a.empty().html(e).bind())},error:function(e){0==--o&&a.html('<div class="result"><p><i class="fa fa-spinner fa-spin fa-fw"></i> '+autosearch_text+" </p></div>")}})):r!=s&&a.fadeOut()}),e.on("click","li",function(){$('input[name="keyword"]').val($(this).data("text")),e.fadeOut()}).bind()};houzezAutoComplete()}$(".start_thread_form").click(function(e){e.preventDefault();var $this=$(this),$form=$this.parents("form"),$result=$form.find(".form_messages");$.ajax({url:ajaxurl,data:$form.serialize(),method:$form.attr("method"),dataType:"JSON",beforeSend:function(){$this.children("i").remove(),$this.prepend('<i class="fa-left '+process_loader_spinner+'"></i>')},success:function(e){e.success?($result.empty().append(e.msg),$form.find("input").val(""),$form.find("textarea").val("")):$result.empty().append(e.msg)},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)},complete:function(){$this.children("i").removeClass(process_loader_spinner),$this.children("i").addClass(success_icon)}})});var houzez_message_notifications=function(){$.ajax({url:ajaxurl,data:{action:"houzez_chcek_messages_notifications"},method:"POST",dataType:"JSON",beforeSend:function(){},success:function(e){e.success&&(e.notification?($(".user-alert").show(),$(".msg-alert").show()):($(".user-alert").hide(),$(".msg-alert").hide()))}})};$(document).ready(function(){houzez_message_notifications(),setInterval(function(){houzez_message_notifications()},18e4)}),$(".start_thread_message_form").click(function(e){e.preventDefault();var a=$(this),r=a.parents("form");r.find(".form_messages");$.ajax({url:ajaxurl,data:r.serialize(),method:r.attr("method"),dataType:"JSON",beforeSend:function(){a.children("i").remove(),a.prepend('<i class="fa-left '+process_loader_spinner+'"></i>')},success:function(e){window.location.replace(e.url)},complete:function(){a.children("i").removeClass(process_loader_spinner),a.children("i").addClass(success_icon)}})});var agency_listings_ajax_pagi=function(){return $("body.single-houzez_agency ul.pagination li a").click(function(e){e.preventDefault();var current_page=$(this).data("houzepagi"),agency_id_pagi=$("#agency_id_pagi").val(),ajax_container=$("#houzez_ajax_container");$.ajax({url:ajaxurl,method:"POST",data:{action:"houzez_ajax_agency_filter",paged:current_page,agency_id:agency_id_pagi},beforeSend:function(){ajax_container.empty().append('<div class="list-loading"><div class="list-loading-bar"></div><div class="list-loading-bar"></div><div class="list-loading-bar"></div><div class="list-loading-bar"></div></div>')},success:function(e){ajax_container.empty().html(e),agency_listings_ajax_pagi()},complete:function(){},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})}),!1};if(0<$("body.single-houzez_agency").length&&agency_listings_ajax_pagi(),$("a.delete-property").on("click",function(){if(1==confirm(delete_property_confirmation)){var e=$(this),a=e.data("id"),r=e.data("nonce");fave_processing_modal(delete_property_loading),$.ajax({type:"POST",dataType:"json",url:ajaxurl,data:{action:"houzez_delete_property",prop_id:a,security:r},success:function(e){1==e.success?window.location.reload():(jQuery("#fave_modal").modal("hide"),alert(e.reason))},error:function(e){}})}}),"yes"==is_singular_property){var houzezSlidesToShow=0;houzezSlidesToShow="v3"==property_detail_top?"8":"11";var gallery_autoplay=HOUZEZ_ajaxcalls_vars.gallery_autoplay;gallery_autoplay="1"===gallery_autoplay;var detail_slider=$(".detail-slider"),detail_slider_nav=$(".detail-slider-nav"),slidesPerPage=4,syncedSecondary=!0,slider_speed=1200,houzez_detail_slider_main_settings=function(){return{stopOnHover:!0,items:1,rtl:houzez_rtl,margin:0,nav:!0,dots:!1,loop:!1,navText:["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],autoplay:gallery_autoplay,autoplayHoverPause:!0,smartSpeed:slider_speed,autoplaySpeed:slider_speed,responsiveRefreshRate:200}},houzez_detail_slider_nav_settings=function(){return{margin:1,center:!1,nav:!1,rtl:houzez_rtl,dots:!1,loop:!1,navText:["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],autoplay:!1,smartSpeed:800,autoplaySpeed:800,responsiveRefreshRate:10,responsive:{0:{items:5},767:{items:7},992:{items:9},1199:{items:houzezSlidesToShow}}}},property_detail_slideshow=function(){detail_slider.owlCarousel(houzez_detail_slider_main_settings()).on("changed.owl.carousel",function(e){var a=e.item.index;detail_slider_nav.find(".owl-item").removeClass("current").eq(a).addClass("current");var r=detail_slider_nav.find(".owl-item.active").length-1,o=detail_slider_nav.find(".owl-item.active").first().index(),s=detail_slider_nav.find(".owl-item.active").last().index();s<a&&detail_slider_nav.data("owl.carousel").to(a,100,!0);a<o&&detail_slider_nav.data("owl.carousel").to(a-r,100,!0)}),detail_slider_nav.on("initialized.owl.carousel",function(){detail_slider_nav.find(".owl-item").eq(0).addClass("current")}).owlCarousel(houzez_detail_slider_nav_settings()),detail_slider_nav.on("click",".owl-item",function(e){e.preventDefault();var a=$(this).index();detail_slider.data("owl.carousel").to(a,slider_speed,!0)})};property_detail_slideshow()}if("yes"==is_singular_property){$("#property-rating").rating({step:.5,showClear:!1}),$(".rating-display-only").rating({disabled:!0,showClear:!1}),$(".property_rating").click(function(e){e.preventDefault();var a=$(this),r=a.parents("form");r.find(".form_messages");$.ajax({url:ajaxurl,data:r.serialize(),method:r.attr("method"),dataType:"JSON",beforeSend:function(){a.children("i").remove(),a.prepend('<i class="fa-left '+process_loader_spinner+'"></i>')},success:function(e){window.location.reload()},complete:function(){a.children("i").removeClass(process_loader_spinner),a.children("i").addClass(success_icon)}})});var tabsHeight=function(){var e=$(".detail-media #gallery"),a=$(".detail-media .tab-content"),r=$("#singlePropertyMap,#street-map"),o=r.outerHeight(),s=e.outerHeight();a.outerHeight();e.is(":visible")?r.css("min-height",s):r.css("min-height",o)};if($(window).on("load",function(){tabsHeight()}),$(window).on("resize",function(){tabsHeight()}),0!=property_map)if("osm"==houzez_map_system){var mapCenter=L.latLng(prop_lat,prop_lng),mapOptions={center:mapCenter,zoom:16};if(0<$("#singlePropertyMap").length){var singlePropMap=L.map("singlePropertyMap",mapOptions);singlePropMap.scrollWheelZoom.disable();var tileLayer=houzezOSMTileLayer();singlePropMap.addLayer(tileLayer);var propsSecurity=$("#securityHouzezMap").val();$.ajax({type:"POST",dataType:"json",url:ajaxurl,data:{action:"houzez_get_single_property",prop_id:$("#prop_id").val(),security:propsSecurity},success:function(e){!0===e.getprops&&houzez_osm_markers(e.props,singlePropMap)},error:function(e){}}),$('a[href="#gallery"]').on("shown.bs.tab",function(){setTimeout(tabsHeight,500)}),$('a[href="#singlePropertyMap"]').on("shown.bs.tab",function(){singlePropMap.invalidateSize(),singlePropMap.panTo(singlePropMap.getCenter())})}else if(0<$("#singlePropertyMapSection").length){var singlePropMap=L.map("singlePropertyMapSection",mapOptions);singlePropMap.scrollWheelZoom.disable();var tileLayer=houzezOSMTileLayer();singlePropMap.addLayer(tileLayer);var propsSecurity=$("#securityHouzezMap").val();$.ajax({type:"POST",dataType:"json",url:ajaxurl,data:{action:"houzez_get_single_property",prop_id:$("#prop_id").val(),security:propsSecurity},success:function(e){!0===e.getprops&&houzez_osm_marker_simple(e.props,singlePropMap)},error:function(e){}})}}else{var map=null,streetCount=0,panorama=null,fenway=new google.maps.LatLng(prop_lat,prop_lng),mapOptions={center:fenway,zoom:15,gestureHandling:"cooperative",styles:google_map_style},panoramaOptions={position:fenway,pov:{heading:34,pitch:10}},initialize=function(){map=new google.maps.Map(document.getElementById("singlePropertyMap"),mapOptions),houzez_is_mobile?map.setOptions({gestureHandling:"cooperative"}):map.setOptions({scrollwheel:!1});var e=$("#securityHouzezMap").val();$.ajax({type:"POST",dataType:"json",url:ajaxurl,data:{action:"houzez_get_single_property",prop_id:$("#prop_id").val(),security:e},success:function(e){!0===e.getprops&&(houzezAddMarkers(e.props,map),houzezSetPOIControls(map,map.getCenter()))},error:function(e){}})};$('a[href="#gallery"]').on("shown.bs.tab",function(){setTimeout(tabsHeight,500)}),$('a[href="#singlePropertyMap"]').on("shown.bs.tab",function(){google.maps.event.trigger(map,"resize"),map.setCenter(fenway)}),$('a[href="#street-map"]').on("shown.bs.tab",function(){(streetCount+=1)<=1&&(panorama=new google.maps.StreetViewPanorama(document.getElementById("street-map"),panoramaOptions))}),0<$("#singlePropertyMap").length&&google.maps.event.addDomListener(window,"load",initialize);var MapSection=function(){map=new google.maps.Map(document.getElementById("singlePropertyMapSection"),mapOptions),houzez_is_mobile?map.setOptions({gestureHandling:"cooperative"}):map.setOptions({scrollwheel:!1});var e=$("#securityHouzezMap").val();$.ajax({type:"POST",dataType:"json",url:ajaxurl,data:{action:"houzez_get_single_property",prop_id:$("#prop_id").val(),security:e},success:function(e){if(""!==google_map_style){var a=google_map_style;map.setOptions({styles:a})}!0===e.getprops&&(houzezAddMarkerSimple(e.props,map),houzezSetPOIControls(map,map.getCenter()))},error:function(e){}})};0<$("#singlePropertyMapSection").length&&google.maps.event.addDomListener(window,"load",MapSection)}$(".houzez-gallery-prop-v2:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:"normal",slideshow:5e3,autoplay_slideshow:!1,allow_resize:!0,default_width:1900,default_height:1e3,keyboard_shortcuts:!0,theme:"light_square"})}}});
var nice=!1;!function(p){"use strict";var a=HOUZEZ_ajaxcalls_vars.houzez_rtl,e=HOUZEZ_ajaxcalls_vars.houzez_date_language,u=HOUZEZ_ajaxcalls_vars.currency_position,t=HOUZEZ_ajaxcalls_vars.stripe_page,s=HOUZEZ_ajaxcalls_vars.twocheckout_page,n=HOUZEZ_ajaxcalls_vars.houzez_map_system,i=HOUZEZ_ajaxcalls_vars.is_mapbox,o=HOUZEZ_ajaxcalls_vars.api_mapbox,l=!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(l=!0),a="yes"==a;var r=p("#detail-slider");if(r.length&&r.owlCarousel({rtl:a,loop:!0,autoWidth:!0,dots:!1,autoplayHoverPause:!0,items:1,smartSpeed:700,slideBy:1,nav:!0,navText:["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"]}),0<p(".clickToShow").length){var c=p(".clickToShow").text().substring(0,6);p(".clickToShow").hide().after('<span class="clickToShowButton">'+c+"........"),p(".clickToShowButton").click(function(e){e.preventDefault(),p(".clickToShow").show(),p(".clickToShowButton").hide()})}if(0<p(".clickToShowPhone").length){var h=p(".clickToShowPhone").text().substring(0,6);p(".clickToShowPhone").hide().after('<span class="clickToShowButtonPhone">'+h+"........"),p(".clickToShowButtonPhone").click(function(e){e.preventDefault(),p(".clickToShowPhone").show(),p(".clickToShowButtonPhone").hide()})}p(".hhh_regis").on("click",function(){p(".houzez_login").removeClass("active"),p(".houzez_register").addClass("active")}),p(".hhh_login").on("click",function(){p(".houzez_register").removeClass("active"),p(".houzez_login").addClass("active")}),0<p(".advanced-search-module").length&&p(".advanced-search-module").parents(".vc_row").addClass("houzez-overflow-visible");var d=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor);function g(e){p(e).attr("checked")?p(e).parents(".method-row").next(".method-option").slideDown():p(e).parents(".method-row").next(".method-option").slideUp()}p(window).on("load",function(){0<p(".body-splash").length&&p(".body-splash").addClass("loaded")}),p(".map-zoom-actions #houzez-gmap-full").on("click",function(){1==p(this).hasClass("active")?(p(this).removeClass("active").children("span").text("Fullscreen"),p(this).children("i").removeClass("fa-square-o").addClass("fa-arrows-alt"),p("#houzez-gmap-main").removeClass("mapfull"),p(".header-media").delay(1e3).queue(function(e){p(".header-media").css("height","auto"),e()})):(p(".header-media").height(p("#houzez-gmap-main").height()),p(this).addClass("active").children("span").text("Default"),p(this).children("i").removeClass("fa-arrows-alt").addClass("fa fa-square-o"),p("#houzez-gmap-main").addClass("mapfull"))}),p(".panel-btn, .panel-btn-close").on("click",function(){p(".compare-panel").hasClass("panel-open")?p(".compare-panel").removeClass("panel-open"):p(".compare-panel").addClass("panel-open")}),p(".method-select input").on("change",function(){p(this).is(":checked")?(p(".method-option").slideUp(),p(this).parents(".method-row").next(".method-option").slideDown()):p(".method-option").slideUp()}),g(".payment-paypal"),g(".payment-stripe"),p("button.stripe-button-el span").prepend('<i class="fa fa-credit-card"></i>'),p("#stripe_package_recurring").click(function(){p(this).attr("checked")?p(".houzez_payment_form").append('<input type="hidden" name="houzez_stripe_recurring" id="houzez_stripe_recurring" value="1">'):p("#houzez_stripe_recurring").remove()}),p("input[name='houzez_payment_type']").click(function(){var e=p(this).parents("form");"2checkout"===p(this).val()?(e.attr("action",s),p("#houzez_complete_membership, #houzez_complete_order").addClass("hidden"),p("#houzez_complete_membership_2checkout, #houzez_complete_order_2checkout").removeClass("hidden")):(e.attr("action",t),p("#houzez_complete_membership, #houzez_complete_order").removeClass("hidden"),p("#houzez_complete_membership_2checkout, #houzez_complete_order_2checkout").addClass("hidden"))}),p(".btn-number").click(function(e){e.preventDefault();var a=p(this).attr("data-field"),t=p(this).attr("data-type"),s=p("input[name='"+a+"']"),n=parseInt(s.val());isNaN(n)?s.val(0):"minus"==t?(n>s.attr("min")&&s.val(n-1).change(),parseInt(s.val())==s.attr("min")&&p(this).attr("disabled",!0)):"plus"==t&&(n<s.attr("max")&&s.val(n+1).change(),parseInt(s.val())==s.attr("max")&&p(this).attr("disabled",!0))}),p(".input-number").focusin(function(){p(this).data("oldValue",p(this).val())}),p(".input-number").change(function(){var e=parseInt(p(this).attr("min")),a=parseInt(p(this).attr("max")),t=parseInt(p(this).val()),s=p(this).attr("name");e<=t?p(".btn-number[data-type='minus'][data-field='"+s+"']").removeAttr("disabled"):(alert("Sorry, the minimum value was reached"),p(this).val(p(this).data("oldValue"))),t<=a?p(".btn-number[data-type='plus'][data-field='"+s+"']").removeAttr("disabled"):(alert("Sorry, the maximum value was reached"),p(this).val(p(this).data("oldValue")))}),p(".input-number").keydown(function(e){-1!==p.inArray(e.keyCode,[46,8,9,27,13,190])||65==e.keyCode&&!0===e.ctrlKey||35<=e.keyCode&&e.keyCode<=39||(e.shiftKey||e.keyCode<48||57<e.keyCode)&&(e.keyCode<96||105<e.keyCode)&&e.preventDefault()});var m=p("#header-section").data("sticky"),v=p("#header-section .header-bottom").data("sticky"),f=p(".advance-search-header").data("sticky"),w=(p(".top-bar").length,p("#header-section").innerHeight()),b=p(".advance-search-header").innerHeight(),C=p("#header-section .header-bottom").innerHeight(),_=0;1==m&&(_=w),1==f&&(_=b),1==v&&(_=C),p("#header-section").hasClass("header-section-3")&&(_=C),p("#header-section").hasClass("header-section-2")&&(_=C),p(document).ready(function(){var e=p("#wpadminbar");e.length&&(_+=e.outerHeight())});var y=p(".scrolltop-btn");p(window).on("scroll",function(){100<p(this).scrollTop()?y.fadeIn(1e3):y.fadeOut(1e3)}),p(".back-top").on("click",function(){return p("html, body").animate({scrollTop:0},"slow"),!1});var x,k,z=p(".property-menu-wrap").innerHeight();function I(){if(p(".header-media .banner-parallax").length){var e=p(".header-media").offset().top+15,a=p(window).scrollTop()-e;p(window).scrollTop()>=e?p(".banner-bg-wrap").css("transform","translate3d(0,"+-.3*-a+"px,0)"):p(window).scrollTop()<e&&p(".banner-bg-wrap").css("transform","translate3d(0,0px,0)")}}function H(e){p(e+" .login-tabs > li").on("click",function(){1!=p(this).hasClass("active")&&(p(".login-tabs > li").removeClass("active"),p(this).addClass("active"),p(e+" .login-block .tab-pane").removeClass("in active"),p(e+" .login-block .tab-pane").eq(p(this).index()).addClass("in active"))})}p(".property-menu-wrap").length&&(p(".target").each(function(){p(this).on("click",function(e){var a=p(this).attr("href"),t=p(a).offset().top;t=t-_-(z-2),p("html, body").animate({scrollTop:t},{duration:1e3,easing:"easeInOutExpo",queue:!1}),e.preventDefault()})}),p(window).on("scroll",function(){p(".target-block").each(function(){if(p(window).scrollTop()>=p(this).offset().top-_-z){var e=p(this).attr("id");p(".target").removeClass("active"),p(".target[href=#"+e+"]").addClass("active")}else p(window).scrollTop()<=0&&p(".target").removeClass("active")})}),p(window).on("scroll",function(){p(window).scrollTop()>=p(".detail-media").offset().top+200?p(".property-menu-wrap").css({top:_}).fadeIn():p(window).scrollTop()<=p(".detail-media").offset().top+200&&p(".property-menu-wrap").css({top:_}).fadeOut()})),p(function(){p('#header-section a[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var e=p(this.hash);if((e=e.length?e:p("[name="+this.hash.slice(1)+"]")).length)return p("html, body").animate({scrollTop:e.offset().top},1e3),!1}})}),p("#commentform input.submit").addClass("btn btn-primary"),p(".widget_nav_menu, .widget_pages").addClass("widget-pages"),p(".footer-widget.widget_mc4wp_form_widget").addClass("widget-newsletter"),p(".blog-article .pagination-main ul.pagination a").wrap("<li></li>"),p(".houzez_sticky").theiaStickySidebar({additionalMarginTop:(x=_,k=_,p(".property-menu-wrap").length&&(k=x+p(".property-menu-wrap").innerHeight()),k),minWidth:768,updateSidebarHeight:!1}),0<p("#houzez_mortgage_calculate").length&&p("#houzez_mortgage_calculate").click(function(e){e.preventDefault();var a,t,s,n,i,o,l,r=HOUZEZ_ajaxcalls_vars.monthly_payment,c=HOUZEZ_ajaxcalls_vars.weekly_payment,h=HOUZEZ_ajaxcalls_vars.bi_weekly_payment,d=HOUZEZ_ajaxcalls_vars.currency_symbol;o=p("#mc_payment_period").val(),t=p("#mc_total_amount").val().replace(/,/g,"")-p("#mc_down_payment").val().replace(/,/g,""),a=parseInt(p("#mc_term_years").val(),10)*o,i=(n=t*((s=parseFloat(p("#mc_interest_rate").val(),10)/(100*o))/(1-Math.pow(1+s,-a))))*o,"12"==o?l=r:"26"==o?l=h:"52"==o&&(l=c),"after"==u?(p("#mortgage_mwbi").html("<h3>"+l+":<span> "+Math.round(100*n)/100+d+"</span></h3>"),p("#amount_financed").html(Math.round(100*t)/100+d),p("#mortgage_pay").html(Math.round(100*n)/100+d),p("#annual_cost").html(Math.round(100*i)/100+d)):(p("#mortgage_mwbi").html("<h3>"+l+":<span> "+d+Math.round(100*n)/100+"</span></h3>"),p("#amount_financed").html(d+Math.round(100*t)/100),p("#mortgage_pay").html(d+Math.round(100*n)/100),p("#annual_cost").html(d+Math.round(100*i)/100)),p("#total_mortgage_with_interest").html(),p(".morg-detail").show()}),0<p(".input_date").length&&p(".input_date").datepicker(jQuery.datepicker.regional[e]),0<p(".search-date").length&&p(".search-date").datepicker(jQuery.datepicker.regional[e]),I(),p(window).scroll(function(e){I()}),0<p("a[data-fancy^='property_video']").length&&p("a[data-fancy^='property_video']").prettyPhoto({allow_resize:!0,default_width:1900,default_height:1e3,animation_speed:"normal",theme:"default",slideshow:3e3,autoplay_slideshow:!1}),0<p("a[data-fancy^='property_gallery']").length&&p("a[data-fancy^='property_gallery']").prettyPhoto({allow_resize:!0,default_width:1900,default_height:1e3,animation_speed:"normal",theme:"facebook",slideshow:3e3,autoplay_slideshow:!1}),p("#property_name").keyup(function(){var e=p(this).val(),a=0;p(".my-property-listing .item-wrap").each(function(){p(this).text().search(new RegExp(e,"i"))<0?p(this).fadeOut():(p(this).show(),a++)});p(".my-property-search button").text(a)}),p(".banner-search-tabs .search-tab").on("click",function(){1!=p(this).hasClass("active")&&(p(".banner-search-tabs .search-tab").removeClass("active"),p(this).addClass("active"),p(".banner-search-taber .tab-pane").removeClass("active in"),p(".banner-search-taber .tab-pane").eq(p(this).index()).addClass("active").delay(5).queue(function(e){p(this).addClass("in"),e()}))}),p(".detail-tabs > li").on("click",function(){1!=p(this).hasClass("active")&&(p(".detail-tabs > li").removeClass("active"),p(this).addClass("active"),p(".detail-content-tabber .tab-pane").removeClass("active in"),p(".detail-content-tabber .tab-pane").eq(p(this).index()).addClass("active in"))}),p(".plan-tabs > li").on("click",function(){1!=p(this).hasClass("active")&&(p(".plan-tabs > li").removeClass("active"),p(this).addClass("active"),p(".plan-tabber .tab-pane").removeClass("active in"),p(".plan-tabber .tab-pane").eq(p(this).index()).addClass("active in"))}),p(".houzez-tabs > li").on("click",function(){1!=p(this).hasClass("active")&&(p(".houzez-tabs > li").removeClass("active"),p(this).addClass("active"),p(".houzez-taber-body .tab-pane").removeClass("active in"),p(".houzez-taber-body .tab-pane").eq(p(this).index()).addClass("active").delay(50).queue(function(e){p(this).addClass("in"),e()}))}),p(".profile-tabs > li").on("click",function(){1!=p(this).hasClass("active")&&(p(".profile-tabs > li").removeClass("active"),p(this).addClass("active"),p(".profile-tab-pane").removeClass("active in"),p(".profile-tab-pane").eq(p(this).index()).addClass("active in"))}),H(".widget"),H(".footer-widget"),H(".modal"),p(".add-title-tab > .add-expand").click(function(){p(this).toggleClass("active"),p(this).parent().next(".add-tab-content").slideToggle()}),p(".accord-tab").click(function(){p(".accord-tab").not(this).removeClass("active"),p(this).toggleClass("active"),p(".accord-tab").not(this).next(".accord-content").slideUp(),p(this).next(".accord-content").slideToggle()}),p('a[data-toggle="tab"]').on("shown.bs.tab",function(e){e.target,e.relatedTarget});var T=p("#houzez-simple-map");if(T.length){T.data("styles");p("#mapTab").click(function(){document.getElementById("houzez-simple-map").style.display="block",U()});var Z=null;if("google"==n)var S={center:new google.maps.LatLng(T.data("latitude"),T.data("longitude")),zoom:T.data("zoom")},U=function(){Z=new google.maps.Map(document.getElementById("houzez-simple-map"),S);var e={lat:T.data("latitude"),lng:T.data("longitude")};new google.maps.Marker({position:e,map:Z})};else U=function(){if("mapbox"==i&&""!=o)var e=L.tileLayer("https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token="+o,{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',maxZoom:18,id:"mapbox.streets",accessToken:"your.mapbox.access.token"});else e=L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'});var a=L.latLng(T.data("latitude"),T.data("longitude")),t={center:a,zoom:T.data("zoom")},s=L.map("houzez-simple-map",t);s.scrollWheelZoom.disable(),s.addLayer(e),L.marker(a).addTo(s)}}function O(){p(".navi ul li").each(function(){p(this).has("ul").not(".houzez-megamenu li").addClass("has-child")}),p(".navi ul .has-child").hover(function(){p(this).addClass("active")},function(){p(this).removeClass("active")})}function j(){if(991<p(window).width()){var e=p(".container"),a=p(".header-section,#header-section"),t=p(".header-bottom"),s=e.innerWidth(),n=p(window).width(),i=e.offset();p(".navi ul li").hasClass("houzez-megamenu")&&p(".navi ul .houzez-megamenu").each(function(){p("> .sub-menu",this).wrap("<div class='houzez-megamenu-inner'></div>");var e=p(this).offset();0<a.children(".container").length||0<t.children(".container").length?p("> .houzez-megamenu-inner",this).css({width:s,left:-(e.left-i.left)}):p("> .houzez-megamenu-inner",this).css({width:n,left:-e.left})})}}0<p(".selectpicker").length&&p(".selectpicker").selectpicker({dropupAuto:!1}),p(window).on("load",function(){0<p(".grid-block").length&&p(".grid-block").isotope({itemSelector:".grid-item",horizontalOrder:!0})}),1==("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)==!1&&p('[data-toggle="tooltip"]').tooltip(),p(".actions li").on("click",function(){p(this).children(".share_tooltip").hasClass("in")?p(this).children(".share_tooltip").removeClass("in"):(p(".actions li").children(".share_tooltip").removeClass("in"),p(this).children(".share_tooltip").addClass("in"))}),p(document).mouseup(function(e){var a=p(".share-btn");a.is(e.target)||0!==a.has(e.target).length||p(".share_tooltip").removeClass("in")}),0<p(".grid").length&&p(".grid").each(function(){p(this).children().find("img").matchHeight({byRow:!0,property:"height",target:null,remove:!1})}),O(),j(),p(window).on("resize",function(){j()}),p(window).bind("load",function(){j()}),p(".view-btn").on("click",function(){p(".view-btn").removeClass("active"),p(this).addClass("active"),p(this).hasClass("btn-list")?p(".property-listing").removeClass("grid-view grid-view-3-col").addClass("list-view"):p(this).hasClass("btn-grid")?p(".property-listing").removeClass("list-view grid-view-3-col").addClass("grid-view"):p(this).hasClass("btn-grid-3-col")&&p(".property-listing").removeClass("list-view grid-view").addClass("grid-view grid-view-3-col")});var E=p(".top-bar"),M=p("#header-section"),D=M.find(".header-bottom"),q=p(".advance-search-header"),B=p(".header-mobile"),P=p(".advanced-search-mobile"),A=p(".header-section").outerHeight(),W=M.outerHeight(),F=p(".splash-footer").outerHeight(),R=q.outerHeight(),Q=E.outerHeight(),V=B.outerHeight(),K=P.outerHeight(),N=M.data("sticky"),G=D.data("sticky"),$=B.data("sticky");function J(e){e.outerHeight();var a=e.clone().removeAttr("style").removeClass("houzez-header-transparent nav-left"),t=a.attr("class");p(a).hasClass("header-bottom")&&(t=p(".header-bottom").parent("#header-section").attr("class"));var s=p(a).wrap("<div class='sticky_nav'></div>").parent().addClass(t);function n(){if(0<p("#wpadminbar").length&&600<ie()){var e=p("#wpadminbar").outerHeight();s.css("top",e)}else s.css("top","0")}p("body").append(s),p(s).hasClass("header-section-4")&&p(".sticky_nav .logo-desktop img").attr("src",HOUZEZ_ajaxcalls_vars.simple_logo),p(window).on("scroll",function(){if(0<p("#wpadminbar").length&&600<ie()){var e=p("#wpadminbar").outerHeight();s.css("top",e)}600<=p(window).scrollTop()?s.addClass("sticky-on"):s.removeClass("sticky-on")}),n(),p(window).resize(function(){n()}),j(),O()}function X(){var t=null,s=null,n=null;s=991<ie()?(t=p(".advance-search-header"),p(".advance-search-header").outerHeight()):(t=p(".advanced-search-mobile"),p(".advanced-search-mobile").outerHeight()),t.data("sticky")&&(p(".splash-search")[0]?(n=p(".splash-search").offset().top,n+=200):n=991<ie()?p(".advance-search-header").offset().top+65:p(".advanced-search-mobile").offset().top,0==n&&(n=p("#header-section").height()),p(window).scroll(function(){var e=p(window).scrollTop(),a=p("#wpadminbar").height()+"px";"nullpx"==a&&(a="0px"),n<=e?(t.addClass("advanced-search-sticky"),t.css("top",a),p("#section-body").css("padding-top",s)):(t.removeClass("advanced-search-sticky"),t.removeAttr("style"),p("#section-body").css("padding-top",0))}))}function Y(){var e=p(".search-panel .search-bottom").outerHeight();p(".search-scroll").css("padding-bottom",e),p(window).width()<991&&p(".search-panel").removeClass("panel-open")}function ee(e,a){var t,s=a;if(s&&(s=s.match(/^url\("?(.+?)"?\)$/))[1])return s=s[1],(t=new Image).src=s,"height"==e?t.height:t.width}1===G&&J(D),1===N&&J(M),1===$&&J(B),X(),p(".search-panel-btn").on("click",function(){p(".search-panel").hasClass("panel-open")?p(".search-panel").removeClass("panel-open"):p(".search-panel").addClass("panel-open")}),Y(),p(window).on("resize",function(){Y()});var ae=0,te=0;function se(){var e=p(window).innerHeight(),a=p("#wpadminbar"),t=a.outerHeight();te=e-A-F,d?p(".fave-screen-fix-inner").css("height",te-1):p(".fave-screen-fix-inner").css("height",te),992<=ie()?(M.length&&(ae=W),M.length&&q.length&&!q.hasClass("search-hidden")&&(ae=parseInt(R)+parseInt(W)),M.is("*")&&q.hasClass("search-hidden")&&(ae=W),M.length&&E.length&&(ae=parseInt(W)+parseInt(Q)),M.length&&q.length&&!q.hasClass("search-hidden")&&E.length&&(ae=parseInt(W)+parseInt(Q)+parseInt(R)),M.length&&a.length&&(ae=parseInt(W)+parseInt(t)),M.length&&a.length&&E.length&&(ae=parseInt(W)+parseInt(t)+parseInt(Q)),M.length&&a.length&&q.length&&!q.hasClass("search-hidden")&&(ae=parseInt(W)+parseInt(t)+parseInt(R)),M.length&&a.length&&q.length&&!q.hasClass("search-hidden")&&E.length&&(ae=parseInt(W)+parseInt(t)+parseInt(R)+parseInt(Q)),M.length&&a.length&&q.length&&q.hasClass("search-hidden")&&E.length&&(ae=parseInt(W)+parseInt(t)+parseInt(Q))):(P.length&&!P.hasClass("search-hidden")&&B.length&&(ae=parseInt(K)+parseInt(V)),P.hasClass("search-hidden")&&B.is("*")&&(ae=V),B.length&&(ae=V),B.length&&E.length&&(ae=parseInt(V)+parseInt(Q)),B.length&&P.length&&!P.hasClass("search-hidden")&&E.length&&(ae=parseInt(V)+parseInt(Q)+parseInt(K)),B.length&&a.length&&(ae=parseInt(V)+parseInt(t)),B.length&&a.length&&P.length&&!P.hasClass("search-hidden")&&(ae=parseInt(V)+parseInt(t)+parseInt(K)),B.length&&a.length&&P.length&&!P.hasClass("search-hidden")&&E.length&&(ae=parseInt(V)+parseInt(t)+parseInt(K)+parseInt(Q)),B.length&&a.length&&P.length&&P.hasClass("search-hidden")&&E.length&&(ae=parseInt(V)+parseInt(t)+parseInt(Q)),B.length&&a.length&&E.length&&(ae=parseInt(V)+parseInt(t)+parseInt(Q)));var s=0;if(s=M.hasClass("houzez-header-transparent")?oe()-ae+W:oe()-ae,d?p(".fave-screen-fix").css("height",s-1):p(".fave-screen-fix").css("height",s),p(".banner-parallax-fix").css("height",s),768<ie()){var n=p(".banner-parallax-auto .banner-inner").css("background-image");if("none"!=n){var i=p(".banner-parallax-auto").width()*ee("height",n)/ee("width",n);i>oe()?p(".banner-parallax-auto").css("height",s):p(".banner-parallax-auto").css("height",i-ae)}else p(".banner-parallax-auto").css("height",s)}else p(".banner-parallax-auto").css("height",300)}function ne(){var e=p("#wpadminbar"),a=p(".board-header"),t=p(".steps-nav"),s=t.outerHeight(),n=e.outerHeight(),i=p(window).outerHeight(),o=a.outerHeight(),l=0;l=i-W,a.length&&(a.is(":hidden")?l=l:l-=o),E.length&&(l-=Q),e.length&&(l-=n),t.length&&(l-=s),991<p(window).width()?d?p(".dashboard-fix").css("height",l-1):p(".dashboard-fix").css("height",l):p(".dashboard-fix").css("height","100%")}function ie(){return Math.max(p(window).width(),window.innerWidth)}function oe(){return Math.max(p(window).height(),window.innerHeight)}se(),ne(),p(window).on("resize",function(){se(),X(),ne()}),p(window).bind("load",function(){se(),ne()}),l&&p(".search-expand-btn").removeClass("active"),p(".search-expand-btn").on("click",function(){p(this).toggleClass("active"),1==p(this).hasClass("active")?p(".search-expandable .advanced-search").slideDown():(p(".search-expandable .advanced-search").add(".search-expandable .advance-fields").slideUp(),p(".advance-btn").removeClass("active"))}),p(".advanced-search .advance-btn").on("click",function(){p(this).toggleClass("active"),1==p(this).hasClass("active")?p(this).closest(".advanced-search").find(".advance-fields").slideDown():p(this).closest(".advanced-search").find(".advance-fields").slideUp()}),p(".advanced-search-mobile .advance-btn").on("click",function(){p(this).toggleClass("active"),1==p(this).hasClass("active")?p(this).closest(".advanced-search-mobile").find(".advance-fields").slideDown():p(this).closest(".advanced-search-mobile").find(".advance-fields").slideUp()}),p(".advance-trigger").on("click",function(){p(this).toggleClass("active"),1==p(this).hasClass("active")?(p(this).children("i").removeClass("fa-plus-square").addClass("fa-minus-square"),p(".field-expand").slideDown()):(p(this).children("i").removeClass("fa-minus-square").addClass("fa-plus-square"),p(".field-expand").slideUp())});var le,re,ce=p(".owl-carousel");if(ce.on("initialized.owl.carousel",function(){setTimeout(function(){ce.animate({opacity:1},800),p(".gallery-area .slider-placeholder").remove()},800)}),0<p("#banner-slider").length){var he=HOUZEZ_ajaxcalls_vars.banner_slider_autoplay,de=HOUZEZ_ajaxcalls_vars.banner_slider_loop,pe=HOUZEZ_ajaxcalls_vars.banner_slider_autoplayspeed;he="1"===he,de="1"===de,p("#banner-slider").owlCarousel({rtl:a,loop:de,dots:!1,slideBy:1,autoplay:he,autoplayTimeout:parseInt(pe),items:1,smartSpeed:1e3,nav:!0,navText:["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],addClassActive:!0,callbacks:!0,responsive:{0:{nav:!1,dots:!0},768:{nav:!0,dots:!1}}})}if(0<p("#agents-carousel").length){var ue=p("#agents-carousel");ue.owlCarousel({rtl:a,loop:!0,dots:!1,slideBy:1,autoplay:!0,autoplaySpeed:700,nav:!1,responsive:{0:{items:1},320:{items:1},480:{items:1},768:{items:2},1e3:{items:3},1280:{items:4}}}),p(".btn-prev-agents").on("click",function(){ue.trigger("prev.owl.carousel",[700])}),p(".btn-next-agents").on("click",function(){ue.trigger("next.owl.carousel",[700])})}if(0<p("#partner-carousel").length&&(p("#partner-carousel").owlCarousel({rtl:a,loop:!1,dots:!0,slideBy:2,autoplay:!0,autoplaySpeed:700,nav:!1,responsive:{0:{items:1},320:{items:1},480:{items:3},768:{items:4},992:{items:4}}}),p(".btn-prev-partners").on("click",function(){p("#partner-carousel").trigger("prev.owl.carousel",[700])}),p(".btn-next-partners").on("click",function(){p("#partner-carousel").trigger("next.owl.carousel",[700])})),0<p("#agency-carousel").length){var ge=p("#agency-carousel");ge.owlCarousel({rtl:a,loop:!0,dots:!0,items:4,slideBy:4,nav:!1,smartSpeed:400}),p(".btn-crl-agency-prev").on("click",function(){ge.trigger("prev.owl.carousel",[400])}),p(".btn-crl-agency-next").on("click",function(){ge.trigger("next.owl.carousel",[400])})}function me(e,a){var t=p(e).html();p(a).html(t),p(a+" ul li").each(function(){p(this).children(".houzez-megamenu-inner").length&&p(a+" .houzez-megamenu-inner > ul").unwrap(),p(this).has("ul").addClass("has-child")}),p(a+" ul .has-child").append('<span class="expand-me"></span>'),p(a+" .expand-me").on("click",function(){var e=p(this).parent("li");1==e.hasClass("active")?(e.removeClass("active"),e.children("ul").slideUp()):(e.addClass("active"),e.children("ul").slideDown())})}function ve(t,s){var n=p(".nav-dropdown"),i=p(".account-dropdown");p(document).mouseup(function(e){var a=p(t);a.is(e.target)||0!==a.has(e.target).length||n.is(e.target)||0!==n.has(e.target).length||i.is(e.target)||0!==i.has(e.target).length||p(t).removeClass(s)})}0<p(".property-widget-slider").length&&p(".property-widget-slider").owlCarousel({rtl:a,dots:!0,items:1,smartSpeed:700,slideBy:1,nav:!0,navText:["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"]}),p(".prop_featured").change(function(){var e,a,t,s=HOUZEZ_ajaxcalls_vars.currency_symbol,n=HOUZEZ_ajaxcalls_vars.currency_position,i=p(this).parents(".payment-side-block"),o=p(this).parents(".houzez-per-listing-buttons-main"),l=parseFloat(i.find(".submission_price").text());return e=l+parseFloat(i.find(".submission_featured_price").text()),a="after"===n?(t=l+" "+s,e+" "+s):(t=s+" "+l,s+" "+e),p(this).is(":checked")?(i.find(".submission_total_price").text(a),p("#featured_pay").val(1),p('input[name="pay_ammout"]').val(100*e),p("#houzez_listing_price").val(e),o.find("#stripe_form_simple_listing").hide(),o.find("#stripe_form_featured_listing").show()):(i.find(".submission_total_price").text(t),p("#featured_pay").val(0),p('input[name="pay_ammout"]').val(100*l),p("#houzez_listing_price").val(l),o.find("#stripe_form_featured_listing").hide(),o.find("#stripe_form_simple_listing").show()),!1}),p(".my-actions .pay-btn").on("click",function(e){1!=p(this).parent().hasClass("open")?(p(".my-actions .pay-btn").parent().removeClass("open"),p(this).parent().addClass("open")):p(this).parent().removeClass("open")}),p("body").on("click",function(e){p(".my-actions .pay-btn").is(e.target)||0!==p(".my-actions .pay-btn").has(e.target).length||0!==p(".open").has(e.target).length||p(".my-actions .pay-btn").parent().removeClass("open")}),p("#sort_properties").on("change",function(){!function(e,a){e=encodeURI(e),a=encodeURI(a);for(var t,s=document.location.search.substr(1).split("&"),n=s.length;n--;)if((t=s[n].split("="))[0]==e){t[1]=a,s[n]=t.join("=");break}n<0&&(s[s.length]=[e,a].join("=")),document.location.search=s.join("&")}("sortby",p(this).val())}),p(".header-user .account-action > li").on("click",function(e){p(this).hasClass("active")?p(this).removeClass("active"):p(this).addClass("active")}),p(".header-right .account-action > li").on({mouseenter:function(e){p(this).addClass("active")},mouseleave:function(e){p(this).removeClass("active")}}),me(".main-nav",".main-nav-dropdown"),me(".top-nav",".top-nav-dropdown"),p(".nav-trigger").on("click",function(){p(this).hasClass("mobile-open")?p(this).removeClass("mobile-open"):p(this).addClass("mobile-open")}),0<p(".header-single-page").length&&p(".header-single-page .main-nav-dropdown li a").on("click",function(e){p(".nav-trigger").removeClass("mobile-open")}),ve(".header-mobile .nav-trigger","mobile-open"),ve(".top-bar .nav-trigger","mobile-open"),ve(".account-action > li","active"),le=".auto-complete",p(document).mouseup(function(e){p(le).is(e.target)||0!==p(le).has(e.target).length||p(le).fadeOut()}),0<p("#mobile-menu-hed6").length&&(p((re=".mobile-nav-dropdown-head6")+" ul li").each(function(){p(this).children(".houzez-megamenu-inner").length&&p(re+" .houzez-megamenu-inner > ul").unwrap(),p(this).has("ul").addClass("has-child")}),p(re+" ul .has-child").append('<span class="expand-me"></span>'),p(re+" .expand-me").on("click",function(){var e=p(this).parent("li");1==e.hasClass("active")?(e.removeClass("active"),e.children("ul").slideUp()):(e.addClass("active"),e.children("ul").slideDown())})),p(".show-morg").on("click",function(){p(this).hasClass("active")?(p(".morg-summery").slideUp(),p(this).removeClass("active")):(p(".morg-summery").slideDown(),p(this).addClass("active"))});var fe=p(".lightbox-slide");fe.on("resized.owl.carousel",function(){var e=p(this);e.find(".owl-height").css("height",e.find(".owl-item.active").height())});var we=p(".lightbox-right").innerWidth();function be(){var e=ke()-60;if(p(".lightbox-popup").css("width",e),0<p(".lightbox-right").length){var a=p(".lightbox-right").innerWidth();p(".lightbox-left").css("width",e-a),p(".gallery-inner").css("width",e-a-40),p(".lightbox-right").addClass("in"),p(".lightbox-left .lightbox-close").removeClass("show"),Modernizr.mq("(max-width: 1199px)")&&(p(".expand-icon").removeClass("compress"),p(".popup-inner").removeClass("pop-expand")),Modernizr.mq("(max-width: 1024px)")&&(p(".lightbox-left").css("width","100%"),p(".lightbox-right").removeClass("in"),p(".gallery-inner").css("width","100%"),p(".expand-icon").addClass("compress"),p(".lightbox-left .lightbox-close").addClass("show"))}else p(".lightbox-left").css("width","100%"),p(".gallery-inner").css("width","100%"),p(".lightbox-left .lightbox-close").addClass("show")}p(".popup-trigger").on("click",function(e){e.preventDefault(),p("#lightbox-popup-main").addClass("active").addClass("in"),fe.show(function(){fe.owlCarousel({rtl:a,dots:!1,items:1,autoPlay:1200,smartSpeed:1200,autoplay:!0,autoplayHoverPause:!0,slideBy:1,nav:!1,stopOnHover:!0,autoHeight:!0,navText:["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],responsive:{768:{nav:!0}}})}),p(".lightbox-arrow-left").on("click",function(){fe.trigger("prev.owl.carousel",[1200])}),p(".lightbox-arrow-right").on("click",function(){fe.trigger("next.owl.carousel",[1200])}),p(document).keydown(function(e){37==e.keyCode?fe.trigger("prev.owl.carousel",[1200]):39==e.keyCode&&fe.trigger("next.owl.carousel",[1200])})}),p(".lightbox-close").on("click",function(){fe.trigger("destroy.owl.carousel"),fe.html(fe.find(".owl-stage-outer").html()).removeClass("owl-loaded"),p("#lightbox-popup-main").removeClass("active").removeClass("in")}),p(document).keydown(function(e){27==e.keyCode&&p("#lightbox-popup-main").removeClass("active").removeClass("in")}),be(),p(".lightbox-expand").on("click",function(){p(".lightbox-left .lightbox-close").toggleClass("show");var e=ke(),a=ke()-60-we;1024<=e&&(p(this).hasClass("compress")?(p(".lightbox-right").addClass("in"),p(".lightbox-left").css("width",a),p(this).removeClass("compress"),p(".popup-inner").removeClass("pop-expand")):(p(".lightbox-left").css("width","100%"),p(".lightbox-right").removeClass("in"),p(this).addClass("compress"),p(".popup-inner").addClass("pop-expand"))),e<=1024&&(p(this).hasClass("compress")?(p(".lightbox-right").addClass("in"),p(".lightbox-left").css("width",a),p(this).removeClass("compress")):(p(".lightbox-left").css("width","100%"),p(".lightbox-right").removeClass("in"),p(this).addClass("compress"))),e<768&&p(".lightbox-left").css("width","100%")});var Ce=p(".login-here"),_e=p(".register-here"),ye=p(".step-tab-login"),xe=p(".step-tab-register");function ke(){return Math.max(p(window).width(),p(window).innerWidth())}p(".step-login-btn a").on("click",function(e){var a=p(this);a.hasClass("login-here")?(a.hide(),_e.show(),ye.addClass("in active"),xe.removeClass("in active"),p("#submit_property_form").append('<input type="hidden" name="login_while_submission" id="login_while_submission" value="1">')):(a.hide(),Ce.show(),ye.removeClass("in active"),xe.addClass("in active"),p("#login_while_submission").remove()),e.preventDefault()}),p(".dsidx-prop-summary").length&&(p(".dsidx-prop-summary .dsidx-prop-title").next("div").addClass("item-thumb"),p(".item-thumb a").addClass("hover-effect")),p(".impress-showcase-photo").length&&p(".impress-showcase-photo").addClass("hover-effect"),p(window).on("load",function(){be()}),p(window).on("resize",function(){be()}),p(document).ready(function(){p(".tagcloud a").removeAttr("style")}),p('[data-toggle="popover"]').popover({trigger:"hover",html:!0}),p(".dropdown-toggle").dropdown()}(jQuery);
document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",(()=>{for(var e=["-webkit-","-moz-","-ms-","-o-",""],t=0;t<e.length;t++)e[t]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")})(),(c=>{"function"!=typeof window.vc_js&&(window.vc_js=function(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),vc_ttaToggleBehaviour(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function(e){(e?e.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var e=jQuery(this),t=1e3*parseInt(e.attr("data-interval"),10),i=e.attr("data-flex_fx"),o=0==t?!1:!0;e.is(":visible")&&setTimeout(function(){e.flexslider({animation:i,slideshow:o,slideshowSpeed:t,sliderSpeed:800,smoothHeight:!0})},1)})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){var e,t;0<jQuery(".wpb_googleplus").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://apis.google.com/js/plusone.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){var e,t;0<jQuery(".wpb_pinterest").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://assets.pinterest.com/js/pinit.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.find(".vc_single_bar").each(function(e){var t=jQuery(this).find(".vc_bar"),i=t.data("percentage-value");setTimeout(function(){t.css({width:i+"%"})},200*e)})},{offset:"85%"})})}),"function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function(e){function t(e){e&&e.preventDefault&&e.preventDefault();var t=jQuery(this).closest(".vc_toggle"),e=t.find(".vc_toggle_content");t.hasClass("vc_toggle_active")?e.slideUp({duration:300,complete:function(){t.removeClass("vc_toggle_active")}}):e.slideDown({duration:300,complete:function(){t.addClass("vc_toggle_active")}})}(e?e.hasClass("vc_toggle_title")?e.unbind("click"):e.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",t)}),"function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function(e){function t(){var e=jQuery(this);e.toggleClass("wpb-tta-toggle-active"),e.parent().parent().parent().find(".vc_pagination-item").each(function(){if(!c(this).hasClass("vc_active"))return c(this).find("a").click(),!1})}(e?e.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click",t),setTimeout(function(){jQuery(".wpb-tta-toggle").each(function(){var e=jQuery(this);e.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||e.addClass("wpb-tta-toggle-active")})},1e3)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function(e){var t,o;jQuery.ui&&(e=e||jQuery(".wpb_tabs, .wpb_tour"),t=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",o=1===parseInt(t[0],10)&&parseInt(t[1],10)<9,e.each(function(){var e=jQuery(this).attr("data-interval"),t=[],i=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(e,t){wpb_prepare_tab_content(e,t)},activate:function(e,t){wpb_prepare_tab_content(e,t)}});if(e&&0<e)try{i.tabs("rotate",1e3*e)}catch(e){window.console&&window.console.warn&&console.warn("tabs behaviours error",e)}jQuery(this).find(".wpb_tab").each(function(){t.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),o?i.tabs("select",jQuery("a",this).attr("href")):i.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var t;e&&e.preventDefault&&e.preventDefault(),o?(t=i.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?t++:t--,t<0?t=i.tabs("length")-1:t>=i.tabs("length")&&(t=0),i.tabs("select",t)):(t=i.tabs("option","active"),e=i.find(".wpb_tab").length,t=jQuery(this).parent().hasClass("wpb_next_slide")?e<=t+1?0:t+1:t-1<0?e-1:t-1,i.tabs("option","active",t))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(){var e=jQuery(this),t=(e.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt(e.data("active-tab"),10)&&parseInt(e.data("active-tab"),10)-1),i=!1===t||"yes"===e.data("collapsible"),t=e.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:t,collapsible:i,navigation:!0,activate:vc_accordionActivate,change:function(e,t){void 0!==jQuery.fn.isotope&&t.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(t.newPanel)}});!0===e.data("vcDisableKeydown")&&(t.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var o={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var e=jQuery(this),t=e.find(".wpb_thumbnails"),i=t.attr("data-layout-mode");t.isotope({itemSelector:".isotope-item",layoutMode:void 0===o[i]?"fitRows":o[i]}),e.find(".categories_filter a").data("isotope",t).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){t.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){(e?e.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var e=jQuery(this);!0!==e.data("carousel_enabled")&&e.is(":visible")&&(e.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),(e=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":e.css("margin-left"),"margin-left":0}),(e=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(e.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(){var e,t,i=jQuery(this);i.hasClass("wpb_slider_nivo")?(0===(t=1e3*i.attr("data-interval"))&&(t=9999999999),jQuery.fn.nivoSlider&&!i.data("nivo-initialized")&&(i.data("nivo-initialized",!0),i.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:t,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"}))):i.hasClass("wpb_image_grid")&&i.find(".wpb_image_grid_ul")&&i.find(".wpb_image_grid_ul").isotope&&(jQuery.fn.imagesLoaded?e=i.find(".wpb_image_grid_ul").imagesLoaded(function(){e.isotope({itemSelector:".isotope-item",layoutMode:"fitRows",percentPosition:!0})}):i.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows",percentPosition:!0}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1<location.href.indexOf("#!prettyPhoto")&&(location.hash="")},social_tools:""})}catch(e){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",e)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"),!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){var s=window.jQuery;function e(){var e;void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||(e=s('[data-vc-full-width="true"]'),s.each(e,function(){var e,t,i,o,n,a,r,c=s(this),d=(c.addClass("vc_hidden"),c.next(".vc_row-full-width"));(d=d.length?d:c.parent().next(".vc_row-full-width")).length&&(c.removeAttr("data-vc-full-width-temp"),e=parseInt(c.css("margin-left"),10),t=parseInt(c.css("margin-right"),10),i=0-d.offset().left-e,o=s(window).width(),n={position:"relative",left:i="rtl"===c.css("direction")?(i=i-d.width()+o)+e+t:i,"box-sizing":"border-box",width:o,"max-width":o},c.css(n),c.data("vcStretchContent")||("rtl"===c.css("direction")?((a=i)<0&&(a=0),(r=i)<0&&(r=0)):(r=o-(a=(a=-1*i)<0?0:a)-d.width()+e+t)<0&&(r=0),c.css({"padding-left":a+"px","padding-right":r+"px"})),c.attr("data-vc-full-width-init","true"),c.removeClass("vc_hidden"),s(document).trigger("vc-full-width-row-single",{el:c,offset:i,marginLeft:e,marginRight:t,elFull:d,width:o,maxWidth:o}))}),s(document).trigger("vc-full-width-row",e))}function t(){var e,t,i=s(".vc_row-o-full-height:first");i.length&&(e=s(window).height(),(t=i.offset().top)<e)&&i.css("min-height",100-t/(e/100)+"vh"),s(document).trigger("vc-full-height-row",i)}s(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",e).on("resize.vcRowBehaviour",t),e(),t(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&s(".vc_row-o-full-height").each(function(){"flex"===s(this).css("display")&&s(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),vc_initVideoBackgrounds();var n=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),s(".vc_parallax-inner").remove(),s("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),s("[data-vc-parallax]").each(function(){var e,t,i,o;n=!0,"on"===s(this).data("vcParallaxOFade")&&s(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),e=100*s(this).data("vcParallax"),(t=s("<div />").addClass("vc_parallax-inner").appendTo(s(this))).height(e+"%"),i=s(this).data("vcParallaxImage"),(o=vcExtractYoutubeId(i))?insertYoutubeVideoAsBackground(t,o):void 0!==i&&t.css("background-image","url("+i+")"),t.attr("data-bottom-top","top: "+-(e-100)+"%;").attr("data-top-bottom","top: 0%;")}),n&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(e){for(var t=!1,i=1;!1===t;){if(e.hasClass("columns_count_"+i))return t=!0,i;i++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(e,t){var i=t.panel||t.newPanel,o=i.find(".vc_pie_chart:not(.vc_ready)"),n=i.find(".vc_round-chart"),a=i.find(".vc_line-chart"),r=i.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(i),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),i.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&i.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),o.length&&jQuery.fn.vcChat&&o.vcChat(),n.length&&jQuery.fn.vcRoundChart&&n.vcRoundChart({reload:!1}),a.length&&jQuery.fn.vcLineChart&&a.vcLineChart({reload:!1}),r.length&&jQuery.fn.carousel&&r.carousel("resizeAction"),t=i.find(".isotope, .wpb_image_grid_ul"),o=i.find(".wpb_gmaps_widget"),0<t.length&&t.isotope("layout"),o.length&&!o.is(".map_ready")&&((n=o.find("iframe")).attr("src",n.attr("src")),o.addClass("map_ready")),i.parents(".isotope").length&&i.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),c(document).trigger("wpb_prepare_tab_content",i)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var t=window.jQuery,i={};i.newPanel=t(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,i)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(e,t){var i,o,n,a;t.newPanel.length&&t.newHeader.length&&(i=t.newPanel.find(".vc_pie_chart:not(.vc_ready)"),o=t.newPanel.find(".vc_round-chart"),n=t.newPanel.find(".vc_line-chart"),a=t.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&t.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),vc_carouselBehaviour(t.newPanel),vc_plugin_flexslider(t.newPanel),i.length&&jQuery.fn.vcChat&&i.vcChat(),o.length&&jQuery.fn.vcRoundChart&&o.vcRoundChart({reload:!1}),n.length&&jQuery.fn.vcLineChart&&n.vcLineChart({reload:!1}),a.length&&jQuery.fn.carousel&&a.carousel("resizeAction"),t.newPanel.parents(".isotope").length)&&t.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}),"function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){c(".vc_video-bg").remove(),c("[data-vc-video-bg]").each(function(){var e,i=jQuery(this);i.data("vcVideoBg")?(e=i.data("vcVideoBg"),(e=vcExtractYoutubeId(e))&&(i.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground(i,e)),jQuery(window).on("grid:items:added",function(e,t){i.has(t).length&&vcResizeVideoBackground(i)})):i.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function(e,t,i){if("undefined"==typeof YT||void 0===YT.Player)return 100<(i=void 0===i?0:i)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground(e,t,i++)},100);var o=e.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");new YT.Player(o[0],{width:"100%",height:"100%",videoId:t,playerVars:{playlist:t,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(e){e.target.mute().setLoop(!0)}}}),vcResizeVideoBackground(e),jQuery(window).on("resize",function(){vcResizeVideoBackground(e)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function(e){var t,i,o,n,a=e.innerWidth(),r=e.innerHeight();a/r<16/9?(t=r*(16/9),i=r,o=-Math.round((t-a)/2)+"px",n=-Math.round((i-r)/2)+"px"):(i=(t=a)*(9/16),n=-Math.round((i-r)/2)+"px",o=-Math.round((t-a)/2)+"px"),t+="px",i+="px",e.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:o,marginTop:n,width:t,height:i})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(e){return void 0!==e&&null!==(e=e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&e[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var e=window.jQuery,t=e(".wpb_gmaps_widget");t.on("click",function(){e("iframe",this).css("pointer-events","auto")}),t.on("mouseleave",function(){e("iframe",this).css("pointer-events","none")}),e(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(e){e.each(function(){var e=jQuery(this),t=e.width();e.css("perspective",4*t+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(e){e.each(function(){var e=jQuery(this),t=e.find(".vc-hoverbox-inner"),i=(t.css("min-height",0),e.find(".vc-hoverbox-front-inner").outerHeight()),e=e.find(".vc-hoverbox-back-inner").outerHeight(),i=e<i?i:e;t.css("min-height",(i=i<250?250:i)+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var e=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(e),vc_setHoverBoxPerspective(e)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function(){window.vc_js()})})(window.jQuery);
(function(e,t,r){"use strict";function n(r){if(o=t.documentElement,a=t.body,K(),it=this,r=r||{},ut=r.constants||{},r.easing)for(var n in r.easing)U[n]=r.easing[n];yt=r.edgeStrategy||"set",ct={beforerender:r.beforerender,render:r.render,keyframe:r.keyframe},ft=r.forceHeight!==!1,ft&&(Vt=r.scale||1),mt=r.mobileDeceleration||x,dt=r.smoothScrolling!==!1,gt=r.smoothScrollingDuration||E,vt={targetTop:it.getScrollTop()},Gt=(r.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||e.opera)})(),Gt?(st=t.getElementById("skrollr-body"),st&&at(),X(),Dt(o,[y,S],[T])):Dt(o,[y,b],[T]),it.refresh(),St(e,"resize orientationchange",function(){var e=o.clientWidth,t=o.clientHeight;(t!==$t||e!==Mt)&&($t=t,Mt=e,_t=!0)});var i=Y();return function l(){Z(),bt=i(l)}(),it}var o,a,i={get:function(){return it},init:function(e){return it||new n(e)},VERSION:"0.6.26"},l=Object.prototype.hasOwnProperty,s=e.Math,c=e.getComputedStyle,f="touchstart",u="touchmove",m="touchcancel",p="touchend",d="skrollable",g=d+"-before",v=d+"-between",h=d+"-after",y="skrollr",T="no-"+y,b=y+"-desktop",S=y+"-mobile",k="linear",w=1e3,x=.004,E=200,A="start",F="end",C="center",D="bottom",H="___skrollable_id",I=/^(?:input|textarea|button|select)$/i,P=/^\s+|\s+$/g,N=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,O=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,V=/^(@?[a-z\-]+)\[(\w+)\]$/,z=/-([a-z0-9_])/g,q=function(e,t){return t.toUpperCase()},L=/[\-+]?[\d]*\.?[\d]+/g,M=/\{\?\}/g,$=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,_=/[a-z\-]+-gradient/g,B="",G="",K=function(){var e=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(c){var t=c(a,null);for(var n in t)if(B=n.match(e)||+n==n&&t[n].match(e))break;if(!B)return B=G="",r;B=B[0],"-"===B.slice(0,1)?(G=B,B={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[B]):G="-"+B.toLowerCase()+"-"}},Y=function(){var t=e.requestAnimationFrame||e[B.toLowerCase()+"RequestAnimationFrame"],r=Pt();return(Gt||!t)&&(t=function(t){var n=Pt()-r,o=s.max(0,1e3/60-n);return e.setTimeout(function(){r=Pt(),t()},o)}),t},R=function(){var t=e.cancelAnimationFrame||e[B.toLowerCase()+"CancelAnimationFrame"];return(Gt||!t)&&(t=function(t){return e.clearTimeout(t)}),t},U={begin:function(){return 0},end:function(){return 1},linear:function(e){return e},quadratic:function(e){return e*e},cubic:function(e){return e*e*e},swing:function(e){return-s.cos(e*s.PI)/2+.5},sqrt:function(e){return s.sqrt(e)},outCubic:function(e){return s.pow(e-1,3)+1},bounce:function(e){var t;if(.5083>=e)t=3;else if(.8489>=e)t=9;else if(.96208>=e)t=27;else{if(!(.99981>=e))return 1;t=91}return 1-s.abs(3*s.cos(1.028*e*t)/t)}};n.prototype.refresh=function(e){var n,o,a=!1;for(e===r?(a=!0,lt=[],Bt=0,e=t.getElementsByTagName("*")):e.length===r&&(e=[e]),n=0,o=e.length;o>n;n++){var i=e[n],l=i,s=[],c=dt,f=yt,u=!1;if(a&&H in i&&delete i[H],i.attributes){for(var m=0,p=i.attributes.length;p>m;m++){var g=i.attributes[m];if("data-anchor-target"!==g.name)if("data-smooth-scrolling"!==g.name)if("data-edge-strategy"!==g.name)if("data-emit-events"!==g.name){var v=g.name.match(N);if(null!==v){var h={props:g.value,element:i,eventType:g.name.replace(z,q)};s.push(h);var y=v[1];y&&(h.constant=y.substr(1));var T=v[2];/p$/.test(T)?(h.isPercentage=!0,h.offset=(0|T.slice(0,-1))/100):h.offset=0|T;var b=v[3],S=v[4]||b;b&&b!==A&&b!==F?(h.mode="relative",h.anchors=[b,S]):(h.mode="absolute",b===F?h.isEnd=!0:h.isPercentage||(h.offset=h.offset*Vt))}}else u=!0;else f=g.value;else c="off"!==g.value;else if(l=t.querySelector(g.value),null===l)throw'Unable to find anchor target "'+g.value+'"'}if(s.length){var k,w,x;!a&&H in i?(x=i[H],k=lt[x].styleAttr,w=lt[x].classAttr):(x=i[H]=Bt++,k=i.style.cssText,w=Ct(i)),lt[x]={element:i,styleAttr:k,classAttr:w,anchorTarget:l,keyFrames:s,smoothScrolling:c,edgeStrategy:f,emitEvents:u,lastFrameIndex:-1},Dt(i,[d],[])}}}for(Et(),n=0,o=e.length;o>n;n++){var E=lt[e[n][H]];E!==r&&(J(E),et(E))}return it},n.prototype.relativeToAbsolute=function(e,t,r){var n=o.clientHeight,a=e.getBoundingClientRect(),i=a.top,l=a.bottom-a.top;return t===D?i-=n:t===C&&(i-=n/2),r===D?i+=l:r===C&&(i+=l/2),i+=it.getScrollTop(),0|i+.5},n.prototype.animateTo=function(e,t){t=t||{};var n=Pt(),o=it.getScrollTop();return pt={startTop:o,topDiff:e-o,targetTop:e,duration:t.duration||w,startTime:n,endTime:n+(t.duration||w),easing:U[t.easing||k],done:t.done},pt.topDiff||(pt.done&&pt.done.call(it,!1),pt=r),it},n.prototype.stopAnimateTo=function(){pt&&pt.done&&pt.done.call(it,!0),pt=r},n.prototype.isAnimatingTo=function(){return!!pt},n.prototype.isMobile=function(){return Gt},n.prototype.setScrollTop=function(t,r){return ht=r===!0,Gt?Kt=s.min(s.max(t,0),Ot):e.scrollTo(0,t),it},n.prototype.getScrollTop=function(){return Gt?Kt:e.pageYOffset||o.scrollTop||a.scrollTop||0},n.prototype.getMaxScrollTop=function(){return Ot},n.prototype.on=function(e,t){return ct[e]=t,it},n.prototype.off=function(e){return delete ct[e],it},n.prototype.destroy=function(){var e=R();e(bt),wt(),Dt(o,[T],[y,b,S]);for(var t=0,n=lt.length;n>t;t++)ot(lt[t].element);o.style.overflow=a.style.overflow="",o.style.height=a.style.height="",st&&i.setStyle(st,"transform","none"),it=r,st=r,ct=r,ft=r,Ot=0,Vt=1,ut=r,mt=r,zt="down",qt=-1,Mt=0,$t=0,_t=!1,pt=r,dt=r,gt=r,vt=r,ht=r,Bt=0,yt=r,Gt=!1,Kt=0,Tt=r};var X=function(){var n,i,l,c,d,g,v,h,y,T,b,S;St(o,[f,u,m,p].join(" "),function(e){var o=e.changedTouches[0];for(c=e.target;3===c.nodeType;)c=c.parentNode;switch(d=o.clientY,g=o.clientX,T=e.timeStamp,I.test(c.tagName)||e.preventDefault(),e.type){case f:n&&n.blur(),it.stopAnimateTo(),n=c,i=v=d,l=g,y=T;break;case u:I.test(c.tagName)&&t.activeElement!==c&&e.preventDefault(),h=d-v,S=T-b,it.setScrollTop(Kt-h,!0),v=d,b=T;break;default:case m:case p:var a=i-d,k=l-g,w=k*k+a*a;if(49>w){if(!I.test(n.tagName)){n.focus();var x=t.createEvent("MouseEvents");x.initMouseEvent("click",!0,!0,e.view,1,o.screenX,o.screenY,o.clientX,o.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null),n.dispatchEvent(x)}return}n=r;var E=h/S;E=s.max(s.min(E,3),-3);var A=s.abs(E/mt),F=E*A+.5*mt*A*A,C=it.getScrollTop()-F,D=0;C>Ot?(D=(Ot-C)/F,C=Ot):0>C&&(D=-C/F,C=0),A*=1-D,it.animateTo(0|C+.5,{easing:"outCubic",duration:A})}}),e.scrollTo(0,0),o.style.overflow=a.style.overflow="hidden"},j=function(){var e,t,r,n,a,i,l,c,f,u,m,p=o.clientHeight,d=At();for(c=0,f=lt.length;f>c;c++)for(e=lt[c],t=e.element,r=e.anchorTarget,n=e.keyFrames,a=0,i=n.length;i>a;a++)l=n[a],u=l.offset,m=d[l.constant]||0,l.frame=u,l.isPercentage&&(u*=p,l.frame=u),"relative"===l.mode&&(ot(t),l.frame=it.relativeToAbsolute(r,l.anchors[0],l.anchors[1])-u,ot(t,!0)),l.frame+=m,ft&&!l.isEnd&&l.frame>Ot&&(Ot=l.frame);for(Ot=s.max(Ot,Ft()),c=0,f=lt.length;f>c;c++){for(e=lt[c],n=e.keyFrames,a=0,i=n.length;i>a;a++)l=n[a],m=d[l.constant]||0,l.isEnd&&(l.frame=Ot-l.offset+m);e.keyFrames.sort(Nt)}},W=function(e,t){for(var r=0,n=lt.length;n>r;r++){var o,a,s=lt[r],c=s.element,f=s.smoothScrolling?e:t,u=s.keyFrames,m=u.length,p=u[0],y=u[u.length-1],T=p.frame>f,b=f>y.frame,S=T?p:y,k=s.emitEvents,w=s.lastFrameIndex;if(T||b){if(T&&-1===s.edge||b&&1===s.edge)continue;switch(T?(Dt(c,[g],[h,v]),k&&w>-1&&(xt(c,p.eventType,zt),s.lastFrameIndex=-1)):(Dt(c,[h],[g,v]),k&&m>w&&(xt(c,y.eventType,zt),s.lastFrameIndex=m)),s.edge=T?-1:1,s.edgeStrategy){case"reset":ot(c);continue;case"ease":f=S.frame;break;default:case"set":var x=S.props;for(o in x)l.call(x,o)&&(a=nt(x[o].value),0===o.indexOf("@")?c.setAttribute(o.substr(1),a):i.setStyle(c,o,a));continue}}else 0!==s.edge&&(Dt(c,[d,v],[g,h]),s.edge=0);for(var E=0;m-1>E;E++)if(f>=u[E].frame&&u[E+1].frame>=f){var A=u[E],F=u[E+1];for(o in A.props)if(l.call(A.props,o)){var C=(f-A.frame)/(F.frame-A.frame);C=A.props[o].easing(C),a=rt(A.props[o].value,F.props[o].value,C),a=nt(a),0===o.indexOf("@")?c.setAttribute(o.substr(1),a):i.setStyle(c,o,a)}k&&w!==E&&("down"===zt?xt(c,A.eventType,zt):xt(c,F.eventType,zt),s.lastFrameIndex=E);break}}},Z=function(){_t&&(_t=!1,Et());var e,t,n=it.getScrollTop(),o=Pt();if(pt)o>=pt.endTime?(n=pt.targetTop,e=pt.done,pt=r):(t=pt.easing((o-pt.startTime)/pt.duration),n=0|pt.startTop+t*pt.topDiff),it.setScrollTop(n,!0);else if(!ht){var a=vt.targetTop-n;a&&(vt={startTop:qt,topDiff:n-qt,targetTop:n,startTime:Lt,endTime:Lt+gt}),vt.endTime>=o&&(t=U.sqrt((o-vt.startTime)/gt),n=0|vt.startTop+t*vt.topDiff)}if(Gt&&st&&i.setStyle(st,"transform","translate(0, "+-Kt+"px) "+Tt),ht||qt!==n){zt=n>qt?"down":qt>n?"up":zt,ht=!1;var l={curTop:n,lastTop:qt,maxTop:Ot,direction:zt},s=ct.beforerender&&ct.beforerender.call(it,l);s!==!1&&(W(n,it.getScrollTop()),qt=n,ct.render&&ct.render.call(it,l)),e&&e.call(it,!1)}Lt=o},J=function(e){for(var t=0,r=e.keyFrames.length;r>t;t++){for(var n,o,a,i,l=e.keyFrames[t],s={};null!==(i=O.exec(l.props));)a=i[1],o=i[2],n=a.match(V),null!==n?(a=n[1],n=n[2]):n=k,o=o.indexOf("!")?Q(o):[o.slice(1)],s[a]={value:o,easing:U[n]};l.props=s}},Q=function(e){var t=[];return $.lastIndex=0,e=e.replace($,function(e){return e.replace(L,function(e){return 100*(e/255)+"%"})}),G&&(_.lastIndex=0,e=e.replace(_,function(e){return G+e})),e=e.replace(L,function(e){return t.push(+e),"{?}"}),t.unshift(e),t},et=function(e){var t,r,n={};for(t=0,r=e.keyFrames.length;r>t;t++)tt(e.keyFrames[t],n);for(n={},t=e.keyFrames.length-1;t>=0;t--)tt(e.keyFrames[t],n)},tt=function(e,t){var r;for(r in t)l.call(e.props,r)||(e.props[r]=t[r]);for(r in e.props)t[r]=e.props[r]},rt=function(e,t,r){var n,o=e.length;if(o!==t.length)throw"Can't interpolate between \""+e[0]+'" and "'+t[0]+'"';var a=[e[0]];for(n=1;o>n;n++)a[n]=e[n]+(t[n]-e[n])*r;return a},nt=function(e){var t=1;return M.lastIndex=0,e[0].replace(M,function(){return e[t++]})},ot=function(e,t){e=[].concat(e);for(var r,n,o=0,a=e.length;a>o;o++)n=e[o],r=lt[n[H]],r&&(t?(n.style.cssText=r.dirtyStyleAttr,Dt(n,r.dirtyClassAttr)):(r.dirtyStyleAttr=n.style.cssText,r.dirtyClassAttr=Ct(n),n.style.cssText=r.styleAttr,Dt(n,r.classAttr)))},at=function(){Tt="translateZ(0)",i.setStyle(st,"transform",Tt);var e=c(st),t=e.getPropertyValue("transform"),r=e.getPropertyValue(G+"transform"),n=t&&"none"!==t||r&&"none"!==r;n||(Tt="")};i.setStyle=function(e,t,r){var n=e.style;if(t=t.replace(z,q).replace("-",""),"zIndex"===t)n[t]=isNaN(r)?r:""+(0|r);else if("float"===t)n.styleFloat=n.cssFloat=r;else try{B&&(n[B+t.slice(0,1).toUpperCase()+t.slice(1)]=r),n[t]=r}catch(o){}};var it,lt,st,ct,ft,ut,mt,pt,dt,gt,vt,ht,yt,Tt,bt,St=i.addEvent=function(t,r,n){var o=function(t){return t=t||e.event,t.target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1,t.defaultPrevented=!0}),n.call(this,t)};r=r.split(" ");for(var a,i=0,l=r.length;l>i;i++)a=r[i],t.addEventListener?t.addEventListener(a,n,!1):t.attachEvent("on"+a,o),Yt.push({element:t,name:a,listener:n})},kt=i.removeEvent=function(e,t,r){t=t.split(" ");for(var n=0,o=t.length;o>n;n++)e.removeEventListener?e.removeEventListener(t[n],r,!1):e.detachEvent("on"+t[n],r)},wt=function(){for(var e,t=0,r=Yt.length;r>t;t++)e=Yt[t],kt(e.element,e.name,e.listener);Yt=[]},xt=function(e,t,r){ct.keyframe&&ct.keyframe.call(it,e,t,r)},Et=function(){var e=it.getScrollTop();Ot=0,ft&&!Gt&&(a.style.height=""),j(),ft&&!Gt&&(a.style.height=Ot+o.clientHeight+"px"),Gt?it.setScrollTop(s.min(it.getScrollTop(),Ot)):it.setScrollTop(e,!0),ht=!0},At=function(){var e,t,r=o.clientHeight,n={};for(e in ut)t=ut[e],"function"==typeof t?t=t.call(it):/p$/.test(t)&&(t=t.slice(0,-1)/100*r),n[e]=t;return n},Ft=function(){var e=st&&st.offsetHeight||0,t=s.max(e,a.scrollHeight,a.offsetHeight,o.scrollHeight,o.offsetHeight,o.clientHeight);return t-o.clientHeight},Ct=function(t){var r="className";return e.SVGElement&&t instanceof e.SVGElement&&(t=t[r],r="baseVal"),t[r]},Dt=function(t,n,o){var a="className";if(e.SVGElement&&t instanceof e.SVGElement&&(t=t[a],a="baseVal"),o===r)return t[a]=n,r;for(var i=t[a],l=0,s=o.length;s>l;l++)i=It(i).replace(It(o[l])," ");i=Ht(i);for(var c=0,f=n.length;f>c;c++)-1===It(i).indexOf(It(n[c]))&&(i+=" "+n[c]);t[a]=Ht(i)},Ht=function(e){return e.replace(P,"")},It=function(e){return" "+e+" "},Pt=Date.now||function(){return+new Date},Nt=function(e,t){return e.frame-t.frame},Ot=0,Vt=1,zt="down",qt=-1,Lt=Pt(),Mt=0,$t=0,_t=!1,Bt=0,Gt=!1,Kt=0,Yt=[];"function"==typeof define&&define.amd?define("skrollr",function(){return i}):"undefined"!=typeof module&&module.exports?module.exports=i:e.skrollr=i})(window,document);
(()=>{var e=0,r={};function i(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=i.Adapter.extend({},i.defaults,t),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),r[this.key]=this,e+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete r[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var e,i=[];for(e in r)i.push(r[e]);for(var o=0,n=i.length;o<n;o++)i[o][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),r)r[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.VcWaypoint=i})(),(()=>{function e(t){window.setTimeout(t,1e3/60)}var i=0,o={},u=window.VcWaypoint,t=window.onload;function n(t){this.element=t,this.Adapter=u.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,u.windowContext||(u.windowContext=!0,u.windowContext=new n(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}n.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},n.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".vcwaypoints"),delete o[this.key])},n.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.vcwaypoints",function(){t.didResize||(t.didResize=!0,u.requestAnimationFrame(e))})},n.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.vcwaypoints",function(){t.didScroll&&!u.isTouch||(t.didScroll=!0,u.requestAnimationFrame(e))})},n.prototype.handleResize=function(){u.Context.refreshAll()},n.prototype.handleScroll=function(){var t,e,i={},o={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(t in o){var n,r=o[t],s=r.newScroll>r.oldScroll?r.forward:r.backward;for(n in this.waypoints[t]){var a,l,h=this.waypoints[t][n];null!==h.triggerPoint&&(a=r.oldScroll<h.triggerPoint,l=r.newScroll>=h.triggerPoint,a&&l||!a&&!l)&&(h.queueTrigger(s),i[h.group.id]=h.group)}}for(e in i)i[e].flushTriggers();this.oldScroll={x:o.horizontal.newScroll,y:o.vertical.newScroll}},n.prototype.innerHeight=function(){return this.element==this.element.window?u.viewportHeight():this.adapter.innerHeight()},n.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},n.prototype.innerWidth=function(){return this.element==this.element.window?u.viewportWidth():this.adapter.innerWidth()},n.prototype.destroy=function(){var t,e=[];for(t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var o=0,n=e.length;o<n;o++)e[o].destroy()},n.prototype.refresh=function(){var t,e,i=this.element==this.element.window,o=i?void 0:this.adapter.offset(),n={};for(e in this.handleScroll(),t={horizontal:{contextOffset:i?0:o.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:o.top,contextScroll:i?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var r,s=t[e];for(r in this.waypoints[e]){var a,l=this.waypoints[e][r],h=l.options.offset,p=l.triggerPoint,c=0,d=null==p;l.element!==l.element.window&&(c=l.adapter.offset()[s.offsetProp]),"function"==typeof h?h=h.apply(l):"string"==typeof h&&(h=parseFloat(h),-1<l.options.offset.indexOf("%"))&&(h=Math.ceil(s.contextDimension*h/100)),a=s.contextScroll-s.contextOffset,l.triggerPoint=Math.floor(c+a-h),c=p<s.oldScroll,a=l.triggerPoint>=s.oldScroll,h=!c&&!a,!d&&(c&&a)?(l.queueTrigger(s.backward),n[l.group.id]=l.group):(!d&&h||d&&s.oldScroll>=l.triggerPoint)&&(l.queueTrigger(s.forward),n[l.group.id]=l.group)}}return u.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)},n.refreshAll=function(){for(var t in o)o[t].refresh()},n.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){t&&t(),n.refreshAll()},u.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},u.Context=n})(),(()=>{function r(t,e){return t.triggerPoint-e.triggerPoint}function s(t,e){return e.triggerPoint-t.triggerPoint}var e={vertical:{},horizontal:{}},i=window.VcWaypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),e[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t];e.sort("up"===t||"left"===t?s:r);for(var i=0,o=e.length;i<o;i+=1){var n=e[i];!n.options.continuous&&i!==e.length-1||n.trigger([t])}}this.clearTriggerQueues()},o.prototype.next=function(t){this.waypoints.sort(r);t=i.Adapter.inArray(t,this.waypoints);return t===this.waypoints.length-1?null:this.waypoints[t+1]},o.prototype.previous=function(t){this.waypoints.sort(r);t=i.Adapter.inArray(t,this.waypoints);return t?this.waypoints[t-1]:null},o.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},o.prototype.remove=function(t){t=i.Adapter.inArray(t,this.waypoints);-1<t&&this.waypoints.splice(t,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return e[t.axis][t.name]||new o(t)},i.Group=o})(),(()=>{var i=window.jQuery,t=window.VcWaypoint;function o(t){this.$element=i(t)}i.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){o.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),i.each(["extend","inArray","isEmptyObject"],function(t,e){o[e]=i[e]}),t.adapters.push({name:"jquery",Adapter:o}),t.Adapter=o})(),(()=>{var n=window.VcWaypoint;function t(o){return function(){var e=[],i=arguments[0];return o.isFunction(arguments[0])&&((i=o.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var t=o.extend({},i,{element:this});"string"==typeof t.context&&(t.context=o(this).closest(t.context)[0]),e.push(new n(t))}),e}}window.jQuery&&(window.jQuery.fn.vcwaypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.vcwaypoint=t(window.Zepto))})();