if(void 0===ThriveApp)var ThriveApp={};var _isAdmin=0,_is_blankPage=0;ThriveApp.is_theme_layout=!1,ThriveApp.bind_comments=!1,ThriveApp.winWidth=jQuery(window).width(),ThriveApp.viewportHeight=jQuery(window).height(),jQuery(window).on("load",function(){ThriveApp.resize_blank_page()}),jQuery(function(){_isAdmin=jQuery("#wpadminbar").length,_is_blankPage=jQuery(".bp-t").length,_is_blankPage||(ThriveApp.menuPositionTop=jQuery("nav.right").length?jQuery("nav.right").position().top:0),ThriveApp.is_theme_layout=!!(jQuery(".bSe .awr").length+jQuery(".bp-t .wrp").length),jQuery(".showTags").each(function(){jQuery(this).mouseover(function(){jQuery(".tagsList",this).show()}),jQuery(this).mouseout(function(){jQuery(".tagsList",this).hide()})}),jQuery(".faqI h4").click(function(){return jQuery(this).toggleClass("oFaq"),jQuery(this).parents(".faqI").find(".faqC").slideToggle("fast"),!1}),jQuery(".tmw").hover(function(){jQuery(this).find(".tmm").slideDown()},function(){jQuery(this).find(".tmm").slideUp(),jQuery(".tmp",this).toggleClass("tmpp")}),jQuery(".accss .acc-h").click(function(){var a=jQuery(this),b=jQuery(this).parents(".accs"),c=b.find(".accss");if(a.parent().hasClass("opac"))return!1;a.parents(".accs").find(".opac").find(".accsi").slideUp(function(){c.removeClass("opac")}),a.next(".accsi").slideDown(function(){a.parents(".accss").addClass("opac")})}),jQuery(".sm_icons, .scfm .ss").each(function(){jQuery(this).mouseover(function(){jQuery(".bubb",this).css("left",function(){return(jQuery(this).parent().width()-jQuery(this).width())/2}).show(0)}),jQuery(this).mouseout(function(){jQuery(".bubb",this).hide()})}),jQuery(".thrive-borderless .wp-video-shortcode").length>0&&(jQuery(".thrive-borderless .wp-video-shortcode").css("width","100%"),jQuery(".thrive-borderless div").css("width","100%")),ThriveApp.comments_page=1,1==ThriveApp.lazy_load_comments&&(jQuery(window).scroll(ThriveApp.bind_scroll),ThriveApp.load_comments()),jQuery(window).resize(function(){var a=window.innerWidth,b=jQuery(window).height();ThriveApp.winWidth!==a&&ThriveApp.delay(function(){ThriveApp.menuResponsive()},1),ThriveApp.winWidth=a,ThriveApp.viewportHeight=b,ThriveApp.menuPositionTop=jQuery("nav.right").length?jQuery("nav.right").position().top:0,ThriveApp.shortcodeTabsResize(),ThriveApp.videoShorcode(),ThriveApp.setVideoPosition(),ThriveApp.setPageSectionHeight(),ThriveApp.image_post_resize(),ThriveApp.grid_layout(".scbg",".scc")}),ThriveApp.menuResponsive(),ThriveApp.shortcodeTabsResize(),ThriveApp.setPageSectionHeight(),ThriveApp.bind_comments_handlers(),ThriveApp.check_comments_hash(),ThriveApp.videoShorcode(),ThriveApp.blog_gallery(),ThriveApp.image_post_resize(),jQuery(".cdt").thrive_timer(),ThriveApp.grid_layout(".scbg",".scc"),jQuery(window).trigger("scroll"),jQuery("body").on("added_to_cart",function(a,b,c,d){var e=jQuery(b[".mini-cart-contents"]).find("a.cart-contents-btn");jQuery(".mobile-mini-cart").html("").append(e)}),window.FB&&window.FB.XFBML&&jQuery(".fb-comments").each(function(){window.FB.XFBML.parse(this.parentNode)})}),ThriveApp.grid_layout=function(a,b){jQuery(a).length>0&&jQuery(a).each(function(){var a=jQuery(b,this),c=a.length,d=function(b){for(var d="",e=0;e<c;e+=b){4==b&&(d=":eq("+e+"),:eq("+(e+1)+"),:eq("+(e+2)+"),:eq("+(e+3)+")"),3==b&&(d=":eq("+e+"),:eq("+(e+1)+"),:eq("+(e+2)+")"),2==b&&(d=":eq("+e+"),:eq("+(e+1)+")");var f=a.filter(d),g=jQuery(f).map(function(){return f.css("height",""),jQuery(this).height()}),h=Math.max.apply(null,g);f.height(h)}};ThriveApp.winWidth>=1080?d(jQuery(".bSe").hasClass("fullWidth")?4:2):ThriveApp.winWidth>=940?d(jQuery(".bSe").parents(".wrp").hasClass("fullWidth")?3:2):940>ThriveApp.winWidth&&ThriveApp.winWidth>=741&&d(2)})},ThriveApp.setPageSectionHeight=function(){var a=jQuery(".wrp .bpd,.wrp.fullWidth"),b=a.length;b&&ThriveApp.winWidth;jQuery(".pddbg, .scvps").css("max-width",ThriveApp.winWidth+"px"),jQuery(".pdfbg").each(function(){var a=jQuery(this).css("box-sizing","border-box"),b=parseInt(a.attr("data-height")),c=parseInt(a.attr("data-width")),d="100%";if(b&&!isNaN(b)&&c&&!isNaN(c)){var e=Math.min(ThriveApp.winWidth,a.parent().width());d=(e<c?e*b/c:b)+"px"}a.css("min-height",d)})},ThriveApp.number_counter=function(){jQuery(".nbc.nsds").each(function(){function a(c,f){e=Math.ceil(f/100),c<=f?(b.text(c),c+=e,c+e>f&&(b.text(f),clearTimeout(d)),d=setTimeout(function(){a(c,f)},50)):clearTimeout(d)}var b=jQuery(".nbcn",this),c=b.attr("data-counter"),d=null,e=1;"false"==jQuery(this).attr("data-started")&&(a(0,c),jQuery(this).attr("data-started","true"))})},ThriveApp.show_shortcodes=function(a){jQuery(".nsd").each(function(){var b=jQuery(this);a+ThriveApp.viewportHeight>=b.offset().top+b.outerHeight()&&(b.addClass("nsds"),ThriveApp.number_counter())})},ThriveApp.showMenu=function(){jQuery("header nav ul li").on("mouseenter",function(){var a=jQuery(this),b=jQuery(this).children(".sub-menu");if(a.hasClass("has-extended")&&ThriveApp.winWidth>=774){var c=a.offset().left,d=b.width(),e=jQuery(".wrp.cnt"),f=e.width(),g=e.offset().left;(c<g||c+d>g+f)&&(b.addClass("position_menu"),c<g?b.hasClass("position_right")||b.addClass("position_left"):c+d>g+f&&(b.hasClass("position_left")||b.addClass("position_right"))),b.css("max-height",jQuery(window).height()-100).css("overflow-y","auto"),b.stop().fadeIn("fast"),ThriveApp.extended_menu_opened=!0}else b.show()}).on("mouseleave",function(){var a=jQuery(this);a.children(".sub-menu").stop().fadeOut("fast"),a.hasClass("has-extended")&&(ThriveApp.extended_menu_opened=!1)})},ThriveApp.shortcodeTabsResize=function(){jQuery(".scT ul.scT-tab li").on("click",function(a){var b=jQuery(this),c=b.parents(".shortcode_tabs").first(),d=c.find(".scTC").eq(b.index());c.find(".tS").removeClass("tS"),b.addClass("tS"),c.find(".scTC").hide(),d.show(),a.preventDefault()})},ThriveApp.menuResponsive=function(){ThriveApp.winWidth<=774?(jQuery("header nav ul li").each(function(){jQuery(this).unbind("mouseenter"),jQuery(this).unbind("mouseleave")}),jQuery("header #nav_right").hide(0),jQuery("header .sub-menu").show(0),jQuery(".rmn").unbind("click").click(function(){var a=jQuery("#floating_menu").height(),b=jQuery("#wpadminbar").length?46:0,c=a+b,d=ThriveApp.viewportHeight-c;jQuery("header #nav_right").fadeToggle("fast",function(){var a=jQuery("#floating_menu nav").height();ThriveApp.viewportHeight<=a+c&&(jQuery("#nav_right").css({"max-height":d+"px"}),jQuery("html").addClass("html-hidden")),a<=0&&jQuery("html").removeClass("html-hidden")})})):ThriveApp.winWidth>=775&&(jQuery("header #nav_right").show(0),jQuery("header .sub-menu").hide(0),ThriveApp.showMenu())},ThriveApp.delay=function(){var a=0;return function(b,c){clearTimeout(a),a=setTimeout(b,c)}}(),ThriveApp.check_comments_hash=function(){if(location.hash){var a=location.hash.indexOf("#comment-")+9,b=location.hash.substring(a,location.hash.length);if(-1!==location.hash.indexOf("#comment-")){var c=jQuery("#comment-container-"+b);0!==c.length&&jQuery("html,body").animate({scrollTop:c.offset().top-30},"slow")}}},ThriveApp.videoShorcode=function(){jQuery(".scvps .pvb").click(function(){var a=jQuery(this).parents(".scvps").height();if(jQuery(this).parents(".scvps").css("height",a+"px"),jQuery(this).parents(".vdc").find("h2").hide(),jQuery(this).parents(".vdc").find("h3").hide(),jQuery(this).parents(".vdc").find("p").hide(),jQuery(this).hide(),jQuery(this).parents(".scvps").find(".video-container").show(),jQuery(this).parents(".scvps").find("iframe").length>0){var b=jQuery(this).parents(".scvps").find("iframe"),c=jQuery(this).parents(".scvps").outerWidth();c<b.attr("width")&&(b.attr("width",c),b.attr("height",9*c/16))}var d=jQuery(this).parents(".scvps").find(".vwr"),e=jQuery(this).parents(".scvps").outerHeight()/2-d.height()/2;if(d.css({top:e<0?0:e,left:jQuery(this).parents(".scvps").outerWidth()/2-d.width()/2}),jQuery(this).parents(".scvps").find("video").length>0&&jQuery(this).parents(".scvps").find("video")[0].player.play(),jQuery(this).parents(".scvps").find("iframe").length>0){var b=jQuery(this).parents(".scvps").find("iframe"),f=(b.attr("id"),b.attr("src"));f.indexOf("vimeo")>=0?b.attr("src",ThriveApp.updateQueryStringParameter(f,"autoplay","1")):f.indexOf("youtube")>=0&&b.attr("src",ThriveApp.updateQueryStringParameter(f,"autoplay","1")),jQuery(this).parents(".scvps").find("iframe").trigger("click")}})},ThriveApp.bind_scroll=function(){if(jQuery("#comment-bottom").length>0){var a=jQuery("#comment-bottom").offset().top;a>0&&a<jQuery(window).height()+jQuery(document).scrollTop()&&ThriveApp.load_comments()}},ThriveApp.load_comments=function(){if(1!=ThriveApp.comments_loaded){ThriveApp.comments_loaded=1,"undefined"==typeof _thriveCurrentPost&&(_thriveCurrentPost=0),jQuery("#thrive_container_preload_comments").show();var a={action:"thrive_lazy_load_comments",post_id:_thriveCurrentPost,comment_page:ThriveApp.comments_page};window.TVE_Dash&&!TVE_Dash.ajax_sent?jQuery(document).on("tve-dash.load",function(){TVE_Dash.add_load_item("theme_comments",a,ThriveApp.load_comments_handle)}):jQuery.post(ThriveApp.ajax_url,a,ThriveApp.load_comments_handle)}},ThriveApp.load_comments_handle=function(a){ThriveApp.comments_page++,ThriveApp.comments_loaded=""==a?1:0,jQuery("#thrive_container_preload_comments").hide(),jQuery("#thrive_container_list_comments").append(a),jQuery("#thrive_container_form_add_comment").show(),!1===ThriveApp.bind_comments&&ThriveApp.bind_comments_handlers(),ThriveApp.check_comments_hash()},ThriveApp.bind_comments_handlers=function(){ThriveApp.bind_comments=!0,jQuery(document).on("click",".txt_thrive_link_to_comments",function(){var a=jQuery("#commentform");return jQuery("html,body").animate({scrollTop:a.offset().top},"slow"),!1}),jQuery(document).on("click","#thrive_container_list_comments .reply",function(){var a=jQuery(this).attr("cid");return jQuery("#respond-container-"+a).slideDown(),!1}),jQuery(document).on("click","#thrive_container_list_comments .cancel_reply",function(){var a=jQuery(this).attr("cid");return jQuery("#respond-container-"+a).slideUp(),!1})},ThriveApp.youtube_play=function(a,b,c){"use strict";jQuery("#videoContainer").html('<iframe width="'+b+'" height="'+c+'" src="https://www.youtube.com/embed/'+a+'?autoplay=1&loop=1&rel=0&wmode=transparent" frameborder="0" allowfullscreen wmode="Opaque"></iframe>')},ThriveApp._get_element_height=function(a){var b,c,d=document.getElementById(a);return document.all?(b=d.currentStyle.height,c=parseInt(d.currentStyle.marginTop,10)+parseInt(d.currentStyle.marginBottom,10)+"px"):(b=document.defaultView.getComputedStyle(d,"").getPropertyValue("height"),c=parseInt(document.defaultView.getComputedStyle(d,"").getPropertyValue("margin-top"))+parseInt(document.defaultView.getComputedStyle(d,"").getPropertyValue("margin-bottom"))+"px"),b+c},ThriveApp.updateQueryStringParameter=function(a,b,c){var d=new RegExp("([?|&])"+b+"=.*?(&|$)","i");return separator=-1!==a.indexOf("?")?"&":"?",a.match(d)?a.replace(d,"$1"+b+"="+c+"$2"):a+separator+b+"="+c},ThriveApp.social_scripts={twitter:{src:"https://platform.twitter.com/widgets.js",loaded:0},google:{src:"https://apis.google.com/js/plusone.js?onload=onLoadCallback",loaded:0},facebook:{src:"://platform.twitter.com/widgets.js",loaded:0},linkedin:{src:"//platform.linkedin.com/in.js",loaded:0},pinterest:{src:"//assets.pinterest.com/js/pinit.js",loaded:0},youtube:{src:"https://apis.google.com/js/platform.js",loaded:0}},ThriveApp.load_script=function(a){if(0===ThriveApp.social_scripts[a].loaded)if("//assets.pinterest.com/js/pinit.js"==ThriveApp.social_scripts[a].src){var b=document.createElement("script");b.type="text/javascript",b.async=!0,b.src="https://assets.pinterest.com/js/pinit.js",b["data-pin-build"]="parsePins";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c),ThriveApp.social_scripts[a].loaded=1}else jQuery.getScript(ThriveApp.social_scripts[a].src,function(){ThriveApp.social_scripts[a].loaded=1})},ThriveApp.setVideoPosition=function(){jQuery(".scvps .pvb").each(function(){var a=jQuery(this).parents(".scvps").find(".vwr");a.css({top:jQuery(this).parents(".scvps").outerHeight()/2-a.height()/2,left:jQuery(this).parents(".scvps").outerWidth()/2-a.width()/2})})},ThriveApp.open_share_popup=function(a,b,c){var d,e;return d=window.screen.width/2-(b/2+10),e=window.screen.height/2-(c/2+50),window.open(a,"Window","status=no,height="+c+",width="+b+",resizable=yes,left="+d+",top="+e+",screenX="+d+",screenY="+e+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no"),!1};var _lastScrollTop=0,_theMenu=jQuery("#floating_menu"),_nextElement=_theMenu.next(),_floatingOption=_theMenu.attr("data-float"),_hasFloatingMenu="float-fixed"==_floatingOption||"float-scroll"==_floatingOption,_defaultPadding=_nextElement.css("padding-top"),_menuHeight=_theMenu.outerHeight(),_textLogoHeight=_theMenu.find("#text_logo").height(),_hasCenterLogo=_theMenu.find(".center_logo").length,_custom_header=_theMenu.children("header"),_custom_header_class=_custom_header.attr("class"),_is_custom_header="hic"==_custom_header_class||"hif"==_custom_header_class,_center_header_height;""===_defaultPadding&&(_defaultPadding="0"),ThriveApp.menu_float={current_scroll_top:0,anim_done:!1,scroll_dir:"down",hasScroll:function(){return _is_custom_header?this.current_scroll_top>_center_header_height:this.current_scroll_top>0},onScroll:function(a){return _is_custom_header&&(_center_header_height="hic"==_custom_header_class?jQuery("header .tt-dmy").height():jQuery("header").height()),this.current_scroll_top<a?this.scroll_dir="down":this.scroll_dir="up",this.current_scroll_top=a,this.hasScroll()?this.handle():(_theMenu.removeClass("mff a60 mfs"),_nextElement.css("padding-top",_defaultPadding),void ThriveApp.menu_float.showLogo())},handle:function(){_nextElement.css("padding-top",_theMenu.outerHeight()+"px"),_theMenu.addClass("mff"),this.current_scroll_top>60?(ThriveApp.menu_float.hideLogo(),_theMenu.addClass("a60")):_theMenu.removeClass("a60"),"float-scroll"==_floatingOption&&("down"==this.scroll_dir?_theMenu.removeClass("mfu mfd").addClass("mfd"):_theMenu.removeClass("mfu mfd").addClass("mfu"))},hideLogo:function(){_hasCenterLogo&&(_theMenu.find("#logo img").hide(),this.anim_done||(_theMenu.find("#text_logo").stop().animate({opacity:0,height:0},50),this.anim_done=!0))},showLogo:function(){_hasCenterLogo&&(_theMenu.find("#logo img").show(),_theMenu.find("#text_logo").animate({height:_textLogoHeight,opacity:1},50),this.anim_done=!1)}},jQuery(window).scroll(function(){var a=jQuery(document).scrollTop(),b=0,c=0,d=jQuery(".entry-title"),e=d.length,f=jQuery(".ssf");if(ThriveApp.is_theme_layout&&(b=_is_blankPage?jQuery(".bp-t .wrp").offset().top:jQuery(".bSe .awr").first().offset().top,c=_is_blankPage?jQuery(".bp-t .wrp").height():jQuery(".bSe .awr").first().height()),ThriveApp.show_shortcodes(a),_hasFloatingMenu&&!ThriveApp.extended_menu_opened&&ThriveApp.menu_float.onScroll(a),f.hasClass("apsf"))return!1;if(1==e?(postTitleTop=d.offset().top,condition=a>postTitleTop):condition=a+40>b,condition)if(f.show(0),a>b+c-f.height()){f.removeClass("fpss").addClass("apss");var g=jQuery(".ssf.apss");jQuery(".bSe").hasClass("right")?g.css({right:"-97px",left:"auto"}):g.css({left:"-97px",right:"auto"}),_is_custom_header&&g.css({bottom:"0px",top:"auto"})}else{f.removeClass("apss").addClass("fpss");var g=jQuery(".ssf.fpss");if(g.length>0)if("float-fixed"!==_theMenu.attr("data-float")&&"float-scroll"!==_theMenu.attr("data-float")||(_is_custom_header?g.css({top:"100px",bottom:"auto"}):g.css({top:_menuHeight+40,bottom:"auto"})),jQuery(".bSe").hasClass("right")){var h=parseInt(jQuery(".bSe").offset().left+jQuery(".bSe").outerWidth());g.css("left",h+25+"px")}else{var h=jQuery(".bSe").offset().left;g.css("left",h-g.width()-"25")}}else f.hide(0)}),ThriveApp.display_no_shares=function(a){function b(){e.val(d),d>999&&f.addClass("tt-share-long"),f.html(ThriveApp._get_share_count_display_text(d,2)),jQuery("#tt-share-count").show()}function c(a){a&&a.total&&(d=parseInt(a.total),b())}var d=0,e=jQuery("#tt-hidden-share-no"),f=jQuery("#share_no_element"),g=[];if(a.linkedin&&g.push("in_share"),a.facebook&&g.push("fb_share"),a.google&&g.push("g_share"),a.pinterest&&g.push("pin_share"),g.length){var h={action:"thrive_get_share_counts",url:a.url,networks:g};window.TVE_Dash&&!TVE_Dash.ajax_sent?jQuery(document).on("tve-dash.load",function(){TVE_Dash.add_load_item("theme_shares",h,c)}):jQuery.post(ThriveApp.ajax_url,h,c)}};var _overlayElement=jQuery(".galleryOverlay");ThriveApp.blog_gallery=function(a){return function(){function b(b,c){a('<div class="galleryWrapper"><img data-pos="'+b.attr("data-position")+'" data-cap="'+b.attr("data-caption")+'" data-index="'+b.attr("data-index")+'" src="'+b.attr("data-src")+'" alt=""/></div>').appendTo(c)}function c(a,b,c){c?a.removeClass("g-n-a"):a.addClass("g-n-a");var f=a.find("img[data-index="+b+"]"),g=f.attr("data-cap"),h=f.attr("data-pos");b=f.parent().index(),a.css({left:"-"+100*b+"%"}),e=b,ThriveApp.winWidth>650&&d(f),jQuery(".img_count").text(h),jQuery(".cap_txt").text(g),""!=g?jQuery(".mob_text").text(g):jQuery(".mob_text").text(" - Swipe left/right to see more")}function d(a){var b=a.parents(".galleryOverlay").first().find(".nav_close");if(!a.width())return b.css({top:"20px",right:"20px"});var c=a.position().left-a.parent().position().left+a.width(),d=a.position().top;a.width()>=ThriveApp.winWidth&&(c-=16,d+=16),_isAdmin&&a.position().top<=32&&(d+=32),b.css({top:d-16+"px",left:c-16+"px"})}var e=0,f=0;a(".thrive-gallery").each(function(){var d=a(this),g=a(this).find(".galleryOverlay"),h=a(this).find(".galleryStage"),i=d.find(".gallery-item a").length,j=!1,k=!1,l=function(){k||(e<i-1?c(h,e+1,!0):(h.addClass("g-n-a").css("left","100%"),k=!0,setTimeout(function(){c(h,0,!0),k=!1},20)))},m=function(){k||(e>0?c(h,e-1,!0):(h.addClass("g-n-a").css("left",-100*i+"%"),k=!0,setTimeout(function(){c(h,i-1,!0),k=!1},20)))};d.find(".gallery-item a").each(function(d){a(this).click(function(){return!jQuery(this).parents(".gallery ").hasClass("no-gallery")&&(j=!0,g.show(0).addClass("g-v"),c(h,d,!1),!1)}),b(a(this),g.find(".galleryStage"))}),d.find("a.nav_prev").click(function(){return m(),!1}),d.find("a.nav_next").click(function(){return l(),!1}),d.find(".nav_close").click(function(){return j=!1,g.removeClass("g-v").hide(),!1}),d.find(".galleryWrapper").swipe({swipeLeft:function(){l()},swipeRight:function(){m()},swipeUp:function(){j=!1,g.removeClass("g-v").hide()},swipeDown:function(){return!1}}),ThriveApp.winWidth<=650?h.click(function(b){if(a(b.target).is("img"))return!1;j=!1,g.removeClass("g-v").hide()}):(h.click(function(b){if(a(b.target).is("img"))return!1;j=!1,g.removeClass("g-v").hide()}),d.mousemove(function(b){clearTimeout(f),a(".gl_ctrl, .gl_ctrl_mob").fadeIn(200),ThriveApp.winWidth<=650||a(b.target).is(".gl_ctrl,.gl_ctrl_mob")||(f=setTimeout(function(){jQuery(".gl_ctrl, .gl_ctrl_mob").fadeOut(200)},1e3))})),a("html").unbind("keydown").keydown(function(a){return!j||(37==a.keyCode?(m(),!1):39==a.keyCode?(l(),!1):27==a.keyCode?(g.removeClass("g-v").hide(),!1):void 0)})})}}(jQuery),ThriveApp.image_post_resize=function(){jQuery(".tt-dmy").css({"max-height":ThriveApp.viewportHeight,"max-width":ThriveApp.winWidth})},jQuery.fn.thrive_timer=function(){return this.each(function(){var a,b=jQuery(this),c=b.attr("data-server-now"),d=c?new Date(c):new Date,e=new Date(b.attr("data-date")),f=0,g=0,h=0,i=0,j=2,k=b.attr("data-fade"),l=b.attr("data-message"),m=function(a,b){if(a.html()==b)return a;a.removeClass("next");var c=a.clone().removeClass("go-down").addClass("next").html(b);return a.before(c).next(".go-down").remove(),a.addClass("go-down"),setTimeout(function(){c.addClass("go-down")},20),a},n=function(a,b,c){void 0===c&&(c=!1);var d=0;if(b<=99)m(a.find(".part-1").first(),b%10),m(a.find(".part-2").first(),Math.floor(b/10)),d=2;else for(;b;)d++,m(a.find(".part-"+d).first(),b%10),b=Math.floor(b/10);if(!1!==c&&d<c)for(var e=d+1;e<=c;e++)m(a.find(".part-"+e).first(),0)},o=function(){i--,i<0&&(i=59,h--),h<0&&(h=59,g--),g<0&&(g=23,f--),n(b.find(".second .cdfc"),i),n(b.find(".minute .cdfc"),h),n(b.find(".hour .cdfc"),g),n(b.find(".day .cdfc"),f,j),0==f&&0==g&&0==h&&0==i&&(clearInterval(a),p())},p=function(){"1"==k?b.find(".cdti").addClass("fdtc"):b.find(".cdti").addClass("fv"),"1"==l&&(b.find(".cdti").addClass("fdtc"),setTimeout(function(){b.find(".cdtm").fadeIn(2e3)},500))};d>e?p():(i=Math.floor((e.getTime()-d.getTime())/1e3),h=Math.floor(i/60),i%=60,g=Math.floor(h/60),h%=60,f=Math.floor(g/24),g%=24,f>99&&(j=f.toString().length),function(){var a=function(a,b){return jQuery('<span class="part-'+a+'">'+b+"</span>")};b.find(".second .cdfc").append(a(2,Math.floor(i/10))).append(a(1,i%10)),b.find(".minute .cdfc").append(a(2,Math.floor(h/10))).append(a(1,h%10)),b.find(".hour .cdfc").append(a(2,Math.floor(g/10))).append(a(1,g%10));for(var c=b.find(".day .cdfc"),d=f,e=1;e<=j;e++)c.append(a(e,d%10)),d=Math.floor(d/10);n(c.css("min-width",b.find(".cdtc.second .cdfc > span").outerWidth()*j+"px"),f,j)}(),b.find(".cdti").addClass("init_done"),a=setInterval(o,1e3))})},ThriveApp._get_share_count_display_text=function(a,b){b=Math.pow(10,b);for(var c=["k","m"],d=c.length-1;d>=0;d--){var e=Math.pow(10,3*(d+1));if(e<=a){a=Math.round(a*b/e)/b,1e3==a&&d<c.length-1&&(a=1,d++),a+=c[d];break}}return a},ThriveApp.resize_blank_page=function(){if(_is_blankPage=jQuery("html.bp-th").length){var a=jQuery(".wrp").outerHeight(),b=jQuery("body");ThriveApp.viewportHeight>=a?b.css("height",ThriveApp.viewportHeight):b.css("height",a)}};