/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 10th 2010 2:37:51 AM PST                            */
/*      Machine:  10.16.139.109                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/homefeed.js h:7rrbodl7                                    */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/homefeed.js                                               */

if (window.CavalryLogger) { CavalryLogger.start_js(["js\/homefeed.js"]); }

function HomeFeed(_L0,_L1,_L2,_L3,_L4,_L5,_L6,_L7,_L8){HomeFeed.instance=this;this.resetState();this.oldestStoryTime=_L1||0;this.newestStoryTime=_L0||0;this.lastNewestStoryTime=0;this.lastLocalNewestTime=(new Date()).getTime();this.cdnTimeSyncFrequency=0;this.submenuShown=false;this.requestCount=0;this.akamaiRequestCount=0;this.akamaiTotalLatency=0;this.akamaiTotalStories=0;this.sendTime=0;this.requestLastSeen=0;this.currentDelay=HomeFeed.defaultDelay;this.supportsCdn=false;this.canSupportCdn=true;this.logModeOptionShown=_L7;this.logMode=_L6;this.resetRefreshCount();this.setAutoRefresh(_L2);this.tabset=_L3;this.nonTabId=_L5;this.tabIds=_L4;this.timerHandle=null;this.newStoriesClass=null;this.widgetAppId=null;this.widgetStreamId=null;this.widgetApiKey=null;this.feedbackTargets={};this.gmtOffsetMinutes=null;this.liveCommentUpdating=false;this.maxStoriesInDom=null;this.skipCDNTillNextStory=false;this.showLoggedOutError=true;this.embeddedWidget=_L8;this.widgetLocale=null;this.minimumReloadFrequency=0;if(this.embeddedWidget)LinkController.registerHandler(HomeFeed.newWindowLinkController,null,true);PageTransitions.registerHandler(HomeFeed.pageTransitionHandler);}HomeFeed.getInstance=function(){return HomeFeed.instance;};HomeFeed.defaultDelay=10*1000;HomeFeed.inactiveDelay=300*1000;HomeFeed.defaultRefreshes=90;HomeFeed.intermittentDelay=7*1000;HomeFeed.LOC_REPLACE=1;HomeFeed.LOC_PREPEND=2;HomeFeed.LOC_APPEND=3;HomeFeed.TAB_TOP_STORIES=1;HomeFeed.TAB_LIVE_FEED=2;HomeFeed.TAB_STATUS=3;HomeFeed.TAB_PHOTOS=4;HomeFeed.TAB_POSTED_ITEMS=5;HomeFeed.TAB_LIVEWIDGET_FRIENDS=7;HomeFeed.TAB_LIVEWIDGET_EVERYONE=8;HomeFeed.pageTransitionHandler=function(uri){var _L1=HomeFeed.getInstance();var _L2=uri.getPath();if(_L2=='/'||_L2=='/home.php'||_L2=='/widgets/livefeed.php'){var _L3=uri.getQueryData();if(_L1){_L1.clearFeedbackTargets();if('logged_out' in _L3||'login' in _L3)return false;if('tab' in _L3){_L1.resetState();_L1.setTab(_L3.tab);if(_L3.tab==HomeFeed.TAB_LIVE_FEED){_L1.setAutoRefresh(true);_L1.showLogModeOption(true);_L1.refreshLogMode(_L1.logMode);}else if(_L3.tab==HomeFeed.TAB_LIVEWIDGET_FRIENDS||_L3.tab==HomeFeed.TAB_LIVEWIDGET_EVERYONE){_L1.setAutoRefresh(true);}else _L1.refreshLogMode(false);if(_L1.tabset)_L1.tabset.selectTab(_L1.tabIds[_L3.tab]);if(_L1.nonTabId)CSS.removeClass($(_L1.nonTabId),'HomeFeed_selected');_L1.refresh(HomeFeed.LOC_REPLACE,{'new_request':1},true,true);return true;}else{var app=_L3.app_id||0;var _L5=_L3.stream_id||0;var _L6=_L3.fl||0;if(app||_L6){if(_L1.tabset)_L1.tabset.unselect();if(_L1.nonTabId)CSS.addClass($(_L1.nonTabId),'HomeFeed_selected');_L1.resetState();_L1.refreshLogMode(false);_L1.showLogModeOption(false);if(app)_L1.setApp(app);if(_L5)_L1.setWidgetStreamId(_L5);if(_L6)_L1.setFriendList(_L6);_L1.refresh(HomeFeed.LOC_REPLACE,{'new_request':1},true,true);return true;}}}}return false;};HomeFeed.newWindowLinkController=function(_L0){var uri=new URI(_L0.href);var _L2=uri.getPath();if(_L2!='/'&&_L2!='/home.php'&&_L2!='/widgets/livefeed.php'&&_L2!='/logout.php'){window.open(uri);return false;}return true;};HomeFeed.setDefaultRefreshes=function(_L0){HomeFeed.defaultRefreshes=_L0;};HomeFeed.prototype.openLiveWidgetLoginPopup=function(_L0){if(!_L0)_L0='/login.php';var uri=new URI(_L0);uri.addQueryData({'api_key':this.widgetApiKey,'fbconnect':1,'iframe_widget':1});var _L2='iframe_widget_login';var _L3='toolbar=0,status=0,resizable=0,width=500,height=430';window.open(uri.toString(),_L2,_L3);};HomeFeed.prototype.resetState=function(){this.apps=[];this.friendLists=[];this.tabId=null;this.oldestStoryTime=0;this.newestStoryTime=0;this.lastNewestStoryTime=0;if(this.timerSet)clearTimeout(this.timerHandle);this.timerSet=false;this.timerHandle=null;this.storyQueue=[];this.queueTimerHandle=null;this.newStoriesClass=null;this.supportsCdn=false;this.clearStoryQueue();this.resetRefreshCount();this.setAutoRefresh(false);return this;};HomeFeed.prototype.resetRefreshCount=function(){this.currentRefreshes=HomeFeed.defaultRefreshes;return this;};HomeFeed.prototype.refreshLogMode=function(_L0){var _L1=$('newsfeed_wrapper');if(_L0){CSS.addClass(_L1,'log_mode');CSS.removeClass(_L1,'full_mode');}else{CSS.addClass(_L1,'full_mode');CSS.removeClass(_L1,'log_mode');}return this;};HomeFeed.prototype.addApp=function(_L0){if(_L0)if(this.apps.indexOf(_L0)==-1)this.apps.push(_L0);return this;};HomeFeed.prototype.removeApp=function(_L0){if(this.apps.indexOf(_L0)!=-1)this.apps.remove(_L0);return this;};HomeFeed.prototype.clearApps=function(){if(this.apps.length>0)this.apps=[];return this;};HomeFeed.prototype.setApp=function(_L0){this.clearApps().addApp(_L0);return this;};HomeFeed.prototype.setWidgetApp=function(_L0){this.widgetAppId=_L0;return this;};HomeFeed.prototype.setWidgetStreamId=function(_L0){this.widgetStreamId=_L0;return this;};HomeFeed.prototype.setWidgetApiKey=function(_L0){this.widgetApiKey=_L0;return this;};HomeFeed.prototype.addFriendList=function(_L0){if(this.friendLists.indexOf(_L0)==-1)this.friendLists.push(_L0);return this;};HomeFeed.prototype.removeFriendList=function(_L0){if(this.friendLists.indexOf(_L0)!=-1)this.friendLists.remove(_L0);return this;};HomeFeed.prototype.clearFriendLists=function(){this.friendLists=[];return this;};HomeFeed.prototype.setFriendList=function(_L0){this.clearFriendLists().addFriendList(_L0);return this;};HomeFeed.prototype.setTab=function(_L0){this.tabId=_L0;return this;};HomeFeed.prototype.getTab=function(){return this.tabId;};HomeFeed.prototype.clearTab=function(){this.tabId=null;return this;};HomeFeed.prototype.setWidgetLocale=function(_L0){this.widgetLocale=_L0;return this;};HomeFeed.prototype.setReloadVersion=function(_L0){this.reloadVersion=_L0;return this;};HomeFeed.prototype.setMinimumReloadFrequency=function(_L0){this.minimumReloadFrequency=_L0;return this;};HomeFeed.prototype.setGmtOffsetMinutes=function(_L0){this.gmtOffsetMinutes=_L0;return this;};HomeFeed.prototype.clearFeedbackTargets=function(){this.feedbackTargets={};return this;};HomeFeed.prototype.updatefeedbackTargetHash=function(_L0,_L1,_L2){var key=_L0+':'+_L1;if(this.feedbackTargets[key])this.feedbackTargets[key]['comments_hash']=_L2;return this;};HomeFeed.prototype.updateCommentsFromPayload=function(_L0,_L1){for(var i=0;i<_L0.length;i++){var _L3=_L0[i];var _L4=_L3.item_id;var _L5=_L3.target_fbid;feedcomment_sync_with_markup(_L5,_L4,_L3.markup,_L3.comment_count,_L1);this.updatefeedbackTargetHash(_L4,_L5,_L3.comments_hash);}};HomeFeed.prototype.getFeedbackTargets=function(){return this.feedbackTargets;};HomeFeed.prototype.showSubmenu=function(_L0){set_inner_html($('newsfeed_submenu_content'),_L0);if(!this.submenuShown)$('newsfeed_submenu').removeClass('hidden_elem');this.submenuShown=true;this.refreshLogModeOption();return this;};HomeFeed.prototype.hideSubmenu=function(){if(this.submenuShown)$('newsfeed_submenu').addClass('hidden_elem');this.submenuShown=false;return this;};HomeFeed.prototype.showLogModeOption=function(_L0){this.logModeOptionShown=_L0;return this;};HomeFeed.prototype.refreshLogModeOption=function(){var _L0=ge('newsfeed_submenu_log_mode_option');var _L1='log_mode_selected';var _L2=ge('newsfeed_submenu_headlines_only');var _L3=ge('newsfeed_submenu_full_stories');if(_L2&&_L3)if(this.logMode){_L2.addClass(_L1);_L3.removeClass(_L1);}else{_L2.removeClass(_L1);_L3.addClass(_L1);}if(_L0)if(this.logModeOptionShown){_L0.removeClass('hidden_elem');}else _L0.addClass('hidden_elem');return this;};HomeFeed.prototype.loadOlder=function(){var _L0={'oldest':this.oldestStoryTime};this.refresh(HomeFeed.LOC_APPEND,_L0,true,false);return this;};HomeFeed.prototype.loadNewer=function(){var _L0={'newest':this.newestStoryTime};if(this.canSupportCdn&&this.supportsCdn){if(this.newestStoryTime==this.lastNewestStoryTime){var now=(new Date()).getTime();var _L2=parseInt((now-this.lastLocalNewestTime)/1000);this.newestStoryTime+=_L2;this.lastLocalNewestTime=now;}this.lastNewestStoryTime=this.newestStoryTime;}this.refresh(HomeFeed.LOC_PREPEND,_L0,false,false);return this;};HomeFeed.prototype.setCdnTimeSyncFrequency=function(_L0){this.cdnTimeSyncFrequency=parseInt(_L0);return this;};HomeFeed.prototype.setSkipCDNTillNextStory=function(_L0){this.skipCDNTillNextStory=_L0;return this;};HomeFeed.prototype.setCanSupportCdn=function(_L0){this.canSupportCdn=_L0;return this;};HomeFeed.prototype.isCdnEnabled=function(){var _L0=this.canSupportCdn&&this.supportsCdn&&!this.skipCDNTillNextStory;return _L0;};HomeFeed.prototype.syncNewestStoryTime=function(){var _L0={};_L0['widget_app_id']=this.widgetAppId;_L0['widget_stream_id']=this.widgetStreamId;_L0['ak_r_ct']=this.akamaiRequestCount;if(this.akamaiRequestCount>0){_L0['ak_av_lat']=parseInt(this.akamaiTotalLatency/this.akamaiRequestCount);_L0['ak_av_stor']=parseInt(this.akamaiTotalStories/this.akamaiRequestCount);}_L0['min_reload_freq']=this.minimumReloadFrequency;if(this.tabId==HomeFeed.TAB_LIVEWIDGET_EVERYONE&&this.widgetLocale)_L0['locale']=this.widgetLocale;this.akamaiRequestCount=0;this.akamaiTotalLatency=0;this.akamaiTotalStories=0;var _L1=function(_L4){var _L5=_L4.getPayload();if(_L5&&'lastestTime' in _L5){this.newestStoryTime=parseInt(_L5['lastestTime']);this.lastLocalNewestTime=(new Date()).getTime();}if(_L5&&'cdnSyncFrequency' in _L5)this.setCdnTimeSyncFrequency(_L5['cdnSyncFrequency']);};var _L2=function(_L4){};var _L3=new AsyncRequest().setReadOnly(true).setOption('retries',0).setMethod('GET').setData(_L0).setHandler(bind(this,_L1)).setErrorHandler(_L2).setTransportErrorHandler(_L2).setURI('/ajax/live_feed_last_action.php').send();};HomeFeed.prototype.loadMore=function(_L0){var _L1={'story_keys':_L0};this.refresh(HomeFeed.LOC_APPEND,_L1,false,false);return this;};HomeFeed.prototype.autoRefreshFire=function(){this.timerSet=false;this.timerHandle=null;if(!this.autoRefresh)return;this.loadNewer();};HomeFeed.prototype.autoRefreshHandler=function(){if(!this.autoRefresh||this.timerSet||!this.currentDelay)return;var _L0=this.currentDelay;if(this.currentRefreshes<=0){_L0=HomeFeed.inactiveDelay;}else this.currentRefreshes--;if(!this.supportsCdn)_L0=parseInt(_L0*(.75+.5*Math.random()));this.timerSet=true;this.timerHandle=setTimeout(this.autoRefreshFire.bind(this),_L0);};HomeFeed.prototype.setAutoRefresh=function(_L0){if(!_L0&&this.timerSet){clearTimeout(this.timerHandle);this.timerHandle=null;}this.autoRefresh=_L0;this.autoRefreshHandler();return this;};HomeFeed.prototype.refresh=function(_L0,_L1,_L2,_L3){var _L4=this.autoRefresh;_L0=_L0||HomeFeed.LOC_REPLACE;_L2=(_L2===undefined)?true:_L2;_L3=_L3||false;var _L5=function(_L7){if(_L2&&!ge('feed_loading_image')){var _L8=document.createElement('img');_L8.src="/images/loaders/indicator_blue_large.gif";_L8.id="feed_loading_image";var _L6=$('newsfeed_wrapper');if(_L0==HomeFeed.LOC_APPEND){_L6.parentNode.appendChild(_L8);}else _L6.parentNode.insertBefore(_L8,_L6);}this.requestCount++;var _L9=this.requestCount;var _La=function(_L10){var _L11=_L10.getPayload();if(_L11){if('newDelay' in _L11)this.currentDelay=_L11.newDelay;if('newRefreshCount' in _L11)HomeFeed.defaultRefreshes=_L11.newRefreshCount;if('newStoriesClass' in _L11)this.newStoriesClass=_L11.newStoriesClass;this.supportsCdn=false;if('enableCdn' in _L11&&this.canSupportCdn){this.supportsCdn=_L11.enableCdn;if(this.requestCount&&this.cdnTimeSyncFrequency&&(this.requestCount%this.cdnTimeSyncFrequency)==0)this.syncNewestStoryTime(false);if('n_stories' in _L11)this.akamaiTotalStories+=_L11.n_stories;}if(this.sendTime){this.akamaiTotalLatency+=(new Date()).getTime()-this.sendTime;this.sendTime=0;}if(_L9!=this.requestCount)return;this.removeLoadingImage();this.removeErrorMessage();this.updateLastSeen(_L9);var _L6=$('newsfeed_wrapper');var html=_L11['html']||null;var _L13=_L11['stories']||[];if(html||(_L13&&_L13.length)){this.setSkipCDNTillNextStory(false);if('newestStoryTime' in _L11&&_L11['newestStoryTime']>this.newestStoryTime){this.newestStoryTime=_L11['newestStoryTime'];this.lastLocalNewestTime=(new Date()).getTime();}if('lastestTime' in _L11)this.lastestTime=parseInt(_L11['lastestTime']);if('oldestStoryTime' in _L11&&(this.oldestStoryTime==0||_L11['oldestStoryTime']<this.oldestStoryTime))this.oldestStoryTime=_L11['oldestStoryTime'];if('submenuText' in _L11){this.showSubmenu(_L11.submenuText);}else this.hideSubmenu();this.refreshLogModeOption();this.removeStoryStatusMessage();if(_L13&&_L13.length){this._addStoriesToQueue(_L13);}else if(html)this.updateStoriesHTML(html,this.newStoriesClass,_L0);}if('storiesCount' in _L11&&_L11['storiesCount']){var _L14=ge('standard_status');if(_L14)hide(_L14);}if('livefeedBottomMessage' in _L11){var text=_L11['livefeedBottomMessage'];var _L16=ge('livefeed_bottom_message');if(_L16)_L16.setContent(text);if(text.length>=70){CSS.addClass(_L16,'long_bottom_message');}else CSS.removeClass(_L16,'long_bottom_message');var _L17=ge('livefeed_main_item');if(_L17)if(text.length>0){CSS.addClass(_L17,'with_bottom_message');}else CSS.removeClass(_L17,'with_bottom_message');}if('modified_comments' in _L11){var _L18=feedcomment_get_feedback_sources();var _L19=_L18['FEEDBACK_SOURCE_NEWS_FEED'];this.updateCommentsFromPayload(_L11.modified_comments,_L19);}if('maxStoriesInDom' in _L11&&_L11.maxStoriesInDom){this.maxStoriesInDom=_L11.maxStoriesInDom;this.truncateStories();}if(this.reloadVersion&&'reloadVersion' in _L11&&_L11['reloadVersion']>this.reloadVersion&&'reloadRangeInSeconds' in _L11){this.setReloadVersion(_L11['reloadVersion']);var _L1a=Math.max(10000,Math.random()*1000*_L11['reloadRangeInSeconds']);setTimeout(function(){window.location.reload();},_L1a);}}if(_L4)this.autoRefreshHandler();}.bind(this);if(_L0!=HomeFeed.LOC_PREPEND){var _Lb=ge('feed_bottom_links');if(_Lb)_Lb.parentNode.removeChild(_Lb);}var _Lc=(typeof _L1=='object')?_L1:{};if(this.apps.length)_Lc['apps']=this.apps;if(this.friendLists.length)_Lc['fl']=this.friendLists;if(this.tabId)_Lc['tab']=this.tabId;if(this.minimumReloadFrequency)_Lc['min_reload_freq']=this.minimumReloadFrequency;var _Ld='GET';if(this.feedbackTargets&&this.liveCommentUpdating){var _Le=values(this.feedbackTargets);if(_Le.length){_Lc['feedback_targets']=JSON.encode(_Le);_Ld='POST';}}if(this.widgetAppId)_Lc['widget_app_id']=this.widgetAppId;if(this.widgetStreamId)_Lc['widget_stream_id']=this.widgetStreamId;if(this.tabId==HomeFeed.TAB_LIVEWIDGET_EVERYONE&&this.widgetLocale)_Lc['locale']=this.widgetLocale;if(this.reloadVersion)_Lc['reload_version']=this.reloadVersion;if(this.gmtOffsetMinutes!=null)_Lc['gmt_offset_minutes']=this.gmtOffsetMinutes;var _Lf=new AsyncRequest().setReadOnly(true).setOption('retries',0).setMethod(_Ld).setData(_Lc).setHandler(_La).setErrorHandler(bind(this,this._refreshErrorHandler,_L0,_L9)).setTransportErrorHandler(bind(this,this._refreshErrorHandler,_L0,_L9)).setFinallyHandler(function(){if(_L3)PageTransitions.transitionComplete();});if(this.isCdnEnabled()){this.akamaiRequestCount++;_Lf.setOption('jsonp',true);_Lc['jsonp']=true;_Lf.setURI('http://livefeed.facebook.com/ajax/feed.php');this.sendTime=(new Date()).getTime();}else _Lf.setURI('/ajax/feed.php');if(this.tabset)_Lf.setContextData('src_tab_name',this.tabset.lastSelected).setContextData('dst_tab_name',this.tabset.selectedId).setNectarActionData();_Lf.send();}.bind(this);var _L6=$('newsfeed_wrapper');if(_L0==HomeFeed.LOC_REPLACE)set_inner_html(_L6,'');_L5();};HomeFeed.prototype.truncateStories=function(){if(this.maxStoriesInDom){var _L0=$('newsfeed_wrapper');var _L1=DOM.scry(_L0,'div.feed_item');for(var i=_L1.length-1;i>=this.maxStoriesInDom;i--){var _L3=_L1[i];_L3.parentNode.removeChild(_L3);}var _L4=keys(this.feedbackTargets);var _L5=_L4.length-this.maxStoriesInDom;for(var i=0;i<_L5;i++){var key=_L4[i];delete this.feedbackTargets[key];}}};HomeFeed.prototype.removeLoadingImage=function(){this._removeElementWithId('feed_loading_image');return this;};HomeFeed.prototype.removeErrorMessage=function(){this._removeElementWithId('feed_error_wrapper');return this;};HomeFeed.prototype._removeElementWithId=function(id){var el=ge(id);if(el)el.parentNode.removeChild(el);return this;};HomeFeed.prototype.updateLastSeen=function(_L0){if(this.requestLastSeen<_L0)this.requestLastSeen=_L0;};HomeFeed.prototype._addStoriesToQueue=function(_L0){this.storyQueue=this.storyQueue.concat(_L0);this.startStoryQueue();};HomeFeed.prototype.startStoryQueue=function(){if(this.queueTimerHandle)return;this._handleStoryQueue();};HomeFeed.prototype.clearStoryQueue=function(){if(this.queueTimerHandle)clearTimeout(this.queueTimerHandle);this.storyQueue=[];};HomeFeed.prototype._handleStoryQueue=function(){if(this.storyQueue.length){var len=this.storyQueue.length;var _L1=Math.ceil(len/3);var _L2=this.storyQueue.splice(0,_L1);var _L3=_L2.join('');var _L4=document.createElement('div');set_inner_html(_L4,_L3);_L4.style.overflow='hidden';CSS.addClass(_L4,this.newStoriesClass);this.updateWrapper(HomeFeed.LOC_PREPEND,_L4,true);this.queueTimerHandle=null;if(this.storyQueue.length>0)this.queueTimerHandle=setTimeout(this._handleStoryQueue.bind(this),HomeFeed.intermittentDelay);}};HomeFeed.prototype._refreshErrorHandler=function(_L0,_L1,_L2){if(_L1!=this.requestCount)return;this.removeLoadingImage();this.updateLastSeen(_L1);var _L3=_L2.getError();var _L4;if(this.embeddedWidget){var _L5='HomeFeed.getInstance().openLiveWidgetLoginPopup();';_L4='<a href="#" onClick="'+_L5+'">'+_tx("log in")+'</a>';}else _L4='<a href="'+login_url+'">'+_tx("log in")+'</a>';if(_L3==kError_Async_NotLoggedIn){var _L6=_tx("Session Timeout");var msg=_tx("Your session has timed out. Please {login}.",{'login':_L4});new ErrorDialog().showError(_L6,msg);return;}if(_L0==HomeFeed.LOC_PREPEND)return;var _L8=document.createElement('div');_L8.id='error';CSS.addClass(_L8,'error');set_inner_html(_L8,_tx("This stream is unavailable at this time. Please try again soon."));var _L9=document.createElement('div');_L9.id='feed_error_wrapper';_L9.appendChild(_L8);this.updateWrapper(_L0,_L9,false);return;};HomeFeed.prototype.removeStoryStatusMessage=function(){var _L0=(ge('error')||ge('standard_status'));if(_L0)_L0.parentNode.removeChild(_L0);};HomeFeed.prototype.updateWrapper=function(_L0,_L1,_L2){var _L3=$('newsfeed_wrapper');if(_L0==HomeFeed.LOC_APPEND){_L3.appendContent(_L1);}else if(_L0==HomeFeed.LOC_PREPEND){_L3.prependContent(_L1);var _L4='#FFF9D7';var _L5='#FFFBE7';if(_L2){animation(_L1).to('background',_L4).from(_L4).to('height','auto').from(0).ease(animation.ease.both).show().duration(500).to('opacity',0).from(0).checkpoint().to('opacity',1).from(0).ease(animation.ease.both).duration(750).checkpoint().to('background',_L5).from(_L4).duration(5000).checkpoint().duration(20000).checkpoint().to('background','#fff').from(_L5).duration(5000).go();}else show(_L1);}else _L3.setContent(_L1);return this;};HomeFeed.prototype.banUser=function(_L0,_L1,_L2,_L3){var _L4={'app_id':_L1,'banned_user':_L2};var _L5=function(_L8){var _L9=DOM.findParentByClass(_L0,'feed_item');if(_L9)_L9.parentNode.removeChild(_L9);};var _L6=function(_L8){aiert("Could not ban this user");};var _L7=new AsyncRequest().setMethod('POST').setData(_L4).setHandler(bind(this,_L5)).setErrorHandler(bind(this,_L6)).setURI('/ajax/live_feed_ban.php').send();return this;};HomeFeed.prototype.updateStoriesHTML=function(_L0,_L1,_L2){this.newStoriesClass=_L1;if(typeof(_L2)=='undefined')_L2=HomeFeed.LOC_APPEND;var _L3=document.createElement('div');set_inner_html(_L3,_L0);_L3.style.overflow='hidden';CSS.addClass(_L3,_L1);this.updateWrapper(_L2,_L3,false);};onloadRegister(function(){var fn=function(){var _L1=HomeFeed.getInstance();if(_L1){_L1.resetRefreshCount();_L1.setAutoRefresh(_L1.autoRefresh);}};window.onfocus=chain(window.onfocus,fn);window.onclick=chain(window.onclick,fn);window.onmouseover=chain(window.onmouseover,fn);});

if (window.Bootloader) { Bootloader.done(["js\/homefeed.js"]); }