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

