function essbasc_popup_show(){jQuery.fn.extend({center:function(){return this.each(function(){var e=(jQuery(window).height()-jQuery(this).outerHeight())/2,s=(jQuery(window).width()-jQuery(this).outerWidth())/2;jQuery(this).css({position:"fixed",margin:0,top:(e>0?e:0)+"px",left:(s>0?s:0)+"px"})})}});var e="undefined"!=typeof essbasc_cookie_live?essbasc_cookie_live:7;0==parseInt(e)&&(e=7);var s=jQuery(window).width(),o=(jQuery("document").height(),800),t=jQuery(".essbasc-popup").attr("data-popup-width");Number(t)&&Number(t)>0&&(o=t),o>s&&(o=s-60),jQuery(".essbasc-popup").css({width:o+"px"}),jQuery(".essbasc-popup").center(),jQuery(".essbasc-popup").fadeIn("400"),jQuery(".essbasc-popup-shadow").fadeIn("100"),essbasc_setcookie("essb_aftershare","yes",e)}function essbasc_popup_close(){jQuery(".essbasc-popup").css({display:"none"}),jQuery(".essbasc-popup-shadow").css({display:"none"})}function essbasc_setcookie(e,s,o){var t=new Date;t.setTime(t.getTime()+24*o*60*60*1e3);var p="expires="+t.toGMTString();document.cookie=e+"="+s+"; "+p+"; path=/"}