').find(".czr-css-loader").fadeIn("slow"),e.imgSmartLoad().data("czr_smartLoaded",!0).addClass(t),e.data("czr_loader_timer",h.Deferred(function(){var t=this;return _.delay(function(){t.resolve()},2e3),this.promise()})),e.data("czr_loader_timer").done(function(){l(e)}))};n.$_sliders.data("czr_smartload_scheduled",h.Deferred().done(function(){n.$_sliders.addClass("czr-smartload-scheduled")}));var d=function(){return 1<=n.$_sliders.length&&!_.isUndefined(n.$_sliders.data("czr_smartload_scheduled"))};n.$_sliders.data("czr_schedule_select",h.Deferred(function(){var t=this;n.$_sliders.parent().one("customizr.slide click",function(){t.resolve()})}).done(function(){d()&&"resolved"!=n.$_sliders.data("czr_smartload_scheduled").state()&&(n.$_sliders.find(a).each(function(){c.call(h(this),"czr-smartloaded-on-select")}),n.$_sliders.data("czr_smartload_scheduled").resolve())})),n.$_sliders.data("czr_schedule_scroll_resize",h.Deferred(function(){var t=this;p.$_window.one("scroll resize",function(){_.delay(function(){t.resolve()},5e3)})}).done(function(){d()&&"resolved"!=n.$_sliders.data("czr_smartload_scheduled").state()&&(n.$_sliders.find(a).each(function(){c.call(h(this),"czr-smartloaded-on-scroll")}),n.$_sliders.data("czr_smartload_scheduled").resolve())})),n.$_sliders.data("czr_schedule_autoload",h.Deferred(function(){var t=this;_.delay(function(){t.resolve()},1e4)}).done(function(){d()&&"resolved"!=n.$_sliders.data("czr_smartload_scheduled").state()&&(n.$_sliders.find(a).each(function(){c.call(h(this),"czr-auto-smartloaded")}),n.$_sliders.data("czr_smartload_scheduled").resolve())})),n.$_sliders.on("smartload",a,function(){l(h(this))})}0===s.length||r?0!==s.length?this.$_sliders.czrCarousel({interval:s}):this.$_sliders.czrCarousel():this.$_sliders.czrCarousel({interval:s,pause:"false"})}},parallaxSliders:function(){"function"==typeof h.fn.czrParallax&&h(".czr-parallax-slider").czrParallax()},manageHoverClass:function(){this.$_sliders.on("mouseenter",function(){h(this).addClass("tc-slid-hover")}).on("mouseleave",function(){h(this).removeClass("tc-slid-hover")})},centerSliderArrows:function(){0!==this.$_sliders.length&&this.$_sliders.each(function(){var t=h(".carousel-inner",h(this)).height();h(".tc-slider-controls",h(this)).css("line-height",t+"px").css("max-height",t+"px")})},addSwipeSupport:function(){if("function"==typeof h.fn.hammer&&0!==this.$_sliders.length){this.$_sliders.on("touchstart touchmove",'input, button, textarea, select, a:not(".tc-slide-link")',function(t){t.stopPropagation()});var t=p.$_body.hasClass("rtl");this.$_sliders.each(function(){h(this).hammer().on("swipeleft",function(){h(this).czrCarousel(t?"prev":"next")}),h(this).hammer().on("swiperight",function(){h(this).czrCarousel(t?"next":"prev")})})}},sliderTriggerSimpleLoad:function(){this.triggerSimpleLoad(this.$_sliders.find(".carousel-inner img"))}};p.methods.Slider={},h.extend(p.methods.Slider,t)}(jQuery,czrapp);czrapp=czrapp||{};!function(a,l){var t={initOnDomReady:function(){this.timer=0,this.increment=1,a(".menu-item").on("keyup","a",function(t){if(9==t.which){var e=a(this).closest(".menu-item");e.addClass("czr-focusin"),e.hasClass("menu-item-has-children")&&e.addClass("czr-parent-menu-navigated")}})},eventListener:function(){var t=this;l.$_window.on("scroll",_.throttle(function(){t.eventHandler("scroll")},50))},eventHandler:function(t){var e=this;switch(t){case"scroll":if(0===a(".tc-btt-wrapper").length)return;this.timer&&(this.increment++,clearTimeout(e.timer)),1==TCParams.timerOnScrollAllBrowsers?this.timer=setTimeout(function(){e.bttArrowVisibility()},5 a").each(function(){a(this).addClass("btn btn-success btn-mini")}),a(".comment .reply").each(function(){a(this).removeClass("btn btn-small")}),a(".comment .reply .comment-reply-link").each(function(){a(this).addClass("btn btn-small")}))},dynSidebarReorder:function(){if(1==TCParams.ReorderBlocks){"desktop"!=this.getDevice()&&this._reorderSidebars("responsive");var n=this;l.$_body.on("tc-resize",function(t,e){var i="desktop"!=(e=_.isObject(e)?e:{}).to?"responsive":"normal";("desktop"!=e.current?"responsive":"normal")!=i&&n._reorderSidebars(i)})}},_reorderSidebars:function(t){t=t||"normal";var e=this,i=TCParams.LeftSidebarClass||".span3.left.tc-sidebar",n=TCParams.RightSidebarClass||".span3.right.tc-sidebar";e.$_content=e.$_content||a("#main-wrapper .container .article-container"),e.$_left=e.$_left||a("#main-wrapper .container "+i),e.$_right=e.$_right||a("#main-wrapper .container "+n);var o=e._has_iframe({content:this.$_content,left:this.$_left}),s=-1 a[href!="#"]'),e=a(".tc-open-on-click .dropdown .dropdown-submenu");t.on("click",function(){("hidden"!=a(this).next(".dropdown-menu").css("visibility")&&a(this).next(".dropdown-menu").is(":visible")&&!a(this).parent().hasClass("dropdown-submenu")||a(this).next(".dropdown-menu").is(":visible")&&a(this).parent().hasClass("dropdown-submenu"))&&(window.location=a(this).attr("href"))}),e.each(function(){var e=a(this);e.children('[data-toggle="dropdown"]').on("click",function(){var t=!1;return e.hasClass("open")||(t=!0),a(e.parent()).children(".dropdown-submenu").each(function(){a(this).removeClass("open")}),t&&e.addClass("open"),!1})})},menuButtonHover:function(){a(".btn-toggle-nav").on("mouseenter",function(){a(this).addClass("hover")}).on("mouseleave",function(){a(this).removeClass("hover")})},secondMenuRespActions:function(){if(TCParams.isSecondMenuEnabled){var o=TCParams.secondMenuRespSet||!1,s=this;if(o&&-1!=o.indexOf("in-sn")){var r=function(){s.$_sec_menu_els=a(".nav > li",".tc-header .nav-collapse"),s.$_sn_wrap=a(".sn-nav",".sn-nav-wrapper"),s.$_sec_menu_wrap=a(".nav",".tc-header .nav-collapse")};r();var t="desktop"==this.getDevice()?"navbar":"side_nav";"desktop"!=this.getDevice()&&this._manageMenuSeparator(t,o)._moveSecondMenu(t,o),l.$_body.on("tc-resize partialRefresh.czr",function(t,e){var i=!1;"partialRefresh"==t.type&&"czr"===t.namespace&&e.container&&e.container.hasClass("tc-header")&&(!function(){var t=a(".secondary-menu-separator");if(t.length){switch(o){case"in-sn-before":t.prevAll(".menu-item").remove();break;case"in-sn-after":t.nextAll(".menu-item").remove()}t.remove()}}(),r(),e={to:l.current_device,current:l.current_device},i=!0);var n="desktop"!=(e=_.isObject(e)?e:{}).to?"side_nav":"navbar";(("desktop"!=e.current?"side_nav":"navbar")!=n||i)&&s._manageMenuSeparator(n,o)._moveSecondMenu(n,o)})}}},_manageMenuSeparator:function(t,e){if("navbar"==t)a(".secondary-menu-separator",this.$_sn_wrap).remove();else{var i=a('');switch(e){case"in-sn-before":this.$_sn_wrap.prepend(i);break;case"in-sn-after":this.$_sn_wrap.append(i)}}return this},_moveSecondMenu:function(t,e){var i=this;switch(t=t||"side_nav"){case"navbar":i.$_sec_menu_wrap.append(i.$_sec_menu_els);break;case"side_nav":"in-sn-before"==e?i.$_sn_wrap.prepend(i.$_sec_menu_els):i.$_sn_wrap.append(i.$_sec_menu_els)}},_has_iframe:function(t){var i=[];return _.map(t,function(t,e){0','','',"
",""].join("");1!=n.length||_.isEmpty(e)?t.resolve():(o.when(n.append(i)).done(function(){o(this).find(".note-content").prepend(e),s.$_body.find("#tc-footer-btt-wrapper").fadeOut("slow"),s.frontNotificationRendered=!0}),_.delay(function(){o("#bottom-front-notification","#footer").css({bottom:0}),t.resolve()},500))}).done(function(){s.setupDOMListeners([{trigger:"click keydown",selector:".close-note",actions:function(){s.frontNotificationVisible(!1).done(function(){s.doAjax({action:s.frontNotification().dismissAction,withNonce:!0,ajaxUrl:s.frontNotification().ajaxUrl})})}}],{dom_el:n},e),t.resolve()}),t.promise()):t.resolve().promise()).always(function(){i.resolve()})},3e3):o.Deferred(function(){var t=this,e=o("#bottom-front-notification","#footer");1==e.length?(e.css({bottom:"-100%"}),_.delay(function(){e.remove(),s.$_body.find("#tc-footer-btt-wrapper").fadeIn("slow"),s.frontNotificationRendered=!1,t.resolve()},450)):t.resolve()}).done(function(){s.frontNotificationVisible(!1),i.resolve()}),_.delay(function(){s.frontNotificationVisible(!1)},45e3),i.promise()}};s.methods.UserXP=s.methods.UserXP||{},o.extend(s.methods.UserXP,t)}(jQuery,czrapp);czrapp=czrapp||{};!function(i,n){var t={initOnDomReady:function(){var e=this;this.stickyHeaderCacheElements(),this.elToHide=[],this.customOffset=TCParams.stickyCustomOffset||{},this.triggerHeight=20,this.scrollingDelay=1!=TCParams.timerOnScrollAllBrowsers&&n.$_body.hasClass("ie")?50:5,this.isHeaderSticky=new n.Value(!1),this.isHeaderSticky.bind(function(t){e._isHeaderStickyReact(t)}),this.stickyHeaderEventListener(),this.triggerStickyHeaderLoad()},stickyHeaderCacheElements:function(){this.$_resetMarginTop=i("#tc-reset-margin-top"),this.$_sticky_logo=i("img.sticky",".site-logo"),this.logo=0===this.$_sticky_logo.length&&{_logo:i('img:not(".sticky")',".site-logo"),_ratio:""}},stickyHeaderEventListener:function(){var i=this;n.$_body.on("sticky-enabled-on-load",function(){i.stickyHeaderEventHandler("on-load")}),n.$_window.on("tc-resize",function(){i.stickyHeaderEventHandler("resize")}),n.$_body.on("partialRefresh.czr",function(t,e){e.container&&e.container.hasClass("tc-header")&&(i.stickyHeaderCacheElements(),i.stickyHeaderEventHandler("resize"))}),n.$_window.on("scroll",_.throttle(function(){i.stickyHeaderEventHandler("scroll")},!n.$_body.hasClass("tc-smoothscroll")||i.isHeaderSticky()?i.scrollingDelay:15)),n.$_body.on(n.$_body.hasClass("tc-is-mobile")?"touchstart":"click",".sn-toggle",function(){i.stickyHeaderEventHandler("sidenav-toggle")})},triggerStickyHeaderLoad:function(){this._is_sticky_enabled()&&n.$_body.trigger("sticky-enabled-on-load",{on:"load"})},stickyHeaderEventHandler:function(t){if(this._is_sticky_enabled()){var e=this;switch(t){case"on-load":e._prepare_logo_transition(),setTimeout(function(){e._sticky_refresh(),e._set_header_top_offset(),e.isHeaderSticky(n.$_window.scrollTop()>e.triggerHeight)},20);break;case"scroll":e._set_header_top_offset(),e.isHeaderSticky(n.$_window.scrollTop()>e.triggerHeight);break;case"resize":case"sidenav-toggle":e._set_sticky_offsets(),e._set_header_top_offset(),e._set_logo_height()}}},_isHeaderStickyReact:function(t){var e=this;t?(n.$_body.addClass("sticky-enabled").removeClass("sticky-disabled").trigger("tc-sticky-enabled"),n.$_header.hasClass("tc-shrink-on")||e._set_logo_height()):(n.$_body.removeClass("sticky-enabled").addClass("sticky-disabled").trigger("tc-sticky-disabled"),setTimeout(function(){e._sticky_refresh()},e._isCustomizing?100:20),setTimeout(function(){e._sticky_refresh()},200))},_is_sticky_enabled:function(){return n.$_body.hasClass("tc-sticky-header")},_get_top_offset:function(){var t=0,e=+this._get_custom_offset(this.isHeaderSticky()?"_scrolling":"_initial");return 1!=this.isUserLogged()||this._isCustomizing()||(t=580 .dropdown-menu",this.$_nav_collapse=0 li > a { word-wrap: break-word; white-space: pre; }",this._write_dyn_style()},_unstaging:function(){this.$_navbar_wrapper.hasClass("tc-submenu-fade-susp")&&this.$_navbar_wrapper.removeClass("tc-submenu-fade-susp").addClass("tc-submenu-fade")},_write_dyn_style:function(){var t=this.$_head.find("#"+this._dyn_style_id);0"+this._dyn_style+"").appendTo(this.$_head)},_move_dropdown:function(t){if(t&&t.length)if(1 ."+t+" > .dropdown-menu",s=o+":before { "+this._prop+": "+i+"px;}",r=o+":after { "+this._prop+": "+n+"px;}";this._dyn_style+="\n"+s+"\n"+r}};n.methods.Dropdowns={},s.extend(n.methods.Dropdowns,t)}(jQuery,czrapp),function(n,o,s){o.extend(n,n.Events),n.Root=n.Class.extend({initialize:function(t){o.extend(this,t||{}),this.isReady=o.Deferred()},ready:function(){var i=this;i.dom_ready&&s.isArray(i.dom_ready)&&(n.status=n.status||[],s.each(i.dom_ready,function(e){if(s.isFunction(e)||s.isFunction(i[e]))try{(s.isFunction(e)?e:i[e]).call(i)}catch(t){return void n.status.push(["NOK",i.id+"::"+e,s.isString(t)?n._truncate(t):t].join(" => "))}else n.status.push("Method "+e+" was not found and could not be fired on DOM ready.")})),this.isReady.resolve()}}),n.Base=n.Root.extend(n.methods.Base),n.ready=o.Deferred(),n.bind("czrapp-ready",function(){var t=document.createEvent("Event");t.initEvent("czrapp-is-ready",!0,!0),document.dispatchEvent(t),n.ready.resolve()});var t=function(t,e,i){s.isObject(t)&&(s.each(t,function(t,e){if(!n[e]&&s.isObject(t)){t=s.extend({ctor:{},ready:[],options:{}},t);var i=s.extend({id:e,dom_ready:t.ready||[]},t.options);try{n[e]=new t.ctor(i)}catch(t){n.errorLog("Error when loading "+e+" | "+t)}}}),o(function(){s.each(t,function(t,e){n[e]&&n[e].isReady&&"resolved"==n[e].isReady.state()||s.isObject(n[e])&&s.isFunction(n[e].ready)&&n[e].ready()}),n.status=n.status||"OK",s.isArray(n.status)&&s.each(n.status,function(t){n.errorLog(t)}),n.trigger(i?"czrapp-ready":"czrapp-updated")}))};n.appMap=new n.Value({}),n.appMap.bind(t),n.customMap=new n.Value({}),n.customMap.bind(t)}(czrapp=czrapp||{},jQuery,_),function(i){var t=function(){var t=czrapp.localized&&czrapp.localized.pluginCompats?czrapp.localized.pluginCompats:{};czrapp.localized&&czrapp.localized.frontHelpNoticeParams&&czrapp.localized.frontHelpNoticeParams;if(i(function(t){czrapp.localized.isParallaxOn&&t(".czr-parallax-slider").czrParallax({parallaxRatio:czrapp.localized.parallaxRatio||.55})}),t.optimizepress_compat&&t.optimizepress_compat.remove_fancybox_loading){var e=e||"undefined";_.isUndefined(e)||e(document).ready(function(){e("#fancybox-loading").remove()})}};window.czrapp&&czrapp.ready&&"resolved"==czrapp.ready.state()?t():document.addEventListener("czrapp-is-ready",function(){t()})}(jQuery),function(t){t.localized=TCParams||{};var e={base:{ctor:t.Base,ready:["cacheProp","emitCustomEvents"]},browserDetect:{ctor:t.Base.extend(t.methods.BrowserDetect),ready:["addBrowserClassToBody"]},jqPlugins:{ctor:t.Base.extend(t.methods.JQPlugins),ready:["centerImagesWithDelay","centerInfinity","imgSmartLoad","dropCaps","extLinks","fancyBox","parallax"]},slider:{ctor:t.Base.extend(t.methods.Slider),ready:["initOnDomReady","fireSliders","parallaxSliders","manageHoverClass","centerSliderArrows","addSwipeSupport","sliderTriggerSimpleLoad"]},dropdowns:{ctor:t.Base.extend(t.methods.Dropdowns),ready:["fireDropDown"]},userXP:{ctor:t.Base.extend(t.methods.UserXP),ready:["initOnDomReady","eventListener","outline","smoothScroll","anchorSmoothScroll","backToTop","widgetsHoverActions","attachmentsFadeEffect","clickableCommentButton","dynSidebarReorder","dropdownMenuEventsHandler","menuButtonHover","secondMenuRespActions","mayBePrintFrontNote"]},stickyHeader:{ctor:t.Base.extend(t.methods.StickyHeader),ready:["initOnDomReady"]},stickyFooter:{ctor:t.Base.extend(t.methods.StickyFooter),ready:["initOnDomReady","stickyFooterEventListener"]},sideNav:{ctor:t.Base.extend(t.methods.SideNav),ready:["initOnDomReady"]}};t.appMap(e,!0)}(czrapp=czrapp||{});