jQuery(document).ready(function(t){var e={action:"getFMcounts"},n=["newListings","new7Days","new30Days","priceChangeToday","priceChange7Days","priceChange30Days","soldToday","sold7Days","sold30Days"],r=["newlistings/1_days","newlistings/7_days","newlistings/30_days","pricechange/1_days","pricechange/7_days","pricechange/30_days","soldlistings/1_days","soldlistings/7_days","soldlistings/30_days"];t.ajax({type:"POST",url:fMarketParams.ApexIdxDomainUrl+"webservices/getFeaturedMarket.php",dataType:"json",data:e,beforeSend:function(){}}).done(function(e){var o=fMarketParams.ApexIdxDomainUrl,a=e.data;for(i=0;i20&&(e=e.substring(e.length-19)),e},a="mi"+o(),s=function(t,e){this.g(t,e)};s.prototype={h:function(){var t=new RegExp(a+this.a+"=(\\d+)"),e=document.cookie.match(t);return e?e[1]:this.i()},i:function(){for(var t=0,e=this.b.length;e>t;t++)if(n(this.b[t].parentNode,"selected"))return t;return 0},j:function(t,e){var n=document.getElementById(t.TargetId);if(n){this.l(n);for(var o=0;o=this.b.length&&(t=0),this.j(this.b[t],0)}};var l=[],c=function(t){function n(){r||(r=!0,setTimeout(t,4))}function i(){if(!r)try{document.documentElement.doScroll("left"),n()}catch(t){setTimeout(i,10)}}var r=!1;if(document.addEventListener)document.addEventListener("DOMContentLoaded",n,!1);else if(document.attachEvent){try{var o=null!=window.frameElement}catch(a){}document.documentElement.doScroll&&!o&&i(),document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&n()})}e(window,"load",n)},u=function(){for(var t=document.getElementsByTagName("ul"),e=0,i=t.length;i>e;e++)n(t[e],"tabs")&&l.push(new s(t[e],e))};return c(u),{}}(),function(t){"use strict";t.fn.counterUp=function(e){var n=t.extend({time:400,delay:10},e);return this.each(function(){var e=t(this),i=n,r=function(){var t=[],n=i.time/i.delay,r=e.text(),o=/[0-9]+,[0-9]+/.test(r);r=r.replace(/,/g,"");for(var a=(/^[0-9]+$/.test(r),/^[0-9]+\.[0-9]+$/.test(r)),s=a?(r.split(".")[1]||[]).length:0,l=n;l>=1;l--){var c=parseInt(r/n*l);if(a&&(c=parseFloat(r/n*l).toFixed(s)),o)for(;/(\d+)(\d{3})/.test(c.toString());)c=c.toString().replace(/(\d+)(\d{3})/,"$1,$2");t.unshift(c)}e.data("counterup-nums",t),e.text("0");var u=function(){e.text(e.data("counterup-nums").shift()),e.data("counterup-nums").length?setTimeout(e.data("counterup-func"),i.delay):(delete e.data("counterup-nums"),e.data("counterup-nums",null),e.data("counterup-func",null))};e.data("counterup-func",u),setTimeout(e.data("counterup-func"),i.delay)};e.waypoint(r,{offset:"100%",triggerOnce:!0})})}}(jQuery),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},e=[].slice;!function(t,e){return"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(n){return e(n,t)}):e(t.jQuery,t)}(this,function(n,i){var r,o,a,s,l,c,u,d,f,h,p,m,v,y,g,w;return r=n(i),d=t.call(i,"ontouchstart")>=0,s={horizontal:{},vertical:{}},l=1,u={},c="waypoints-context-id",p="resize.waypoints",m="scroll.waypoints",v=1,y="waypoints-waypoint-ids",g="waypoint",w="waypoints",o=function(){function t(t){var e=this;this.$element=t,this.element=t[0],this.didResize=!1,this.didScroll=!1,this.id="context"+l++,this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()},this.waypoints={horizontal:{},vertical:{}},t.data(c,this.id),u[this.id]=this,t.bind(m,function(){var t;return e.didScroll||d?void 0:(e.didScroll=!0,t=function(){return e.doScroll(),e.didScroll=!1},i.setTimeout(t,n[w].settings.scrollThrottle))}),t.bind(p,function(){var t;return e.didResize?void 0:(e.didResize=!0,t=function(){return n[w]("refresh"),e.didResize=!1},i.setTimeout(t,n[w].settings.resizeThrottle))})}return t.prototype.doScroll=function(){var t,e=this;return t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!d||t.vertical.oldScroll&&t.vertical.newScroll||n[w]("refresh"),n.each(t,function(t,i){var r,o,a;return a=[],o=i.newScroll>i.oldScroll,r=o?i.forward:i.backward,n.each(e.waypoints[t],function(t,e){var n,r;return i.oldScroll<(n=e.offset)&&n<=i.newScroll?a.push(e):i.newScroll<(r=e.offset)&&r<=i.oldScroll?a.push(e):void 0}),a.sort(function(t,e){return t.offset-e.offset}),o||a.reverse(),n.each(a,function(t,e){return e.options.continuous||t===a.length-1?e.trigger([r]):void 0})}),this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.refresh=function(){var t,e,i,r=this;return i=n.isWindow(this.element),e=this.$element.offset(),this.doScroll(),t={horizontal:{contextOffset:i?0:e.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:e.top,contextScroll:i?0:this.oldScroll.y,contextDimension:i?n[w]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},n.each(t,function(t,e){return n.each(r.waypoints[t],function(t,i){var r,o,a,s,l;return r=i.options.offset,a=i.offset,o=n.isWindow(i.element)?0:i.$element.offset()[e.offsetProp],n.isFunction(r)?r=r.apply(i.element):"string"==typeof r&&(r=parseFloat(r),i.options.offset.indexOf("%")>-1&&(r=Math.ceil(e.contextDimension*r/100))),i.offset=o-e.contextOffset+e.contextScroll-r,i.options.onlyOnScroll&&null!=a||!i.enabled?void 0:null!==a&&a<(s=e.oldScroll)&&s<=i.offset?i.trigger([e.backward]):null!==a&&a>(l=e.oldScroll)&&l>=i.offset?i.trigger([e.forward]):null===a&&e.oldScroll>=i.offset?i.trigger([e.forward]):void 0})})},t.prototype.checkEmpty=function(){return n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([p,m].join(" ")),delete u[this.id]):void 0},t}(),a=function(){function t(t,e,i){var r,o;i=n.extend({},n.fn[g].defaults,i),"bottom-in-view"===i.offset&&(i.offset=function(){var t;return t=n[w]("viewportHeight"),n.isWindow(e.element)||(t=e.$element.height()),t-n(this).outerHeight()}),this.$element=t,this.element=t[0],this.axis=i.horizontal?"horizontal":"vertical",this.callback=i.handler,this.context=e,this.enabled=i.enabled,this.id="waypoints"+v++,this.offset=null,this.options=i,e.waypoints[this.axis][this.id]=this,s[this.axis][this.id]=this,r=null!=(o=t.data(y))?o:[],r.push(this.id),t.data(y,r)}return t.prototype.trigger=function(t){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,t),this.options.triggerOnce?this.destroy():void 0):void 0},t.prototype.disable=function(){return this.enabled=!1},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},t.prototype.destroy=function(){return delete s[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},t.getWaypointsByElement=function(t){var e,i;return(i=n(t).data(y))?(e=n.extend({},s.horizontal,s.vertical),n.map(i,function(t){return e[t]})):[]},t}(),h={init:function(t,e){var i;return null==e&&(e={}),null==(i=e.handler)&&(e.handler=t),this.each(function(){var t,i,r,s;return t=n(this),r=null!=(s=e.context)?s:n.fn[g].defaults.context,n.isWindow(r)||(r=t.closest(r)),r=n(r),i=u[r.data(c)],i||(i=new o(r)),new a(t,i,e)}),n[w]("refresh"),this},disable:function(){return h._invoke(this,"disable")},enable:function(){return h._invoke(this,"enable")},destroy:function(){return h._invoke(this,"destroy")},prev:function(t,e){return h._traverse.call(this,t,e,function(t,e,n){return e>0?t.push(n[e-1]):void 0})},next:function(t,e){return h._traverse.call(this,t,e,function(t,e,n){return et.oldScroll.y})},left:function(t){return null==t&&(t=i),f._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){return null==t&&(t=i),f._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return f._invoke("enable")},disable:function(){return f._invoke("disable")},destroy:function(){return f._invoke("destroy")},extendFn:function(t,e){return h[t]=e},_invoke:function(t){var e;return e=n.extend({},s.vertical,s.horizontal),n.each(e,function(e,n){return n[t](),!0})},_filter:function(t,e,i){var r,o;return(r=u[n(t).data(c)])?(o=[],n.each(r.waypoints[e],function(t,e){return i(r,e)?o.push(e):void 0}),o.sort(function(t,e){return t.offset-e.offset}),n.map(o,function(t){return t.element})):[]}},n[w]=function(){var t,n;return n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],f[n]?f[n].apply(null,t):f.aggregate.call(null,n)},n[w].settings={resizeThrottle:100,scrollThrottle:30},r.load(function(){return n[w]("refresh")})})}.call(this);