var czrapp=czrapp||{};!function(e,t){t._printLog=function(i){var n=function(){e("#bulklog").prepend("
"+t._prettyfy({consoleArguments:[i],prettyfy:!1})+"
")};1!=e("#bulk-log").length?e.Deferred(function(){var t=this;e.when(e("#footer").before(e("",{id:"bulklog"}))).done(function(){e("#bulklog").css({position:"fixed","z-index":"99999","font-size":"0.8em",color:"#000",padding:"5%",width:"90%",height:"20%",overflow:"hidden",bottom:"0",left:"0",background:"yellow"}),t.resolve()})}).promise().done(n):n()},t._truncate=function(e,t){return t=t||150,_.isString(e)?e.length>t?e.substr(0,t-1):e:""};var i=function(e){e=_.extend({bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]},e);var t=Array.from(e.consoleArguments);return t=_.isEmpty(_.filter(t,function(e){return!_.isString(e)}))?t.join(" "):JSON.stringify(t.join(" ")),["%c "+(i=t,_.isString(i)?i.length>300?i.substr(0,299)+"...":i:""),["background:"+e.bgCol,"color:"+e.textCol,"display: block;"].join(";")];var i},n=function(e,n,s){_.isUndefined(console)&&"function"!=typeof window.console.log||(t.localized.isDevMode?_.isUndefined(n)?console.log.apply(console,i({bgCol:s,textCol:"#000",consoleArguments:["<"+e+">"]})):(console.log.apply(console,i({bgCol:s,textCol:"#000",consoleArguments:["<"+e+">"]})),console.log(n),console.log.apply(console,i({bgCol:s,textCol:"#000",consoleArguments:[""+e+">"]}))):console.log.apply(console,i({bgCol:s,textCol:"#000",consoleArguments:[e]})))};t.consoleLog=function(){t.localized.isDevMode&&(_.isUndefined(console)&&"function"!=typeof window.console.log||(console.log.apply(console,i({consoleArguments:arguments})),console.log("Unstyled console message : ",arguments)))},t.errorLog=function(){_.isUndefined(console)&&"function"!=typeof window.console.log||console.log.apply(console,i({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:arguments}))},t.errare=function(e,t){n(e,t,"#ffd5a0")},t.infoLog=function(e,t){n(e,t,"#5ed1f5")},t.doAjax=function(i){var n=(i=i||(_.isObject(i)?i:{})).ajaxUrl||t.localized.ajaxUrl,s=t.localized.frontNonce,o=e.Deferred(),r=_.extend({action:"",withNonce:!1},i);return"https:"==document.location.protocol&&(n=n.replace("http://","https://")),_.isEmpty(r.action)||!_.isString(r.action)?(t.errorLog("czrapp.doAjax : unproper action provided"),o.resolve().promise()):(r[s.id]=s.handle,!_.isObject(s)||_.isUndefined(s.id)||_.isUndefined(s.handle)?(t.errorLog("czrapp.doAjax : unproper nonce"),o.resolve().promise()):(e.post(n,r).done(function(e){"0"!==e&&"-1"!==e&&!1!==e.success||(t.errare("czrapp.doAjax : done ajax error for action : "+r.action,e),o.reject(e)),o.resolve(e)}).fail(function(e){t.errare("czrapp.doAjax : failed ajax error for : "+r.action,e),o.reject(e)}),o.promise()))}}(jQuery,czrapp),function(e,t){t.isKeydownButNotEnterEvent=function(e){return"keydown"===e.type&&13!==e.which},t.setupDOMListeners=function(i,n,s){!_.isUndefined(s)&&_.isObject(s)?_.isArray(i)?_.isObject(n)?(n=_.extend({model:{},dom_el:{}},n)).dom_el instanceof jQuery&&1==n.dom_el.length?_.map(i,function(i){if(_.isString(i.selector)&&!_.isEmpty(i.selector))if(_.isString(i.selector)&&!_.isEmpty(i.selector)){var o=!!i.once&&i.once;n.dom_el[o?"one":"on"](i.trigger,i.selector,function(o,r){if(o.stopPropagation(),!t.isKeydownButNotEnterEvent(o)){o.preventDefault();var a=e.extend(!0,{},n);if(_.has(a,"model")&&_.has(a.model,"id")&&(_.has(s,"get")?a.model=s():a.model=s.getModel(a.model.id)),e.extend(a,{event:i,dom_event:o}),e.extend(a,r),_.has(a,"event")&&_.has(a.event,"actions"))try{t.executeEventActionChain(a,s)}catch(e){t.errorLog("In setupDOMListeners : problem when trying to fire actions : "+a.event.actions),t.errorLog("Error : "+e)}else t.errorLog("executeEventActionChain : missing obj.event or obj.event.actions")}})}else t.errorLog("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+i.actions.join(","));else t.errorLog("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+i.actions.join(","))}):t.errorLog("setupDomListeners : dom element should be an existing dom element",n):t.errorLog("setupDomListeners : args should be an object",i):t.errorLog("setupDomListeners : event_map should be an array",n):t.errorLog("setupDomListeners : instance should be an object",n)},t.executeEventActionChain=function(e,i){if("function"==typeof e.event.actions)return e.event.actions.call(i,e);_.isArray(e.event.actions)||(e.event.actions=[e.event.actions]);var n=!1;_.map(e.event.actions,function(s){if(!n){if("function"!=typeof i[s])throw new Error("executeEventActionChain : the action : "+s+" has not been found when firing event : "+e.event.selector);var o=!(!_.has(e,"dom_el")||-1==e.dom_el.length)&&e.dom_el;if(o){o.trigger("before_"+s,_.omit(e,"event"));!1===i[s].call(i,e)&&(n=!0),o.trigger("after_"+s,_.omit(e,"event"))}else t.errorLog("missing dom element")}})}}(jQuery,czrapp);(czrapp=czrapp||{}).methods={},function(e){var t,i,n=Array.prototype.slice;t=function(){},i=function(i,n,s){var o;return o=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return i.apply(this,arguments)},e.extend(o,i),t.prototype=i.prototype,o.prototype=new t,n&&e.extend(o.prototype,n),s&&e.extend(o,s),o.prototype.constructor=o,o.__super__=i.prototype,o},czrapp.Class=function(t,i,n){var s,o=arguments;return t&&i&&czrapp.Class.applicator===t&&(o=i,e.extend(this,n||{})),s=this,this.instance&&(s=function(){return s.instance.apply(s,arguments)},e.extend(s,this)),s.initialize.apply(s,o),s},czrapp.Class.extend=function(e,t){var n=i(this,e,t);return n.extend=this.extend,n},czrapp.Class.applicator={},czrapp.Class.prototype.initialize=function(){},czrapp.Class.prototype.extended=function(e){for(var t=this;void 0!==t.constructor;){if(t.constructor===e)return!0;if(void 0===t.constructor.__super__)return!1;t=t.constructor.__super__}return!1},czrapp.Events={trigger:function(e){return this.topics&&this.topics[e]&&this.topics[e].fireWith(this,n.call(arguments,1)),this},bind:function(t){return this.topics=this.topics||{},this.topics[t]=this.topics[t]||e.Callbacks(),this.topics[t].add.apply(this.topics[t],n.call(arguments,1)),this},unbind:function(e){return this.topics&&this.topics[e]&&this.topics[e].remove.apply(this.topics[e],n.call(arguments,1)),this}},czrapp.Value=czrapp.Class.extend({initialize:function(t,i){this._value=t,this.callbacks=e.Callbacks(),this._dirty=!1,e.extend(this,i||{}),this.set=e.proxy(this.set,this)},instance:function(){return arguments.length?this.set.apply(this,arguments):this.get()},get:function(){return this._value},set:function(t,i){var n=this._value,s=e.Deferred(),o=this,r=[];t=this._setter.apply(this,arguments),t=this.validate(t);var a=_.extend({silent:!1},_.isObject(i)?i:{});return null===t||_.isEqual(n,t)?s.resolveWith(o,[t,n,i]).promise():(this._value=t,this._dirty=!0,!0===a.silent?s.resolveWith(o,[t,n,i]).promise():this._deferreds?(_.each(o._deferreds,function(e){r.push(e.apply(null,[t,n,i]))}),e.when.apply(null,r).fail(function(){czrapp.errorLog("A deferred callback failed in api.Value::set()")}).then(function(){o.callbacks.fireWith(o,[t,n,i]),s.resolveWith(o,[t,n,i])}),s.promise(o)):(this.callbacks.fireWith(this,[t,n,i]),s.resolveWith(o,[t,n,i]).promise(o)))},silent_set:function(e,t){var i=this._value;return e=this._setter.apply(this,arguments),null===(e=this.validate(e))||_.isEqual(i,e)?this:(this._value=e,this._dirty=_.isUndefined(t)||!_.isBoolean(t)?this._dirty:t,this.callbacks.fireWith(this,[e,i,{silent:!0}]),this)},_setter:function(e){return e},setter:function(e){var t=this.get();return this._setter=e,this._value=null,this.set(t),this},resetSetter:function(){return this._setter=this.constructor.prototype._setter,this.set(this.get()),this},validate:function(e){return e},bind:function(){var t=this,i=!1,n=[];return e.each(arguments,function(e,t){i||(i=_.isObject(t)&&t.deferred),_.isFunction(t)&&n.push(t)}),i?(t._deferreds=t._deferreds||[],_.each(n,function(e){_.contains(e,t._deferreds)||t._deferreds.push(e)})):t.callbacks.add.apply(t.callbacks,arguments),this},unbind:function(){return this.callbacks.remove.apply(this.callbacks,arguments),this}}),czrapp.Values=czrapp.Class.extend({defaultConstructor:czrapp.Value,initialize:function(t){e.extend(this,t||{}),this._value={},this._deferreds={}},instance:function(e){return 1===arguments.length?this.value(e):this.when.apply(this,arguments)},value:function(e){return this._value[e]},has:function(e){return void 0!==this._value[e]},add:function(e,t){return this.has(e)?this.value(e):(this._value[e]=t,t.parent=this,t.extended(czrapp.Value)&&t.bind(this._change),this.trigger("add",t),this._deferreds[e]&&this._deferreds[e].resolve(),this._value[e])},create:function(e){return this.add(e,new this.defaultConstructor(czrapp.Class.applicator,n.call(arguments,1)))},each:function(t,i){i=void 0===i?this:i,e.each(this._value,function(e,n){t.call(i,n,e)})},remove:function(e){var t;this.has(e)&&(t=this.value(e),this.trigger("remove",t),t.extended(czrapp.Value)&&t.unbind(this._change),delete t.parent),delete this._value[e],delete this._deferreds[e]},when:function(){var t=this,i=n.call(arguments),s=e.Deferred();return e.isFunction(i[i.length-1])&&s.done(i.pop()),e.when.apply(e,e.map(i,function(i){if(!t.has(i))return t._deferreds[i]||e.Deferred()})).done(function(){var n=e.map(i,function(e){return t(e)});n.length===i.length?s.resolveWith(t,n):t.when.apply(t,i).done(function(){s.resolveWith(t,n)})}),s.promise()},_change:function(){this.parent.trigger("change",this)}}),e.extend(czrapp.Values.prototype,czrapp.Events)}(jQuery);czrapp=czrapp||{};!function(e,t){var i={cacheProp:function(){e.extend(t,{$_window:e(window),$_html:e("html"),$_body:e("body"),$_wpadminbar:e("#wpadminbar"),$_header:e(".tc-header"),localized:"undefined"!=typeof TCParams&&TCParams?TCParams:{_disabled:[]},is_responsive:this.isResponsive(),current_device:this.getDevice()})},isResponsive:function(){return this.matchMedia(979)},getDevice:function(){var e="desktop",t=this;return _.map({desktop:979,tablet:767,smartphone:480},function(i,n){t.matchMedia(i)&&(e=n)}),e},matchMedia:function(i){if(window.matchMedia)return window.matchMedia("(max-width: "+i+"px)").matches;return(t.$_window||e(window)).width()<=i-15},emitCustomEvents:function(){var i=this;t.$_window.resize(function(){var e=t.current_device,n=i.getDevice();t.is_responsive=i.isResponsive(),t.current_device=n,t.$_body.trigger("tc-resize",{current:e,to:n})}),"undefined"!=typeof wp&&void 0!==wp.customize&&void 0!==wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(i){t.$_header=e(".tc-header"),t.$_body.trigger("partialRefresh.czr",i)})},emit:function(e,i){e=_.isArray(e)?e:[e];var n=this;_.map(e,function(e){"function"==typeof n[e]&&(i=void 0===i?[]:i,n[e].apply(n,i),t.trigger(e,_.object(_.keys(i),i)))})},triggerSimpleLoad:function(t){0!==t.length&&t.map(function(t,i){e(i).load(function(){e(i).trigger("simple_load")}),e(i)[0]&&e(i)[0].complete&&e(i).load()})},isUserLogged:function(){return t.$_body.hasClass("logged-in")||0!==t.$_wpadminbar.length},isSelectorAllowed:function(t,i,n){var s="ids"==n?"id":"class",o=i[n];if("object"!=typeof i||!i[n]||!e.isArray(i[n])||0===i[n].length)return!0;if(t.parents(o.map(function(e){return"id"==s?"#"+e:"."+e}).join(",")).length>0)return!1;if(!t.attr(s))return!0;return 0===t.attr(s).split(" ").filter(function(t){return-1!=e.inArray(t,o)}).length},_isMobile:function(){return _.isFunction(window.matchMedia)&&matchMedia("only screen and (max-width: 720px)").matches||this._isCustomizing()&&"desktop"!=this.previewDevice()},_isCustomizing:function(){return t.$_body.hasClass("is-customizing")||"undefined"!=typeof wp&&void 0!==wp.customize},_has_iframe:function(e){var t=[];return _.each(e,function(e,i){e.length>0&&e.find("IFRAME").length>0&&t.push(i)}),t}};t.methods.Base=t.methods.Base||{},e.extend(t.methods.Base,i)}(jQuery,czrapp),function(e,t){var i={addBrowserClassToBody:function(){e.browser.chrome?t.$_body.addClass("chrome"):e.browser.webkit&&t.$_body.addClass("safari"),e.browser.mozilla?t.$_body.addClass("mozilla"):(e.browser.msie||"8.0"===e.browser.version||"9.0"===e.browser.version||"10.0"===e.browser.version||"11.0"===e.browser.version)&&t.$_body.addClass("ie").addClass("ie"+e.browser.version.replace(/[.0]/g,"")),t.$_body.hasClass("ie")&&t.$_body.addClass(e.browser.version)}};t.methods.BrowserDetect=t.methods.BrowserDetect||{},e.extend(t.methods.BrowserDetect,i)}(jQuery,czrapp);czrapp=czrapp||{};!function(e,t){var i={centerImagesWithDelay:function(e){var t=this;setTimeout(function(){t.emit("centerImages")},e||300)},centerInfinity:function(){t.$_body.on("post-load",function(i,n){void 0!==n&&"success"==n.type&&n.collection&&n.container&&function(i,n){var s=e(n);"object"!=typeof i||1>s.length||_.each(i,function(i){var n=e(i+" .thumb-wrapper",s).centerImages({enableCentering:1==t.localized.centerAllImg,enableGoldenRatio:!1,disableGRUnder:0,oncustom:["simple_load"]}).find("img");n.length<1&&(n=e(i+" .tc-rectangular-thumb",s).centerImages({enableCentering:1==t.localized.centerAllImg,enableGoldenRatio:!0,goldenRatioVal:t.localized.goldenRatio||1.618,disableGRUnder:0,oncustom:["simple_load"]}).find("img")),n.length<1&&(n=e(i+" .tc-grid-figure",s).centerImages({enableCentering:1==t.localized.centerAllImg,oncustom:["simple_load"],enableGoldenRatio:!0,goldenRatioVal:t.localized.goldenRatio||1.618,goldenRatioLimitHeightTo:t.localized.gridGoldenRatioLimit||350}).find("img")),t.methods.Base.triggerSimpleLoad(n)})}(n.collection,"#"+n.container)})},imgSmartLoad:function(){var t=1==TCParams.imgSmartLoadEnabled,i=TCParams.imgSmartLoadOpts.parentSelectors.join();if(t&&e(i).imgSmartLoad(_.size(TCParams.imgSmartLoadOpts.opts)>0?TCParams.imgSmartLoadOpts.opts:{}),1==TCParams.centerAllImg){var n=this,s=t?e(_.filter(e(i).find("img"),function(t){return e(t).is(TCParams.imgSmartLoadOpts.opts.excludeImg.join())})):e(i).find("img"),o=e(_.filter(s,function(t){return e(t).hasClass("tc-holder-img")}));setTimeout(function(){n.triggerSimpleLoad(o)},300),n.triggerSimpleLoad(s)}},dropCaps:function(){TCParams.dropcapEnabled&&_.isObject(TCParams.dropcapWhere)&&e.each(TCParams.dropcapWhere,function(t,i){1==i&&e(".entry-content","body."+("page"==t?"page":"single-post")).children().first().addDropCap({minwords:TCParams.dropcapMinWords,skipSelectors:_.isObject(TCParams.dropcapSkipSelectors)?TCParams.dropcapSkipSelectors:{}})})},extLinks:function(){(TCParams.extLinksStyle||TCParams.extLinksTargetExt)&&e("a",".entry-content").extLinks({addIcon:TCParams.extLinksStyle,newTab:TCParams.extLinksTargetExt,skipSelectors:_.isObject(TCParams.extLinksSkipSelectors)?TCParams.extLinksSkipSelectors:{}})},fancyBox:function(){1==TCParams.FancyBoxState&&"function"==typeof e.fn.fancybox&&(e("a.grouped_elements").fancybox({transitionOut:"elastic",transitionIn:"elastic",speedIn:200,speedOut:200,overlayShow:!1,autoScale:1==TCParams.FancyBoxAutoscale?"true":"false",changeFade:"fast",enableEscapeButton:!0}),e("a[rel*=tc-fancybox-group]").each(function(){var t=e(this).find("img").prop("title"),i=e(this).find("img").prop("alt");void 0!==t&&0!==t.length?e(this).attr("title",t):void 0!==i&&0!==i.length&&e(this).attr("title",i)}))},centerImages:function(){setTimeout(function(){e.each(e(".carousel .carousel-inner"),function(){e(this).centerImages({enableCentering:1==TCParams.centerSliderImg,imgSel:".czr-item .carousel-image img",oncustom:["customizr.slid","simple_load","smartload"],defaultCSSVal:{width:"100%",height:"auto"},useImgAttr:!0});var t=this;setTimeout(function(){e(t).prevAll(".tc-slider-loader-wrapper").fadeOut()},500)})},50),e(".widget-front .thumb-wrapper").centerImages({enableCentering:1==TCParams.centerAllImg,enableGoldenRatio:!1,disableGRUnder:0,zeroTopAdjust:1,leftAdjust:2.5,oncustom:["smartload","simple_load"]}),e(".thumb-wrapper",".czr-hentry").centerImages({enableCentering:1==TCParams.centerAllImg,enableGoldenRatio:!1,disableGRUnder:0,oncustom:["smartload","simple_load"]}),e(".tc-rectangular-thumb",".tc-post-list-context").centerImages({enableCentering:1==TCParams.centerAllImg,enableGoldenRatio:!0,goldenRatioVal:TCParams.goldenRatio||1.618,disableGRUnder:0,oncustom:["smartload","refresh-height","simple_load"]}),e(".tc-rectangular-thumb",".tc-singular-thumbnail-wrapper").centerImages({enableCentering:1==TCParams.centerAllImg,enableGoldenRatio:!1,disableGRUnder:0,oncustom:["smartload","refresh-height","simple_load"],setOpacityWhenCentered:!0,opacity:1}),e(".tc-grid-figure").centerImages({enableCentering:1==TCParams.centerAllImg,oncustom:["smartload","simple_load"],enableGoldenRatio:!0,goldenRatioVal:TCParams.goldenRatio||1.618,goldenRatioLimitHeightTo:TCParams.gridGoldenRatioLimit||350})},parallax:function(){e(".parallax-item").czrParallax({parallaxRatio:.55})}};t.methods.JQPlugins=t.methods.JQPlugins||{},e.extend(t.methods.JQPlugins={},i)}(jQuery,czrapp);czrapp=czrapp||{};!function(e,t){var i={initOnDomReady:function(){var i=this;this.$_sliders=e('div[id*="customizr-slider"]'),t.$_window.resize(function(){i.centerSliderArrows()})},fireSliders:function(i,n,s){var o=this,r=i||TCParams.SliderName,a=n||TCParams.SliderDelay,c=s||TCParams.SliderHover,l=".czr-item";if(!(0===r.length||1>o.$_sliders.length)){if(t.localized.imgSmartLoadsForSliders){o.$_sliders.addClass("disable-transitions-for-smartload"),o.$_sliders.find(l+".active").imgSmartLoad().data("czr_smartLoaded",!0);var d=function(t){t.find(".czr-css-loader").fadeOut({duration:"fast",done:function(){e(this).remove()}})},h=function(t){t=t||"czr-smartloaded";var i=this;1>i.find("img[data-src], img[data-smartload]").length||i.data("czr_smartLoaded")||(1>i.find(".czr-css-loader").length&&i.append('').find(".czr-css-loader").fadeIn("slow"),i.imgSmartLoad().data("czr_smartLoaded",!0).addClass(t),i.data("czr_loader_timer",e.Deferred(function(){var e=this;return _.delay(function(){e.resolve()},2e3),this.promise()})),i.data("czr_loader_timer").done(function(){d(i)}))};o.$_sliders.data("czr_smartload_scheduled",e.Deferred().done(function(){o.$_sliders.addClass("czr-smartload-scheduled")}));var u=function(){return 1<=o.$_sliders.length&&!_.isUndefined(o.$_sliders.data("czr_smartload_scheduled"))};o.$_sliders.data("czr_schedule_select",e.Deferred(function(){var e=this;o.$_sliders.parent().one("customizr.slide click",function(){e.resolve()})}).done(function(){u()&&"resolved"!=o.$_sliders.data("czr_smartload_scheduled").state()&&(o.$_sliders.find(l).each(function(){h.call(e(this),"czr-smartloaded-on-select")}),o.$_sliders.data("czr_smartload_scheduled").resolve())})),o.$_sliders.data("czr_schedule_scroll_resize",e.Deferred(function(){var e=this;t.$_window.one("scroll resize",function(){_.delay(function(){e.resolve()},5e3)})}).done(function(){u()&&"resolved"!=o.$_sliders.data("czr_smartload_scheduled").state()&&(o.$_sliders.find(l).each(function(){h.call(e(this),"czr-smartloaded-on-scroll")}),o.$_sliders.data("czr_smartload_scheduled").resolve())})),o.$_sliders.data("czr_schedule_autoload",e.Deferred(function(){var e=this;_.delay(function(){e.resolve()},1e4)}).done(function(){u()&&"resolved"!=o.$_sliders.data("czr_smartload_scheduled").state()&&(o.$_sliders.find(l).each(function(){h.call(e(this),"czr-auto-smartloaded")}),o.$_sliders.data("czr_smartload_scheduled").resolve())})),o.$_sliders.on("smartload",l,function(){d(e(this))})}0===a.length||c?0!==a.length?this.$_sliders.czrCarousel({interval:a}):this.$_sliders.czrCarousel():this.$_sliders.czrCarousel({interval:a,pause:"false"})}},parallaxSliders:function(){"function"==typeof e.fn.czrParallax&&e(".czr-parallax-slider").czrParallax()},manageHoverClass:function(){this.$_sliders.hover(function(){e(this).addClass("tc-slid-hover")},function(){e(this).removeClass("tc-slid-hover")})},centerSliderArrows:function(){0!==this.$_sliders.length&&this.$_sliders.each(function(){var t=e(".carousel-inner",e(this)).height();e(".tc-slider-controls",e(this)).css("line-height",t+"px").css("max-height",t+"px")})},addSwipeSupport:function(){if("function"==typeof e.fn.hammer&&0!==this.$_sliders.length){this.$_sliders.on("touchstart touchmove",'input, button, textarea, select, a:not(".tc-slide-link")',function(e){e.stopPropagation()});var i=t.$_body.hasClass("rtl");this.$_sliders.each(function(){e(this).hammer().on("swipeleft",function(){e(this).czrCarousel(i?"prev":"next")}),e(this).hammer().on("swiperight",function(){e(this).czrCarousel(i?"next":"prev")})})}},sliderTriggerSimpleLoad:function(){this.triggerSimpleLoad(this.$_sliders.find(".carousel-inner img"))}};t.methods.Slider={},e.extend(t.methods.Slider,i)}(jQuery,czrapp);czrapp=czrapp||{};!function(e,t){var i={initOnDomReady:function(){this.timer=0,this.increment=1,e(".menu-item").on("focusin","a",function(t){e(this).closest(".menu-item").addClass("czr-focusin")})},eventListener:function(){var e=this;t.$_window.scroll(_.throttle(function(){e.eventHandler("scroll")},50))},eventHandler:function(i){var n=this;switch(i){case"scroll":if(0===e(".tc-btt-wrapper").length)return;this.timer&&(this.increment++,clearTimeout(n.timer)),1==TCParams.timerOnScrollAllBrowsers?this.timer=setTimeout(function(){n.bttArrowVisibility()},n.increment>5?50:0):t.$_body.hasClass("ie")&&(this.timer=setTimeout(function(){n.bttArrowVisibility()},n.increment>5?50:0))}},outline:function(){t.$_body.hasClass("mozilla")&&"function"==typeof tcOutline&&tcOutline()},smoothScroll:function(){TCParams.SmoothScroll&&TCParams.SmoothScroll.Enabled&&smoothScroll(TCParams.SmoothScroll.Options)},anchorSmoothScroll:function(){if(TCParams.anchorSmoothScroll&&"easeOutExpo"==TCParams.anchorSmoothScroll){var t,i=TCParams.anchorSmoothScrollExclude&&_.isArray(TCParams.anchorSmoothScrollExclude.simple)?TCParams.anchorSmoothScrollExclude.simple.join(","):"",n=this,s=e('#tc-page-wrap a[href^="#"],#tc-sn a[href^="#"]').not(i),o=_.isObject(TCParams.anchorSmoothScrollExclude.deep)?TCParams.anchorSmoothScrollExclude.deep:null;o&&(t=_.toArray(s).filter(function(t){return 2==["ids","classes"].filter(function(i){return n.isSelectorAllowed(e(t),o,i)}).length})),e(t).click(function(){var t=e(this).attr("href");if(e(t).length)return"#"!=t&&e("html, body").animate({scrollTop:e(t).offset().top},700,TCParams.anchorSmoothScroll),!1})}},bttArrowVisibility:function(){t.$_window.scrollTop()>100?e(".tc-btt-wrapper").addClass("show"):e(".tc-btt-wrapper").removeClass("show")},backToTop:function(){var t=e("html, body"),i=function(e){return(e.which>0||"mousedown"===e.type||"mousewheel"===e.type)&&t.stop().off("scroll mousedown DOMMouseScroll mousewheel keyup",i)};e(".back-to-top, .tc-btt-wrapper, .btt-arrow").on("click touchstart touchend",function(e){e.preventDefault(),e.stopPropagation(),t.on("scroll mousedown DOMMouseScroll mousewheel keyup",i),t.animate({scrollTop:0},1e3,function(){t.stop().off("scroll mousedown DOMMouseScroll mousewheel keyup",i)})})},widgetsHoverActions:function(){t.$_body.on("mouseenter mouseleave",".widget-front, article",function(t){i(e(this),"hover",t)}),t.$_body.on("mouseenter mouseleave",".widget li",function(t){i(e(this),"on",t)});function i(e,t,i){"mouseenter"==i.type?e.addClass(t):"mouseleave"==i.type&&e.removeClass(t)}},attachmentsFadeEffect:function(){e("article.attachment img").delay(500).animate({opacity:1},700,function(){})},clickableCommentButton:function(){TCParams.HasComments&&(e("cite p.edit-link").each(function(){e(this).removeClass("btn btn-success btn-mini")}),e("cite p.edit-link > a").each(function(){e(this).addClass("btn btn-success btn-mini")}),e(".comment .reply").each(function(){e(this).removeClass("btn btn-small")}),e(".comment .reply .comment-reply-link").each(function(){e(this).addClass("btn btn-small")}))},dynSidebarReorder:function(){if(1==TCParams.ReorderBlocks){"desktop"!=this.getDevice()&&this._reorderSidebars("responsive");var e=this;t.$_body.on("tc-resize",function(t,i){var n="desktop"!=(i=_.isObject(i)?i:{}).to?"responsive":"normal";("desktop"!=i.current?"responsive":"normal")!=n&&e._reorderSidebars(n)})}},_reorderSidebars:function(t){t=t||"normal";var i=TCParams.LeftSidebarClass||".span3.left.tc-sidebar",n=TCParams.RightSidebarClass||".span3.right.tc-sidebar";this.$_content=this.$_content||e("#main-wrapper .container .article-container"),this.$_left=this.$_left||e("#main-wrapper .container "+i),this.$_right=this.$_right||e("#main-wrapper .container "+n);var s=this._has_iframe({content:this.$_content,left:this.$_left}),o=e.inArray("left",s)>-1,r=e.inArray("content",s)>-1;o&&r||this.$_left.length&&(o?this.$_content["normal"===t?"insertAfter":"insertBefore"](this.$_left):this.$_left["normal"===t?"insertBefore":"insertAfter"](this.$_content))},dropdownMenuEventsHandler:function(){var t=e('.tc-open-on-click .menu-item.menu-item-has-children > a[href!="#"]'),i=e(".tc-open-on-click .dropdown .dropdown-submenu");t.on("click",function(){("hidden"!=e(this).next(".dropdown-menu").css("visibility")&&e(this).next(".dropdown-menu").is(":visible")&&!e(this).parent().hasClass("dropdown-submenu")||e(this).next(".dropdown-menu").is(":visible")&&e(this).parent().hasClass("dropdown-submenu"))&&(window.location=e(this).attr("href"))}),i.each(function(){var t=e(this);t.children('[data-toggle="dropdown"]').on("click",function(){var i=!1;return t.hasClass("open")||(i=!0),e(t.parent()).children(".dropdown-submenu").each(function(){e(this).removeClass("open")}),i&&t.addClass("open"),!1})})},menuButtonHover:function(){e(".btn-toggle-nav").hover(function(){e(this).addClass("hover")},function(){e(this).removeClass("hover")})},secondMenuRespActions:function(){if(TCParams.isSecondMenuEnabled){var i=TCParams.secondMenuRespSet||!1,n=this;if(i&&-1!=i.indexOf("in-sn")){var s=function(){n.$_sec_menu_els=e(".nav > li",".tc-header .nav-collapse"),n.$_sn_wrap=e(".sn-nav",".sn-nav-wrapper"),n.$_sec_menu_wrap=e(".nav",".tc-header .nav-collapse")};s();var o="desktop"==this.getDevice()?"navbar":"side_nav";"desktop"!=this.getDevice()&&this._manageMenuSeparator(o,i)._moveSecondMenu(o,i),t.$_body.on("tc-resize partialRefresh.czr",function(o,r){var a=!1;"partialRefresh"==o.type&&"czr"===o.namespace&&r.container&&r.container.hasClass("tc-header")&&(!function(){var t=e(".secondary-menu-separator");if(t.length){switch(i){case"in-sn-before":t.prevAll(".menu-item").remove();break;case"in-sn-after":t.nextAll(".menu-item").remove()}t.remove()}}(),s(),r={to:t.current_device,current:t.current_device},a=!0);var c="desktop"!=(r=_.isObject(r)?r:{}).to?"side_nav":"navbar";(("desktop"!=r.current?"side_nav":"navbar")!=c||a)&&n._manageMenuSeparator(c,i)._moveSecondMenu(c,i)})}}},_manageMenuSeparator:function(t,i){if("navbar"==t)e(".secondary-menu-separator",this.$_sn_wrap).remove();else{var n=e('