!function(a){a.espcms_sticky=function(b,c,d){return a.fn.espcms_sticky(b,c,d)},a.fn.espcms_sticky=function(b,c,d){var f,g,h,i,j,e={speed:"integer",duplicates:!0,autoclose:5e3};return b||(b=this.html()),c&&a.extend(e,c),f=!0,g="no",h="espcms_sticky_id_",i=h+Math.floor(99999*Math.random()),a(".espcms_sticky_note").each(function(){a(this).html()==b&&a(this).is(":visible")&&(g="yes",e["duplicates"]||(f=!1)),a(this).attr("id")==i&&(i=h+Math.floor(9999999*Math.random()))}),a("body").find(".espcms_sticky_queue").html()||a("body").append('<div class="espcms_sticky_queue"></div>'),f&&(a(".espcms_sticky_queue").prepend('<div class="espcms_sticky" id="'+i+'"></div>'),a("#"+i).append('<span class="espcms_icon_fa espcms_icon_fa-close espcms_sticky_close text-orange" rel="'+i+'" aria-hidden="true"></span>'),a("#"+i).append('<div class="espcms_sticky_note" rel="'+i+'">'+b+"</div>"),a("#"+i).slideDown(e["speed"]),f=!0),a(".espcms_sticky").ready(function(){e["autoclose"]&&a(".espcms_sticky_queue").delay(e["autoclose"]).slideUp("fast",function(){a(this).remove()})}),a(".espcms_sticky_close").click(function(){a(".espcms_sticky_queue").dequeue().slideUp("fast",function(){a(this).remove()})}),j={id:i,duplicate:g,displayed:f},d?(d(j),void 0):j}}(jQuery);