function check_responsive_font_sizes(){jQuery(".cp_responsive[data-font-size-init]").each(function(a,b){jQuery(b).find(".cp_font").length?jQuery(b).hasClass(".cp_font, .cp_line_height")||jQuery(b).addClass("cp-no-responsive"):jQuery(b).removeClass("cp-no-responsive")})}function CPResponsiveTypoInit(){jQuery(".cp_responsive").each(function(a,b){var c=jQuery(b);if(!c.hasClass("cp_line_height")){var d=c.css("font-size"),e=c.attr("data-font-size");e||c.attr("data-font-size-init",d)}if(!c.hasClass("cp_font")){var f=c.css("line-height"),e=c.attr("data-line-height");e||c.attr("data-line-height-init",f)}}),check_responsive_font_sizes(),CP_slide_in_height()}function CP_slide_in_height(){setTimeout(function(){jQuery(".cp-slidein-popup-container").each(function(a,b){if(jQuery(this).find(".slidein-overlay").hasClass("si-open")){var c=jQuery(b),d=c.find(".cp-slidein"),e=(c.find(".cp-slidein"),c.find(".slidein-overlay")),f=(c.find(".cp-slidein").outerHeight(),c.find(".cp-slidein-body").outerHeight());jQuery(window).width(),f>jQuery(window).height()?(d.addClass("cp-slidein-exceed"),e.each(function(a,b){jQuery(b).hasClass("si-open")&&jQuery("html").addClass("cp-exceed-vieport")}),d.css("height",f)):(d.removeClass("cp-slidein-exceed"),jQuery("html").removeClass("cp-exceed-vieport"),d.css("height",""))}})},1200)}function cp_color_for_list_tag(){jQuery(".slidein-overlay").each(function(){var a=jQuery(this).find(".cp-slidein-body").attr("class").split(" ")[1];jQuery(this).find("li").each(function(){if(0==jQuery(this).parents(".cp_social_networks").length||0==jQuery(this).parents(".custom-html-form").length){if(jQuery(this).parents(".cp_responsive").length){var b=jQuery(this).parents(".cp_responsive").attr("class").split(" ")[0],c=jQuery(this).index()+1,d=jQuery(this).find(".cp_font").css("font-size"),e=jQuery(this).find("span").css("color"),f=jQuery(this).parent();f=f[0].nodeName.toLowerCase(),style_type="",style_css="","ul"==f?(style_type=jQuery(this).closest("ul").css("list-style-type"),"none"==style_type&&jQuery(this).closest("ul").css("list-style-type","disc")):(style_type=jQuery(this).closest("ol").css("list-style-type"),"none"==style_type&&jQuery(this).closest("ol").css("list-style-type","decimal")),jQuery(this).find("span").each(function(){var a=jQuery(this).css("color");a.length>0&&(e=a)});var g="";jQuery(".cp-li-color-css-"+c).remove(),jQuery(".cp-li-font-css-"+c).remove(),d&&(g="font-size:"+d,jQuery("head").append('<style class="cp-li-font-css'+c+'">.'+a+" ."+b+" li:nth-child("+c+"){ "+g+"}</style>")),e&&jQuery("head").append('<style class="cp-li-color-css'+c+'">.'+a+" ."+b+" li:nth-child("+c+"){ color: "+e+";}</style>")}}})})}function apply_boxshaddow(a){jQuery(".slidein-overlay").each(function(){var b=jQuery(this).find(".cp-form-container").find(".cp-email").css("border-color"),c=jQuery(this).find(".cp-slidein-body").attr("class").split(" ")[1],d=jQuery(this).data("class"),e=jQuery(this).data("class");jQuery(this).hasClass("ps-container")&&(e=jQuery(this).data("ps-id"),b=a,d="slidein-overlay"),jQuery(".cp-box-shaddow-"+e).remove(),jQuery("head").append('<style class="cp-box-shaddow-'+e+'">.'+d+" .cp-slidein ."+c+" input.cp-email:focus,  ."+d+" .cp-slidein ."+c+" input.cp-name:focus {  box-shadow: 0 0 4px "+b+";}</style>")})}function cp_slidein_social_responsive(){var a=jQuery(window).width();jQuery(".cp_social_networks").each(function(){if(!jQuery(this).parents(".cp-slidein-body").hasClass("cp-floating-social-bar")){var b=jQuery(this).data("column-no"),c="";a<768?(jQuery(this).removeClass("cp_social_networks"),jQuery(this).removeClass(b),c=jQuery(this).attr("class"),jQuery(this).attr("class","cp_social_networks cp_social_autowidth  "+c)):(jQuery(this).removeClass("cp_social_networks"),jQuery(this).removeClass("cp_social_autowidth"),jQuery(this).removeClass(b),c=jQuery(this).attr("class"),jQuery(this).attr("class","cp_social_networks  "+b+" "+c))}})}function toggle_widget(a,b){var c=a.closest(".cp-slidein"),d=c.find(".cp-slidein-content").css("border-bottom-width");if(a.hasClass("cp-widget-open"))c.animate({bottom:0},b);else{if(c.hasClass("cp-slidein-exceed"))var e=c.height();else var e=a.closest(".cp-slidein-body").outerHeight();var f=a.closest(".cp-slidein-head").outerHeight(),g=e-f+2;void 0!==d&&""!==d&&(d=d.replace("-","px"),d=parseInt(d),c.hasClass("cp-slidein-exceed")?g-=d:g=d+g),c.animate({bottom:"-"+g+"px"},b),setTimeout(function(){c.parents(".slidein-overlay").removeClass("cp-hide-slide-widget")},b)}}function set_optin_widget_bottom(){setTimeout(function(){jQuery(".cp-slidein-popup-container").each(function(){if(jQuery(this).find(".cp-slidein-toggle").length>0){var a=jQuery(this).find(".cp-slidein");if(jQuery(this).find(".cp-slidein-toggle").hasClass("cp-widget-open"))a.animate({bottom:0},600);else{if(a.hasClass("cp-slidein-exceed"))var b=a.height();else var b=jQuery(this).find(".cp-slidein-body").outerHeight();var c=jQuery(this).find(".cp-slidein-head").outerHeight(),d=b-c+2,e=a.find(".cp-slidein-content").css("border-bottom-width");void 0!==e&&""!==e&&(e=e.replace("-","px"),e=parseInt(e),a.hasClass("cp-slidein-exceed")?d-=e:d=e+d),a.animate({bottom:"-"+d+"px"},600)}}})},600)}function apply_resize_on_textarea(){jQuery(".slidein-overlay").each(function(){jQuery(this).find(".cp-textarea").each(function(){jQuery(this).mouseup(function(){CP_slide_in_height()})})})}function hide_sidebar(){jQuery(".slidein-overlay").each(function(){var a=jQuery(this).find(".cp-slidein");jQuery(this).find(".cp_social_networks").hasClass("cp-icon-style-top")&&a.append('<span class="cp_social_hide_sidebar cp_social_icon">+</span>')})}function cp_slide_in_column_equilize(){setTimeout(function(){jQuery(".cp-columns-equalized").each(function(){if(jQuery(this).closest(".slidein-overlay").hasClass("si-open")||jQuery(this).closest(".slidein-overlay").hasClass("cp-slidein-inline")){var a=jQuery(window).width(),b=Array();jQuery(this).children(".cp-column-equalized-center").each(function(){var a=jQuery(this).outerHeight();b.push(a)});var c=0;jQuery(this).find(".cp-image-container").length>0&&jQuery(this).find(".cp-highlight").each(function(a,b){c++});var d=parseInt(jQuery(this).css("padding-top")),e=parseInt(jQuery(this).css("padding-top")),f=d+e,g=Math.max.apply(Math,b)+f;g-=c,a>768?jQuery(this).css("height",g):jQuery(this).css("height","auto")}})},200)}!function(a){function b(a,b){a.hasClass("cp-description")||a.hasClass("cp-short-description")||a.hasClass("cp-info-container")?a.fitText(1.7,{minFontSize:"12px",maxFontSize:b}):a.fitText(1.2,{minFontSize:"16px",maxFontSize:b})}function c(){jQuery(".cp_responsive").each(function(a,c){var d="",e=jQuery(window).width(),f=jQuery(c),g=f.css("font-size"),h=f.attr("data-font-size"),i=f.attr("data-font-size-init"),j=f.attr("data-line-height"),k=f.attr("data-line-height-init");h?g=h:i&&(g=i),j?d=j:k&&(d=k),e<=800?(f.css({display:"block","line-height":"1.15em"}),b(f,g)):(f.css({display:"","line-height":d}),check_responsive_font_sizes(),f.fitText(1.2,{minFontSize:g,maxFontSize:g}))})}function d(){jQuery(".slidein-overlay").each(function(){var a=jQuery(window).innerWidth(),b=(jQuery(this).data("image-position"),jQuery(this).data("hide-img-on-mobile"));b&&(a<=b?jQuery(this).find(".cp-image-container").addClass("cp-hide-image"):jQuery(this).find(".cp-image-container").removeClass("cp-hide-image"))})}!function(a){a.fn.fitText=function(b,c){var d=b||1,e=a.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},c);return this.each(function(){var b=a(this),c=function(){b.css("font-size",Math.max(Math.min(b.width()/(10*d),parseFloat(e.maxFontSize)),parseFloat(e.minFontSize)))};c(),a(window).on("resize.fittext orientationchange.fittext",c)})}}(jQuery),jQuery(document).ready(function(){if(setTimeout(function(){CPResponsiveTypoInit(),cp_color_for_list_tag()},1500),d(),apply_boxshaddow(),apply_resize_on_textarea(),jQuery(".slidein-overlay").length>0){var a=0;jQuery(".slidein-overlay").each(function(b,c){if(!jQuery(this).find(".cp-slidein-content").hasClass("ps-container")){if(!jQuery(this).find(".cp-slidein-content").hasClass("si-open")){a++;var d=jQuery(this).find(".cp-slidein-content").attr("id");jQuery(this).find(".cp-slidein-content").attr("id",d+"-"+a)}var e=jQuery(this).find(".cp-slidein-content").attr("id");"undefined"!=typeof Ps&&Ps.initialize(document.getElementById(e))}})}setTimeout(function(){hide_sidebar()},500),cp_slidein_social_responsive(),cp_slide_in_column_equilize()}),jQuery(window).resize(function(){c(),d(),CP_slide_in_height(),cp_slidein_social_responsive(),cp_slide_in_column_equilize()})}(jQuery),check_responsive_font_sizes(),jQuery("body").on("click",".cp-slidein-head .cp-slidein-toggle",function(a){a.preventDefault(),jQuery(this).toggleClass("cp-widget-open"),toggle_widget(jQuery(this),600),a.stopPropagation()}),jQuery(this).on("smile_data_received",function(a,b){1==(b.minimize_widget||null)&&(jQuery(".cp-slidein-head .cp-slidein-toggle"),jQuery(".cp-slidein-toggle").removeClass("cp-widget-open"));set_optin_widget_bottom(),cp_slide_in_column_equilize()}),jQuery("body").on("click",".cp_social_hide_sidebar",function(a){a.preventDefault();var b=jQuery(this),c=jQuery(this).closest(".cp-slidein"),d=c.find(".cp-animate-container"),e=(c.find(".cp_social_icons_container"),d.data("overlay-animation")),f=d.data("exit-animation");slidein_position=c.attr("class").split(" ")[1];var g=c.css("max-width");switch(jQuery(this).toggleClass("cp_hidden_sidebar"),slidein_position){case"slidein-center-right":e="smile-slideInRight",f="smile-slideOutRight";break;case"slidein-center-left":e="smile-slideInLeft",f="smile-slideOutLeft"}d.attr("class","cp-animate-container"),jQuery(this).hasClass("cp_hidden_sidebar")?d.attr("class","cp-animate-container smile-animated "+f):d.attr("class","cp-animate-container smile-animated "+e),c.css("left",""),b.css("left",""),c.css("right",""),b.css("right",""),setTimeout(function(){b.hasClass("cp_hidden_sidebar")&&("slidein-center-left"==slidein_position?(c.css("left","-"+g),b.css("left","+"+g)):"slidein-center-right"==slidein_position&&(c.css("right","-"+g),b.css("right","+"+g)))},600)}),function(a){"use strict";function b(){var a="none";return jQuery(".si-onload").each(function(b,c){var d=jQuery(this).data("class-id");if(jQuery(this).hasClass("priority_slidein"))return a=jQuery("."+d)}),a}function c(a){if(void 0!==a){a=a.split("|");var b=!1,c=!1,d=!1;c=DetectTierTablet(),d=DetectTierIphone(),jQuery.each(a,function(){var a=jQuery(this).selector;("desktop"==a&&!d&&!c||"tablet"==a&&c||"mobile"==a&&d)&&(b=!0)})}else b=!1;return b}function d(a){return"/"===a.substr(-1)?a.substr(0,a.length-1):a}function e(a){var b=jQuery(".cp-impress-nonce").val(),c={action:"smile_update_impressions",impression:!0,styles:a,option:"smile_slide_in_styles",security:b};jQuery.ajax({url:smile_ajax.url,data:c,type:"POST",dataType:"HTML",success:function(a){}})}function f(){jQuery(".slidein-overlay").each(function(){var a=jQuery(this),b=a.data("placeholder-color"),c=a.data("placeholder-font"),d=a.data("class"),e=b,f="."+d+" input { font-family: "+c+" } ."+d+" ::-webkit-input-placeholder {color: "+e+"!important; font-family: "+c+"; } ."+d+" :-moz-placeholder {color: "+e+"!important; font-family: "+c+";} ."+d+" ::-moz-placeholder {color: "+e+"!important; font-family: "+c+"; }";jQuery("<style id="+d+" type='text/css'>"+f+"</style>").appendTo("head")}),jQuery(".cp-slidein-inline").each(function(){var a=jQuery(this).data("placeholder-color"),b=jQuery(this).data("placeholder-font"),c=jQuery(this).data("slidein-id"),d=a,e="."+c+" input { font-family: "+b+" } ."+c+" ::-webkit-input-placeholder {color: "+d+"!important; font-family: "+b+"; } ."+c+" :-moz-placeholder {color: "+d+"!important; font-family: "+b+";} ."+c+" ::-moz-placeholder {color: "+d+"!important; font-family: "+b+"; }";jQuery("<style id="+c+" type='text/css'>"+e+"</style>").appendTo("head")})}function g(){jQuery(".slidein-overlay").each(function(a){var b=jQuery(this),c=b.find(".has-tip").data("classes"),d=(b.find(".has-tip").data("closeid"),b.find(".has-tip").data("color")),e=b.find(".has-tip").data("bgcolor"),f=(b.find(".cp-slidein-content").height(),jQuery(window).width(),b.find(".has-tip").data("position"));jQuery("body").addClass("customize-support"),jQuery("head").append('<style class="cp-tooltip-css">.customize-support .tip.'+c+"{color: "+d+";background-color:"+e+";font-size:13px;border-color:"+e+" }</style>"),"left"==f?jQuery("head").append('<style class="cp-tooltip-css">.customize-support .tip.'+c+'[class*="arrow"]:before , .'+c+'[class*="arrow"]:before {border-left-color: '+e+" ;border-top-color:transparent}</style>"):"right"==f?jQuery("head").append('<style class="cp-tooltip-css">.customize-support .tip.'+c+'[class*="arrow"]:before , .'+c+'[class*="arrow"]:before{border-right-color: '+e+";border-left-color:transparent }</style>"):jQuery("head").append('<style class="cp-tooltip-css">.customize-support .tip.'+c+'[class*="arrow"]:before , .'+c+'[class*="arrow"]:before{border-top-color: '+e+";border-left-color:transparent }</style>")})}function h(){jQuery(".cp-toggle-container").click(function(){var a=jQuery(this).closest(".slidein-overlay"),b=a.data("slidein-id"),c=a.closest(".cp-slidein-popup-container").siblings(".overlay-show").data("toggle-visible");if(!a.hasClass("cp-slide-without-toggle")){jQuery(this).toggleClass("cp-slide-hide-btn");var d=a.find(".cp-animate-container"),f=d.data("overlay-animation"),g=(d.data("exit-animation"),jQuery(".cp-toggle-container")),h=d.data("disable-animationwidth"),i=jQuery(window).width(),j="",k=a.find(".cp-tooltip-icon").data("classes"),l=a.data("impression-added");if(1==c&&void 0===l&&!a.hasClass("cp-disabled-impression")){e([b]),a.data("impression-added","true")}(i>=h||void 0===h)&&(j="smile-animated ");void 0!==a.find(".has-tip").attr("class")&&jQuery("head").append('<style class="cp-tooltip-hide">.tip.'+k+"{display:block }</style>"),d.attr("class","cp-animate-container cp-hide-slide"),setTimeout(function(){d.attr("class","cp-animate-container "+j+" "+f),g.addClass("cp-slide-hide-btn")},10),cp_slide_in_column_equilize()}}),jQuery(".slidein-overlay-close").click(function(){if(!jQuery(this).hasClass("do_not_close")){var a=(jQuery(this).parents(".cp-slidein-popup-container"),jQuery(this).parents(".slidein-overlay")),b=a.find(".cp-tooltip-icon").data("classes");jQuery(document).trigger("closeSlideIn",[a]),jQuery("head").append('<style class="cp-tooltip-hide">.tip.'+b+"{ display:none; }</style>")}var c=jQuery(this).closest(".slidein-overlay");if(!c.hasClass("cp-slide-without-toggle")){var c=jQuery(this).parents(".slidein-overlay"),d=c.find(".cp-animate-container"),e=d.data("exit-animation"),f=jQuery(".cp-toggle-container"),g=d.data("disable-animationwidth"),h=jQuery(window).width(),i="",j=c.find(".cp-form").attr("class");(h>=g||void 0===g)&&(i="smile-animated "),d.attr("class","cp-animate-container"),d.attr("class","cp-animate-container "+i+" "+e),void 0!==j&&(c.find("#smile-optin-form")[0].reset(),c.find(".cp-form-processing-wrap").css("display","none"),c.find(".cp-form-processing").removeAttr("style"),c.find(".cp-msg-on-submit").removeAttr("style"),c.find(".cp-msg-on-submit").html(),c.find(".cp-m-success").remove()),setTimeout(function(){d.addClass("cp-hide-slide"),f.removeClass("cp-slide-hide-btn"),d.removeClass(e)},500)}})}function i(a){if(a.find(".cp-slidein-toggle").length>0){var b=a.find(".cp-slidein-head").outerHeight();a.find(".cp-animate-container").css({height:b+"px",opacity:"0"})}}function j(b){var c=b,d=a(window),e=d.scrollTop(),f=e+d.height(),g=c.offset().top;return g+c.height()<=f&&g>=e}function k(){jQuery(".cp-slide_in-inline-end").each(function(a){var b=jQuery(this),c=j(b),d=b.data("style");if(c){var f=Array();jQuery("[data-slidein-style="+d+"]").hasClass("cp_impression_counted")||jQuery("[data-slidein-style="+d+"]").hasClass("cp-disabled-impression")||(f.push(d),e(f)),jQuery("[data-slidein-style="+d+"]").each(function(){b.addClass("cp_impression_counted")})}})}jQuery(document).on("smile_data_received",function(a,b){CPResponsiveTypoInit()}),jQuery.fn.isReferrer=function(a,b,c){var e=!0;b=d(b.replace(/.*?:\/\//g,""));var f=a.split(",");return jQuery.each(f,function(a,f){f=d(f),b=b.replace("www.","");var g=b.split(".");f.match(/./gim).length,g[0];f=d(f.replace(/.*?:\/\//g,"")),f=f.replace("www.","");var h=f.split("*");-1!==b.indexOf("reddit.com")?b="reddit.com":-1!==b.indexOf("t.co")&&(b="twitter.com"),-1!==b.indexOf("plus.google.co")?b="plus.google.com":-1!==b.indexOf("google.co")&&(b="google.com");var i=h[0];if(i=d(i),"display"==c){if(-1!==f.indexOf("*"))return i==b?(e=!0,!1):-1!==b.indexOf(i)?(e=!0,!1):(e=!1,!1);if(f==b)return e=!0,!1;if(-1!==b.indexOf(i))return e=!0,!1;e=!1}else if("hide"==c){if(-1!==f.indexOf("*"))return i==b?(e=!1,!1):-1!==b.indexOf(i)?(e=!1,!1):(e=!0,!1);if(f==b)return e=!1,!1;if(-1!==b.indexOf(i))return e=!1,!1;e=!0}}),e},jQuery.fn.isScheduled=function(){var a=new Date(gmt),b=this.data("timezonename"),c=this.data("tz-offset"),d=(a.toGMTString(),a.toLocaleString()),e=new Date,f=e.getTime()+6e4*e.getTimezoneOffset(),g=new Date(f+36e5*c),h=this.data("scheduled");if(void 0!==h&&1==h){var i=this.data("start"),j=this.data("end");return i=Date.parse(i),j=Date.parse(j),(d="system"==b?Date.parse(e):Date.parse(g))>=i&&d<=j}return!0};var l=function(a,b,c){if(c){var d=new Date;d.setTime(d.getTime()+24*c*60*60*1e3);var e="; expires="+d.toGMTString()}else var e="";document.cookie=a+"="+b+e+"; path=/"},m=function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0==e.indexOf(b))return e.substring(b.length,e.length)}return null},n=function(a){l(a,"",-1)},o=0;jQuery(window).on("load",function(){o=0;var a=Array();jQuery(".si-onload").each(function(b){var d=jQuery(this),f=d.data("class-id"),g=d.data("dev-mode"),h=jQuery("."+f).data("slidein-id"),j=d.data("toggle-visible"),k=(d.data("exit-intent"),jQuery("."+f).data("option"),jQuery("."+f).data("slidein-style")),p=jQuery("."+f),q=d.data("onload-delay"),q=1e3*q,r=jQuery("."+f).data("load-on-refresh"),s=(jQuery(window).scrollTop(),jQuery(document).height(),jQuery(window).height(),d.data("onscroll-value"),!1),t=p.isScheduled(),u=d.closest(".cp-slidein-popup-container"),v=d.data("hide-on-devices"),w=c(v),x=jQuery("."+f).data("parent-style");if(void 0!==x)var h=x;else var h=jQuery("."+f).data("slidein-id");var y="temp_"+h;if(n(y),"disabled"==r){m(h+"-refresh")?s=!0:(l(h+"-refresh",!0,1),s=!1)}else s=!0,n(h+"-refresh");w&&(s=!1);var z=m(h),A=m(y);if("enabled"==g)z=!!A||m(h),n(h+"-conversion");else{z=m(h),z&&p.hasClass("cp-always-minimize-widget")&&(p.addClass("cp-minimize-widget"),z=!1);m(h+"-conversion")&&p.hasClass("cp-always-minimize-widget")&&(z=!0)}null==z&&(z=!1);var B=d.data("referrer-domain"),C=d.data("referrer-check"),D=document.referrer.toLowerCase(),E=!1;E=void 0===B||""===B||p.isReferrer(B,D,C),!z&&q&&s&&t&&E&&(jQuery(".si-open").length<=0||0!==p.find(".cp-slide-in-float-on").length)&&setTimeout(function(){z=m(h);var b=m(y),c=!1;c="enabled"==g?!b&&null==z:null==z,0!==p.find(".cp-slide-in-float-on").length&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&(o=1),(c=jQuery(".si-open").length<=o)&&(i(u),jQuery(window).trigger("slideinOpen",[p]),jQuery(document).trigger("resize"),p.addClass("si-open"),p.hasClass("cp_impression_counted")||p.hasClass("cp-disabled-impression")||(a.push(k),0!==a.length&&void 0===j&&(e(a),jQuery("[data-slidein-style="+k+"]").each(function(a){jQuery(this).addClass("cp_impression_counted")}))))},parseInt(q)),"enabled"==g&&n(h)})});var p=!0;jQuery(document).scroll(function(a){if(p){k();var b=100*jQuery(window).scrollTop()/(jQuery(document).height()-jQuery(window).height()),d=b.toFixed(0),f=Array();jQuery(".si-onload").each(function(a){var b=jQuery(this),g=(b.data("exit-intent"),b.data("class-id")),h=b.data("dev-mode"),j=b.data("toggle-visible"),k=(jQuery("."+g).data("option"),jQuery("."+g).data("slidein-style")),q=jQuery("."+g),r=b.data("onscroll-value"),s=b.data("hide-on-devices"),t=c(s),u=b.closest(".cp-slidein-popup-container"),v=(b.find(".cp-impress-nonce").val(),jQuery("."+g).data("parent-style"));if(void 0!==v)var w=v;else var w=jQuery("."+g).data("slidein-id");var x="temp_"+w;"enabled"==h&&n(w);var y=m(w),z=m(x);x?"enabled"==h&&z&&(y=!0):l(x,!0,1);var A=q.isScheduled(),B=b.data("referrer-domain"),C=b.data("referrer-check"),D=document.referrer.toLowerCase(),E=!1;if(E=void 0===B||""===B||q.isReferrer(B,D,C),t&&(y=r=A=E=!1),"disabled"==h){y&&q.hasClass("cp-always-minimize-widget")&&(q.addClass("cp-minimize-widget"),y=!1);m(w+"-conversion")&&q.hasClass("cp-always-minimize-widget")&&(y=!0)}0!==q.find(".cp-slide-in-float-on").length&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&(o=1),!y&&r&&A&&E&&(jQuery(".si-open").length<=o||0!==q.find(".cp-slide-in-float-on").length)&&jQuery(".si-open").length<=o&&d>=r&&setTimeout(function(){i(u),jQuery(window).trigger("slideinOpen",[q]),jQuery(document).trigger("resize"),q.addClass("si-open"),p=!1,q.hasClass("cp_impression_counted")||q.hasClass("cp-disabled-impression")||(f.push(k),0!==f.length&&void 0===j&&(e(f),jQuery("[data-slidein-style="+k+"]").each(function(a){b.addClass("cp_impression_counted")})))},100)})}});var q=!0;jQuery(document).scroll(function(a){if(q){var b=(jQuery(window).scrollTop(),jQuery(document).height(),jQuery(window).height(),jQuery(window).scrollTop()),d=Array();jQuery(".si-after-post").each(function(a){var f=jQuery(this),g=(f.data("exit-intent"),f.data("class-id")),h=f.data("dev-mode"),j=f.data("after-content-value"),k=(jQuery("."+g).data("option"),jQuery("."+g).data("slidein-style")),p=jQuery("."+g);if(jQuery(".cp-load-after-post").length>0){var r=jQuery(".cp-load-after-post").offset().top-30,s=f.data("hide-on-devices"),t=c(s),u=f.closest(".cp-slidein-popup-container"),v=(f.find(".cp-impress-nonce").val(),jQuery("."+g).data("parent-style"));if(void 0!==v)var w=v;else var w=jQuery("."+g).data("slidein-id");var x="temp_"+w;"enabled"==h&&n(w);var y=m(w),z=m(x);x?"enabled"==h&&z&&(y=!0):l(x,!0,1);var A=p.isScheduled();r-=jQuery(window).height()*j/100;var B=f.data("referrer-domain"),C=f.data("referrer-check"),D=document.referrer.toLowerCase(),E=!1;E=void 0===B||""===B||p.isReferrer(B,D,C),t&&(y=r=A=E=!1),"disabled"==h&&(y&&p.hasClass("cp-always-minimize-widget")&&(p.addClass("cp-minimize-widget"),y=!1),m(w+"-conversion")&&p.hasClass("cp-always-minimize-widget")&&(y=!0)),0!==p.find(".cp-slide-in-float-on").length&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&(o=1),!y&&r&&A&&E&&(jQuery(".si-open").length<=o||0!==p.find(".cp-slide-in-float-on").length)&&(0!==p.find(".cp-slide-in-float-on").length&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&(o=1),jQuery(".si-open").length<=o&&b>=r&&(i(u),jQuery(window).trigger("slideinOpen",[p]),jQuery(document).trigger("resize"),p.addClass("si-open"),q=!1,p.hasClass("cp_impression_counted")||p.hasClass("cp-disabled-impression")||(d.push(k),0!==d.length&&"undefined"==typeof toggle_visible&&(e(d),jQuery("[data-slidein-style="+k+"]").each(function(a){f.addClass("cp_impression_counted")})))))}})}}),jQuery(document).on("mouseleave",function(a){var d=Array(),f=b();jQuery(".si-onload").each(function(b){var g=jQuery(this);if("none"!==f){var h=f,j=h.data("slidein-id");g=jQuery(".cp-"+j)}var k=g.data("exit-intent"),p=g.data("class-id"),q=g.data("dev-mode"),r=g.data("toggle-visible"),s=(jQuery("."+p).data("option"),jQuery("."+p).data("slidein-style")),t=jQuery("."+p),u=g.data("hide-on-devices"),v=c(u),w=g.closest(".cp-slidein-popup-container"),x=(g.find(".cp-impress-nonce").val(),jQuery("."+p).data("parent-style"));if(void 0!==x)var y=x;else var y=jQuery("."+p).data("slidein-id");var z="temp_"+y;"enabled"==q&&n(y);var A=m(y),B=m(z);z?"enabled"==q&&B&&(A=!0):l(z,!0,1);var C=t.isScheduled(),D=g.data("referrer-domain"),E=g.data("referrer-check"),F=document.referrer.toLowerCase(),G=!1;if(G=void 0===D||""===D||t.isReferrer(D,F,E),v&&(k=C=G=!1),"disabled"==q){A&&t.hasClass("cp-always-minimize-widget")&&(t.addClass("cp-minimize-widget"),A=!1);m(y+"-conversion")&&t.hasClass("cp-always-minimize-widget")&&(A=!0)}!A&&G&&"enabled"==k&&C&&a.clientY<=0&&(jQuery(".si-open").length<=o||0!==t.find(".cp-slide-in-float-on").length)&&(0!==t.find(".cp-slide-in-float-on").length&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&(o=1),jQuery(".si-open").length<=o&&(i(w),jQuery(window).trigger("slideinOpen",[t]),jQuery(document).trigger("resize"),t.addClass("si-open"),t.hasClass("cp_impression_counted")||t.hasClass("cp-disabled-impression")||(d.push(s),0!==d.length&&void 0===r&&(e(d),jQuery("[data-slidein-style="+s+"]").each(function(a){jQuery(this).addClass("cp_impression_counted")})))))})}),jQuery(document).ready(function(){k(),jQuery(".blinking-cursor").remove(),jQuery(".si-onload").each(function(a){var b=jQuery(this).data("inactive-time");void 0!==b&&(b*=1e3,jQuery(document).idleTimer({timeout:b,idle:!1}))}),CPResponsiveTypoInit(),h(),jQuery.each(jQuery(".si-onload"),function(){var a=jQuery(this).data("class-id"),b=jQuery("."+a),c=b.find("iframe");jQuery.each(c,function(b,c){var d=c.src,e=d.search("youtube.com"),f=d.search("vimeo.com"),d=d.replace("&autoplay=1","");if(-1!==e){var g=-1===d.indexOf("?")?d+"?enablejsapi=1":d+"&enablejsapi=1";c.src=g,c.id="yt-"+a}if(-1!==f){d.indexOf("?");c.src=c.src+"?api=1",c.id="vim-"+a}})});var a=new Array,b=Array();jQuery.each(jQuery(".slidein-overlay"),function(){var b=jQuery(this).data("custom-class");void 0!==b&&""!==b&&(b=b.split(" "),jQuery.each(b,function(b,c){a.push(c)}))}),jQuery.each(a,function(a,d){jQuery("."+d).click(function(a){a.preventDefault();var f=jQuery(".cp-slidein-global."+d);if(!f.siblings(".cp-slidein-popup-container").find(".cp-animate-container").hasClass("cp-form-submit-success")){var g=(f.data("exit-intent"),f.data("class-id")),h=(jQuery("."+g).data("slidein-id"),f.data("toggle-visible")),i=(jQuery("."+g).data("option"),jQuery("."+g).data("slidein-style")),j=jQuery("."+g),k=(jQuery(this).find(".cp-impress-nonce").val(),f.data("hide-on-devices"));c(k);if(j.find(".cp-slide-in-float-on").length>0&&o<1&&o++,jQuery(".si-open").length<=o){jQuery(window).trigger("slideinOpen",[j]),j.addClass("si-open"),j.hasClass("cp_impression_counted")||j.hasClass("cp-disabled-impression")||(b.push(i),0!==b.length&&void 0===h&&(e(b),jQuery("[data-slidein-style="+i+"]").each(function(a){jQuery(this).addClass("cp_impression_counted")})));var l=j.find(".cp-tooltip-icon").data("classes");jQuery("head").append('<style class="cp-tooltip-hide">.tip.'+l+"{ display:block; }</style>")}}})}),f(),g()}),jQuery(document).on("closeSlideIn",function(a,b){var c=b.parents(".cp-slidein-popup-container"),d=c.data("template"),e=b.data("closed-cookie-time"),f=b.find(".cp-animate-container"),g=b.data("overlay-animation"),h=f.data("exit-animation"),i=b.data("parent-style");if(void 0!==i)var j=i;else var j=b.data("slidein-id");l("temp_"+j,!0,1);var k=m(j);a.preventDefault(),k||e&&l(j,!0,e),(b.hasClass("cp-hide-inline-style")||b.hasClass("cp-close-slidein"))&&(h="cp-overlay-none"),b.hasClass("cp-close-slidein")&&b.removeClass("si-open");var n=f.data("disable-animationwidth"),o=jQuery(window).width();if(("cp-overlay-none"==h||void 0!==n&&o<=n)&&(b.hasClass("cp-slide-without-toggle")&&b.removeClass("si-open"),h="cp-overlay-none",jQuery(".cp-slidein-global.si-open").length<1&&jQuery("html").removeAttr("style")),!d){f.removeClass(g);var n=f.data("disable-animationwidth"),o=jQuery(window).width();(o>=n||void 0===n)&&f.addClass(h),"cp-overlay-none"!==h&&setTimeout(function(){b.hasClass("cp-slide-without-toggle")&&b.removeClass("si-open"),jQuery(".cp-slidein-global.si-open").length<1&&jQuery("html").removeAttr("style"),setTimeout(function(){b.hasClass("do_not_close")||f.removeClass(h)})},1e3)}}),jQuery(document).on("click",".slidein-overlay",function(a){if(!jQuery(this).hasClass("do_not_close")&&jQuery(this).hasClass("close_btn_nd_overlay")){var b=jQuery(this);jQuery(document).trigger("closeSlideIn",[b])}}),jQuery(document).on("idle.idleTimer",function(a,d,f){var g=Array(),h=b();jQuery(".si-onload").each(function(a){var b=jQuery(this);if("none"!==h)var d=h,f=d.data("slidein-id"),b=jQuery(".cp-"+f);var j=(b.data("exit-intent"),b.data("class-id")),k=b.data("dev-mode"),l=b.data("toggle-visible"),p=(jQuery("."+j).data("option"),jQuery("."+j).data("slidein-style")),q=jQuery("."+j),r=b.data("hide-on-devices"),s=c(r),t=b.closest(".cp-slidein-popup-container"),u=(b.find(".cp-impress-nonce").val(),jQuery("."+j).data("parent-style"));if(void 0!==u)var v=u;else var v=jQuery("."+j).data("slidein-id");"enabled"==k&&n(v);var w=m(v),x=!1;void 0!==jQuery(this).data("inactive-time")&&(x=!0),s&&(x=!1);var y=b.data("referrer-domain"),z=b.data("referrer-check"),A=document.referrer.toLowerCase(),B=!1;if(B=void 0===y||""===y||q.isReferrer(y,A,z),"disabled"==k){w&&q.hasClass("cp-always-minimize-widget")&&(q.addClass("cp-minimize-widget"),w=!1);m(v+"-conversion")&&q.hasClass("cp-always-minimize-widget")&&(w=!0)}!w&&x&&B&&(jQuery(".si-open").length<=o||0!==q.find(".cp-slide-in-float-on").length)&&(0!==q.find(".cp-slide-in-float-on").length&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&(o=1),jQuery(".si-open").length<=o&&(i(t),jQuery(window).trigger("slideinOpen",[q]),q.hasClass("cp-window-size")&&q.windowSize(),jQuery(document).trigger("resize"),q.addClass("si-open"),q.hasClass("cp_impression_counted")||q.hasClass("cp-disabled-impression")||(g.push(p),0!==g.length&&void 0===l&&(e(g),jQuery("[data-slidein-style="+p+"]").each(function(a){jQuery(this).addClass("cp_impression_counted")})))))})}),jQuery(document).on("idle.idleTimer",function(a,b,c){if(jQuery(this).find(".slidein-overlay").hasClass("cp-close-after-x")){var d=jQuery(this).find(".slidein-overlay");jQuery(document).trigger("closeSlideIn",[d])}}),jQuery(document).on("click",".cp-close",function(a){if(!jQuery(this).parents(".slidein-overlay").hasClass("do_not_close")){var b=jQuery(this).parents(".slidein-overlay");jQuery(document).trigger("closeSlideIn",[b])}}),jQuery(document).on("click",".cp-inner-close",function(a){var b=jQuery(this).parents(".slidein-overlay");jQuery(document).trigger("closeSlideIn",[b])}),jQuery(document).on("click",".slidein-overlay .cp-slidein",function(a){a.stopPropagation()}),jQuery(window).on("slideinOpen",function(b,c){var d=c.data("close-btnonload-delay");d=Math.round(1e3*d),d&&setTimeout(function(){c.find(".slidein-overlay-close").removeClass("cp-hide-close")},d),CP_slide_in_height();var e=c.find(".cp-animate-container"),f=e.data("overlay-animation"),g=e.data("disable-animationwidth");c.find(".cp-slidein-content");(jQuery(window).width()>=g||void 0===g)&&jQuery(e).addClass("smile-animated "+f),c.find(".cp-slidein-toggle").length>0&&setTimeout(function(){c.find(".cp-animate-container").css("height","auto"),c.find(".cp-animate-container").animate({opacity:"1"},"1000")},"400");var h=c.data("close-after");jQuery.idleTimer("destroy"),void 0!==h&&(h*=1e3,setTimeout(function(){c.addClass("cp-close-after-x")},h),jQuery(document).idleTimer({timeout:h,idle:!1})),jQuery(".kleo-carousel-features-pager").length>0&&setTimeout(function(){a(window).trigger("resize")},1500)}),jQuery(document).on("click",".cp-form-submit-error",function(a){var b=jQuery(this),c=b.find(".cp-form-processing-wrap"),d=b.find(".cp-tooltip-icon").data("classes"),e=b.find(".cp-msg-on-submit");b.find(".cp-form-processing");c.hide(),b.removeClass("cp-form-submit-error"),e.html(""),e.removeAttr("style"),jQuery("head").append('<style class="cp-tooltip-hide">.tip.'+d+"{display:block }</style>")}),jQuery(document).ready(function(){jQuery(document).bind("keydown",function(a){if(27==a.which){var b=jQuery(".si-open"),c=b;b.hasClass("close_btn_nd_overlay")&&!b.hasClass("do_not_close")&&jQuery(document).trigger("closeSlideIn",[c])}})}),jQuery(document).on("si_conversion_done",function(a,b){
if(!jQuery(b).parents(".cp-form-container").find(".cp-email").length>0){jQuery(b).parents(".cp-form-container").find('[name="only_conversion"]').length>0&&jQuery(b).addClass("disabled")}}),jQuery(window).on("slideinOpen",function(a,b){b.find(".cp-slidein-toggle").data("visible");b.hasClass("cp-minimize-widget")?(b.addClass("cp-hide-slide-widget"),setTimeout(function(){toggle_widget(jQuery(".cp-slidein-head .cp-slidein-toggle"),500)},0)):b.find(".cp-slidein-toggle").addClass("cp-widget-open")});var r=[];jQuery.each(jQuery(".si-onload"),function(){var a=jQuery(this).data("scroll-class"),b=jQuery(this).data("slidein-style"),c=[];if(void 0!==a&&""!==a){var d=[];a=a.split(" "),jQuery.each(a,function(a,b){jQuery(b).length>0&&d.push(b)}),c.push({style:b,classes_name:d}),r.push(c)}});var s=!0;jQuery(document).scroll(function(a){s&&jQuery.each(r,function(a,b){jQuery.each(b,function(a,b){var d=b.style,f=b.classes_name;jQuery.each(b.classes_name,function(a,b){f=b,k();var g=100*jQuery(window).scrollTop()/(jQuery(document).height()-jQuery(window).height()),h=(g.toFixed(0),Array());jQuery(".si-onload").each(function(a){if(jQuery(this).closest(".cp-"+d).length>0){var b=jQuery(this),g=(b.data("exit-intent"),b.data("class-id")),j=b.data("dev-mode"),k=b.data("toggle-visible"),p=(jQuery("."+g).data("option"),jQuery("."+g).data("slidein-style")),q=jQuery("."+g),r=f,t="",u=jQuery("."+g).data("parent-style");if(void 0!==u)var v=u;else var v=jQuery("."+g).data("slidein-id");var w="temp_"+v;if(void 0!==r&&" "!==r){var x=jQuery(r).position();void 0!==x&&" "!==x&&(t=jQuery(r).cp_slidein_isOnScreen());var y=b.data("hide-on-devices"),z=c(y),A=b.closest(".cp-slidein-popup-container");"enabled"==j&&n(v);var B=m(v),C=m(w);w?"enabled"==j&&C&&(B=!0):l(w,!0,1);var D=q.isScheduled(),E=b.data("referrer-domain"),F=b.data("referrer-check"),G=document.referrer.toLowerCase(),H=!1;if(H=void 0===E||""===E||q.isReferrer(E,G,F),z&&(B=t=D=H=!1),"disabled"==j){B&&q.hasClass("cp-always-minimize-widget")&&(q.addClass("cp-minimize-widget"),B=!1);m(v+"-conversion")&&q.hasClass("cp-always-minimize-widget")&&(B=!0)}0!==q.find(".cp-slide-in-float-on").length&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&(o=1),!B&&t&&D&&H&&(jQuery(".si-open").length<=o||0!==q.find(".cp-slide-in-float-on").length)&&(0!==q.find(".cp-slide-in-float-on").length&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&(o=1),jQuery(".si-open").length<=o&&1==t&&(i(A),jQuery(window).trigger("slideinOpen",[q]),jQuery(document).trigger("resize"),q.addClass("si-open"),s=!1,q.hasClass("cp_impression_counted")||q.hasClass("cp-disabled-impression")||(h.push(p),0!==h.length&&void 0===k&&(e(h),jQuery("[data-slidein-style="+p+"]").each(function(a){b.addClass("cp_impression_counted")})))))}}})})})})}),jQuery.fn.cp_slidein_isOnScreen=function(){var b=a(window),c={top:b.scrollTop(),left:b.scrollLeft()};c.right=c.left+b.width(),c.bottom=c.top+b.height();var d=this.offset();return d.right=d.left+this.outerWidth(),d.bottom=d.top+this.outerHeight(),!(c.right<d.left||c.left>d.right||c.bottom<d.top||c.top>d.bottom)},jQuery("body").on("click",".cp-slidein-head .cp-widget-open",function(a){var b=jQuery(this).parents(".slidein-overlay"),c=b.data("closed-cookie-time"),d=b.data("slidein-id"),e=b.find(".cp-animate-container");b.data("overlay-animation"),e.data("exit-animation"),b.data("conversion-cookie-time");l("temp_"+d,!0,1),m(d)||c&&(b.addClass("cp-always-minimize-widget"),l(d,!0,c))})}(jQuery),function(a){"use strict";function b(a){return new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(a)}function c(a,c){return!c.trim()||(a.hasClass("cp-email")?!b(c):!!a.hasClass("cp-textfeild")&&0==/^[a-zA-Z0-9- ]*$/.test(c))}function d(a){var d=jQuery(a),g=d.serialize(),h=jQuery(a).parents(".cp-animate-container").find(".cp-msg-on-submit"),i=(jQuery(a).parents(".cp-slidein-body").find(".cp-form-container"),jQuery(a).parents(".cp-animate-container").find(".cp-form-processing")),j=jQuery(a).parents(".global_slidein_container"),k=jQuery(a).parents(".cp-animate-container").find(".cp-form-processing-wrap"),l=jQuery(a).parents(".cp-animate-container"),m=j.find(".cp-tooltip-icon").data("classes"),n=j.data("conversion-cookie-time"),o=jQuery(a).parents(".global_slidein_container").hasClass("do_not_close"),p=jQuery(a).parents(".global_slidein_container").data("redirect-lead-data"),q=jQuery(a).parents(".global_slidein_container").data("redirect-to"),r=jQuery(a).parents(".global_slidein_container").data("form-action"),s=jQuery(a).parents(".global_slidein_container").data("form-action-time"),s=parseInt(1e3*s),t=jQuery(a).parents(".global_slidein_container").find(".cp-slidein-body").hasClass("cp-optin-widget"),u=jQuery(a).find(".btn-subscribe").attr("data-redirect-link")||"",v=jQuery(a).find(".btn-subscribe").attr("data-redirect-link-target")||"_blank",w=j.data("parent-style");if(void 0!==w)var x=w;else var x=j.data("slidein-id");var y="",z=!0,A="";d.find(".cp-input").each(function(a){var b=jQuery(this);if(!b.hasClass("cp-submit-button")){var d=b.attr("name"),e=b.val(),f=d.replace(/param/gi,function(a){return""});f=f.replace("[",""),f=f.replace("]",""),y+=0!=a?"&":"",y+=f+"="+e;!!b.attr("required")&&(c(b,e)?(z=!1,b.addClass("cp-input-error")):b.removeClass("cp-input-error"))}});var B=0,C="";d.find("select, textarea, input").each(function(a,c){if(jQuery(c).prop("required"))if(jQuery(c).val())if(jQuery(c).hasClass("cp-email")){var d=jQuery(c).val();if(b(d))jQuery(c).removeClass("cp-error");else{setTimeout(function(){jQuery(c).addClass("cp-error")},100),B++;var e=jQuery(c).attr("name")||"";console.log(e+" is required \n")}}else jQuery(c).removeClass("cp-error");else B++,setTimeout(function(){jQuery(c).addClass("cp-error")},100),e=jQuery(c).attr("name"),C+=e+" is required \n"}),B>0?console.log(C):(k.show(),h.fadeOut(120,function(){jQuery(this).show().css({visibility:"hidden"})}),i.hide().css({visibility:"visible"}).fadeIn(100),jQuery.ajax({url:smile_ajax.url,data:g,type:"POST",dataType:"HTML",success:function(a){n&&(j.find(".cp-slidein-toggle").length>0?f(x+"-conversion",!0,n):f(x,!0,n));var b=jQuery.parseJSON(a),c="",g="";void 0!==b.status&&null!=b.status&&(c=b.status),b.email_status?d.find(".cp-email").removeClass("cp-error"):(setTimeout(function(){d.find(".cp-email").addClass("cp-error")},100),d.find(".cp-email").focus());var w=void 0!==b.detailed_msg&&null!==b.detailed_msg?b.detailed_msg:"";if(console.log(w),""!==w&&null!==w&&(w="<h5>Here is More Information:</h5><div class='cp-detailed-message'>"+w+"</div>",w+="<div class='cp-admin-error-notice'>Read How to Fix This, click <a target='_blank' href='http://docs.sharkz.in/something-went-wrong/'>here</a></div>",w+="<div class='cp-go-back'>Go Back</div>",g+='<div class="cp-only-admin-msg">[Only you can see this message]</div>'),b.message=b.message.replace(/\\/g,""),void 0!==b.message&&null!=b.message&&(h.hide().css({visibility:"visible"}).fadeIn(120),g+='<div class="cp-m-'+c+'"><div class="cp-error-msg">'+b.message+"</div>"+w+"</div>",h.html(g),l.addClass("cp-form-submit-"+c)),void 0!==b.action&&null!=b.action&&(i.fadeOut(100,function(){jQuery(this).show().css({visibility:"hidden"})}),h.hide().css({visibility:"visible"}).fadeIn(120),"success"===c)){if(jQuery("head").append('<style class="cp-tooltip-css">.tip.'+m+"{display:none }</style>"),"redirect"===b.action){k.hide(),j.hide();var z=b.url,B="";B=z.indexOf("?")>-1?"&":"?";var C=z+B+decodeURI(y);C=1==p?C:b.url,"download"!==q?(A=q,window.open(C,"_"+A)):e(C)}else k.show(),"disappear"==r?(j.removeClass("cp-hide-inline-style"),j.removeClass("cp-close-slidein"),setTimeout(function(){j.hasClass("cp-slidein-inline")&&j.addClass("cp-hide-inline-style"),(j.find(".cp-toggle-container").length>=1||1==t)&&j.addClass("cp-close-slidein"),jQuery(document).trigger("closeSlideIn",[j])},s)):"reappear"==r&&setTimeout(function(){h.empty(),k.css({display:"none"}),h.removeAttr("style"),i.removeAttr("style"),d.trigger("reset")},s);o&&setTimeout(function(){jQuery(document).trigger("closeSlideIn",[j])},3e3)}"undefined"!=u&&""!=u&&(navigator.userAgent.toLowerCase().match(/(ipad|iphone)/)?document.location=u:window.open(u,v))},error:function(a){k.hide(),i.fadeOut(100,function(){jQuery(this).show().css({visibility:"hidden"})})}}))}function e(a,b){if(window.ActiveXObject){if(window.ActiveXObject&&document.execCommand){var c=window.open(a,"_blank");c.document.close(),c.document.execCommand("SaveAs",!0,b||a),c.close()}}else{var d=document.createElement("a");d.href=a,d.target="_blank";var e=a.substring(a.lastIndexOf("/")+1);if(d.download=b||e,navigator.userAgent.toLowerCase().match(/(ipad|iphone|safari)/)&&navigator.userAgent.search("Chrome")<0)document.location=d.href;else{var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});d.dispatchEvent(f),(window.URL||window.webkitURL).revokeObjectURL(d.href)}}}var f=function(a,b,c){if(c){var d=new Date;d.setTime(d.getTime()+24*c*60*60*1e3);var e="; expires="+d.toGMTString()}else var e="";document.cookie=a+"="+b+e+"; path=/"};jQuery(document).ready(function(){jQuery(".cp-slidein-popup-container").find("#smile-optin-form").each(function(a,b){jQuery(b).find("input").keypress(function(a){if(13==a.which){a.preventDefault();var c=jQuery(this).parents(".cp-animate-container").hasClass("cp-form-submit-success");jQuery(this).parents(".cp-animate-container").hasClass("cp-form-submit-error");c||d(b)}}),jQuery(b).find(".btn-subscribe").click(function(a){a.preventDefault,jQuery(b).find(".cp-input").removeClass("cp-error"),jQuery(this).hasClass("disabled")||(d(b),jQuery(document).trigger("si_conversion_done",[this])),a.preventDefault()})})})}(jQuery);