(function(A){A.purr=function(E,C){E=A(E);if(!C.isSticky){E.addClass("not-sticky")}var B=document.getElementById("purr-container");if(!B){B='<div id="purr-container"></div>'}B=A(B);A("body").append(B);D();function D(){var G=document.createElement("a");A(G).attr({className:"close",href:"#close",innerHTML:"Close"}).appendTo(E).click(function(){F();return false});E.appendTo(B).hide();if(jQuery.browser.msie&&C.usingTransparentPNG){E.show()}else{E.fadeIn(C.fadeInSpeed)}if(!C.isSticky){var H=setInterval(function(){if(E.prevAll(".not-sticky").length==0){clearInterval(H);setTimeout(function(){F()},C.removeTimer)}},200)}}function F(){if(jQuery.browser.msie&&C.usingTransparentPNG){E.css({opacity:0}).animate({height:"0px"},{duration:C.fadeOutSpeed,complete:function(){E.remove()}})}else{E.animate({opacity:"0"},{duration:C.fadeOutSpeed,complete:function(){E.animate({height:"0px"},{duration:C.fadeOutSpeed,complete:function(){E.remove()}})}})}}};A.fn.purr=function(B){B=B||{};B.fadeInSpeed=B.fadeInSpeed||500;B.fadeOutSpeed=B.fadeOutSpeed||500;B.removeTimer=B.removeTimer||4000;B.isSticky=B.isSticky||false;B.usingTransparentPNG=B.usingTransparentPNG||false;this.each(function(){new A.purr(this,B)});return this}})(jQuery);