String.prototype.unEntify=function(){var _55c=this;_55c=_55c.replace(/&amp;/g,"&");_55c=_55c.replace(/&quot;/g,"\"");_55c=_55c.replace(/&apos;/g,"'");return _55c;};function NoticeFeeder(_55d,_55e,_55f){var _560=null;var _561=$("feeder");var _562=_55d;var _563=_55e;var _564=new Template("<div id=\"notice_#{id}\" style=\"display:none\" class=\"listing\"><p><strong><span>#{name}</span> notices <span>#{friend}</span>:</strong>  #{notice}</p><p class=\"time\">About #{timeAgo}</p></div>");var _565=function(){return new Date().getTime().toString().substring(0,10);};var _566=function(li){var x=new Effect.SlideDown(li.identify(),{beforeStart:function(_569){var li=_569.element;li.setOpacity("0");li.hide();},afterFinish:function(_56b){var li=_56b.element;var y=new Effect.Appear(li.identify(),{afterFinish:function(_56e){_56e.element.setAttribute("style","");}});},transition:Prototype.Browser.IE?Effect.Transitions.full:Effect.Transitions.sinoidal,duration:2});};var _56f=function(){var _570=_561.childElements();if(_570){return _570[_570.length-1];}return null;};var _571=function(_572){var len=0;if(_572){len=_572.length;}for(var i=0;i<len;i++){var node=_572[i];var _576=_561.childElements();if(_576.length>=5){var _577=_56f();if(_577){$(_577).remove();}}if(node.id>_563){_563=node.id;}var html=_564.evaluate({id:node.id,name:node.name,friend:node.friend,notice:node.notice,timeAgo:node.time});_561.insert({top:html});_566($("notice_"+node.id));}};var _579=function(){var x=new Ajax.Request(_55d+"springboard/client.php?handler=reviews:GetRecentNotices"+"&id="+_563,{method:"get",requestHeaders:{Accept:"application/json"},onSuccess:function(_57b){var _57c=_57b.responseText.evalJSON(true);_571(_57c);},onFailure:function(){}});};var init=function(){_560=new PeriodicalExecuter(_579.bind(this),15);};if(_55f==1){init();}}