jQuery(document).ready(function($){"use strict";var userID=UserInfo.userID,ajaxurl=UserInfo.ajaxurl,process_loader_spinner=UserInfo.process_loader_spinner,confirm_message=UserInfo.confirm;$(".esetting").each(function(i){var $this=$(this);$this.change(function(e){e.preventDefault();var id=$(this).data("propid"),esetting=$(this).val();0===parseInt(userID,10)?$("#overlay").addClass("open"):$.ajax({url:ajaxurl,data:{action:"ct_email_cron_onoff",esetting:esetting,id:id,author_id:userID},method:"POST",dataType:"JSON",beforeSend:function(){$this.next("span.customSelect").css("border","1px solid greenyellow")},success:function(e){e.success&&console.log(e)},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)},complete:function(){$this.next("span.customSelect").css("border","1px solid #d5d9dd"),$this.addClass("set")}})})}),$("#searched-save-search").click(function(e){e.preventDefault();var $this=$(this),$form=$(".form-searched-save-search"),serialized=$form.serialize();0===parseInt(userID,10)?$("#overlay").addClass("open"):$.ajax({url:ajaxurl,data:serialized,method:"POST",dataType:"JSON",beforeSend:function(){$this.children("i").remove(),$this.prepend('')},success:function(e){e.success&&($("#searched-save-search").addClass("saved"),$("#searched-save-search").html("Search Saved"))},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)},complete:function(){$this.children("i").removeClass(process_loader_spinner)}})}),$("#ct-alert-creation").click(function(e){e.preventDefault();var $this=$(this),$form=$(".ctea-alert-creation-form"),serialized=$form.serialize();0===parseInt(userID,10)?$("#overlay").addClass("open"):$.ajax({url:ajaxurl,data:serialized,method:"POST",dataType:"JSON",beforeSend:function(){$this.children("i").remove(),$this.prepend('')},success:function(e){e.success&&($("#ct-alert-creation").addClass("saved"),location.reload())},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)},complete:function(){$this.children("i").removeClass(process_loader_spinner)}})}),$(".remove-search").click(function(e){e.preventDefault();var $this=$(this),prop_id=$this.data("propertyid"),removeBlock=$this.closest(".saved-search-block");confirm(confirm_message)&&$.ajax({url:ajaxurl,dataType:"JSON",method:"POST",data:{action:"ct_delete_search",property_id:prop_id},beforeSend:function(){$this.children("i").remove(),$this.prepend('')},success:function(e){e.success&&removeBlock.remove()},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");console.log(err.Message)}})})}); jQuery("#mortgageCalc").click(function(){var e,a,r;return a=12*parseInt(jQuery("#mcTerm").val()),0==(r=parseFloat(jQuery("#mcRate").val()))&&(r=1e-5),e=(parseInt(jQuery("#mcPrice").val())-parseFloat(jQuery("#mcDown").val()))*((r/=1200)*Math.pow(1+r,a))/(Math.pow(1+r,a)-1),isNaN(e)?jQuery("#mcPayment").val("There was an error"):jQuery("#mcPayment").text(e.toFixed(2)),!1}); !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){var t,e,n,W,C,o,s,r,l,a,i,h;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function H(t,e){return parseInt(x.css(t,e),10)||0}x.ui=x.ui||{},x.ui.version="1.12.1", x.extend(x.expr[":"],{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}), x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),x.ui.escapeSelector=(e=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(e,"\\$1")}), x.ui.focusable=function(t,e){var i,n,o,s,r=t.nodeName.toLowerCase();return"area"===r?(n=(i=t.parentNode).name,!(!t.href||!n||"map"!==i.nodeName.toLowerCase())&&(0<(n=x("img[usemap='#"+n+"']")).length&&n.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(o=!t.disabled)&&(s=x(t).closest("fieldset")[0])&&(o=!s.disabled):o="a"===r&&t.href||e,o&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}(x(t)))},x.extend(x.expr[":"],{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)}, x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element.form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()), "1.7"===x.fn.jquery.substring(0,3)&&(x.each(["Width","Height"],function(t,i){var o="Width"===i?["Left","Right"]:["Top","Bottom"],n=i.toLowerCase(),s={innerWidth:x.fn.innerWidth,innerHeight:x.fn.innerHeight,outerWidth:x.fn.outerWidth,outerHeight:x.fn.outerHeight};function r(t,e,i,n){return x.each(o,function(){e-=parseFloat(x.css(t,"padding"+this))||0,i&&(e-=parseFloat(x.css(t,"border"+this+"Width"))||0),n&&(e-=parseFloat(x.css(t,"margin"+this))||0)}),e}x.fn["inner"+i]=function(t){return void 0===t?s["inner"+i].call(this):this.each(function(){x(this).css(n,r(this,t)+"px")})},x.fn["outer"+i]=function(t,e){return"number"!=typeof t?s["outer"+i].call(this,t):this.each(function(){x(this).css(n,r(this,t,!0,e)+"px")})}}),x.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}), x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}, x.fn.labels=function(){var t,e,i;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.ui.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e))},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o
"),i=e.children()[0];return x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthW(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i=e.within,n=i.isWindow?i.scrollLeft:i.offset.left,o=i.width,s=t.left-e.collisionPosition.marginLeft,r=n-s,l=s+e.collisionWidth-o-n;e.collisionWidth>o?0o?0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=f++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}); !function(e){"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],e):e(jQuery)}(function(o){return o.widget("ui.slider",o.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t=this.options,i=this.element.find(".ui-slider-handle"),s=[],a=t.values&&t.values.length||1;for(i.length>a&&(i.slice(a).remove(),i=i.slice(0,a)),e=i.length;e");this.handles=i.add(o(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){o(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:o.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=o("
").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,a,n,t,h,l=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),h={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(h),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t=this._valueMax())return this._valueMax();var t=0=t&&(e+=0this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return e=null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var t=e.toString(),e=t.indexOf(".");return-1===e?0:t.length-e-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,e,s,a,n=this.options.range,h=this.options,l=this,u=!this._animateOff&&h.animate,r={};this._hasMultipleValues()?this.handles.each(function(e){i=(l.values(e)-l._valueMin())/(l._valueMax()-l._valueMin())*100,r["horizontal"===l.orientation?"left":"bottom"]=i+"%",o(this).stop(1,1)[u?"animate":"css"](r,h.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===e&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:h.animate})):(0===e&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:h.animate}))),t=i}):(e=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(e-s)/(a-s)*100:0,r["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](r,h.animate),"min"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},h.animate),"max"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},h.animate),"min"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},h.animate),"max"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},h.animate))},_handleEvents:{keydown:function(e){var t,i,s,a=o(e.target).data("ui-slider-handle-index");switch(e.keyCode){case o.ui.keyCode.HOME:case o.ui.keyCode.END:case o.ui.keyCode.PAGE_UP:case o.ui.keyCode.PAGE_DOWN:case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(o(e.target),null,"ui-state-active"),!1===this._start(e,a)))return}switch(s=this.options.step,t=i=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case o.ui.keyCode.HOME:i=this._valueMin();break;case o.ui.keyCode.END:i=this._valueMax();break;case o.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+s);break;case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-s)}this._slide(e,a,i)},keyup:function(e){var t=o(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),this._removeClass(o(e.target),null,"ui-state-active"))}}})}); !function(o){function t(o,t){if(!(o.originalEvent.touches.length>1)){o.preventDefault();var e=o.originalEvent.changedTouches[0],u=document.createEvent("MouseEvents");u.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),o.target.dispatchEvent(u)}}if(o.support.touch="ontouchend"in document,o.support.touch){var e,u=o.ui.mouse.prototype,n=u._mouseInit,c=u._mouseDestroy;u._touchStart=function(o){!e&&this._mouseCapture(o.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,t(o,"mouseover"),t(o,"mousemove"),t(o,"mousedown"))},u._touchMove=function(o){e&&(this._touchMoved=!0,t(o,"mousemove"))},u._touchEnd=function(o){e&&(t(o,"mouseup"),t(o,"mouseout"),this._touchMoved||t(o,"click"),e=!1)},u._mouseInit=function(){var t=this;t.element.bind({touchstart:o.proxy(t,"_touchStart"),touchmove:o.proxy(t,"_touchMove"),touchend:o.proxy(t,"_touchEnd")}),n.call(t)},u._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:o.proxy(t,"_touchStart"),touchmove:o.proxy(t,"_touchMove"),touchend:o.proxy(t,"_touchEnd")}),c.call(t)}}}(jQuery); jQuery(function(e){e(document).ready(function(){e("#masthead .sub-menu li a").before(''),e(".mobile-nav ul").removeClass("cbp-tm-menu"),e(".mobile-nav ul").addClass("cbp-spmenu"),e('
',{}).appendTo("#masthead");var s=document.getElementById("cbp-spmenu"),o=document.getElementById("showLeftPush"),n=document.getElementById("showLeftPushIcon"),t=document.body;container=document.getElementById("wrapper"),o.onclick=function(){e("body").bind("touchmove",function(e){e.preventDefault()}),classie.toggle(this,"active"),classie.toggle(t,"cbp-spmenu-push-toleft"),classie.toggle(t,"stop-scrolling"),classie.toggle(s,"cbp-spmenu-open"),classie.toggle(n,"fa-close")},e("body").hasClass("stop-scrolling")||e("body").unbind("touchmove")})}); !function(e){if("function"==typeof define&&define.amd)define(e);else if("object"==typeof exports)module.exports=e();else{var n=window.Cookies,o=window.Cookies=e();o.noConflict=function(){return window.Cookies=n,o}}}(function(){function e(){for(var e=0,n={};e1){if("number"==typeof(r=e({path:"/"},t.defaults,r)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*r.expires),r.expires=a}try{c=JSON.stringify(i),/^[\{\[]/.test(c)&&(i=c)}catch(e){}return i=o.write?o.write(i,n):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[n,"=",i,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}n||(c={});for(var s=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,d=0;d .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } ",a.parentNode.insertBefore(r,a)}return e&&t.extend(i,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];i.customSelector&&e.push(i.customSelector);var r=t(this).find(e.join(","));r=r.not("object object"),r.each(function(){var e=t(this);if(!("embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){var i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),r=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),a=i/r;if(!e.attr("id")){var o="fitvid"+Math.floor(999999*Math.random());e.attr("id",o)}e.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*a+"%"),e.removeAttr("height").removeAttr("width")}})})}}(jQuery); !function(e){"use strict";function t(i,n,c,s){function o(e){e.timeout&&(l.cycleTimeout=setTimeout(function(){t(i,e,0,!e.rev)},e.timeout))}if(!n.busy){var l=i[0].parentNode,a=i[n.currSlide],r=i[n.nextSlide];if(0!==l.cycleTimeout||c)if(c||!l.cyclePause){n.before.length&&e.each(n.before,function(e,t){t.apply(r,[a,r,n,s])});var u=function(){e.browser.msie&&this.style.removeAttribute("filter"),e.each(n.after,function(e,t){t.apply(r,[a,r,n,s])}),o(n)};n.nextSlide!=n.currSlide&&(n.busy=1,e.fn.cycle.custom(a,r,n,u));var d=n.nextSlide+1==i.length;n.nextSlide=d?0:n.nextSlide+1,n.currSlide=d?i.length-1:n.nextSlide-1}else o(n)}}function i(e,i,n){var c=e[0].parentNode,s=c.cycleTimeout;return s&&(clearTimeout(s),c.cycleTimeout=0),i.nextSlide=i.currSlide+n,i.nextSlide<0?i.nextSlide=e.length-1:i.nextSlide>=e.length&&(i.nextSlide=0),t(e,i,1,n>=0),!1}var n="Lite-1.6";e.fn.cycle=function(n){return this.each(function(){n=n||{},this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=0,this.cyclePause=0;var c=e(this),s=n.slideExpr?e(n.slideExpr,this):c.children(),o=s.get();if(o.length<2)return void(window.console&&console.log("terminating; too few slides: "+o.length));var l=e.extend({},e.fn.cycle.defaults,n||{},e.metadata?c.metadata():e.meta?c.data():{}),a=e.isFunction(c.data)?c.data(l.metaAttr):null;a&&(l=e.extend(l,a)),l.before=l.before?[l.before]:[],l.after=l.after?[l.after]:[],l.after.unshift(function(){l.busy=0});var r=this.className;l.width=parseInt((r.match(/w:(\d+)/)||[])[1],10)||l.width,l.height=parseInt((r.match(/h:(\d+)/)||[])[1],10)||l.height,l.timeout=parseInt((r.match(/t:(\d+)/)||[])[1],10)||l.timeout,"static"==c.css("position")&&c.css("position","relative"),l.width&&c.width(l.width),l.height&&"auto"!=l.height&&c.height(l.height);var u=0;s.css({position:"absolute",top:0}).each(function(t){e(this).css("z-index",o.length-t)}),e(o[u]).css("opacity",1).show(),e.browser.msie&&o[u].style.removeAttribute("filter"),l.fit&&l.width&&s.width(l.width),l.fit&&l.height&&"auto"!=l.height&&s.height(l.height),l.pause&&c.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});var d=e.fn.cycle.transitions[l.fx];if(d&&d(c,s,l),s.each(function(){var t=e(this);this.cycleH=l.fit&&l.height?l.height:t.height(),this.cycleW=l.fit&&l.width?l.width:t.width()}),l.cssFirst&&e(s[u]).css(l.cssFirst),l.timeout)for(l.speed.constructor==String&&(l.speed={slow:600,fast:200}[l.speed]||400),l.sync||(l.speed=l.speed/2);l.timeout-l.speed<250;)l.timeout+=l.speed;l.speedIn=l.speed,l.speedOut=l.speed,l.slideCount=o.length,l.currSlide=u,l.nextSlide=1;var h=s[u];l.before.length&&l.before[0].apply(h,[h,h,l,!0]),l.after.length>1&&l.after[1].apply(h,[h,h,l,!0]),l.click&&!l.next&&(l.next=l.click),l.next&&e(l.next).unbind("click.cycle").bind("click.cycle",function(){return i(o,l,l.rev?-1:1)}),l.prev&&e(l.prev).unbind("click.cycle").bind("click.cycle",function(){return i(o,l,l.rev?1:-1)}),l.timeout&&(this.cycleTimeout=setTimeout(function(){t(o,l,0,!l.rev)},l.timeout+(l.delay||0)))})},e.fn.cycle.custom=function(t,i,n,c){var s=e(t),o=e(i);o.css(n.cssBefore);var l=function(){o.animate(n.animIn,n.speedIn,n.easeIn,c)};s.animate(n.animOut,n.speedOut,n.easeOut,function(){s.css(n.cssAfter),n.sync||l()}),n.sync&&l()},e.fn.cycle.transitions={fade:function(e,t,i){t.not(":eq(0)").hide(),i.cssBefore={opacity:0,display:"block"},i.cssAfter={display:"none"},i.animOut={opacity:0},i.animIn={opacity:1}},fadeout:function(t,i,n){n.before.push(function(t,i,n,c){e(t).css("zIndex",n.slideCount+(c===!0?1:0)),e(i).css("zIndex",n.slideCount+(c===!0?0:1))}),i.not(":eq(0)").hide(),n.cssBefore={opacity:1,display:"block",zIndex:1},n.cssAfter={display:"none",zIndex:0},n.animOut={opacity:0},n.animIn={opacity:1}}},e.fn.cycle.ver=function(){return n},e.fn.cycle.defaults={animIn:{},animOut:{},fx:"fade",after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:"auto",metaAttr:"cycle",next:null,pause:!1,prev:null,speed:1e3,slideExpr:null,sync:!0,timeout:4e3}}(jQuery); !function($){var e=!0;$.flexslider=function(t,a){var n=$(t);void 0===a.rtl&&"rtl"==$("html").attr("dir")&&(a.rtl=!0),n.vars=$.extend({},$.flexslider.defaults,a);var i=n.vars.namespace,r=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,s=("ontouchstart"in window||r||window.DocumentTouch&&document instanceof DocumentTouch)&&n.vars.touch,o="click touchend MSPointerUp keyup",l="",c,d="vertical"===n.vars.direction,u=n.vars.reverse,v=n.vars.itemWidth>0,p="fade"===n.vars.animation,m=""!==n.vars.asNavFor,f={};$.data(t,"flexslider",n),f={init:function(){n.animating=!1,n.currentSlide=parseInt(n.vars.startAt?n.vars.startAt:0,10),isNaN(n.currentSlide)&&(n.currentSlide=0),n.animatingTo=n.currentSlide,n.atEnd=0===n.currentSlide||n.currentSlide===n.last,n.containerSelector=n.vars.selector.substr(0,n.vars.selector.search(" ")),n.slides=$(n.vars.selector,n),n.container=$(n.containerSelector,n),n.count=n.slides.length,n.syncExists=$(n.vars.sync).length>0,"slide"===n.vars.animation&&(n.vars.animation="swing"),n.prop=d?"top":n.vars.rtl?"marginRight":"marginLeft",n.args={},n.manualPause=!1,n.stopped=!1,n.started=!1,n.startTimeout=null,n.transitions=!n.vars.video&&!p&&n.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var a in t)if(void 0!==e.style[t[a]])return n.pfx=t[a].replace("Perspective","").toLowerCase(),n.prop="-"+n.pfx+"-transform",!0;return!1}(),n.isFirefox=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,n.ensureAnimationEnd="",""!==n.vars.controlsContainer&&(n.controlsContainer=$(n.vars.controlsContainer).length>0&&$(n.vars.controlsContainer)),""!==n.vars.manualControls&&(n.manualControls=$(n.vars.manualControls).length>0&&$(n.vars.manualControls)),""!==n.vars.customDirectionNav&&(n.customDirectionNav=2===$(n.vars.customDirectionNav).length&&$(n.vars.customDirectionNav)),n.vars.randomize&&(n.slides.sort(function(){return Math.round(Math.random())-.5}),n.container.empty().append(n.slides)),n.doMath(),n.setup("init"),n.vars.controlNav&&f.controlNav.setup(),n.vars.directionNav&&f.directionNav.setup(),n.vars.keyboard&&(1===$(n.containerSelector).length||n.vars.multipleKeyboard)&&$(document).bind("keyup",function(e){var t=e.keyCode;if(!n.animating&&(39===t||37===t)){var a=n.vars.rtl?37===t?n.getTarget("next"):39===t&&n.getTarget("prev"):39===t?n.getTarget("next"):37===t&&n.getTarget("prev");n.flexAnimate(a,n.vars.pauseOnAction)}}),n.vars.mousewheel&&n.bind("mousewheel",function(e,t,a,i){e.preventDefault();var r=t<0?n.getTarget("next"):n.getTarget("prev");n.flexAnimate(r,n.vars.pauseOnAction)}),n.vars.pausePlay&&f.pausePlay.setup(),n.vars.slideshow&&n.vars.pauseInvisible&&f.pauseInvisible.init(),n.vars.slideshow&&(n.vars.pauseOnHover&&n.hover(function(){n.manualPlay||n.manualPause||n.pause()},function(){n.manualPause||n.manualPlay||n.stopped||n.play()}),n.vars.pauseInvisible&&f.pauseInvisible.isHidden()||(n.vars.initDelay>0?n.startTimeout=setTimeout(n.play,n.vars.initDelay):n.play())),m&&f.asNav.setup(),s&&n.vars.touch&&f.touch(),(!p||p&&n.vars.smoothHeight)&&$(window).bind("resize orientationchange focus",f.resize),n.find("img").attr("draggable","false"),setTimeout(function(){n.vars.start(n)},200)},asNav:{setup:function(){n.asNav=!0,n.animatingTo=Math.floor(n.currentSlide/n.move),n.currentItem=n.currentSlide,n.slides.removeClass(i+"active-slide").eq(n.currentItem).addClass(i+"active-slide"),r?(t._slider=n,n.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var t=$(this),a=t.index();$(n.vars.asNavFor).data("flexslider").animating||t.hasClass("active")||(n.direction=n.currentItem'),n.pagingCount>1)for(var s=0;s":''+t+"","thumbnails"===n.vars.controlNav&&!0===n.vars.thumbCaptions){var d=r.attr("data-thumbcaption");""!==d&&void 0!==d&&(a+=''+d+"")}n.controlNavScaffold.append("
  • "+a+"
  • "),t++}n.controlsContainer?$(n.controlsContainer).append(n.controlNavScaffold):n.append(n.controlNavScaffold),f.controlNav.set(),f.controlNav.active(),n.controlNavScaffold.delegate("a, img",o,function(e){if(e.preventDefault(),""===l||l===e.type){var t=$(this),a=n.controlNav.index(t);t.hasClass(i+"active")||(n.direction=a>n.currentSlide?"next":"prev",n.flexAnimate(a,n.vars.pauseOnAction))}""===l&&(l=e.type),f.setToClearWatchedEvent()})},setupManual:function(){n.controlNav=n.manualControls,f.controlNav.active(),n.controlNav.bind(o,function(e){if(e.preventDefault(),""===l||l===e.type){var t=$(this),a=n.controlNav.index(t);t.hasClass(i+"active")||(a>n.currentSlide?n.direction="next":n.direction="prev",n.flexAnimate(a,n.vars.pauseOnAction))}""===l&&(l=e.type),f.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===n.vars.controlNav?"img":"a";n.controlNav=$("."+i+"control-nav li "+e,n.controlsContainer?n.controlsContainer:n)},active:function(){n.controlNav.removeClass(i+"active").eq(n.animatingTo).addClass(i+"active")},update:function(e,t){n.pagingCount>1&&"add"===e?n.controlNavScaffold.append($('
  • '+n.count+"
  • ")):1===n.pagingCount?n.controlNavScaffold.find("li").remove():n.controlNav.eq(t).closest("li").remove(),f.controlNav.set(),n.pagingCount>1&&n.pagingCount!==n.controlNav.length?n.update(t,e):f.controlNav.active()}},directionNav:{setup:function(){var e=$('");n.customDirectionNav?n.directionNav=n.customDirectionNav:n.controlsContainer?($(n.controlsContainer).append(e),n.directionNav=$("."+i+"direction-nav li a",n.controlsContainer)):(n.append(e),n.directionNav=$("."+i+"direction-nav li a",n)),f.directionNav.update(),n.directionNav.bind(o,function(e){e.preventDefault();var t;""!==l&&l!==e.type||(t=$(this).hasClass(i+"next")?n.getTarget("next"):n.getTarget("prev"),n.flexAnimate(t,n.vars.pauseOnAction)),""===l&&(l=e.type),f.setToClearWatchedEvent()})},update:function(){var e=i+"disabled";1===n.pagingCount?n.directionNav.addClass(e).attr("tabindex","-1"):n.vars.animationLoop?n.directionNav.removeClass(e).removeAttr("tabindex"):0===n.animatingTo?n.directionNav.removeClass(e).filter("."+i+"prev").addClass(e).attr("tabindex","-1"):n.animatingTo===n.last?n.directionNav.removeClass(e).filter("."+i+"next").addClass(e).attr("tabindex","-1"):n.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=$('
    ');n.controlsContainer?(n.controlsContainer.append(e),n.pausePlay=$("."+i+"pauseplay a",n.controlsContainer)):(n.append(e),n.pausePlay=$("."+i+"pauseplay a",n)),f.pausePlay.update(n.vars.slideshow?i+"pause":i+"play"),n.pausePlay.bind(o,function(e){e.preventDefault(),""!==l&&l!==e.type||($(this).hasClass(i+"pause")?(n.manualPause=!0,n.manualPlay=!1,n.pause()):(n.manualPause=!1,n.manualPlay=!0,n.play())),""===l&&(l=e.type),f.setToClearWatchedEvent()})},update:function(e){"play"===e?n.pausePlay.removeClass(i+"pause").addClass(i+"play").html(n.vars.playText):n.pausePlay.removeClass(i+"play").addClass(i+"pause").html(n.vars.pauseText)}},touch:function(){function e(e){e.stopPropagation(),n.animating?e.preventDefault():(n.pause(),t._gesture.addPointer(e.pointerId),w=0,c=d?n.h:n.w,f=Number(new Date),l=v&&u&&n.animatingTo===n.last?0:v&&u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:v&&n.currentSlide===n.last?n.limit:v?(n.itemW+n.vars.itemMargin)*n.move*n.currentSlide:u?(n.last-n.currentSlide+n.cloneOffset)*c:(n.currentSlide+n.cloneOffset)*c)}function a(e){e.stopPropagation();var a=e.target._slider;if(a){var n=-e.translationX,i=-e.translationY;if(w+=d?i:n,m=(a.vars.rtl?-1:1)*w,x=d?Math.abs(w)500)&&(e.preventDefault(),!p&&a.transitions&&(a.vars.animationLoop||(m=w/(0===a.currentSlide&&w<0||a.currentSlide===a.last&&w>0?Math.abs(w)/c+2:1)),a.setProps(l+m,"setTouch")))}}function i(e){e.stopPropagation();var t=e.target._slider;if(t){if(t.animatingTo===t.currentSlide&&!x&&null!==m){var a=u?-m:m,n=a>0?t.getTarget("next"):t.getTarget("prev");t.canAdvance(n)&&(Number(new Date)-f<550&&Math.abs(a)>50||Math.abs(a)>c/2)?t.flexAnimate(n,t.vars.pauseOnAction):p||t.flexAnimate(t.currentSlide,t.vars.pauseOnAction,!0)}s=null,o=null,m=null,l=null,w=0}}var s,o,l,c,m,f,g,h,S,x=!1,y=0,b=0,w=0;r?(t.style.msTouchAction="none",t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",e,!1),t._slider=n,t.addEventListener("MSGestureChange",a,!1),t.addEventListener("MSGestureEnd",i,!1)):(g=function(e){n.animating?e.preventDefault():(window.navigator.msPointerEnabled||1===e.touches.length)&&(n.pause(),c=d?n.h:n.w,f=Number(new Date),y=e.touches[0].pageX,b=e.touches[0].pageY,l=v&&u&&n.animatingTo===n.last?0:v&&u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:v&&n.currentSlide===n.last?n.limit:v?(n.itemW+n.vars.itemMargin)*n.move*n.currentSlide:u?(n.last-n.currentSlide+n.cloneOffset)*c:(n.currentSlide+n.cloneOffset)*c,s=d?b:y,o=d?y:b,t.addEventListener("touchmove",h,!1),t.addEventListener("touchend",S,!1))},h=function(e){y=e.touches[0].pageX,b=e.touches[0].pageY,m=d?s-b:(n.vars.rtl?-1:1)*(s-y),x=d?Math.abs(m)500)&&(e.preventDefault(),!p&&n.transitions&&(n.vars.animationLoop||(m/=0===n.currentSlide&&m<0||n.currentSlide===n.last&&m>0?Math.abs(m)/c+2:1),n.setProps(l+m,"setTouch")))},S=function(e){if(t.removeEventListener("touchmove",h,!1),n.animatingTo===n.currentSlide&&!x&&null!==m){var a=u?-m:m,i=a>0?n.getTarget("next"):n.getTarget("prev");n.canAdvance(i)&&(Number(new Date)-f<550&&Math.abs(a)>50||Math.abs(a)>c/2)?n.flexAnimate(i,n.vars.pauseOnAction):p||n.flexAnimate(n.currentSlide,n.vars.pauseOnAction,!0)}t.removeEventListener("touchend",S,!1),s=null,o=null,m=null,l=null},t.addEventListener("touchstart",g,!1))},resize:function(){!n.animating&&n.is(":visible")&&(v||n.doMath(),p?f.smoothHeight():v?(n.slides.width(n.computedW),n.update(n.pagingCount),n.setProps()):d?(n.viewport.height(n.h),n.setProps(n.h,"setTotal")):(n.vars.smoothHeight&&f.smoothHeight(),n.newSlides.width(n.computedW),n.setProps(n.computedW,"setTotal")))},smoothHeight:function(e){if(!d||p){var t=p?n:n.viewport;e?t.animate({height:n.slides.eq(n.animatingTo).innerHeight()},e):t.innerHeight(n.slides.eq(n.animatingTo).innerHeight())}},sync:function(e){var t=$(n.vars.sync).data("flexslider"),a=n.animatingTo;switch(e){case"animate":t.flexAnimate(a,n.vars.pauseOnAction,!1,!0);break;case"play":t.playing||t.asNav||t.play();break;case"pause":t.pause();break}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=$(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var e=f.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){f.pauseInvisible.isHidden()?n.startTimeout?clearTimeout(n.startTimeout):n.pause():n.started?n.play():n.vars.initDelay>0?setTimeout(n.play,n.vars.initDelay):n.play()})}},isHidden:function(){var e=f.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;tn.currentSlide?"next":"prev"),m&&1===n.pagingCount&&(n.direction=n.currentItemn.limit&&1!==n.visible?n.limit:S):h=0===n.currentSlide&&e===n.count-1&&n.vars.animationLoop&&"next"!==n.direction?u?(n.count+n.cloneOffset)*c:0:n.currentSlide===n.last&&0===e&&n.vars.animationLoop&&"prev"!==n.direction?u?0:(n.count+1)*c:u?(n.count-1-e+n.cloneOffset)*c:(e+n.cloneOffset)*c,n.setProps(h,"",n.vars.animationSpeed),n.transitions?(n.vars.animationLoop&&n.atEnd||(n.animating=!1,n.currentSlide=n.animatingTo),n.container.unbind("webkitTransitionEnd transitionend"),n.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(n.ensureAnimationEnd),n.wrapup(c)}),clearTimeout(n.ensureAnimationEnd),n.ensureAnimationEnd=setTimeout(function(){n.wrapup(c)},n.vars.animationSpeed+100)):n.container.animate(n.args,n.vars.animationSpeed,n.vars.easing,function(){n.wrapup(c)})}n.vars.smoothHeight&&f.smoothHeight(n.vars.animationSpeed)}},n.wrapup=function(e){p||v||(0===n.currentSlide&&n.animatingTo===n.last&&n.vars.animationLoop?n.setProps(e,"jumpEnd"):n.currentSlide===n.last&&0===n.animatingTo&&n.vars.animationLoop&&n.setProps(e,"jumpStart")),n.animating=!1,n.currentSlide=n.animatingTo,n.vars.after(n)},n.animateSlides=function(){!n.animating&&e&&n.flexAnimate(n.getTarget("next"))},n.pause=function(){clearInterval(n.animatedSlides),n.animatedSlides=null,n.playing=!1,n.vars.pausePlay&&f.pausePlay.update("play"),n.syncExists&&f.sync("pause")},n.play=function(){n.playing&&clearInterval(n.animatedSlides),n.animatedSlides=n.animatedSlides||setInterval(n.animateSlides,n.vars.slideshowSpeed),n.started=n.playing=!0,n.vars.pausePlay&&f.pausePlay.update("pause"),n.syncExists&&f.sync("play")},n.stop=function(){n.pause(),n.stopped=!0},n.canAdvance=function(e,t){var a=m?n.pagingCount-1:n.last;return!!t||(!(!m||n.currentItem!==n.count-1||0!==e||"prev"!==n.direction)||(!m||0!==n.currentItem||e!==n.pagingCount-1||"next"===n.direction)&&(!(e===n.currentSlide&&!m)&&(!!n.vars.animationLoop||(!n.atEnd||0!==n.currentSlide||e!==a||"next"===n.direction)&&(!n.atEnd||n.currentSlide!==a||0!==e||"next"!==n.direction))))},n.getTarget=function(e){return n.direction=e,"next"===e?n.currentSlide===n.last?0:n.currentSlide+1:0===n.currentSlide?n.last:n.currentSlide-1},n.setProps=function(e,t,a){var i=function(){var a=e||(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo;return function(){if(v)return"setTouch"===t?e:u&&n.animatingTo===n.last?0:u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:n.animatingTo===n.last?n.limit:a;switch(t){case"setTotal":return u?(n.count-1-n.currentSlide+n.cloneOffset)*e:(n.currentSlide+n.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return u?e:n.count*e;case"jumpStart":return u?n.count*e:e;default:return e}}()*(n.vars.rtl?1:-1)+"px"}();n.transitions&&(i=n.isFirefox?d?"translate3d(0,"+i+",0)":"translate3d("+parseInt(i)+"px,0,0)":d?"translate3d(0,"+i+",0)":"translate3d("+(n.vars.rtl?-1:1)*parseInt(i)+"px,0,0)",a=void 0!==a?a/1e3+"s":"0s",n.container.css("-"+n.pfx+"-transition-duration",a),n.container.css("transition-duration",a)),n.args[n.prop]=i,(n.transitions||void 0===a)&&n.container.css(n.args),n.container.css("transform",i)},n.setup=function(e){if(p)n.vars.rtl?n.slides.css({width:"100%",float:"right",marginLeft:"-100%",position:"relative"}):n.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(s?n.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+n.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(n.currentSlide).css({opacity:1,zIndex:2}):0==n.vars.fadeFirstSlide?n.slides.css({opacity:0,display:"block",zIndex:1}).eq(n.currentSlide).css({zIndex:2}).css({opacity:1}):n.slides.css({opacity:0,display:"block",zIndex:1}).eq(n.currentSlide).css({zIndex:2}).animate({opacity:1},n.vars.animationSpeed,n.vars.easing)),n.vars.smoothHeight&&f.smoothHeight();else{var t,a;"init"===e&&(n.viewport=$('
    ').css({overflow:"hidden",position:"relative"}).appendTo(n).append(n.container),n.cloneCount=0,n.cloneOffset=0,u&&(a=$.makeArray(n.slides).reverse(),n.slides=$(a),n.container.empty().append(n.slides))),n.vars.animationLoop&&!v&&(n.cloneCount=2,n.cloneOffset=1,"init"!==e&&n.container.find(".clone").remove(),n.container.append(f.uniqueID(n.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(f.uniqueID(n.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),n.newSlides=$(n.vars.selector,n),t=u?n.count-1-n.currentSlide+n.cloneOffset:n.currentSlide+n.cloneOffset,d&&!v?(n.container.height(200*(n.count+n.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){n.newSlides.css({display:"block"}),n.doMath(),n.viewport.height(n.h),n.setProps(t*n.h,"init")},"init"===e?100:0)):(n.container.width(200*(n.count+n.cloneCount)+"%"),n.setProps(t*n.computedW,"init"),setTimeout(function(){n.doMath(),n.vars.rtl&&n.isFirefox?n.newSlides.css({width:n.computedW,marginRight:n.computedM,float:"right",display:"block"}):n.newSlides.css({width:n.computedW,marginRight:n.computedM,float:"left",display:"block"}),n.vars.smoothHeight&&f.smoothHeight()},"init"===e?100:0))}v||n.slides.removeClass(i+"active-slide").eq(n.currentSlide).addClass(i+"active-slide"),n.vars.init(n)},n.doMath=function(){var e=n.slides.first(),t=n.vars.itemMargin,a=n.vars.minItems,i=n.vars.maxItems;n.w=void 0===n.viewport?n.width():n.viewport.width(),n.isFirefox&&(n.w=n.width()),n.h=e.height(),n.boxPadding=e.outerWidth()-e.width(),v?(n.itemT=n.vars.itemWidth+t,n.itemM=t,n.minW=a?a*n.itemT:n.w,n.maxW=i?i*n.itemT-t:n.w,n.itemW=n.minW>n.w?(n.w-t*(a-1))/a:n.maxWn.w?n.w:n.vars.itemWidth,n.visible=Math.floor(n.w/n.itemW),n.move=n.vars.move>0&&n.vars.moven.w?n.itemW*(n.count-1)+t*(n.count-1):(n.itemW+t)*n.count-n.w-t):(n.itemW=n.w,n.itemM=t,n.pagingCount=n.count,n.last=n.count-1),n.computedW=n.itemW-n.boxPadding,n.computedM=n.itemM},n.update=function(e,t){n.doMath(),v||(en.controlNav.length?f.controlNav.update("add"):("remove"===t&&!v||n.pagingCountn.last&&(n.currentSlide-=1,n.animatingTo-=1),f.controlNav.update("remove",n.last))),n.vars.directionNav&&f.directionNav.update()},n.addSlide=function(e,t){var a=$(e);n.count+=1,n.last=n.count-1,d&&u?void 0!==t?n.slides.eq(n.count-t).after(a):n.container.prepend(a):void 0!==t?n.slides.eq(t).before(a):n.container.append(a),n.update(t,"add"),n.slides=$(n.vars.selector+":not(.clone)",n),n.setup(),n.vars.added(n)},n.removeSlide=function(e){var t=isNaN(e)?n.slides.index($(e)):e;n.count-=1,n.last=n.count-1,isNaN(e)?$(e,n.slides).remove():d&&u?n.slides.eq(n.last).remove():n.slides.eq(e).remove(),n.doMath(),n.update(t,"remove"),n.slides=$(n.vars.selector+":not(.clone)",n),n.setup(),n.vars.removed(n)},f.init()},$(window).blur(function(t){e=!1}).focus(function(t){e=!0}),$.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,isFirefox:!1,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:!1},$.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var t=$(this),a=e.selector?e.selector:".slides > li",n=t.find(a);1===n.length&&!1===e.allowOneSlide||0===n.length?(n.fadeIn(400),e.start&&e.start(t)):void 0===t.data("flexslider")&&new $.flexslider(this,e)});var t=$(this).data("flexslider");switch(e){case"play":t.play();break;case"pause":t.pause();break;case"stop":t.stop();break;case"next":t.flexAnimate(t.getTarget("next"),!0);break;case"prev":case"previous":t.flexAnimate(t.getTarget("prev"),!0);break;default:"number"==typeof e&&t.flexAnimate(e,!0)}}}(jQuery); function InfoBox(t){t=t||{},google.maps.OverlayView.apply(this,arguments),this.content_=t.content||"",this.disableAutoPan_=t.disableAutoPan||!1,this.maxWidth_=t.maxWidth||0,this.pixelOffset_=t.pixelOffset||new google.maps.Size(0,0),this.position_=t.position||new google.maps.LatLng(0,0),this.zIndex_=t.zIndex||null,this.boxClass_=t.boxClass||"infoBox",this.boxStyle_=t.boxStyle||{},this.closeBoxMargin_=t.closeBoxMargin||"2px",this.closeBoxURL_=t.closeBoxURL||"//www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL_=""),this.closeBoxTitle_=t.closeBoxTitle||" Close ",this.infoBoxClearance_=t.infoBoxClearance||new google.maps.Size(1,1),void 0===t.visible&&(void 0===t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden_=!t.visible,this.alignBottom_=t.alignBottom||!1,this.pane_=t.pane||"floatPane",this.enableEventPropagation_=t.enableEventPropagation||!1,this.div_=null,this.closeListener_=null,this.moveListener_=null,this.contextListener_=null,this.eventListeners_=null,this.fixedWidthSet_=null}InfoBox.prototype=new google.maps.OverlayView,InfoBox.prototype.createInfoBoxDiv_=function(){var t,i,e,o=this,s=function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()};if(!this.div_){if(this.div_=document.createElement("div"),this.setBoxStyle_(),void 0===this.content_.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+this.content_:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(this.content_)),this.getPanes()[this.pane_].appendChild(this.div_),this.addClickHandler_(),this.div_.style.width?this.fixedWidthSet_=!0:0!==this.maxWidth_&&this.div_.offsetWidth>this.maxWidth_?(this.div_.style.width=this.maxWidth_,this.div_.style.overflow="auto",this.fixedWidthSet_=!0):(e=this.getBoxWidths_(),this.div_.style.width=this.div_.offsetWidth-e.left-e.right+"px",this.fixedWidthSet_=!1),this.panBox_(this.disableAutoPan_),!this.enableEventPropagation_){for(this.eventListeners_=[],i=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],t=0;tp&&(e=f.x+h+s+d-p),this.alignBottom_?f.y<-n+r+l?o=f.y+n-r-l:f.y+n+r>v&&(o=f.y+n+r-v):f.y<-n+r?o=f.y+n-r:f.y+l+n+r>v&&(o=f.y+l+n+r-v),0!==e||0!==o){i.getCenter();i.panBy(e,o)}}}},InfoBox.prototype.setBoxStyle_=function(){var t,i;if(this.div_){for(t in this.div_.className=this.boxClass_,this.div_.style.cssText="",i=this.boxStyle_)i.hasOwnProperty(t)&&(this.div_.style[t]=i[t]);(void 0===this.div_.style.WebkitTransform||-1===this.div_.style.WebkitTransform.indexOf("translateZ")&&-1===this.div_.style.WebkitTransform.indexOf("matrix"))&&(this.div_.style.WebkitTransform="translateZ(0)"),void 0!==this.div_.style.opacity&&""!==this.div_.style.opacity&&(this.div_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*this.div_.style.opacity+')"',this.div_.style.filter="alpha(opacity="+100*this.div_.style.opacity+")"),this.div_.style.position="absolute",this.div_.style.visibility="hidden",null!==this.zIndex_&&(this.div_.style.zIndex=this.zIndex_)}},InfoBox.prototype.getBoxWidths_=function(){var t,i={top:0,bottom:0,left:0,right:0},e=this.div_;return document.defaultView&&document.defaultView.getComputedStyle?(t=e.ownerDocument.defaultView.getComputedStyle(e,""))&&(i.top=parseInt(t.borderTopWidth,10)||0,i.bottom=parseInt(t.borderBottomWidth,10)||0,i.left=parseInt(t.borderLeftWidth,10)||0,i.right=parseInt(t.borderRightWidth,10)||0):document.documentElement.currentStyle&&e.currentStyle&&(i.top=parseInt(e.currentStyle.borderTopWidth,10)||0,i.bottom=parseInt(e.currentStyle.borderBottomWidth,10)||0,i.left=parseInt(e.currentStyle.borderLeftWidth,10)||0,i.right=parseInt(e.currentStyle.borderRightWidth,10)||0),i},InfoBox.prototype.onRemove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},InfoBox.prototype.draw=function(){this.createInfoBoxDiv_();var t=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=t.x+this.pixelOffset_.width+"px",this.alignBottom_?this.div_.style.bottom=-(t.y+this.pixelOffset_.height)+"px":this.div_.style.top=t.y+this.pixelOffset_.height+"px",this.isHidden_?this.div_.style.visibility="hidden":this.div_.style.visibility="visible"},InfoBox.prototype.setOptions=function(t){void 0!==t.boxClass&&(this.boxClass_=t.boxClass,this.setBoxStyle_()),void 0!==t.boxStyle&&(this.boxStyle_=t.boxStyle,this.setBoxStyle_()),void 0!==t.content&&this.setContent(t.content),void 0!==t.disableAutoPan&&(this.disableAutoPan_=t.disableAutoPan),void 0!==t.maxWidth&&(this.maxWidth_=t.maxWidth),void 0!==t.pixelOffset&&(this.pixelOffset_=t.pixelOffset),void 0!==t.alignBottom&&(this.alignBottom_=t.alignBottom),void 0!==t.position&&this.setPosition(t.position),void 0!==t.zIndex&&this.setZIndex(t.zIndex),void 0!==t.closeBoxMargin&&(this.closeBoxMargin_=t.closeBoxMargin),void 0!==t.closeBoxURL&&(this.closeBoxURL_=t.closeBoxURL),void 0!==t.closeBoxTitle&&(this.closeBoxTitle_=t.closeBoxTitle),void 0!==t.infoBoxClearance&&(this.infoBoxClearance_=t.infoBoxClearance),void 0!==t.isHidden&&(this.isHidden_=t.isHidden),void 0!==t.visible&&(this.isHidden_=!t.visible),void 0!==t.enableEventPropagation&&(this.enableEventPropagation_=t.enableEventPropagation),this.div_&&this.draw()},InfoBox.prototype.setContent=function(t){this.content_=t,this.div_&&(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.fixedWidthSet_||(this.div_.style.width=""),void 0===t.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+t:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(t)),this.fixedWidthSet_||(this.div_.style.width=this.div_.offsetWidth+"px",void 0===t.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+t:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(t))),this.addClickHandler_()),google.maps.event.trigger(this,"content_changed")},InfoBox.prototype.setPosition=function(t){this.position_=t,this.div_&&this.draw(),google.maps.event.trigger(this,"position_changed")},InfoBox.prototype.setZIndex=function(t){this.zIndex_=t,this.div_&&(this.div_.style.zIndex=t),google.maps.event.trigger(this,"zindex_changed")},InfoBox.prototype.setVisible=function(t){this.isHidden_=!t,this.div_&&(this.div_.style.visibility=this.isHidden_?"hidden":"visible")},InfoBox.prototype.getContent=function(){return this.content_},InfoBox.prototype.getPosition=function(){return this.position_},InfoBox.prototype.getZIndex=function(){return this.zIndex_},InfoBox.prototype.getVisible=function(){return void 0!==this.getMap()&&null!==this.getMap()&&!this.isHidden_},InfoBox.prototype.getWidth=function(){var t=null;return this.div_&&(t=this.div_.offsetWidth),t},InfoBox.prototype.getHeight=function(){var t=null;return this.div_&&(t=this.div_.offsetHeight),t},InfoBox.prototype.show=function(){this.isHidden_=!1,this.div_&&(this.div_.style.visibility="visible")},InfoBox.prototype.hide=function(){this.isHidden_=!0,this.div_&&(this.div_.style.visibility="hidden")},InfoBox.prototype.open=function(t,i){var e=this;i&&(this.setPosition(i.getPosition()),this.moveListener_=google.maps.event.addListener(i,"position_changed",function(){e.setPosition(this.getPosition())})),this.setMap(t),this.div_&&this.panBox_(this.disableAutoPan_)},InfoBox.prototype.close=function(){var t;if(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.eventListeners_){for(t=0;t=this.minClusterSize_){ marker.setMap(null); } this.updateIcon(); return true; }; Cluster.prototype.getMarkerClusterer=function(){ return this.markerClusterer_; }; Cluster.prototype.getBounds=function(){ var bounds=new google.maps.LatLngBounds(this.center_, this.center_); var markers=this.getMarkers(); for (var i=0, marker; marker=markers[i]; i++){ bounds.extend(marker.getPosition()); } return bounds; }; Cluster.prototype.remove=function(){ this.clusterIcon_.remove(); this.markers_.length=0; delete this.markers_; }; Cluster.prototype.getSize=function(){ return this.markers_.length; }; Cluster.prototype.getMarkers=function(){ return this.markers_; }; Cluster.prototype.getCenter=function(){ return this.center_; }; Cluster.prototype.calculateBounds_=function(){ var bounds=new google.maps.LatLngBounds(this.center_, this.center_); this.bounds_=this.markerClusterer_.getExtendedBounds(bounds); }; Cluster.prototype.isMarkerInClusterBounds=function(marker){ return this.bounds_.contains(marker.getPosition()); }; Cluster.prototype.getMap=function(){ return this.map_; }; Cluster.prototype.updateIcon=function(){ var zoom=this.map_.getZoom(); var mz=this.markerClusterer_.getMaxZoom(); if(mz&&zoom > mz){ for (var i=0, marker; marker=this.markers_[i]; i++){ marker.setMap(this.map_); } return; } if(this.markers_.length < this.minClusterSize_){ this.clusterIcon_.hide(); return; } var numStyles=this.markerClusterer_.getStyles().length; var sums=this.markerClusterer_.getCalculator()(this.markers_, numStyles); this.clusterIcon_.setCenter(this.center_); this.clusterIcon_.setSums(sums); this.clusterIcon_.show(); }; function ClusterIcon(cluster, styles, opt_padding){ cluster.getMarkerClusterer().extend(ClusterIcon, google.maps.OverlayView); this.styles_=styles; this.padding_=opt_padding||0; this.cluster_=cluster; this.center_=null; this.map_=cluster.getMap(); this.div_=null; this.sums_=null; this.visible_=false; this.setMap(this.map_); } ClusterIcon.prototype.triggerClusterClick=function(){ var markerClusterer=this.cluster_.getMarkerClusterer(); google.maps.event.trigger(markerClusterer.map_, 'clusterclick', this.cluster_); if(markerClusterer.isZoomOnClick()){ this.map_.fitBounds(this.cluster_.getBounds()); }}; ClusterIcon.prototype.onAdd=function(){ this.div_=document.createElement('DIV'); if(this.visible_){ var pos=this.getPosFromLatLng_(this.center_); this.div_.style.cssText=this.createCss(pos); this.div_.innerHTML=this.sums_.text; } var panes=this.getPanes(); panes.overlayMouseTarget.appendChild(this.div_); var that=this; google.maps.event.addDomListener(this.div_, 'click', function(){ that.triggerClusterClick(); }); }; ClusterIcon.prototype.getPosFromLatLng_=function(latlng){ var pos=this.getProjection().fromLatLngToDivPixel(latlng); pos.x -=parseInt(this.width_ / 2, 10); pos.y -=parseInt(this.height_ / 2, 10); return pos; }; ClusterIcon.prototype.draw=function(){ if(this.visible_){ var pos=this.getPosFromLatLng_(this.center_); this.div_.style.top=pos.y + 'px'; this.div_.style.left=pos.x + 'px'; this.div_.style.zIndex=google.maps.Marker.MAX_ZINDEX + 1; }}; ClusterIcon.prototype.hide=function(){ if(this.div_){ this.div_.style.display='none'; } this.visible_=false; }; ClusterIcon.prototype.show=function(){ if(this.div_){ var pos=this.getPosFromLatLng_(this.center_); this.div_.style.cssText=this.createCss(pos); this.div_.style.display=''; } this.visible_=true; }; ClusterIcon.prototype.remove=function(){ this.setMap(null); }; ClusterIcon.prototype.onRemove=function(){ if(this.div_&&this.div_.parentNode){ this.hide(); this.div_.parentNode.removeChild(this.div_); this.div_=null; }}; ClusterIcon.prototype.setSums=function(sums){ this.sums_=sums; this.text_=sums.text; this.index_=sums.index; if(this.div_){ this.div_.innerHTML=sums.text; } this.useStyle(); }; ClusterIcon.prototype.useStyle=function(){ var index=Math.max(0, this.sums_.index - 1); index=Math.min(this.styles_.length - 1, index); var style=this.styles_[index]; this.url_=style['url']; this.height_=style['height']; this.width_=style['width']; this.textColor_=style['textColor']; this.anchor_=style['anchor']; this.textSize_=style['textSize']; this.backgroundPosition_=style['backgroundPosition']; }; ClusterIcon.prototype.setCenter=function(center){ this.center_=center; }; ClusterIcon.prototype.createCss=function(pos){ var style=[]; style.push('background-image:url(' + this.url_ + ');'); var backgroundPosition=this.backgroundPosition_ ? this.backgroundPosition_:'0 0'; style.push('background-position:' + backgroundPosition + ';'); if(typeof this.anchor_==='object'){ if(typeof this.anchor_[0]==='number'&&this.anchor_[0] > 0 && this.anchor_[0] < this.height_){ style.push('height:' + (this.height_ - this.anchor_[0]) + 'px; padding-top:' + this.anchor_[0] + 'px;'); }else{ style.push('height:' + this.height_ + 'px; line-height:' + this.height_ + 'px;'); } if(typeof this.anchor_[1]==='number'&&this.anchor_[1] > 0 && this.anchor_[1] < this.width_){ style.push('width:' + (this.width_ - this.anchor_[1]) + 'px; padding-left:' + this.anchor_[1] + 'px;'); }else{ style.push('width:' + this.width_ + 'px; text-align:center;'); }}else{ style.push('height:' + this.height_ + 'px; line-height:' + this.height_ + 'px; width:' + this.width_ + 'px; text-align:center;'); } var txtColor=this.textColor_ ? this.textColor_:'black'; var txtSize=this.textSize_ ? this.textSize_:11; style.push('cursor:pointer; top:' + pos.y + 'px; left:' + pos.x + 'px; color:' + txtColor + '; position:absolute; font-size:' + txtSize + 'px; font-family:Arial,sans-serif; font-weight:bold'); return style.join(''); }; var window=window||{}; window['MarkerClusterer']=MarkerClusterer; MarkerClusterer.prototype['addMarker']=MarkerClusterer.prototype.addMarker; MarkerClusterer.prototype['addMarkers']=MarkerClusterer.prototype.addMarkers; MarkerClusterer.prototype['clearMarkers'] = MarkerClusterer.prototype.clearMarkers; MarkerClusterer.prototype['fitMapToMarkers'] = MarkerClusterer.prototype.fitMapToMarkers; MarkerClusterer.prototype['getCalculator'] = MarkerClusterer.prototype.getCalculator; MarkerClusterer.prototype['getGridSize'] = MarkerClusterer.prototype.getGridSize; MarkerClusterer.prototype['getExtendedBounds'] = MarkerClusterer.prototype.getExtendedBounds; MarkerClusterer.prototype['getMap']=MarkerClusterer.prototype.getMap; MarkerClusterer.prototype['getMarkers']=MarkerClusterer.prototype.getMarkers; MarkerClusterer.prototype['getMaxZoom']=MarkerClusterer.prototype.getMaxZoom; MarkerClusterer.prototype['getStyles']=MarkerClusterer.prototype.getStyles; MarkerClusterer.prototype['getTotalClusters'] = MarkerClusterer.prototype.getTotalClusters; MarkerClusterer.prototype['getTotalMarkers'] = MarkerClusterer.prototype.getTotalMarkers; MarkerClusterer.prototype['redraw']=MarkerClusterer.prototype.redraw; MarkerClusterer.prototype['removeMarker'] = MarkerClusterer.prototype.removeMarker; MarkerClusterer.prototype['removeMarkers'] = MarkerClusterer.prototype.removeMarkers; MarkerClusterer.prototype['resetViewport'] = MarkerClusterer.prototype.resetViewport; MarkerClusterer.prototype['repaint'] = MarkerClusterer.prototype.repaint; MarkerClusterer.prototype['setCalculator'] = MarkerClusterer.prototype.setCalculator; MarkerClusterer.prototype['setGridSize'] = MarkerClusterer.prototype.setGridSize; MarkerClusterer.prototype['setMaxZoom'] = MarkerClusterer.prototype.setMaxZoom; MarkerClusterer.prototype['onAdd']=MarkerClusterer.prototype.onAdd; MarkerClusterer.prototype['draw']=MarkerClusterer.prototype.draw; Cluster.prototype['getCenter']=Cluster.prototype.getCenter; Cluster.prototype['getSize']=Cluster.prototype.getSize; Cluster.prototype['getMarkers']=Cluster.prototype.getMarkers; ClusterIcon.prototype['onAdd']=ClusterIcon.prototype.onAdd; ClusterIcon.prototype['draw']=ClusterIcon.prototype.draw; ClusterIcon.prototype['onRemove']=ClusterIcon.prototype.onRemove; Object.keys=Object.keys||function(o){ var result=[]; for(var name in o){ if(o.hasOwnProperty(name)) result.push(name); } return result; }; if(typeof module=='object'){ module.exports=MarkerClusterer; }; var drawListener,markerCluster,drawMarkers,drawBounds,oldZoom,oldBounds,marker_list=[],mapPin="",map=null,poly=null,storedLongitude="",storedLatitude="",open_info_window=null,mapCenterLat="",mapCenterLng="",mapNorthEast="",mapNorthWest="",mapSouthEast="",mapSouthWest="",boundsChanged=!1,hitCount=0,watchDog=0,x_info_offset=-0,y_info_offset=-180,debounceTime=250,drawingMode=!1;function getUrlParameterObject(e=""){""==e&&(e=window.location.search.substring(1));var t,a,s=e.split("&");for(returnObject={},a=0;ae.apply(this,s),t)}}function markerExistsByLatLng(e,t,a=-1){for(l=new google.maps.LatLng(e,t),y=0;y-1&&(m.setMap(null),indexesToRemove.push(gf));for(gf=0;gf0&&(s=Object.assign({drawMode:!0},s),s=Object.assign({drawMarkers:JSON.stringify(drawMarkers)},s)),url=mapping_ajax_object.ajax_url,jQuery.get(url,s,function(e){if(""!=e){if(dataArray=e,document.getElementById("search-listing-mapper").innerHTML=dataArray.listings,document.getElementById("number-listings-found").innerHTML=dataArray.count,siteURL=dataArray.siteURL,""!=dataArray.map){for(latlngs=dataArray.latlngs;marker_list.length;)marker_list.pop().setMap(null);for(marker_list=[],markerCluster.clearMarkers(),x=0;x0&&(disableDrawMode(),null!=drawBounds&&map.fitBounds(drawBounds))}document.getElementById("number-listings-progress").style.display="none",manageFeaturedTags()},"json")}function getMapBounds(e){if(null==poly){if(progressDiv=document.getElementById("number-listings-progress"),!progressDiv)return;var t=e.getBounds(),a=t.getNorthEast(),s=t.getSouthWest();if(1==boundsChanged)return;if(progressDiv.style.display="inherit",mapNorthEast!=a&&(boundsChanged=!0),mapSouthWest!=s&&(boundsChanged=!0),1==boundsChanged){if(open_info_window&&open_info_window.close(),0==hitCount)return hitCount++,setTimeout(function(){boundsChanged=!1},250),void(document.getElementById("number-listings-progress").style.display="none");doAjax(a,s),setTimeout(function(){boundsChanged=!1},250),jQuery(".pagination").hide()}}}function getInfoBoxContentString(e){var t="";return showMarkerWithPrice(e)&&(t="ct-marker-svg-price"),"contactpage"==e.contactpage?""!=e.thumb?'

    '+e.street+'

    Driving Directions

    ':'
    ':"commercial"==e.commercial||"industrial"==e.industrial||"retail"==e.retail?'

    '+e.title+'

    '+e.city+", "+e.state+" "+e.zip+'

    '+e.size+'

    '+e.fullPrice+"

    ":"land"==e.land?'

    '+e.title+'

    '+e.city+", "+e.state+" "+e.zip+'

    '+e.fullPrice+"

    ":'

    '+e.title+'

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