'+e.city+", "+e.state+" "+e.zip+'
'+e.bed+' '+e.bath+' '+e.size+'
'+e.fullPrice+"
"}function init_canvas_projection(e){function t(){}t.prototype=new google.maps.OverlayView,t.prototype.constructor=t,t.prototype.onAdd=function(){},t.prototype.draw=function(){},t.prototype.onRemove=function(){},canvasProjectionOverlay=new t,canvasProjectionOverlay.setMap(e)}function convert_offset(e,t,a){var s=canvasProjectionOverlay.getProjection(),r=s.fromLatLngToContainerPixel(e);return r.x=r.x+t,r.y=r.y+a,s.fromContainerPixelToLatLng(r)}function getMapPin(e){return e.ctStatus=e.ctStatus.trim(),"svg"==mapping_ajax_object.listing_marker_type?(svgSize=mapping_ajax_object.ct_listing_marker_svg_size,svgWidth=2*svgSize,svgHeight=2*svgSize,enableMarkerPrice=mapping_ajax_object.ct_enable_marker_price,priceZoomLevel=parseInt(mapping_ajax_object.search_marker_price_zoom_level),svgVersion="?ver=1.0.7",null==e.mapZoom&&(e.mapZoom=map.getZoom()),showMarkerWithPrice(e)?(svgWidth=40,svgHeight=60,labelOriginY=22,e.priceDisplay="true",svgURL=e.siteURL+"/images/svgs/map-marker-price.svg","for-sale"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-for-sale.svg"),"active"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-for-sale.svg"),"for-rent"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-for-rent-rental.svg"),"rental"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-for-rent-rental.svg"),"reo-bank-owned"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-reo-bank-owned.svg"),"short-sale"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-reduced-short-sale.svg"),"leased"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-leased-rented.svg"),"rented"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-leased-rented.svg"),"reduced"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-reduced-short-sale.svg"),"sold"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-sold.svg"),"pending"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-pending.svg"),"open-house"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-open-house.svg"),"available"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-available.svg"),"new-addition"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-new-addition.svg"),"new-listing"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-new-addition.svg"),"special-offer"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-price-for-sale.svg")):(labelOriginY=10,e.priceDisplay="false",svgWidth=3*svgSize,svgHeight=3*svgSize,svgURL=e.siteURL+"/images/svgs/map-marker.svg","for-sale"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-for-sale.svg"),"active"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-for-sale.svg"),"for-rent"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-for-rent-rental.svg"),"rental"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-for-rent-rental.svg"),"reo-bank-owned"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-reo-bank-owned.svg"),"short-sale"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-reduced-short-sale.svg"),"leased"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-leased-rented.svg"),"rented"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-leased-rented.svg"),"reduced"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-reduced-short-sale.svg"),"sold"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-sold.svg"),"pending"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-pending.svg"),"open-house"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-open-house.svg"),"available"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-available.svg"),"new-addition"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-new-addition.svg"),"new-listing"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-new-addition.svg"),"special-offer"==e.ctStatus&&(svgURL=e.siteURL+"/images/svgs/map-marker-for-sale.svg")),svgURL=svgURL+"#"+e.listingID+svgVersion,{url:svgURL,size:new google.maps.Size(svgWidth,svgHeight),scaledSize:new google.maps.Size(svgWidth,svgHeight),labelOrigin:new google.maps.Point(20,labelOriginY)}):"commercial"==e.commercial?{url:e.siteURL+"/images/map-pin-com.png#"+e.listingID,size:new google.maps.Size(40,46),scaledSize:new google.maps.Size(40,46)}:"land"==e.land||"lot"==e.land?{url:e.siteURL+"/images/map-pin-land.png#"+e.listingID,size:new google.maps.Size(40,46),scaledSize:new google.maps.Size(40,46)}:{url:e.siteURL+"/images/map-pin-res.png#"+e.listingID,size:new google.maps.Size(40,46),scaledSize:new google.maps.Size(40,46)}}function cancelDrawing(){jQuery("#map-wrap .drawInstructionBar").remove(),jQuery("#ct-map-navigation, #compare-panel").show(),jQuery("#map .gm-style > div > div > div > div > img").show(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(1) > div:nth-child(4)").show(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(3)").css("opacity","1"),drawBounds=null}function drawFreeHand (){poly=new google.maps.Polyline({map:map,clickable:!1});var e=google.maps.event.addListener(map,"mousemove",function(e){poly.getPath().push(e.latLng)}),t=google.maps.event.addListenerOnce(map,"mouseup",function(a){google.maps.event.removeListener(e),google.maps.event.removeListener(t);var s=poly.getPath();poly.setMap(null),poly=new google.maps.Polygon({map:map,path:s,strokeOpacity:.3,fillOpacity:.3,strokeColor:"#8e9092",strokeWeight:1}),google.maps.event.clearListeners(map.getDiv(),"mousedown"),getMarkersInsideDraw(a,poly),drawMarkers.length>0?(oldZoom=map.getZoom(),oldBounds=map.getBounds(),jQuery("#number-listings-progress").css("display","block"),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(3)").css("opacity","0"),doAjax("","",1),jQuery("#map-wrap .drawInstructionBar").remove(),jQuery("#ct-map-navigation, #compare-panel").show()):(cancelDrawing(),disableDrawMode())})}function disableDrawMode(){map.setOptions({draggable:!0,draggableCursor:"grab",zoomControl:!0,scrollwheel:!0,disableDoubleClickZoom:!0}),jQuery("#map .gm-style > div > div > div > div > img").show(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(1) > div:nth-child(4)").show(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(3)").css("opacity","1"),drawingMode=!1}function enableDrawMode(){jQuery("#map .gm-style > div > div > div > div > img").hide(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(1) > div:nth-child(4)").hide(),jQuery("#map > div > div > div:nth-child(1) > div:nth-child(3)").css("opacity","0"),drawingMode=!0,map.setOptions({draggable:!1,draggableCursor:"crosshair",zoomControl:!1,scrollwheel:!1,disableDoubleClickZoom:!1,clickableIcons:!1})}function getMarkersInsideDraw(e,t){drawMarkers=[],drawBounds=new google.maps.LatLngBounds;for(var a=0;a
").html(ne).text(),ne=ne.replace("+"," "),sw=getUrlParameter("sw",t),sw=jQuery("
").html(sw).text(),sw=sw.replace("+"," "),paged=getUrlParameter("paged",t),doAjax(ne,sw,paged),jQuery("html, body").animate({scrollTop:0},"slow")),null!=poly&&(jQuery("#number-listings-progress").css("display","block"),e.preventDefault(),paged=parseInt(jQuery(this).html()),doAjax("","",paged),jQuery("html, body").animate({scrollTop:0},"slow")))}),jQuery(document).on("mouseenter",".side-results .listing",function(e){var t=jQuery(this).attr("data-listing-id");if(open_info_window&&(open_info_window.close(),jQuery('img[src="'+open_info_window.closeBoxURL_+'"]').click()),null!=t)for(var a=0;a
0?tempMarker.find(".markerClass").first().addClass("ct-active-marker"):tempMarker.append('
'),marker_list[a].infobox)){var s=new google.maps.LatLng(map.getBounds().getNorthEast().lat(),map.getBounds().getSouthWest().lng()),r=new google.maps.LatLng(map.getBounds().getSouthWest().lat(),map.getBounds().getNorthEast().lng()),i=map.getBounds().getSouthWest().distanceFrom(marker_list[a].getPosition()),o=map.getBounds().getNorthEast().distanceFrom(marker_list[a].getPosition()),n=s.distanceFrom(marker_list[a].getPosition()),l=r.distanceFrom(marker_list[a].getPosition());switch(Math.min(i,o,n,l)){case l:ibOffset=new google.maps.Size(-300,150);break;case o:ibOffset=new google.maps.Size(-300,250);break;case n:ibOffset=new google.maps.Size(50,300);break;case i:ibOffset=new google.maps.Size(50,100)}marker_list[a].infobox.setOptions({pixelOffset:ibOffset}),marker_list[a].infobox.open(map,marker_list[a]),open_info_window=marker_list[a].infobox}}),jQuery(document).on("mouseleave",".side-results .listing, .listing-search-results .listing",function(e){var t=jQuery(this).attr("data-listing-id");if(null!=t)for(var a=0;a1){var i=parseFloat(e.latlong.split(",")[0]),o=parseFloat(e.latlong.split(",")[1]),n=new google.maps.LatLng(i,o);-1==markerExistsByLatLng(i,o)&&a(n,e,t)}else s.geocode({address:r},function(s,r){if(r==google.maps.GeocoderStatus.OK){var i=s[0].geometry.location;-1==markerExistsByLatLng(i.lat(),i.lng())&&a(i,e,t)}})}return window.onload=function(){var a=document.getElementById("ct-gmap-next"),s=document.getElementById("ct-gmap-prev");null!=document.getElementById("ct-gmap-draw")&&document.getElementById("ct-gmap-draw").addEventListener("click",function(){return null!=poly?(poly.setMap(null),poly=null,e.map.fitBounds(oldBounds),e.map.setZoom(oldZoom),google.maps.event.trigger(e.map,"zoom_changed"),cancelDrawing(),disableDrawMode(),jQuery(".draw-mode").find("span").html(""),jQuery(".draw-mode").removeClass("draw-mode"),drawMarkers=[],!1):(jQuery("#ct-map-navigation, #compare-panel").hide(),jQuery("#map-wrap").append('Click and drag to draw your search.
Cancel '),jQuery(this).addClass("draw-mode"),jQuery(this).find("span").html("Clear"),enableDrawMode(),drawListener=google.maps.event.addDomListener(map.getDiv(),"mousedown",function(e){drawingMode?drawFreeHand ():disableDrawMode()}),!1)}),null!=a&&document.getElementById("ct-gmap-next").addEventListener("click",function(){!function(){for(++t>marker_list.length&&(t=1);!1===marker_list[t-1].visible;)++t>marker_list.length&&(t=1);google.maps.event.trigger(marker_list[t-1],"click")}()}),null!=s&&document.getElementById("ct-gmap-prev").addEventListener("click",function(){!function(){for(--t<1&&(t=marker_list.length);!1===marker_list[t-1].visible;)--t>marker_list.length&&(t=1);google.maps.event.trigger(marker_list[t-1],"click")}()})},e.init_property_map=function(t,a,r){var o=ctMapGlobal.mapType,n=ctMapGlobal.mapStyle;ctMapGlobal.mapCustomStyles;if("custom"==n)if(null!=a&&""!=a.mapcenter)var l={zoom:10,center:new google.maps.LatLng(a.mapcenter),mapTypeId:google.maps.MapTypeId[o],disableDefaultUI:!1,scrollwheel:!1,streetViewControl:!1,styles:[{featureType:"water",stylers:[{visibility:"on"},{color:"#acbcc9"}]},{featureType:"landscape",stylers:[{color:"#f2e5d4"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#c5c6c6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#e4d7c6"}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#fbfaf7"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#c5dac6"}]},{featureType:"administrative",stylers:[{visibility:"on"},{lightness:33}]},{featureType:"road"},{featureType:"poi.park",elementType:"labels",stylers:[{visibility:"on"},{lightness:20}]},{},{featureType:"road",stylers:[{lightness:20}]}]};else l={mapTypeId:google.maps.MapTypeId[o],disableDefaultUI:!1,scrollwheel:!1,streetViewControl:!1,styles:[{featureType:"water",stylers:[{visibility:"on"},{color:"#acbcc9"}]},{featureType:"landscape",stylers:[{color:"#f2e5d4"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#c5c6c6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#e4d7c6"}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#fbfaf7"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#c5dac6"}]},{featureType:"administrative",stylers:[{visibility:"on"},{lightness:33}]},{featureType:"road"},{featureType:"poi.park",elementType:"labels",stylers:[{visibility:"on"},{lightness:20}]},{},{featureType:"road",stylers:[{lightness:20}]}]};else l={zoom:10,center:new google.maps.LatLng(a.mapcenter),mapTypeId:google.maps.MapTypeId[o],disableDefaultUI:!1,scrollwheel:!1,streetViewControl:!0};lat=getUrlParameter("lat",""),lng=getUrlParameter("lng",""),skipBounds=!1,lat&&lng&&(l.center={lat:parseFloat(lat),lng:parseFloat(lng)},skipBounds=!0);var g={ignoreHidden:!0,maxZoom:mapping_ajax_object.search_cluster_zoom_level,styles:[{textColor:"#ffffff",url:r+"/images/cluster-icon.png",height:48,width:48}]};if(e.map=new google.maps.Map(document.getElementById("map"),l),map=e.map,e.bounds=new google.maps.LatLngBounds,init_canvas_projection(e.map),null!=a){var c=google.maps.event.addListener(e.map,"idle",function(){if(t&&t.length)for(mapZoom=1,i=0;i{skipBounds=!1,getMapBounds(e.map)},debounceTime)),google.maps.event.addListener(e.map,"zoom_changed",debounce(()=>{skipBounds=!1,getMapBounds(e.map)},debounceTime))});google.maps.event.addListenerOnce(map,"tilesloaded",function(){})}},e}();
(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e=0,s={horizontal:{},vertical:{}},c=1,f={},u="waypoints-context-id",p="resize.waypoints",y="scroll.waypoints",v=1,w="waypoints-waypoint-ids",g="waypoint",S="waypoints",o=function(){function t(t){var e=this;this.$element=t,this.element=t[0],this.didResize=!1,this.didScroll=!1,this.id="context"+c++,this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[u]=this.id,f[this.id]=this,t.bind(y,function(){var t;if(!e.didScroll&&!a)return e.didScroll=!0,t=function(){return e.doScroll(),e.didScroll=!1},i.setTimeout(t,n[S].settings.scrollThrottle)}),t.bind(p,function(){var t;if(!e.didResize)return e.didResize=!0,t=function(){return n[S]("refresh"),e.didResize=!1},i.setTimeout(t,n[S].settings.resizeThrottle)})}return t.prototype.doScroll=function(){var t,e=this;return t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!a||t.vertical.oldScroll&&t.vertical.newScroll||n[S]("refresh"),n.each(t,function(t,i){var r,o,l;return l=[],o=i.newScroll>i.oldScroll,r=o?i.forward:i.backward,n.each(e.waypoints[t],function(t,e){var n,r;return i.oldScroll<(n=e.offset)&&n<=i.newScroll?l.push(e):i.newScroll<(r=e.offset)&&r<=i.oldScroll?l.push(e):void 0}),l.sort(function(t,e){return t.offset-e.offset}),o||l.reverse(),n.each(l,function(t,e){if(e.options.continuous||t===l.length-1)return e.trigger([r])})}),this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.refresh=function(){var t,e,i,r=this;return i=n.isWindow(this.element),e=this.$element.offset(),this.doScroll(),t={horizontal:{contextOffset:i?0:e.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:e.top,contextScroll:i?0:this.oldScroll.y,contextDimension:i?n[S]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},n.each(t,function(t,e){return n.each(r.waypoints[t],function(t,i){var r,o,l,s,c;if(r=i.options.offset,l=i.offset,o=n.isWindow(i.element)?0:i.$element.offset()[e.offsetProp],n.isFunction(r)?r=r.apply(i.element):"string"==typeof r&&(r=parseFloat(r),i.options.offset.indexOf("%")>-1&&(r=Math.ceil(e.contextDimension*r/100))),i.offset=o-e.contextOffset+e.contextScroll-r,(!i.options.onlyOnScroll||null==l)&&i.enabled)return null!==l&&l<(s=e.oldScroll)&&s<=i.offset?i.trigger([e.backward]):null!==l&&l>(c=e.oldScroll)&&c>=i.offset?i.trigger([e.forward]):null===l&&e.oldScroll>=i.offset?i.trigger([e.forward]):void 0})})},t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([p,y].join(" ")),delete f[this.id]},t}(),l=function(){function t(t,e,i){var r,o;"bottom-in-view"===i.offset&&(i.offset=function(){var t;return t=n[S]("viewportHeight"),n.isWindow(e.element)||(t=e.$element.height()),t-n(this).outerHeight()}),this.$element=t,this.element=t[0],this.axis=i.horizontal?"horizontal":"vertical",this.callback=i.handler,this.context=e,this.enabled=i.enabled,this.id="waypoints"+v++,this.offset=null,this.options=i,e.waypoints[this.axis][this.id]=this,s[this.axis][this.id]=this,(r=null!=(o=this.element[w])?o:[]).push(this.id),this.element[w]=r}return t.prototype.trigger=function(t){if(this.enabled)return null!=this.callback&&this.callback.apply(this.element,t),this.options.triggerOnce?this.destroy():void 0},t.prototype.disable=function(){return this.enabled=!1},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},t.prototype.destroy=function(){return delete s[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},t.getWaypointsByElement=function(t){var e,i;return(i=t[w])?(e=n.extend({},s.horizontal,s.vertical),n.map(i,function(t){return e[t]})):[]},t}(),d={init:function(t,e){return null==(e=n.extend({},n.fn[g].defaults,e)).handler&&(e.handler=t),this.each(function(){var t,i,r,s;return t=n(this),r=null!=(s=e.context)?s:n.fn[g].defaults.context,n.isWindow(r)||(r=t.closest(r)),r=n(r),(i=f[r[0][u]])||(i=new o(r)),new l(t,i,e)}),n[S]("refresh"),this},disable:function(){return d._invoke.call(this,"disable")},enable:function(){return d._invoke.call(this,"enable")},destroy:function(){return d._invoke.call(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0)return t.push(n[e-1])})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(et.oldScroll.y})},left:function(t){return null==t&&(t=i),h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){return null==t&&(t=i),h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;return e=n.extend({},s.vertical,s.horizontal),n.each(e,function(e,n){return n[t](),!0})},_filter:function(t,e,i){var r,o;return(r=f[n(t)[0][u]])?(o=[],n.each(r.waypoints[e],function(t,e){if(i(r,e))return o.push(e)}),o.sort(function(t,e){return t.offset-e.offset}),n.map(o,function(t){return t.element})):[]}},n[S]=function(){var t,n;return n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],h[n]?h[n].apply(null,t):h.aggregate.call(null,n)},n[S].settings={resizeThrottle:100,scrollThrottle:30},r.on("load.waypoints",function(){return n[S]("refresh")})})}).call(this);
;window.Modernizr=function(a,b,c){function u(a){j.cssText=a}function v(a,b){return u(prefixes.join(a+";")+(b||""))}function w(a,b){return typeof a===b}function x(a,b){return!!~(""+a).indexOf(b)}function y(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:w(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m={},n={},o={},p=[],q=p.slice,r,s={}.hasOwnProperty,t;!w(s,"undefined")&&!w(s.call,"undefined")?t=function(a,b){return s.call(a,b)}:t=function(a,b){return b in a&&w(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=q.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(q.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(q.call(arguments)))};return e});for(var z in m)t(m,z)&&(r=z.toLowerCase(),e[r]=m[z](),p.push((e[r]?"":"no-")+r));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)t(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},u(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+p.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;fi;i++)this.element.addEventListener(n[i],e,!1);return this},off:function(t,e){for(var n=t.split(" "),i=0;n.length>i;i++)this.element.removeEventListener(n[i],e,!1);return this},trigger:function(t,e){var n=i.DOCUMENT.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e;var r=this.element;return i.utils.hasParent(e.target,r)&&(r=e.target),r.dispatchEvent(n),this},enable:function(t){return this.enabled=t,this}};var r=null,o=!1,s=!1;i.event={bindDom:function(t,e,n){for(var i=e.split(" "),r=0;i.length>r;r++)t.addEventListener(i[r],n,!1)},onTouch:function(t,e,n){var a=this;this.bindDom(t,i.EVENT_TYPES[e],function(c){var u=c.type.toLowerCase();if(!u.match(/mouse/)||!s){u.match(/touch/)||u.match(/pointerdown/)||u.match(/mouse/)&&1===c.which?o=!0:u.match(/mouse/)&&1!==c.which&&(o=!1),u.match(/touch|pointer/)&&(s=!0);var h=0;o&&(i.HAS_POINTEREVENTS&&e!=i.EVENT_END?h=i.PointerEvent.updatePointer(e,c):u.match(/touch/)?h=c.touches.length:s||(h=u.match(/up/)?0:1),h>0&&e==i.EVENT_END?e=i.EVENT_MOVE:h||(e=i.EVENT_END),(h||null===r)&&(r=c),n.call(i.detection,a.collectEventData(t,e,a.getTouchList(r,e),c)),i.HAS_POINTEREVENTS&&e==i.EVENT_END&&(h=i.PointerEvent.updatePointer(e,c))),h||(r=null,o=!1,s=!1,i.PointerEvent.reset())}})},determineEventTypes:function(){var t;t=i.HAS_POINTEREVENTS?i.PointerEvent.getEvents():i.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],i.EVENT_TYPES[i.EVENT_START]=t[0],i.EVENT_TYPES[i.EVENT_MOVE]=t[1],i.EVENT_TYPES[i.EVENT_END]=t[2]},getTouchList:function(t){return i.HAS_POINTEREVENTS?i.PointerEvent.getTouchList():t.touches?t.touches:(t.indentifier=1,[t])},collectEventData:function(t,e,n,r){var o=i.POINTER_TOUCH;return(r.type.match(/mouse/)||i.PointerEvent.matchType(i.POINTER_MOUSE,r))&&(o=i.POINTER_MOUSE),{center:i.utils.getCenter(n),timeStamp:(new Date).getTime(),target:r.target,touches:n,eventType:e,pointerType:o,srcEvent:r,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation(),this.srcEvent.preventDefault&&this.srcEvent.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return i.detection.stopDetect()}}}},i.PointerEvent={pointers:{},getTouchList:function(){var t=this,e=[];return Object.keys(t.pointers).sort().forEach(function(n){e.push(t.pointers[n])}),e},updatePointer:function(t,e){return t==i.EVENT_END?this.pointers={}:(e.identifier=e.pointerId,this.pointers[e.pointerId]=e),Object.keys(this.pointers).length},matchType:function(t,e){if(!e.pointerType)return!1;var n={};return n[i.POINTER_MOUSE]=e.pointerType==e.MSPOINTER_TYPE_MOUSE||e.pointerType==i.POINTER_MOUSE,n[i.POINTER_TOUCH]=e.pointerType==e.MSPOINTER_TYPE_TOUCH||e.pointerType==i.POINTER_TOUCH,n[i.POINTER_PEN]=e.pointerType==e.MSPOINTER_TYPE_PEN||e.pointerType==i.POINTER_PEN,n[t]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}},i.utils={extend:function(t,n,i){for(var r in n)t[r]!==e&&i||(t[r]=n[r]);return t},hasParent:function(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1},getCenter:function(t){for(var e=[],n=[],i=0,r=t.length;r>i;i++)e.push(t[i].pageX),n.push(t[i].pageY);return{pageX:(Math.min.apply(Math,e)+Math.max.apply(Math,e))/2,pageY:(Math.min.apply(Math,n)+Math.max.apply(Math,n))/2}},getVelocity:function(t,e,n){return{x:Math.abs(e/t)||0,y:Math.abs(n/t)||0}},getAngle:function(t,e){var n=e.pageY-t.pageY,i=e.pageX-t.pageX;return 180*Math.atan2(n,i)/Math.PI},getDirection:function(t,e){var n=Math.abs(t.pageX-e.pageX),r=Math.abs(t.pageY-e.pageY);return n>=r?t.pageX-e.pageX>0?i.DIRECTION_LEFT:i.DIRECTION_RIGHT:t.pageY-e.pageY>0?i.DIRECTION_UP:i.DIRECTION_DOWN},getDistance:function(t,e){var n=e.pageX-t.pageX,i=e.pageY-t.pageY;return Math.sqrt(n*n+i*i)},getScale:function(t,e){return t.length>=2&&e.length>=2?this.getDistance(e[0],e[1])/this.getDistance(t[0],t[1]):1},getRotation:function(t,e){return t.length>=2&&e.length>=2?this.getAngle(e[1],e[0])-this.getAngle(t[1],t[0]):0},isVertical:function(t){return t==i.DIRECTION_UP||t==i.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(t,e){var n,i=["webkit","khtml","moz","Moz","ms","o",""];if(e&&t.style){for(var r=0;i.length>r;r++)for(var o in e)e.hasOwnProperty(o)&&(n=o,i[r]&&(n=i[r]+n.substring(0,1).toUpperCase()+n.substring(1)),t.style[n]=e[o]);"none"==e.userSelect&&(t.onselectstart=function(){return!1})}}},i.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(t,e){this.current||(this.stopped=!1,this.current={inst:t,startEvent:i.utils.extend({},e),lastEvent:!1,name:""},this.detect(e))},detect:function(t){if(this.current&&!this.stopped){t=this.extendEventData(t);for(var e=this.current.inst.options,n=0,r=this.gestures.length;r>n;n++){var o=this.gestures[n];if(!this.stopped&&e[o.name]!==!1&&o.handler.call(o,t,this.current.inst)===!1){this.stopDetect();break}}return this.current&&(this.current.lastEvent=t),t.eventType==i.EVENT_END&&!t.touches.length-1&&this.stopDetect(),t}},stopDetect:function(){this.previous=i.utils.extend({},this.current),this.current=null,this.stopped=!0},extendEventData:function(t){var e=this.current.startEvent;if(e&&(t.touches.length!=e.touches.length||t.touches===e.touches)){e.touches=[];for(var n=0,r=t.touches.length;r>n;n++)e.touches.push(i.utils.extend({},t.touches[n]))}var o=t.timeStamp-e.timeStamp,s=t.center.pageX-e.center.pageX,a=t.center.pageY-e.center.pageY,c=i.utils.getVelocity(o,s,a);return i.utils.extend(t,{deltaTime:o,deltaX:s,deltaY:a,velocityX:c.x,velocityY:c.y,distance:i.utils.getDistance(e.center,t.center),angle:i.utils.getAngle(e.center,t.center),direction:i.utils.getDirection(e.center,t.center),scale:i.utils.getScale(e.touches,t.touches),rotation:i.utils.getRotation(e.touches,t.touches),startEvent:e}),t},register:function(t){var n=t.defaults||{};return n[t.name]===e&&(n[t.name]=!0),i.utils.extend(i.defaults,n,!0),t.index=t.index||1e3,this.gestures.push(t),this.gestures.sort(function(t,e){return t.indexe.index?1:0}),this.gestures}},i.gestures=i.gestures||{},i.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(t,e){switch(t.eventType){case i.EVENT_START:clearTimeout(this.timer),i.detection.current.name=this.name,this.timer=setTimeout(function(){"hold"==i.detection.current.name&&e.trigger("hold",t)},e.options.hold_timeout);break;case i.EVENT_MOVE:t.distance>e.options.hold_threshold&&clearTimeout(this.timer);break;case i.EVENT_END:clearTimeout(this.timer)}}},i.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},handler:function(t,e){if(t.eventType==i.EVENT_END){var n=i.detection.previous,r=!1;if(t.deltaTime>e.options.tap_max_touchtime||t.distance>e.options.tap_max_distance)return;n&&"tap"==n.name&&t.timeStamp-n.lastEvent.timeStamp0&&t.touches.length>e.options.swipe_max_touches)return;(t.velocityX>e.options.swipe_velocity||t.velocityY>e.options.swipe_velocity)&&(e.trigger(this.name,t),e.trigger(this.name+t.direction,t))}}},i.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,correct_for_drag_min_distance:!0,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(t,n){if(i.detection.current.name!=this.name&&this.triggered)return n.trigger(this.name+"end",t),this.triggered=!1,e;if(!(n.options.drag_max_touches>0&&t.touches.length>n.options.drag_max_touches))switch(t.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:if(t.distancet.deltaY?i.DIRECTION_UP:i.DIRECTION_DOWN:0>t.deltaX?i.DIRECTION_LEFT:i.DIRECTION_RIGHT),this.triggered||(n.trigger(this.name+"start",t),this.triggered=!0),n.trigger(this.name,t),n.trigger(this.name+t.direction,t),(n.options.drag_block_vertical&&i.utils.isVertical(t.direction)||n.options.drag_block_horizontal&&!i.utils.isVertical(t.direction))&&t.preventDefault();break;case i.EVENT_END:this.triggered&&n.trigger(this.name+"end",t),this.triggered=!1}}},i.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(t,n){if(i.detection.current.name!=this.name&&this.triggered)return n.trigger(this.name+"end",t),this.triggered=!1,e;if(!(2>t.touches.length))switch(n.options.transform_always_block&&t.preventDefault(),t.eventType){case i.EVENT_START:this.triggered=!1;break;case i.EVENT_MOVE:var r=Math.abs(1-t.scale),o=Math.abs(t.rotation);if(n.options.transform_min_scale>r&&n.options.transform_min_rotation>o)return;i.detection.current.name=this.name,this.triggered||(n.trigger(this.name+"start",t),this.triggered=!0),n.trigger(this.name,t),o>n.options.transform_min_rotation&&n.trigger("rotate",t),r>n.options.transform_min_scale&&(n.trigger("pinch",t),n.trigger("pinch"+(1>t.scale?"in":"out"),t));break;case i.EVENT_END:this.triggered&&n.trigger(this.name+"end",t),this.triggered=!1}}},i.gestures.Touch={name:"touch",index:-1/0,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(t,n){return n.options.prevent_mouseevents&&t.pointerType==i.POINTER_MOUSE?(t.stopDetect(),e):(n.options.prevent_default&&t.preventDefault(),t.eventType==i.EVENT_START&&n.trigger(this.name,t),e)}},i.gestures.Release={name:"release",index:1/0,handler:function(t,e){t.eventType==i.EVENT_END&&e.trigger(this.name,t)}},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return i}):"object"==typeof module&&"object"==typeof module.exports?module.exports=i:t.Hammer=i})(this);
!function(e){function n(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")}function t(e,n){var t=s(e,n)?c:a;t(e,n)}if(Modernizr.touch){var s,a,c;"classList"in document.documentElement?(s=function(e,n){return e.classList.contains(n)},a=function(e,n){e.classList.add(n)},c=function(e,n){e.classList.remove(n)}):(s=function(e,t){return n(t).test(e.className)},a=function(e,n){s(e,n)||(e.className=e.className+" "+n)},c=function(e,t){e.className=e.className.replace(n(t)," ")});var o={hasClass:s,addClass:a,removeClass:c,toggleClass:t,has:s,add:a,remove:c,toggle:t};"function"==typeof define&&define.amd?define(o):e.classie=o,[].slice.call(document.querySelectorAll("ul.grid > li > figure")).forEach(function(e,n){e.querySelector("figcaption > a").addEventListener("touchstart",function(e){e.stopPropagation()},!1),e.addEventListener("touchstart",function(e){o.toggle(this,"cs-hover")},!1)})}}(window);
function manageFeaturedTags(){jQuery("h6.snipe.status.featured").removeClass("featured"),jQuery("h6.snipe.status span").text(function(e,o){return o.replace("Featured","")}),jQuery("h6.snipe span").text(function(e,o){return o.replace("Ghost","")}),jQuery("h6.snipe span").text(function(e,o){return o.replace("Weekly","")}),jQuery("h6.snipe span").text(function(e,o){return o.replace("Week","")}),jQuery("h6.snipe span").text(function(e,o){return o.replace("Daily","")}),jQuery("h6.snipe span").text(function(e,o){return o.replace("Day","")}),jQuery("h6.snipe").show()}function popup(e,o,n,t){var i=screen.width/2-n/2,l=screen.height/2-t/2;window.open(e,o,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width="+n+", height="+t+", top="+l+", left="+i)}jQuery.noConflict(),function(e){"use strict";e(".flexslider").resize(),e("#ct_login_submit").click(function(){e("#login-register-progress").css("display","inline-block"),e("#login-register-progress").delay(1700).fadeOut(300)}),e("#ct_register_submit").click(function(){return e("#register-progress").css("display","inline-block"),e("#register-progress").delay(1700).fadeOut(300),e.ajax({url:mapping_ajax_object.ajax_url,type:"POST",data:e("#ct_registration_form").serialize()+"&action=ct_add_new_member",success:function(o){if(console.log(o),o.success)location.href=o.redirect;else{let n="";o.errors&&e.each(o.errors,function(e,o){n+=''+o+" "}),e("#ct_account_register_errors").html(''+n+"
")}}}),!1}),e(".wp-social-login-provider-list a").addClass("btn"),e("#masthead ul.sub-menu").closest("li").addClass("drop"),e("#masthead .multicolumn > ul > li.menu-item-has-children > a").each(function(){if("#"==e(this).attr("href")||""==e(this).attr("href")){var o=e(this);e(''+e(this).text()+" ").insertAfter(o),o.remove()}}),e("#ct_ct_status option[value='ghost']").remove(),e("#ct_orderby").change(function(){var o=e(this).val(),n=window.location.href.replace("&ct_orderby=priceASC","").replace("&ct_orderby=priceDESC","").replace("&ct_orderby=dateASC","").replace("&ct_orderby=dateDESC","");window.location.href=""!=o?n+"&ct_orderby="+o:n;var t=window.location.href,i=t.indexOf("#");i>0&&(window.location=t.substring(0,i))}),e(".post-categories").remove(),e("#disclaimer").html(function(e,o){return o.replace(/ /g,"")}),e("#disclaimer").html(function(e,o){return o.replace(" ","")}),e(".alike-button").click(function(){}),e("#compare-panel-btn,.alike-button").on("click",function(o){o.preventDefault();var n=e("#compare-list"),t=e("#compare-list").width();n.toggleClass("open"),e("i.fa-chevron-left").toggleClass("fa-chevron-right"),n.hasClass("open")?n.animate({right:"0px"}):n.animate({right:-t},240)}),e("#header_status_multi label[for=ct_status_multi]").click(function(){return e("#header_status_multi").toggleClass("open"),!1}),e(document).click(function(){e("#header_status_multi").removeClass("open")}),e("#header_status_multi, #header_status_multi label[for=ct_status_multi]").on("click",function(e){e.stopPropagation()}),e("#idx-overview.info-toggle").click(function(){return e("#idx-overview.info-toggle + .info-inner").slideToggle("fast"),e("#idx-overview.info-toggle").toggleClass("info-toggle-open"),!1}),e("#idx-features.info-toggle").click(function(){return e("#idx-features.info-toggle + .info-inner").slideToggle("fast"),e("#idx-features.info-toggle").toggleClass("info-toggle-open"),!1}),e("#idx-rooms.info-toggle").click(function(){return e("#idx-rooms.info-toggle + .info-inner").slideToggle("fast"),e("#idx-rooms.info-toggle").toggleClass("info-toggle-open"),!1}),e("#idx-schools.info-toggle").click(function(){return e("#idx-schools.info-toggle + .info-inner").slideToggle("fast"),e("#idx-schools.info-toggle").toggleClass("info-toggle-open"),!1}),e("#idx-hoa.info-toggle").click(function(){return e("#idx-hoa.info-toggle + .info-inner").slideToggle("fast"),e("#idx-hoa.info-toggle").toggleClass("info-toggle-open"),!1}),e("#book-this-listing.info-toggle").click(function(){return e("#book-this-listing.info-toggle + .info-inner").slideToggle("fast"),e("#book-this-listing.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-floor-plans.info-toggle").click(function(){return e("#listing-floor-plans.info-toggle + .info-inner").slideToggle("fast"),e("#listing-floor-plans.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-floor-plans.info-toggle").click(function(){return e("#listing-floor-plans.info-toggle + .info-inner").slideToggle("fast"),e("#listing-floor-plans.info-toggle").toggleClass("info-toggle-open"),!1}),e("#energy-efficiency.info-toggle").click(function(){return e("#energy-efficiency.info-toggle + .info-inner").slideToggle("fast"),e("#energy-efficiency.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-prop-features.info-toggle").click(function(){return e("#listing-prop-features.info-toggle + .info-inner").slideToggle("fast"),e("#listing-prop-features.info-toggle").toggleClass("info-toggle-open"),!1}),e("#open-house-info.info-toggle").click(function(){return e("#open-house-info.info-toggle + .info-inner").slideToggle("fast"),e("#open-house-info.info-toggle").toggleClass("info-toggle-open"),!1}),e("#rental-info.info-toggle").click(function(){return e("#rental-info.info-toggle + .info-inner").slideToggle("fast"),e("#rental-info.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-reviews-info.info-toggle").click(function(){return e("#listing-reviews-info.info-toggle + .info-inner").slideToggle("fast"),e("#listing-reviews-info.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-video-heading.info-toggle").click(function(){return e("#listing-video-heading.info-toggle + .info-inner").slideToggle("fast"),e("#listing-video-heading.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-virtual-tour-heading.info-toggle").click(function(){return e("#listing-virtual-tour-heading.info-toggle + .info-inner").slideToggle("fast"),e("#listing-virtual-tour-heading.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-nearby-heading.info-toggle").click(function(){return e("#listing-nearby-heading.info-toggle + .info-inner").slideToggle("fast"),e("#listing-nearby-heading.info-toggle").toggleClass("info-toggle-open"),!1}),e("#listing-map-heading.info-toggle").click(function(){return e("#listing-map-heading.info-toggle + .info-inner").slideToggle("fast"),e("#listing-map-heading.info-toggle").toggleClass("info-toggle-open"),!1}),e("#tools-toggle").click(function(){e("#text-toggle").text(function(e,o){return o===object_name.close_tools?object_name.open_tools:object_name.close_tools}),e("#tools ul").toggle("fast")}),e(".map-toggle").click(function(){e("#text-toggle").text(function(e,o){return o===object_name.close_map?object_name.open_map:object_name.close_map}),e("i.fa-minus-square").toggleClass("fa-plus-square"),e("#map-wrap").slideToggle(200,function(){})}),e(".search-toggle").click(function(){e("#text-toggle").text(function(e,o){return o===object_name.open_search?object_name.close_search:object_name.open_search}),e("i.fa-plus-square").toggleClass("fa-minus-square"),e(".advanced-search").slideToggle(200,function(){})}),e(".login-register").click(function(){return e("#overlay").addClass("open"),e("html, body").animate({scrollTop:0},800),!1}),e(".close").click(function(){e("#overlay").removeClass("open")}),e(".ct-registration").click(function(){e("#login").slideUp("slow",function(){e("#register").slideDown("slow")})}),e(".ct-lost-password").click(function(){e("#login").slideUp("slow",function(){e("#lost-password").slideDown("slow")})}),e(".ct-login").click(function(){e("#register").slideUp("slow",function(){e("#login").slideDown("slow")})}),e("#overlay.listing-modal .close").click(function(){e("#overlay.listing-modal").removeClass("open"),e("body").css("overflow",""),console.log("modal close")}),e(".agent-contact, .brokerage-contact").click(function(){e("#overlay.contact-modal").addClass("open")}),e(".close").click(function(){e("#overlay.contact-modal").removeClass("open"),e(".formError").hide()}),e(".brokerage-contact").click(function(){e("#overlay.contact-modal").addClass("open")}),e(".close").click(function(){e("#overlay.contact-modal").removeClass("open"),e(".formError").hide()}),e(".booking-form-calendar").show(),e(".booking_form_div").show(),e("#your-profile h3").addClass("marT0 col span_3 first"),e("table.form-table").addClass("col span_9"),e("table.form-table tbody").addClass("col span_12"),e("#your-profile .description").addClass("muted"),e(".user-profile-img").addClass("col span_3 first"),e("#your-profile").show(),e(".wpfp-link.remove-parent:contains('remove')").html(" "),e(".wpfp-link.remove-parent").show(),e(".gallery-icon").addClass("zoom"),e(".advanced-search.dsidxpress .submit").addClass("btn"),e("article, .videoplayer").fitVids(),e("img").removeAttr("width").removeAttr("height"),manageFeaturedTags(),e(".aq-block-aq_testimonial_block .testimonials").flexslider({animation:"fade",animationLoop:!0,animationSpeed:600,slideshowSpeed:4e3,directionNav:!1,controlNav:!1,smoothHeight:!0}),e(".symple-skillbar").each(function(){e(this).find(".symple-skillbar-bar").animate({width:e(this).attr("data-percent")},1500)}),e(".container").fitVids(),e(".prev-next .nav-prev a").addClass("fa fa-arrow-left"),e(".prev-next .nav-next a").addClass("fa fa-arrow-right"),e(".page-template-template-sitemap-php #main-content li a").before(' '),e("li.related:nth-child(3n+3), .testimonial-home li:nth-child(2n+1)").addClass("last"),e('.est-payment a[href*="#"]:not([href="#"]), .single-listings #listing-map-btn a[href*="#"]:not([href="#"]), .single-listings #listing-sections a[href*="#"]:not([href="#"]), .single-listings #call-email a[href*="#"]:not([href="#"]), .widget_ct_scrolltolistingcontact a[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var o=e(this.hash);if((o=o.length?o:e("[name="+this.hash.slice(1)+"]")).length)return e("html, body").animate({scrollTop:o.offset().top-220},1e3),!1}})}(jQuery);
var ctAccount=function(){var r=jQuery,o={},t={};return o.init=function(){t.loginForm=r("#ct_login_form"),t.loginSubmit=r("#ct_login_submit"),t.error_wrapper=r("#ct_account_errors"),t.loginSubmit.click(function(o){o.preventDefault();t.loginSubmit.serialize();return r("body").css("cursor","progress"),r.post(window.object_name.ct_ajax_url,r("#ct_login_form").serialize(),function(o){if("object"==typeof o)if(o.success)console.log(o),location.href=o.redirect;else if(r("body").css("cursor","default"),!o.success){for(var c='',e=0;eError : '+o.errors[e]+" ";c+="
",t.error_wrapper.html(c)}}),!1})},o}();jQuery(document).ready(function(r){"use strict";ctAccount.init()});
!function(t){"use strict";var a={init:function(e){return this.each(function(){this.self=t(this),a.destroy.call(this.self),this.opt=t.extend(!0,{},t.fn.raty.defaults,e),a._adjustCallback.call(this),a._adjustNumber.call(this),a._adjustHints.call(this),this.opt.score=a._adjustedScore.call(this,this.opt.score),"img"!==this.opt.starType&&a._adjustStarType.call(this),a._adjustPath.call(this),a._createStars.call(this),this.opt.cancel&&a._createCancel.call(this),this.opt.precision&&a._adjustPrecision.call(this),a._createScore.call(this),a._apply.call(this,this.opt.score),a._setTitle.call(this,this.opt.score),a._target.call(this,this.opt.score),this.opt.readOnly?a._lock.call(this):(this.style.cursor="pointer",a._binds.call(this))})},_adjustCallback:function(){for(var t=["number","readOnly","score","scoreName","target"],a=0;a0&&this.score.val(t),a._roundStars.call(this,t))},_between:function(t,a,e){return Math.min(Math.max(parseFloat(t),a),e)},_binds:function(){this.cancel&&(a._bindOverCancel.call(this),a._bindClickCancel.call(this),a._bindOutCancel.call(this)),a._bindOver.call(this),a._bindClick.call(this),a._bindOut.call(this)},_bindClick:function(){var e=this;e.stars.on("click.raty",function(s){var i=!0,o=e.opt.half||e.opt.precision?e.self.data("score"):this.alt||t(this).data("alt");e.opt.click&&(i=e.opt.click.call(e,+o,s)),(i||void 0===i)&&(e.opt.half&&!e.opt.precision&&(o=a._roundHalfScore.call(e,o)),a._apply.call(e,o))})},_bindClickCancel:function(){var t=this;t.cancel.on("click.raty",function(a){t.score.removeAttr("value"),t.opt.click&&t.opt.click.call(t,null,a)})},_bindOut:function(){var t=this;t.self.on("mouseleave.raty",function(e){var s=+t.score.val()||void 0;a._apply.call(t,s),a._target.call(t,s,e),a._resetTitle.call(t),t.opt.mouseout&&t.opt.mouseout.call(t,s,e)})},_bindOutCancel:function(){var t=this;t.cancel.on("mouseleave.raty",function(e){var s=t.opt.cancelOff;if("img"!==t.opt.starType&&(s=t.opt.cancelClass+" "+s),a._setIcon.call(t,this,s),t.opt.mouseout){var i=+t.score.val()||void 0;t.opt.mouseout.call(t,i,e)}})},_bindOver:function(){var t=this,e=t.opt.half?"mousemove.raty":"mouseover.raty";t.stars.on(e,function(e){var s=a._getScoreByPosition.call(t,e,this);a._fill.call(t,s),t.opt.half&&(a._roundStars.call(t,s,e),a._setTitle.call(t,s,e),t.self.data("score",s)),a._target.call(t,s,e),t.opt.mouseover&&t.opt.mouseover.call(t,s,e)})},_bindOverCancel:function(){var t=this;t.cancel.on("mouseover.raty",function(e){var s=t.opt.path+t.opt.starOff,i=t.opt.cancelOn;"img"===t.opt.starType?t.stars.attr("src",s):(i=t.opt.cancelClass+" "+i,t.stars.attr("class",s)),a._setIcon.call(t,this,i),a._target.call(t,null,e),t.opt.mouseover&&t.opt.mouseover.call(t,null)})},_buildScoreField:function(){return t(" ",{name:this.opt.scoreName,type:"hidden"}).appendTo(this)},_createCancel:function(){var a=this.opt.path+this.opt.cancelOff,e=t("<"+this.opt.starType+" />",{title:this.opt.cancelHint,class:this.opt.cancelClass});"img"===this.opt.starType?e.attr({src:a,alt:"x"}):e.attr("data-alt","x").addClass(a),"left"===this.opt.cancelPlace?this.self.prepend(" ").prepend(e):this.self.append(" ").append(e),this.cancel=e},_createScore:function(){var e=t(this.opt.targetScore);this.score=e.length?e:a._buildScoreField.call(this)},_createStars:function(){for(var e=1;e<=this.opt.number;e++){var s=a._nameForIndex.call(this,e),i={alt:e,src:this.opt.path+this.opt[s]};"img"!==this.opt.starType&&(i={"data-alt":e,class:i.src}),i.title=a._getHint.call(this,e),t("<"+this.opt.starType+" />",i).appendTo(this),this.opt.space&&this.self.append(ee){var n=this.opt.iconRange[e];i=a._getRangeIcon.call(this,n,r),s<=n.range&&a._setIcon.call(this,o,i),s===n.range&&e++}else i=this.opt[r?"starOn":"starOff"],a._setIcon.call(this,o,i)}},_getFirstDecimal:function(t){var a=t.toString().split(".")[1],e=0;return a&&(e=parseInt(a.charAt(0),10),"9999"===a.slice(1,5)&&e++),e},_getRangeIcon:function(t,a){return a?t.on||this.opt.starOn:t.off||this.opt.starOff},_getScoreByPosition:function(e,s){var i=parseInt(s.alt||s.getAttribute("data-alt"),10);if(this.opt.half){var o=a._getWidth.call(this);i=i-1+parseFloat((e.pageX-t(s).offset().left)/o)}return i},_getHint:function(t,e){if(0!==t&&!t)return this.opt.noRatedMsg;var s=a._getFirstDecimal.call(this,t),i=Math.ceil(t),o=this.opt.hints[(i||1)-1],r=o,n=!e||this.move;return this.opt.precision?(n&&(s=0===s?9:s-1),r=o[s]):(this.opt.halfShow||this.opt.half)&&(r=o[s=n&&0===s?1:s>5?1:0]),""===r?"":r||t},_getWidth:function(){var t=this.stars[0].width||parseFloat(this.stars.eq(0).css("font-size"));return t||a._error.call(this,"Could not get the icon width!"),t},_lock:function(){var t=a._getHint.call(this,this.score.val());this.style.cursor="",this.title=t,this.score.prop("readonly",!0),this.stars.prop("title",t),this.cancel&&this.cancel.hide(),this.self.data("readonly",!0)},_nameForIndex:function(t){return this.opt.score&&this.opt.score>=t?"starOn":"starOff"},_resetTitle:function(t){for(var e=0;e5?1:.5),e+s},_roundStars:function(t,e){var s,i=(t%1).toFixed(2);if(e||this.move?s=i>.5?"starOn":"starHalf":i>this.opt.round.down&&(s="starOn",this.opt.halfShow&&i1?a:a[0]},move:function(e){return this.each(function(){var s=parseInt(e,10),i=a._getFirstDecimal.call(this,e);s>=this.opt.number&&(s=this.opt.number-1,i=10);var o=a._getWidth.call(this)/10,r=t(this.stars[s]),n=r.offset().left+o*i,l=t.Event("mousemove",{pageX:n});this.move=!0,r.trigger(l),this.move=!1})},readOnly:function(e){return this.each(function(){var s=t(this);s.data("readonly")!==e&&(e?(s.off(".raty").children("img").off(".raty"),a._lock.call(this)):(a._binds.call(this),a._unlock.call(this)),s.data("readonly",e))})},reload:function(){return a.set.call(this,{})},score:function(){var e=t(this);return arguments.length?a.setScore.apply(e,arguments):a.getScore.call(e)},set:function(a){return this.each(function(){t(this).raty(t.extend({},this.opt,a))})},setScore:function(e){return this.each(function(){!0!==t(this).data("readonly")&&(e=a._adjustedScore.call(this,e),a._apply.call(this,e),a._target.call(this,e))})}};t.fn.raty=function(e){return a[e]?a[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist!"):a.init.apply(this,arguments)},t.fn.raty.defaults={cancel:!1,cancelClass:"raty-cancel",cancelHint:"Cancel this rating!",cancelOff:"cancel-off.png",cancelOn:"cancel-on.png",cancelPlace:"left",click:void 0,half:!1,halfShow:!0,hints:["bad","poor","regular","good","gorgeous"],iconRange:void 0,mouseout:void 0,mouseover:void 0,noRatedMsg:"Not rated yet!",number:5,numberMax:20,path:void 0,precision:!1,readOnly:!1,round:{down:.25,full:.6,up:.76},score:void 0,scoreName:"score",single:!1,space:!0,starHalf:"star-half.png",starOff:"star-off.png",starOn:"star-on.png",starType:"img",target:void 0,targetFormat:"{score}",targetKeep:!1,targetScore:void 0,targetText:"",targetType:"hint"}}(jQuery);
!function(t){t(document).ready(function(){var a=t("#add_comment_rating_wrap"),r=a.data("assets_path"),e=4;void 0!==t("#add_post_rating").attr("data-pixrating")&&(e=t("#add_post_rating").attr("data-pixrating")),a.raty({half:!1,target:"#add_post_rating",hints:pixreviews.hints,path:r,targetKeep:!0,targetType:"hint",score:e,scoreName:"pixrating",click:function(a,r){t("#add_post_rating").val(""+a),t('#add_post_rating option[value="'+a+'"]').attr("selected","selected")},starType:"i"}),t(".review_rate").raty({readOnly:!0,target:this,half:!1,starType:"i",score:function(){return t(this).attr("data-pixrating")},scoreName:"pixrating"})})}(jQuery);
(function(){function t(){}var n=this,r=n._,e=Array.prototype,o=Object.prototype,u=Function.prototype,i=e.push,c=e.slice,l=o.toString,a=o.hasOwnProperty,f=Array.isArray,s=Object.keys,p=u.bind,h=Object.create,v=function(n){return n instanceof v?n:this instanceof v?void(this._wrapped=n):new v(n)};"undefined"!=typeof exports?(exports="undefined"!=typeof module&&module.exports?module.exports=v:exports)._=v:n._=v,v.VERSION="1.8.3";var y=function(u,i,n){if(void 0===i)return u;switch(null==n?3:n){case 1:return function(n){return u.call(i,n)};case 2:return function(n,t){return u.call(i,n,t)};case 3:return function(n,t,r){return u.call(i,n,t,r)};case 4:return function(n,t,r,e){return u.call(i,n,t,r,e)}}return function(){return u.apply(i,arguments)}},d=function(n,t,r){return null==n?v.identity:v.isFunction(n)?y(n,t,r):v.isObject(n)?v.matcher(n):v.property(n)};v.iteratee=function(n,t){return d(n,t,1/0)};function g(n){return v.isObject(n)?h?h(n):(t.prototype=n,n=new t,t.prototype=null,n):{}}var m=function(c,f){return function(n){var t=arguments.length;if(t<2||null==n)return n;for(var r=1;r":">",'"':""","'":"'","`":"`"},f=v.invert(m),b=function(t){function r(n){return t[n]}var n="(?:"+v.keys(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,r):n}};v.escape=b(m),v.unescape=b(f),v.result=function(n,t,r){t=null==n?void 0:n[t];return void 0===t&&(t=r),v.isFunction(t)?t.call(n):t};var N=0;v.uniqueId=function(n){var t=++N+"";return n?n+t:t},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};function B(n){return"\\"+R[n]}var T=/(.)^/,R={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g;v.template=function(i,n,t){!n&&t&&(n=t),n=v.defaults({},n,v.templateSettings);var r=RegExp([(n.escape||T).source,(n.interpolate||T).source,(n.evaluate||T).source].join("|")+"|$","g"),o=0,a="__p+='";i.replace(r,function(n,t,r,e,u){return a+=i.slice(o,u).replace(q,B),o=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+(a=!n.variable?"with(obj||{}){\n"+a+"}\n":a)+"return __p;\n";try{var e=new Function(n.variable||"obj","_",a)}catch(n){throw n.source=a,n}t=function(n){return e.call(this,n,v)},r=n.variable||"obj";return t.source="function("+r+"){\n"+a+"}",t},v.chain=function(n){n=v(n);return n._chain=!0,n};function K(n,t){return n._chain?v(t).chain():t}v.mixin=function(r){v.each(v.functions(r),function(n){var t=v[n]=r[n];v.prototype[n]=function(){var n=[this._wrapped];return i.apply(n,arguments),K(this,t.apply(v,n))}})},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];v.prototype[t]=function(){var n=this._wrapped;return r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],K(this,n)}}),v.each(["concat","join","slice"],function(n){var t=e[n];v.prototype[n]=function(){return K(this,t.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return v})}).call(this);
!function(n){function t(e){if(r[e])return r[e].exports;var i=r[e]={exports:{},id:e,loaded:!1};return n[e].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=n,t.c=r,t.p="",t(0)}({0:function(n,t,r){"use strict";function e(){u(".alike-widget").length>0&&!function(){var n=null!==JSON.parse(localStorage.getItem("alikeData"))?JSON.parse(localStorage.getItem("alikeData")):[];n.length>0?u(".alike-widget-btn-wrap").show():u(".alike-widget-btn-wrap").hide();var t=_.template(u(".alike-list").html()),r=t({items:n}),o=[];n.forEach(function(n){o.push(n.postId)});var a=u(".alike-button-compare").data("page-url");u(".alike-button-compare").attr("href",a+"/?ids="+o.join([","])),u(".alike-widget").html(r).on("click",".alike-widget-remove",function(n){n.preventDefault();var t=u(this).data("post-id"),r=JSON.parse(window.localStorage.getItem("alikeData")),o=(0,i.findIndex)(r,{postId:t});-1!==o&&(r.splice(o,1),window.localStorage.setItem("alikeData",JSON.stringify(r)),e())}).next(".alike-widget-btn-wrap").on("click",".alike-button-clear",function(n){n.preventDefault(),window.localStorage.setItem("alikeData","[]"),e()})}()}var i=r(199),u=jQuery;u(".alike-button").on("click",function(n){n.preventDefault();var t=u(this).data("post-id"),r=u(this).data("post-title"),o=u(this).data("post-thumb"),a=u(this).data("post-link"),c=window.localStorage.getItem("alikeData")?JSON.parse(window.localStorage.getItem("alikeData")):[],l=(0,i.findIndex)(c,{postId:t});if(-1===l){var f={postId:t,postTitle:r,postThumb:o,postLink:a};c.length0?u(".alike-widget-btn-wrap").show():u(".alike-widget-btn-wrap").hide(),e()}),window.addEventListener("storage",e,!1)},199:function(n,t,r){var e,i,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};(function(){function r(n){function t(t,r,e,i,u,o){for(;u>=0&&o>u;u+=n){var a=i?i[u]:u;e=r(e,t[a],a,t)}return e}return function(r,e,i,u){e=S(e,u,4);var o=!M(r)&&_.keys(r),a=(o||r).length,c=n>0?0:a-1;return arguments.length<3&&(i=r[o?o[c]:c],c+=n),t(r,e,i,o,c,a)}}function o(n){return function(t,r,e){r=j(r,e);for(var i=N(t),u=n>0?0:i-1;u>=0&&i>u;u+=n)if(r(t[u],u,t))return u;return-1}}function a(n,t,r){return function(e,i,u){var o=0,a=N(e);if("number"==typeof u)n>0?o=u>=0?u:Math.max(u+a,o):a=u>=0?Math.min(u+1,a):u+a+1;else if(r&&u&&a)return u=r(e,i),e[u]===i?u:-1;if(i!==i)return u=t(d.call(e,o,a),_.isNaN),u>=0?u+o:-1;for(u=n>0?o:a-1;u>=0&&a>u;u+=n)if(e[u]===i)return u;return-1}}function c(n,t){var r=J.length,e=n.constructor,i=_.isFunction(e)&&e.prototype||p,u="constructor";for(_.has(n,u)&&!_.contains(t,u)&&t.push(u);r--;)u=J[r],u in n&&n[u]!==i[u]&&!_.contains(t,u)&&t.push(u)}var l=this,f=l._,s=Array.prototype,p=Object.prototype,h=Function.prototype,v=s.push,d=s.slice,y=p.toString,g=p.hasOwnProperty,m=Array.isArray,b=Object.keys,w=h.bind,k=Object.create,x=function(){},_=function Q(n){return n instanceof Q?n:this instanceof Q?void(this._wrapped=n):new Q(n)};"undefined"!=typeof n&&n.exports&&(t=n.exports=_),t._=_,_.VERSION="1.8.3";var S=function(n,t,r){if(void 0===t)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,i){return n.call(t,r,e,i)};case 4:return function(r,e,i,u){return n.call(t,r,e,i,u)}}return function(){return n.apply(t,arguments)}},j=function(n,t,r){return null==n?_.identity:_.isFunction(n)?S(n,t,r):_.isObject(n)?_.matcher(n):_.property(n)};_.iteratee=function(n,t){return j(n,t,1/0)};var O=function(n,t){return function(r){var e=arguments.length;if(2>e||null==r)return r;for(var i=1;e>i;i++)for(var u=arguments[i],o=n(u),a=o.length,c=0;a>c;c++){var l=o[c];t&&void 0!==r[l]||(r[l]=u[l])}return r}},A=function(n){if(!_.isObject(n))return{};if(k)return k(n);x.prototype=n;var t=new x;return x.prototype=null,t},I=function(n){return function(t){return null==t?void 0:t[n]}},E=Math.pow(2,53)-1,N=I("length"),M=function(n){var t=N(n);return"number"==typeof t&&t>=0&&E>=t};_.each=_.forEach=function(n,t,r){t=S(t,r);var e,i;if(M(n))for(e=0,i=n.length;i>e;e++)t(n[e],e,n);else{var u=_.keys(n);for(e=0,i=u.length;i>e;e++)t(n[u[e]],u[e],n)}return n},_.map=_.collect=function(n,t,r){t=j(t,r);for(var e=!M(n)&&_.keys(n),i=(e||n).length,u=Array(i),o=0;i>o;o++){var a=e?e[o]:o;u[o]=t(n[a],a,n)}return u},_.reduce=_.foldl=_.inject=r(1),_.reduceRight=_.foldr=r(-1),_.find=_.detect=function(n,t,r){var e;return e=M(n)?_.findIndex(n,t,r):_.findKey(n,t,r),void 0!==e&&-1!==e?n[e]:void 0},_.filter=_.select=function(n,t,r){var e=[];return t=j(t,r),_.each(n,function(n,r,i){t(n,r,i)&&e.push(n)}),e},_.reject=function(n,t,r){return _.filter(n,_.negate(j(t)),r)},_.every=_.all=function(n,t,r){t=j(t,r);for(var e=!M(n)&&_.keys(n),i=(e||n).length,u=0;i>u;u++){var o=e?e[u]:u;if(!t(n[o],o,n))return!1}return!0},_.some=_.any=function(n,t,r){t=j(t,r);for(var e=!M(n)&&_.keys(n),i=(e||n).length,u=0;i>u;u++){var o=e?e[u]:u;if(t(n[o],o,n))return!0}return!1},_.contains=_.includes=_.include=function(n,t,r,e){return M(n)||(n=_.values(n)),("number"!=typeof r||e)&&(r=0),_.indexOf(n,t,r)>=0},_.invoke=function(n,t){var r=d.call(arguments,2),e=_.isFunction(t);return _.map(n,function(n){var i=e?t:n[t];return null==i?i:i.apply(n,r)})},_.pluck=function(n,t){return _.map(n,_.property(t))},_.where=function(n,t){return _.filter(n,_.matcher(t))},_.findWhere=function(n,t){return _.find(n,_.matcher(t))},_.max=function(n,t,r){var e,i,u=-(1/0),o=-(1/0);if(null==t&&null!=n){n=M(n)?n:_.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],e>u&&(u=e)}else t=j(t,r),_.each(n,function(n,r,e){i=t(n,r,e),(i>o||i===-(1/0)&&u===-(1/0))&&(u=n,o=i)});return u},_.min=function(n,t,r){var e,i,u=1/0,o=1/0;if(null==t&&null!=n){n=M(n)?n:_.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],u>e&&(u=e)}else t=j(t,r),_.each(n,function(n,r,e){i=t(n,r,e),(o>i||i===1/0&&u===1/0)&&(u=n,o=i)});return u},_.shuffle=function(n){for(var t,r=M(n)?n:_.values(n),e=r.length,i=Array(e),u=0;e>u;u++)t=_.random(0,u),t!==u&&(i[u]=i[t]),i[t]=r[u];return i},_.sample=function(n,t,r){return null==t||r?(M(n)||(n=_.values(n)),n[_.random(n.length-1)]):_.shuffle(n).slice(0,Math.max(0,t))},_.sortBy=function(n,t,r){return t=j(t,r),_.pluck(_.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||void 0===r)return 1;if(e>r||void 0===e)return-1}return n.index-t.index}),"value")};var D=function(n){return function(t,r,e){var i={};return r=j(r,e),_.each(t,function(e,u){var o=r(e,u,t);n(i,e,o)}),i}};_.groupBy=D(function(n,t,r){_.has(n,r)?n[r].push(t):n[r]=[t]}),_.indexBy=D(function(n,t,r){n[r]=t}),_.countBy=D(function(n,t,r){_.has(n,r)?n[r]++:n[r]=1}),_.toArray=function(n){return n?_.isArray(n)?d.call(n):M(n)?_.map(n,_.identity):_.values(n):[]},_.size=function(n){return null==n?0:M(n)?n.length:_.keys(n).length},_.partition=function(n,t,r){t=j(t,r);var e=[],i=[];return _.each(n,function(n,r,u){(t(n,r,u)?e:i).push(n)}),[e,i]},_.first=_.head=_.take=function(n,t,r){return null!=n?null==t||r?n[0]:_.initial(n,n.length-t):void 0},_.initial=function(n,t,r){return d.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},_.last=function(n,t,r){return null!=n?null==t||r?n[n.length-1]:_.rest(n,Math.max(0,n.length-t)):void 0},_.rest=_.tail=_.drop=function(n,t,r){return d.call(n,null==t||r?1:t)},_.compact=function(n){return _.filter(n,_.identity)};var F=function V(n,t,r,e){for(var i=[],u=0,o=e||0,a=N(n);a>o;o++){var c=n[o];if(M(c)&&(_.isArray(c)||_.isArguments(c))){t||(c=V(c,t,r));var l=0,f=c.length;for(i.length+=f;f>l;)i[u++]=c[l++]}else r||(i[u++]=c)}return i};_.flatten=function(n,t){return F(n,t,!1)},_.without=function(n){return _.difference(n,d.call(arguments,1))},_.uniq=_.unique=function(n,t,r,e){_.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=j(r,e));for(var i=[],u=[],o=0,a=N(n);a>o;o++){var c=n[o],l=r?r(c,o,n):c;t?(o&&u===l||i.push(c),u=l):r?_.contains(u,l)||(u.push(l),i.push(c)):_.contains(i,c)||i.push(c)}return i},_.union=function(){return _.uniq(F(arguments,!0,!0))},_.intersection=function(n){for(var t=[],r=arguments.length,e=0,i=N(n);i>e;e++){var u=n[e];if(!_.contains(t,u)){for(var o=1;r>o&&_.contains(arguments[o],u);o++);o===r&&t.push(u)}}return t},_.difference=function(n){var t=F(arguments,!0,!0,1);return _.filter(n,function(n){return!_.contains(t,n)})},_.zip=function(){return _.unzip(arguments)},_.unzip=function(n){for(var t=n&&_.max(n,N).length||0,r=Array(t),e=0;t>e;e++)r[e]=_.pluck(n,e);return r},_.object=function(n,t){for(var r={},e=0,i=N(n);i>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},_.findIndex=o(1),_.findLastIndex=o(-1),_.sortedIndex=function(n,t,r,e){r=j(r,e,1);for(var i=r(t),u=0,o=N(n);o>u;){var a=Math.floor((u+o)/2);r(n[a])u;u++,n+=r)i[u]=n;return i};var T=function(n,t,r,e,i){if(!(e instanceof t))return n.apply(r,i);var u=A(n.prototype),o=n.apply(u,i);return _.isObject(o)?o:u};_.bind=function(n,t){if(w&&n.bind===w)return w.apply(n,d.call(arguments,1));if(!_.isFunction(n))throw new TypeError("Bind must be called on a function");var r=d.call(arguments,2),e=function i(){return T(n,i,t,this,r.concat(d.call(arguments)))};return e},_.partial=function(n){var t=d.call(arguments,1),r=function e(){for(var r=0,i=t.length,u=Array(i),o=0;i>o;o++)u[o]=t[o]===_?arguments[r++]:t[o];for(;r=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=_.bind(n[r],n);return n},_.memoize=function(n,t){var r=function e(r){var i=e.cache,u=""+(t?t.apply(this,arguments):r);return _.has(i,u)||(i[u]=n.apply(this,arguments)),i[u]};return r.cache={},r},_.delay=function(n,t){var r=d.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},_.defer=_.partial(_.delay,_,1),_.throttle=function(n,t,r){var e,i,u,o=null,a=0;r||(r={});var c=function(){a=r.leading===!1?0:_.now(),o=null,u=n.apply(e,i),o||(e=i=null)};return function(){var l=_.now();a||r.leading!==!1||(a=l);var f=t-(l-a);return e=this,i=arguments,0>=f||f>t?(o&&(clearTimeout(o),o=null),a=l,u=n.apply(e,i),o||(e=i=null)):o||r.trailing===!1||(o=setTimeout(c,f)),u}},_.debounce=function(n,t,r){var e,i,u,o,a,c=function l(){var c=_.now()-o;t>c&&c>=0?e=setTimeout(l,t-c):(e=null,r||(a=n.apply(u,i),e||(u=i=null)))};return function(){u=this,i=arguments,o=_.now();var l=r&&!e;return e||(e=setTimeout(c,t)),l&&(a=n.apply(u,i),u=i=null),a}},_.wrap=function(n,t){return _.partial(t,n)},_.negate=function(n){return function(){return!n.apply(this,arguments)}},_.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},_.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},_.before=function(n,t){var r;return function(){return--n>0&&(r=t.apply(this,arguments)),1>=n&&(t=null),r}},_.once=_.partial(_.before,2);var B=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];_.keys=function(n){if(!_.isObject(n))return[];if(b)return b(n);var t=[];for(var r in n)_.has(n,r)&&t.push(r);return B&&c(n,t),t},_.allKeys=function(n){if(!_.isObject(n))return[];var t=[];for(var r in n)t.push(r);return B&&c(n,t),t},_.values=function(n){for(var t=_.keys(n),r=t.length,e=Array(r),i=0;r>i;i++)e[i]=n[t[i]];return e},_.mapObject=function(n,t,r){t=j(t,r);for(var e,i=_.keys(n),u=i.length,o={},a=0;u>a;a++)e=i[a],o[e]=t(n[e],e,n);return o},_.pairs=function(n){for(var t=_.keys(n),r=t.length,e=Array(r),i=0;r>i;i++)e[i]=[t[i],n[t[i]]];return e},_.invert=function(n){for(var t={},r=_.keys(n),e=0,i=r.length;i>e;e++)t[n[r[e]]]=r[e];return t},_.functions=_.methods=function(n){var t=[];for(var r in n)_.isFunction(n[r])&&t.push(r);return t.sort()},_.extend=O(_.allKeys),_.extendOwn=_.assign=O(_.keys),_.findKey=function(n,t,r){t=j(t,r);for(var e,i=_.keys(n),u=0,o=i.length;o>u;u++)if(e=i[u],t(n[e],e,n))return e},_.pick=function(n,t,r){var e,i,u={},o=n;if(null==o)return u;_.isFunction(t)?(i=_.allKeys(o),e=S(t,r)):(i=F(arguments,!1,!1,1),e=function(n,t,r){return t in r},o=Object(o));for(var a=0,c=i.length;c>a;a++){var l=i[a],f=o[l];e(f,l,o)&&(u[l]=f)}return u},_.omit=function(n,t,r){if(_.isFunction(t))t=_.negate(t);else{var e=_.map(F(arguments,!1,!1,1),String);t=function(n,t){return!_.contains(e,t)}}return _.pick(n,t,r)},_.defaults=O(_.allKeys,!0),_.create=function(n,t){var r=A(n);return t&&_.extendOwn(r,t),r},_.clone=function(n){return _.isObject(n)?_.isArray(n)?n.slice():_.extend({},n):n},_.tap=function(n,t){return t(n),n},_.isMatch=function(n,t){var r=_.keys(t),e=r.length;if(null==n)return!e;for(var i=Object(n),u=0;e>u;u++){var o=r[u];if(t[o]!==i[o]||!(o in i))return!1}return!0};var K=function X(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof _&&(n=n._wrapped),t instanceof _&&(t=t._wrapped);var i=y.call(n);if(i!==y.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}var o="[object Array]"===i;if(!o){if("object"!=("undefined"==typeof n?"undefined":u(n))||"object"!=("undefined"==typeof t?"undefined":u(t)))return!1;var a=n.constructor,c=t.constructor;if(a!==c&&!(_.isFunction(a)&&a instanceof a&&_.isFunction(c)&&c instanceof c)&&"constructor"in n&&"constructor"in t)return!1}r=r||[],e=e||[];for(var l=r.length;l--;)if(r[l]===n)return e[l]===t;if(r.push(n),e.push(t),o){if(l=n.length,l!==t.length)return!1;for(;l--;)if(!X(n[l],t[l],r,e))return!1}else{var f,s=_.keys(n);if(l=s.length,_.keys(t).length!==l)return!1;for(;l--;)if(f=s[l],!_.has(t,f)||!X(n[f],t[f],r,e))return!1}return r.pop(),e.pop(),!0};_.isEqual=function(n,t){return K(n,t)},_.isEmpty=function(n){return null==n?!0:M(n)&&(_.isArray(n)||_.isString(n)||_.isArguments(n))?0===n.length:0===_.keys(n).length},_.isElement=function(n){return!(!n||1!==n.nodeType)},_.isArray=m||function(n){return"[object Array]"===y.call(n)},_.isObject=function(n){var t="undefined"==typeof n?"undefined":u(n);return"function"===t||"object"===t&&!!n},_.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(n){_["is"+n]=function(t){return y.call(t)==="[object "+n+"]"}}),_.isArguments(arguments)||(_.isArguments=function(n){return _.has(n,"callee")}),"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":u(Int8Array))&&(_.isFunction=function(n){return"function"==typeof n||!1}),_.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},_.isNaN=function(n){return _.isNumber(n)&&n!==+n},_.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===y.call(n)},_.isNull=function(n){return null===n},_.isUndefined=function(n){return void 0===n},_.has=function(n,t){return null!=n&&g.call(n,t)},_.noConflict=function(){return l._=f,this},_.identity=function(n){return n},_.constant=function(n){return function(){return n}},_.noop=function(){},_.property=I,_.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}},_.matcher=_.matches=function(n){return n=_.extendOwn({},n),function(t){return _.isMatch(t,n)}},_.times=function(n,t,r){var e=Array(Math.max(0,n));t=S(t,r,1);for(var i=0;n>i;i++)e[i]=t(i);return e},_.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},_.now=Date.now||function(){return(new Date).getTime()};var L={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},R=_.invert(L),q=function(n){var t=function(t){return n[t]},r="(?:"+_.keys(n).join("|")+")",e=RegExp(r),i=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(i,t):n}};_.escape=q(L),_.unescape=q(R),_.result=function(n,t,r){var e=null==n?void 0:n[t];return void 0===e&&(e=r),_.isFunction(e)?e.call(n):e};var z=0;_.uniqueId=function(n){var t=++z+"";return n?n+t:t},_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var P=/(.)^/,C={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},U=/\\|'|\r|\n|\u2028|\u2029/g,W=function(n){return"\\"+C[n]};_.template=function(n,t,r){!t&&r&&(t=r),t=_.defaults({},t,_.templateSettings);var e=RegExp([(t.escape||P).source,(t.interpolate||P).source,(t.evaluate||P).source].join("|")+"|$","g"),i=0,u="__p+='";n.replace(e,function(t,r,e,o,a){return u+=n.slice(i,a).replace(U,W),i=a+t.length,r?u+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?u+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(u+="';\n"+o+"\n__p+='"),t}),u+="';\n",t.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{var o=new Function(t.variable||"obj","_",u)}catch(a){throw a.source=u,a}var c=function(n){return o.call(this,n,_)},l=t.variable||"obj";return c.source="function("+l+"){\n"+u+"}",c},_.chain=function(n){var t=_(n);return t._chain=!0,t};var G=function(n,t){return n._chain?_(t).chain():t};_.mixin=function(n){_.each(_.functions(n),function(t){var r=_[t]=n[t];_.prototype[t]=function(){var n=[this._wrapped];return v.apply(n,arguments),G(this,r.apply(_,n))}})},_.mixin(_),_.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=s[n];_.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],G(this,r)}}),_.each(["concat","join","slice"],function(n){var t=s[n];_.prototype[n]=function(){return G(this,t.apply(this._wrapped,arguments))}}),_.prototype.value=function(){return this._wrapped},_.prototype.valueOf=_.prototype.toJSON=_.prototype.value,_.prototype.toString=function(){return""+this._wrapped},e=[],i=function(){return _}.apply(t,e),!(void 0!==i&&(n.exports=i))}).call(void 0)}});
!function(a){"use strict";function b(a){return(a||"").toLowerCase()}var c="2.1.6";a.fn.gp_cycle=function(c){var d;return 0!==this.length||a.isReady?this.each(function(){var d,e,f,g,h=a(this),i=a.fn.gp_cycle.log;if(!h.data("cycle.opts")){(h.data("cycle-log")===!1||c&&c.log===!1||e&&e.log===!1)&&(i=a.noop),i("--c2 init--"),d=h.data();for(var j in d)d.hasOwnProperty(j)&&/^cycle[A-Z]+/.test(j)&&(g=d[j],f=j.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),i(f+":",g,"("+typeof g+")"),d[f]=g);e=a.extend({},a.fn.gp_cycle.defaults,d,c||{}),e.timeoutId=0,e.paused=e.paused||!1,e.container=h,e._maxZ=e.maxZ,e.API=a.extend({_container:h},a.fn.gp_cycle.API),e.API.log=i,e.API.trigger=function(a,b){return e.container.trigger(a,b),e.API},h.data("cycle.opts",e),h.data("cycle.API",e.API),e.API.trigger("cycle-bootstrap",[e,e.API]),e.API.addInitialSlides(),e.API.preInitSlideshow(),e.slides.length&&e.API.initSlideshow()}}):(d={s:this.selector,c:this.context},a.fn.gp_cycle.log("requeuing slideshow (dom not ready)"),a(function(){a(d.s,d.c).gp_cycle(c)}),this)},a.fn.gp_cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var b=this.opts(),c=b.slides;b.slideCount=0,b.slides=a(),c=c.jquery?c:b.container.find(c),b.random&&c.sort(function(){return Math.random()-.5}),b.API.add(c)},preInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-pre-initialize",[b]);var c=a.fn.gp_cycle.transitions[b.fx];c&&a.isFunction(c.preInit)&&c.preInit(b),b._preInitialized=!0},postInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-post-initialize",[b]);var c=a.fn.gp_cycle.transitions[b.fx];c&&a.isFunction(c.postInit)&&c.postInit(b)},initSlideshow:function(){var b,c=this.opts(),d=c.container;c.API.calcFirstSlide(),"static"==c.container.css("position")&&c.container.css("position","relative"),a(c.slides[c.currSlide]).css({opacity:1,display:"block",visibility:"visible"}),c.API.stackSlides(c.slides[c.currSlide],c.slides[c.nextSlide],!c.reverse),c.pauseOnHover&&(c.pauseOnHover!==!0&&(d=a(c.pauseOnHover)),d.hover(function(){c.API.pause(!0)},function(){c.API.resume(!0)})),c.timeout&&(b=c.API.getSlideOpts(c.currSlide),c.API.queueTransition(b,b.timeout+c.delay)),c._initialized=!0,c.API.updateView(!0),c.API.trigger("cycle-initialized",[c]),c.API.postInitSlideshow()},pause:function(b){var c=this.opts(),d=c.API.getSlideOpts(),e=c.hoverPaused||c.paused;b?c.hoverPaused=!0:c.paused=!0,e||(c.container.addClass("cycle-paused"),c.API.trigger("cycle-paused",[c]).log("cycle-paused"),d.timeout&&(clearTimeout(c.timeoutId),c.timeoutId=0,c._remainingTimeout-=a.now()-c._lastQueue,(c._remainingTimeout<0||isNaN(c._remainingTimeout))&&(c._remainingTimeout=void 0)))},resume:function(a){var b=this.opts(),c=!b.hoverPaused&&!b.paused;a?b.hoverPaused=!1:b.paused=!1,c||(b.container.removeClass("cycle-paused"),0===b.slides.filter(":animated").length&&b.API.queueTransition(b.API.getSlideOpts(),b._remainingTimeout),b.API.trigger("cycle-resumed",[b,b._remainingTimeout]).log("cycle-resumed"))},add:function(b,c){var d,e=this.opts(),f=e.slideCount,g=!1;"string"==a.type(b)&&(b=a.trim(b)),a(b).each(function(){var b,d=a(this);c?e.container.prepend(d):e.container.append(d),e.slideCount++,b=e.API.buildSlideOpts(d),e.slides=c?a(d).add(e.slides):e.slides.add(d),e.API.initSlide(b,d,--e._maxZ),d.data("cycle.opts",b),e.API.trigger("cycle-slide-added",[e,b,d])}),e.API.updateView(!0),g=e._preInitialized&&2>f&&e.slideCount>=1,g&&(e._initialized?e.timeout&&(d=e.slides.length,e.nextSlide=e.reverse?d-1:1,e.timeoutId||e.API.queueTransition(e)):e.API.initSlideshow())},calcFirstSlide:function(){var a,b=this.opts();a=parseInt(b.startingSlide||0,10),(a>=b.slides.length||0>a)&&(a=0),b.currSlide=a,b.reverse?(b.nextSlide=a-1,b.nextSlide<0&&(b.nextSlide=b.slides.length-1)):(b.nextSlide=a+1,b.nextSlide==b.slides.length&&(b.nextSlide=0))},calcNextSlide:function(){var a,b=this.opts();b.reverse?(a=b.nextSlide-1<0,b.nextSlide=a?b.slideCount-1:b.nextSlide-1,b.currSlide=a?0:b.nextSlide+1):(a=b.nextSlide+1==b.slides.length,b.nextSlide=a?0:b.nextSlide+1,b.currSlide=a?b.slides.length-1:b.nextSlide-1)},calcTx:function(b,c){var d,e=b;return e._tempFx?d=a.fn.gp_cycle.transitions[e._tempFx]:c&&e.manualFx&&(d=a.fn.gp_cycle.transitions[e.manualFx]),d||(d=a.fn.gp_cycle.transitions[e.fx]),e._tempFx=null,this.opts()._tempFx=null,d||(d=a.fn.gp_cycle.transitions.fade,e.API.log('Transition "'+e.fx+'" not found. Using fade.')),d},prepareTx:function(a,b){var c,d,e,f,g,h=this.opts();return h.slideCount<2?void(h.timeoutId=0):(!a||h.busy&&!h.manualTrump||(h.API.stopTransition(),h.busy=!1,clearTimeout(h.timeoutId),h.timeoutId=0),void(h.busy||(0!==h.timeoutId||a)&&(d=h.slides[h.currSlide],e=h.slides[h.nextSlide],f=h.API.getSlideOpts(h.nextSlide),g=h.API.calcTx(f,a),h._tx=g,a&&void 0!==f.manualSpeed&&(f.speed=f.manualSpeed),h.nextSlide!=h.currSlide&&(a||!h.paused&&!h.hoverPaused&&h.timeout)?(h.API.trigger("cycle-before",[f,d,e,b]),g.before&&g.before(f,d,e,b),c=function(){h.busy=!1,h.container.data("cycle.opts")&&(g.after&&g.after(f,d,e,b),h.API.trigger("cycle-after",[f,d,e,b]),h.API.queueTransition(f),h.API.updateView(!0))},h.busy=!0,g.transition?g.transition(f,d,e,b,c):h.API.doTransition(f,d,e,b,c),h.API.calcNextSlide(),h.API.updateView()):h.API.queueTransition(f))))},doTransition:function(b,c,d,e,f){var g=b,h=a(c),i=a(d),j=function(){i.animate(g.animIn||{opacity:1},g.speed,g.easeIn||g.easing,f)};i.css(g.cssBefore||{}),h.animate(g.animOut||{},g.speed,g.easeOut||g.easing,function(){h.css(g.cssAfter||{}),g.sync||j()}),g.sync&&j()},queueTransition:function(b,c){var d=this.opts(),e=void 0!==c?c:b.timeout;return 0===d.nextSlide&&0===--d.loop?(d.API.log("terminating; loop=0"),d.timeout=0,e?setTimeout(function(){d.API.trigger("cycle-finished",[d])},e):d.API.trigger("cycle-finished",[d]),void(d.nextSlide=d.currSlide)):void 0!==d.continueAuto&&(d.continueAuto===!1||a.isFunction(d.continueAuto)&&d.continueAuto()===!1)?(d.API.log("terminating automatic transitions"),d.timeout=0,void(d.timeoutId&&clearTimeout(d.timeoutId))):void(e&&(d._lastQueue=a.now(),void 0===c&&(d._remainingTimeout=b.timeout),d.paused||d.hoverPaused||(d.timeoutId=setTimeout(function(){d.API.prepareTx(!1,!d.reverse)},e))))},stopTransition:function(){var a=this.opts();a.slides.filter(":animated").length&&(a.slides.stop(!1,!0),a.API.trigger("cycle-transition-stopped",[a])),a._tx&&a._tx.stopTransition&&a._tx.stopTransition(a)},advanceSlide:function(a){var b=this.opts();return clearTimeout(b.timeoutId),b.timeoutId=0,b.nextSlide=b.currSlide+a,b.nextSlide<0?b.nextSlide=b.slides.length-1:b.nextSlide>=b.slides.length&&(b.nextSlide=0),b.API.prepareTx(!0,a>=0),!1},buildSlideOpts:function(c){var d,e,f=this.opts(),g=c.data()||{};for(var h in g)g.hasOwnProperty(h)&&/^cycle[A-Z]+/.test(h)&&(d=g[h],e=h.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),f.API.log("["+(f.slideCount-1)+"]",e+":",d,"("+typeof d+")"),g[e]=d);g=a.extend({},a.fn.gp_cycle.defaults,f,g),g.slideNum=f.slideCount;try{delete g.API,delete g.slideCount,delete g.currSlide,delete g.nextSlide,delete g.slides}catch(i){}return g},getSlideOpts:function(b){var c=this.opts();void 0===b&&(b=c.currSlide);var d=c.slides[b],e=a(d).data("cycle.opts");return a.extend({},c,e)},initSlide:function(b,c,d){var e=this.opts();c.css(b.slideCss||{}),d>0&&c.css("zIndex",d),isNaN(b.speed)&&(b.speed=a.fx.speeds[b.speed]||a.fx.speeds._default),b.sync||(b.speed=b.speed/2),c.addClass(e.slideClass)},updateView:function(a,b){var c=this.opts();if(c._initialized){var d=c.API.getSlideOpts(),e=c.slides[c.currSlide];!a&&b!==!0&&(c.API.trigger("cycle-update-view-before",[c,d,e]),c.updateView<0)||(c.slideActiveClass&&c.slides.removeClass(c.slideActiveClass).eq(c.currSlide).addClass(c.slideActiveClass),a&&c.hideNonActive&&c.slides.filter(":not(."+c.slideActiveClass+")").css("visibility","hidden"),0===c.updateView&&setTimeout(function(){c.API.trigger("cycle-update-view",[c,d,e,a])},d.speed/(c.sync?2:1)),0!==c.updateView&&c.API.trigger("cycle-update-view",[c,d,e,a]),a&&c.API.trigger("cycle-update-view-after",[c,d,e]))}},getComponent:function(b){var c=this.opts(),d=c[b];return"string"==typeof d?/^\s*[\>|\+|~]/.test(d)?c.container.find(d):a(d):d.jquery?d:a(d)},stackSlides:function(b,c,d){var e=this.opts();b||(b=e.slides[e.currSlide],c=e.slides[e.nextSlide],d=!e.reverse),a(b).css("zIndex",e.maxZ);var f,g=e.maxZ-2,h=e.slideCount;if(d){for(f=e.currSlide+1;h>f;f++)a(e.slides[f]).css("zIndex",g--);for(f=0;f=0;f--)a(e.slides[f]).css("zIndex",g--);for(f=h-1;f>e.currSlide;f--)a(e.slides[f]).css("zIndex",g--)}a(c).css("zIndex",e.maxZ-1)},getSlideIndex:function(a){return this.opts().slides.index(a)}},a.fn.gp_cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},a.fn.gp_cycle.version=function(){return"Cycle2: "+c},a.fn.gp_cycle.transitions={custom:{},none:{before:function(a,b,c,d){a.API.stackSlides(c,b,d),a.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:0,visibility:"visible",display:"block"}),b.animIn={opacity:1},b.animOut={opacity:0}}},fadeout:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:1,visibility:"visible",display:"block"}),b.animOut={opacity:0}}},scrollHorz:{before:function(a,b,c,d){a.API.stackSlides(b,c,d);var e=a.container.css("overflow","hidden").width();a.cssBefore={left:d?e:-e,top:0,opacity:1,visibility:"visible",display:"block"},a.cssAfter={zIndex:a._maxZ-2,left:0},a.animIn={left:0},a.animOut={left:d?-e:e}}}},a.fn.gp_cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0},a(document).ready(function(){a(a.fn.gp_cycle.defaults.autoSelector).gp_cycle()})}(jQuery),
function(a){"use strict";function b(b,d){var e,f,g,h=d.autoHeight;if("container"==h)f=a(d.slides[d.currSlide]).outerHeight(),d.container.height(f);else if(d._autoHeightRatio)d.container.height(d.container.width()/d._autoHeightRatio);else if("calc"===h||"number"==a.type(h)&&h>=0){if(g="calc"===h?c(b,d):h>=d.slides.length?0:h,g==d._sentinelIndex)return;d._sentinelIndex=g,d._sentinel&&d._sentinel.remove(),e=a(d.slides[g].cloneNode(!0)),e.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),e.css({position:"static",visibility:"hidden",display:"block"}).prependTo(d.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active"),e.find("*").css("visibility","hidden"),d._sentinel=e}}function c(b,c){var d=0,e=-1;return c.slides.each(function(b){var c=a(this).height();c>e&&(e=c,d=b)}),d}function d(b,c,d,e){var f=a(e).outerHeight();c.container.animate({height:f},c.autoHeightSpeed,c.autoHeightEasing)}function e(c,f){f._autoHeightOnResize&&(a(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null),f.container.off("cycle-slide-added cycle-slide-removed",b),f.container.off("cycle-destroyed",e),f.container.off("cycle-before",d),f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}a.extend(a.fn.gp_cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null}),a(document).on("cycle-initialized",function(c,f){function g(){b(c,f)}var h,i=f.autoHeight,j=a.type(i),k=null;("string"===j||"number"===j)&&(f.container.on("cycle-slide-added cycle-slide-removed",b),f.container.on("cycle-destroyed",e),"container"==i?f.container.on("cycle-before",d):"string"===j&&/\d+\:\d+/.test(i)&&(h=i.match(/(\d+)\:(\d+)/),h=h[1]/h[2],f._autoHeightRatio=h),"number"!==j&&(f._autoHeightOnResize=function(){clearTimeout(k),k=setTimeout(g,50)},a(window).on("resize orientationchange",f._autoHeightOnResize)),setTimeout(g,30))})}(jQuery),
function(a){"use strict";a.extend(a.fn.gp_cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"{{title}}
{{desc}}
",captionModule:"caption"}),a(document).on("cycle-update-view",function(b,c,d,e){if("caption"===c.captionModule){a.each(["caption","overlay"],function(){var a=this,b=d[a+"Template"],f=c.API.getComponent(a);f.length&&b?(f.html(c.API.tmpl(b,d,c,e)),f.show()):f.hide()})}}),a(document).on("cycle-destroyed",function(b,c){var d;a.each(["caption","overlay"],function(){var a=this,b=c[a+"Template"];c[a]&&b&&(d=c.API.getComponent("caption"),d.empty())})})}(jQuery),
function(a){"use strict";var b=a.fn.gp_cycle;a.fn.gp_cycle=function(c){var d,e,f,g=a.makeArray(arguments);return"number"==a.type(c)?this.gp_cycle("goto",c):"string"==a.type(c)?this.each(function(){var h;return d=c,f=a(this).data("cycle.opts"),void 0===f?void b.log('slideshow must be initialized before sending commands; "'+d+'" ignored'):(d="goto"==d?"jump":d,e=f.API[d],a.isFunction(e)?(h=a.makeArray(g),h.shift(),e.apply(f.API,h)):void b.log("unknown command: ",d))}):b.apply(this,arguments)},a.extend(a.fn.gp_cycle,b),a.extend(b.API,{next:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?-1:1;a.allowWrap===!1&&a.currSlide+b>=a.slideCount||(a.API.advanceSlide(b),a.API.trigger("cycle-next",[a]).log("cycle-next"))}},prev:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?1:-1;a.allowWrap===!1&&a.currSlide+b<0||(a.API.advanceSlide(b),a.API.trigger("cycle-prev",[a]).log("cycle-prev"))}},destroy:function(){this.stop();var b=this.opts(),c=a.isFunction(a._data)?a._data:a.noop;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stop(),b.API.trigger("cycle-destroyed",[b]).log("cycle-destroyed"),b.container.removeData(),c(b.container[0],"parsedAttrs",!1),b.retainStylesOnDestroy||(b.container.removeAttr("style"),b.slides.removeAttr("style"),b.slides.removeClass(b.slideActiveClass)),b.slides.each(function(){var d=a(this);d.removeData(),d.removeClass(b.slideClass),c(this,"parsedAttrs",!1)})},jump:function(a,b){var c,d=this.opts();if(!d.busy||d.manualTrump){var e=parseInt(a,10);if(isNaN(e)||0>e||e>=d.slides.length)return void d.API.log("goto: invalid slide index: "+e);if(e==d.currSlide)return void d.API.log("goto: skipping, already on slide",e);d.nextSlide=e,clearTimeout(d.timeoutId),d.timeoutId=0,d.API.log("goto: ",e," (zero-index)"),c=d.currSlide .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:"• "}),a(document).on("cycle-bootstrap",function(a,c,d){d.buildPagerLink=b}),a(document).on("cycle-slide-added",function(a,b,d,e){b.pager&&(b.API.buildPagerLink(b,d,e),b.API.page=c)}),a(document).on("cycle-slide-removed",function(b,c,d){if(c.pager){var e=c.API.getComponent("pager");e.each(function(){var b=a(this);a(b.children()[d]).remove()})}}),a(document).on("cycle-update-view",function(b,c){var d;c.pager&&(d=c.API.getComponent("pager"),d.each(function(){a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass)}))}),a(document).on("cycle-destroyed",function(a,b){var c=b.API.getComponent("pager");c&&(c.children().off(b.pagerEvent),b.pagerTemplate&&c.empty())})}(jQuery),
function(a){"use strict";a.extend(a.fn.gp_cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),a(document).on("cycle-initialized",function(a,b){if(b.API.getComponent("next").on(b.nextEvent,function(a){a.preventDefault(),b.API.next()}),b.API.getComponent("prev").on(b.prevEvent,function(a){a.preventDefault(),b.API.prev()}),b.swipe){var c=b.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",d=b.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";b.container.on(c,function(){b._tempFx=b.swipeFx,b.API.next()}),b.container.on(d,function(){b._tempFx=b.swipeFx,b.API.prev()})}}),a(document).on("cycle-update-view",function(a,b){if(!b.allowWrap){var c=b.disabledClass,d=b.API.getComponent("next"),e=b.API.getComponent("prev"),f=b._prevBoundry||0,g=void 0!==b._nextBoundry?b._nextBoundry:b.slideCount-1;b.currSlide==g?d.addClass(c).prop("disabled",!0):d.removeClass(c).prop("disabled",!1),b.currSlide===f?e.addClass(c).prop("disabled",!0):e.removeClass(c).prop("disabled",!1)}}),a(document).on("cycle-destroyed",function(a,b){b.API.getComponent("prev").off(b.nextEvent),b.API.getComponent("next").off(b.prevEvent),b.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),
function(a){"use strict";a.extend(a.fn.gp_cycle.defaults,{progressive:!1}),a(document).on("cycle-pre-initialize",function(b,c){if(c.progressive){var d,e,f=c.API,g=f.next,h=f.prev,i=f.prepareTx,j=a.type(c.progressive);if("array"==j)d=c.progressive;else if(a.isFunction(c.progressive))d=c.progressive(c);else if("string"==j){if(e=a(c.progressive),d=a.trim(e.html()),!d)return;if(/^(\[)/.test(d))try{d=a.parseJSON(d)}catch(k){return void f.log("error parsing progressive slides",k)}else d=d.split(new RegExp(e.data("cycle-split")||"\n")),d[d.length-1]||d.pop()}i&&(f.prepareTx=function(a,b){var e,f;return a||0===d.length?void i.apply(c.API,[a,b]):void(b&&c.currSlide==c.slideCount-1?(f=d[0],d=d.slice(1),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.API.advanceSlide(1)},50)}),c.API.add(f)):b||0!==c.currSlide?i.apply(c.API,[a,b]):(e=d.length-1,f=d[e],d=d.slice(0,e),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.currSlide=1,b.API.advanceSlide(-1)},50)}),c.API.add(f,!0)))}),g&&(f.next=function(){var a=this.opts();if(d.length&&a.currSlide==a.slideCount-1){var b=d[0];d=d.slice(1),a.container.one("cycle-slide-added",function(a,b){g.apply(b.API),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(b)}else g.apply(a.API)}),h&&(f.prev=function(){var a=this.opts();if(d.length&&0===a.currSlide){var b=d.length-1,c=d[b];d=d.slice(0,b),a.container.one("cycle-slide-added",function(a,b){b.currSlide=1,b.API.advanceSlide(-1),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(c,!0)}else h.apply(a.API)})}})}(jQuery),
function(a){"use strict";a.extend(a.fn.gp_cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),a.extend(a.fn.gp_cycle.API,{tmpl:function(b,c){var d=new RegExp(c.tmplRegex||a.fn.gp_cycle.defaults.tmplRegex,"g"),e=a.makeArray(arguments);return e.shift(),b.replace(d,function(b,c){var d,f,g,h,i=c.split(".");for(d=0;d1)for(h=g,f=0;f