/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 9th 2010 7:34:32 PM PST                             */
/*      Machine:  10.16.140.110                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/8ej973nls9gc00k0.pkg.js h:1pexcljs                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/8ej973nls9gc00k0.pkg.js                                   */

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

var NavigationMessage={NAVIGATION_BEGIN:'NavigationMessage/navigationBegin',NAVIGATION_COMPLETED:'NavigationMessage/navigationCompleted',NAVIGATION_FAILED:'NavigationMessage/navigationFailed'};
function UntrustedLink(dom,_L1,evt){this.dom=dom;this.url=dom.href;this.hash=_L1;this.dom.listen('click',this.onclick.bind(this));this.dom.listen('mousedown',this.onmousedown.bind(this));this.dom.listen('mouseup',this.onmouseup.bind(this));this.dom.listen('mouseout',this.onmouseout.bind(this));this.onmousedown($E(evt));}UntrustedLink.bootstrap=function(dom,_L1,evt){if(dom.__untrusted)return;dom.__untrusted=true;new UntrustedLink(dom,_L1,evt);};UntrustedLink.prototype.getRewrittenURI=function(){return (new URI('/l.php')).setQueryData({u:this.url,h:this.hash}).setSubdomain('www');};UntrustedLink.prototype.onclick=function(){(function(){this.dom.href=this.url;}).bind(this).defer(100);this.dom.href=this.getRewrittenURI();};UntrustedLink.prototype.onmousedown=function(evt){if(evt.button==2)this.dom.href=this.getRewrittenURI();};UntrustedLink.prototype.onmouseup=function(){this.dom.href=this.getRewrittenURI();};UntrustedLink.prototype.onmouseout=function(){this.dom.href=this.url;};
function UserActivity(){}copy_properties(UserActivity,{_initialized:false,_listeners:[],initialize:function(){var _L0=function(_L2){Arbiter.inform(Arbiter.USER_ACTIVITY,_L2);};UserActivity._listeners.push(Event.listen(document.body,'mouseover',_L0));var _L1=window;if(ua.ie())_L1=document.body;UserActivity._listeners.push(Event.listen(_L1,'keydown',_L0));UserActivity._listeners.push(Event.listen(document.body,'click',_L0));UserActivity._initialized=true;},subscribe:function(_L0){if(!UserActivity._initialized)UserActivity.initialize();return Arbiter.subscribe(Arbiter.USER_ACTIVITY,_L0,Arbiter.SUBSCRIBE_NEW);},unsubscribe:function(_L0){Arbiter.unsubscribe(_L0);}});onloadRegister(UserActivity.initialize);
function OnVisible(_L0,_L1){this.targetY=Vector2.getElementPosition(_L0).y;var _L2=function(){var y=Vector2.getScrollPosition().y+Vector2.getViewportDimensions().y;if(y>this.targetY){this.remove();_L1();}return true;}.bind(this);if(DOMScroll.usingScrollWrapper()){var _L3=DOMScroll.getScrollRoot();}else var _L3=window;this.scrollListener=Event.listen(_L3,'scroll',_L2);this.resizeListener=Event.listen(window,'resize',_L2);_L2();onunloadRegister(this.remove.bind(this));}copy_properties(OnVisible.prototype,{remove:function(){if(this.scrollListener){this.scrollListener.remove();this.resizeListener.remove();this.scrollListener=this.resizeListener=null;}}});
function share_play_video(_L0,_L1){var _L2=-1;if(_L0!=_L2)_share_log_play_content(_L0,'video');if(holder=ge(_L1+'_holder'))if(container=holder.parentNode.parentNode)CSS.addClass(container,'playing');return false;}function _share_log_play_content(_L0,_L1){new AsyncRequest().setURI('/ajax/shareplay_ajax.php').setData({s:_L0,m:_L1}).send();}
var NewHigh={reset:function(){this.initialized=false;},ensureInitialized:function(){if(this.initialized)return;this.button=DOM.scry(document.body,'a.stream_header_button')[0];this.composer=DOM.scry(document.body,'div.UIComposer')[0];this.buttonArea=DOM.scry(this.composer,'div.UIComposer_ButtonArea')[0];this.initialized=true;},showComposer:function(_L0){this.ensureInitialized();if(this.composer){this.composer.removeClass('hidden_elem');UIComposer.focusInstance(this.composer.id);var _L1=UIComposer.getInstance(this.composer.id);_L1&&_L1.loadAttachment(parseInt(_L0,10));}this.button&&this.button.addClass('hidden_elem');},hideComposer:function(_L0){this.ensureInitialized();if(this.composer){var _L1=UIComposer.getInstance(this.composer.id);if(!_L0){_L1&&_L1.initialized&&_L1.blur();this.composer.addClass('hidden_elem');this.button&&this.button.removeClass('hidden_elem');}else{_L1&&_L1.initialized&&_L1.loadAttachment(0);this.composer.removeClass('hidden_elem');this.buttonArea&&this.buttonArea.addClass('hidden_elem');}}}};
function UIIntentionalStream(_L0,_L1,_L2,_L3,_L4,_L5,_L6,_L7,_L8,_L9,_La,_Lb,_Lc,_Ld,_Le){if(!_L0)throw new Error('UIIntentionalStream instantiated with no root.');copy_properties(this,{id:_L0.id,root:_L0,instanceName:_L1,newest:_L2,oldest:_L3,firstLoadIDs:_Lc,notYetSeenIDs:_Ld,seenOldStory:_Le,hiddenCount:_L4,hiddenIDCount:_L5,shouldShowHidden:false,storyCount:_L6,hasAdditionalStories:_L7,defaultFilter:_L8,stickyFilter:_L9,currentFilterKey:null,sourceType:_La,streamStoryCount:_Lb,isAutoRefreshing:false,hasPendingRefresh:false,storyInterval:null,lastRefresh:new Date().getTime(),unseenStoryCount:0,streamHeader:DOM.scry(document.body,'div.UIIntentionalStream_Top')[0],error:DOM.scry(_L0,'div.UIIntentionalStream_Error')[0],pager:_L0.find('div.UIShowMore_Pager'),hiddenInfo:DOM.scry(_L0,'div.UIIntentionalStream_HiddenInfo')[0],streamContent:_L0.find('div.UIIntentionalStream_Content'),requestNum:0,forceRefresh:false,pauseAutoInsert:false});this.setAutoRefreshConfig({});this.setUpStreamHeader();if(this.streamStoryCount>0)this.updateLiveFeedCount(this.streamStoryCount);onunloadRegister(this.unload.bind(this));this.userActivity();this.updatePager();if(this.pager)CSS.removeClass(this.pager,'hidden_elem');this.uaToken=UserActivity.subscribe(this.userActivity.bind(this));if(!UIIntentionalStream.instances)UIIntentionalStream.instances={};UIIntentionalStream.instances[_L1]=this;UIIntentionalStream.instance=this;this.autoRefreshInterval=setInterval(this.checkAutoPageRefresh,this.checkAutoRefreshTimeInterval);this.setupAutoInsert();}UIIntentionalStream.prototype.unload=function(){this.enableAutoRefresh(false);this.cleanupRefreshInterval();UIIntentionalStream.instance=null;UIIntentionalStream.instances[this.instanceName]=null;UserActivity.unsubscribe(this.uaToken);this.clearScrollLoader();delete window.disableScrollLoad;};UIIntentionalStream.getInstance=function(_L0){return UIIntentionalStream.instances[_L0];};UIIntentionalStream.handleNewStoryMessage=function(_L0,_L1){var _L2=UIIntentionalStream.instance;if(_L2)_L2.updateStream();};UIIntentionalStream.prototype._getUpdateInsertType=function(){if(this.isOnNewHighlights())return UIIntentionalStream.REFRESH_COUNT;return UIIntentionalStream.REFRESH_PREPEND;};UIIntentionalStream.prototype.setStoryInterval=function(_L0){this.storyInterval=_L0;return this;};UIIntentionalStream.prototype.setAutoRefreshConfig=function(_L0){_L0=_L0||{};var _L1=24*60*60*1000;this.allowAutoRefresh=coalesce(_L0.allow_auto_refresh,false);this.inactiveThreshold=coalesce(_L0.inactive_threshold,0);this.activeRefreshTime=coalesce(_L0.fast_refresh_rate,_L1);this.inactiveRefreshTime=coalesce(_L0.slow_refresh_rate,_L1);this.allowPolling=coalesce(_L0.allow_polling,false);this.refreshFactor=coalesce(_L0.refresh_factor,10);this.minRefreshInterval=coalesce(_L0.min_refresh_interval,60*1000);this.disableAutoRefreshTime=coalesce(_L0.disable_autorefresh_time,UIIntentionalStream.DISABLE_AUTOREFRESH_TIME);this.checkAutoRefreshTimeInterval=coalesce(_L0.check_autorefresh_time_interval,UIIntentionalStream.CHECK_AUTOREFRESH_INTERVAL);this.autoRefreshInactiveTime=coalesce(_L0.autorefresh_inactive_time,UIIntentionalStream.AUTOREFRESH_INACTIVE_TIME);this.highlightsOverrideTime=coalesce(_L0.highlights_override_time,UIIntentionalStream.HIGHLIGHTS_OVERRIDE_TIME);this.maxUnseenStoryCount=coalesce(_L0.max_unseen_story_count,UIIntentionalStream.MAX_UNSEEN_STORY_COUNT);return this;};UIIntentionalStream.prototype.shouldAutoRefresh=function(){return this.isAutoRefreshing&&this.allowAutoRefresh;};UIIntentionalStream.prototype.clearPendingHighlights=function(){if(this.isOnNewHighlights()&&(this.getMSSinceLastActivity()>this.autoRefreshInactiveTime))new AsyncSignal('/ajax/feed/save_view_state.php').send();};UIIntentionalStream.prototype.userActivity=function(){this.clearPendingHighlights();var _L0=this.isInactive();this.lastActivity=(new Date().getTime());this.isAutoRefreshing=true;if(_L0&&this.shouldAutoRefresh()&&this.needsRefresh()){this.updateStream();this.schedulePoll(this.getRefreshInterval());}return true;};UIIntentionalStream.prototype.getMSSinceLastActivity=function(){return (new Date().getTime())-this.lastActivity;};UIIntentionalStream.prototype.getMSSinceLastRefresh=function(){return (new Date().getTime())-this.lastRefresh;};UIIntentionalStream.prototype.isInactive=function(){return this.getMSSinceLastActivity()>this.inactiveThreshold;};UIIntentionalStream.prototype.getRefreshInterval=function(){if(this.isInactive()){return this.inactiveRefreshTime;}else if(this.storyInterval!=null){var _L0=this.storyInterval*this.refreshFactor;return Math.max(_L0,this.activeRefreshTime);}else return this.activeRefreshTime;};UIIntentionalStream.prototype.enableAutoRefresh=function(_L0,_L1){this.isAutoRefreshing=_L0;if(_L0){var _L2=_L1?0:this.getRefreshInterval();this.schedulePoll(_L2);}else this.cancelUpdate();};UIIntentionalStream.prototype.cancelUpdate=function(){if(this.updateTask){clearTimeout(this.updateTask);this.updateTask=null;}};UIIntentionalStream.prototype.schedulePoll=function(_L0){this.cancelUpdate();if(this.allowPolling)this.updateTask=setTimeout(this.runUpdatePoll.bind(this),_L0);};UIIntentionalStream.prototype.needsRefresh=function(){return !(this.hasPendingRefresh||this.getMSSinceLastRefresh()<this.minRefreshInterval);};UIIntentionalStream.prototype.runUpdatePoll=function(){this.updateTask=null;if(!this.shouldAutoRefresh())return;if(this.needsRefresh())this.updateStream();this.schedulePoll(this.getRefreshInterval());};UIIntentionalStream.prototype.updateStream=function(){if(!this.shouldAutoRefresh()||this.isAutoRefreshPaused())return;this.loadNewer({showLoader:false,ignoreSelf:true,insertType:this._getUpdateInsertType()});};UIIntentionalStream.prototype.clearScrollLoader=function(){if(this.currentScrollListener){this.currentScrollListener.remove();this.currentScrollListener=null;}window.disableScrollLoad=true;};UIIntentionalStream.prototype.loadMoreOnScroll=function(_L0,_L1,_L2){if(window.disableScrollLoad)return;var _L3=function(){if(window.disableScrollLoad)return;this.clearScrollLoader();var uri=URI(this.getEndpoint());uri.addQueryData({filter:this.getCurrentFilterKey(),delay_load_count:_L1,first_load_ids:this.firstLoadIDs,not_yet_seen_ids:this.notYetSeenIDs,seen_old_story:this.seenOldStory,show_hidden:this.shouldShowHidden,query_time:_L2,oldest:this.oldest,use_primer:true});AsyncRequest.bootstrap(uri);}.bind(this);if(ge(_L0)){this.currentScrollListener=new OnVisible($(_L0),_L3);}else this.scroll_handler();};UIIntentionalStream.prototype.updatePageCache=function(){this.loadNewer({bundleAsync:true,showLoader:false,ignoreReqNum:true});};UIIntentionalStream.prototype.getID=function(){return this.id;};UIIntentionalStream.prototype.showPositioned=function(_L0,_L1,_L2){if(_L1==UIIntentionalStream.REFRESH_APPEND){this.root.appendContent(_L0);}else if(_L1==UIIntentionalStream.REFRESH_PREPEND){this.root.prependContent(_L0);}else if(_L1==UIIntentionalStream.REFRESH_EXPAND)DOM.insertAfter($(_L2.expandStoryID),_L0);_L0.setStyle('display','block');if(_L0.src)_L0.src=_L0.src;};UIIntentionalStream.prototype.getCurrentFilterKey=function(){if(this.currentFilterKey)return this.currentFilterKey;var _L0=this.getCurrentParams();if(_L0&&_L0.filter){this.currentFilterKey=_L0.filter;}else if(this.defaultFilter)this.currentFilterKey=this.defaultFilter;return this.currentFilterKey;};UIIntentionalStream.prototype.loadOlder=function(_L0){_L0=_L0||{};if(!this.oldest)return;var _L1=this.getCurrentParams();_L1.oldest=this.oldest;this.refresh(UIIntentionalStream.REFRESH_APPEND,_L1,_L0);return this;};UIIntentionalStream.prototype.loadNewer=function(_L0){if(!this.newest)return;_L0=_L0||{};var _L1=this.getCurrentParams();_L1.newest=this.newest;if(_L0.ignoreSelf)_L1.ignore_self=true;_L1.load_newer=true;var _L2=coalesce(_L0.insertType,UIIntentionalStream.REFRESH_PREPEND);this.lastRefresh=new Date().getTime();this.refresh(_L2,_L1,_L0);return this;};UIIntentionalStream.prototype.getCurrentParams=function(){var _L0={};var _L1=URI.getRequestURI(true,true).getQueryData();if(_L1.sk)_L1.filter=_L1.sk;var _L2=this.getValidParams();if(_L2){_L2.forEach(function(i){_L0[i]=_L1[i];});}else _L0=_L1;_L0.hidden_count=this.hiddenCount||0;return _L0;};UIIntentionalStream.prototype.setHomeFilter=function(_L0){this._homeFilter=_L0;};UIIntentionalStream.prototype.setHomeFilterLoading=function(_L0){if(this._homeFilter)this._homeFilter.setLoading(_L0);};UIIntentionalStream.prototype.refresh=function(_L0,_L1,_L2){this.lastRefresh=new Date().getTime();this.currentFilterKey=_L1.filter;if(this.isOnNewsFeedFilter())if(_L1.filter==UIIntentionalStream.FEED_FILTER_KEY_DUAL_NEWS_FEED){this.currentFilterKey=this.stickyFilter;}else this.stickyFilter=this.currentFilterKey;_L2=_L2||{};var _L3=++this.requestNum;var _L4=coalesce(_L2.bundleAsync,false);var _L5=coalesce(_L2.showLoader,true);var _L6=this.instanceName;var _L7=function(_Lc){UIIntentionalStream.getInstance(_L6).handleResponse(_L3,_L0,_Lc,_L2);};var _L8=function(_Lc){UIIntentionalStream.getInstance(_L6).handleError(_L3,_L0,_Lc,_L2);};var _L9=function(_Lc){UIIntentionalStream.getInstance(_L6).handleFinally(_L0,_L1.filter,_Lc);};if(!(_L1.request_type=_L0))_L1.request_type='none';if(_L1.filter){_L2.show_hidden=_L1.show_hidden?_L1.show_hidden:false;}else _L2.show_hidden=this.shouldShowHidden;var _La=true;if(_L1.newest)_La=false;this.hasPendingRefresh=true;var _Lb;if(_L0==UIIntentionalStream.REFRESH_APPEND&&_L5)_Lb=this.pager;new AsyncRequest().setURI(this.getEndpoint()).setReadOnly(true).setOption('retries',0).setMethod(this.getRefreshMethod()).setData(_L1).setOption('bundle',_L4).setReplayable(_La).setHandler(_L7).setStatusElement(_Lb).setErrorHandler(_L8).setTransportErrorHandler(_L8).setFinallyHandler(_L9).send();if(_L0==UIIntentionalStream.REFRESH_TRANSITION){this.storyCount=0;this.hasAdditionalStories=true;hide(this.pager);this.clearScrollLoader();this.oldest=this.newest=null;}if(_L5)this.setHomeFilterLoading(true);};UIIntentionalStream.prototype.addContent=function(_L0,_L1){this.addContentPrepend(_L0,_L1);};UIIntentionalStream.prototype.addContentPrepend=function(_L0,_L1){if(_L0.length){$A(_L0).reverse().forEach(function(i){this.addContentPrepend(i,_L1);}.bind(this));return;}CSS.setStyle(_L0,'overflow','hidden');CSS.setStyle(_L0,'height','0px');CSS.setOpacity(_L0,'0');this.streamContent.prependContent(_L0);var _L2=animation(_L0).to('height','auto').to('opacity','1').duration(UIIntentionalStream.ANIMATION_DURATION).ondone(function(){CSS.setStyle(_L0,'overflow','');});_L1?setTimeout(_L2.go.bind(_L2),_L1):_L2.go();};UIIntentionalStream.prototype.addContentAppend=function(_L0){this.streamContent.appendContent(_L0);};UIIntentionalStream.prototype.updatePager=function(){var _L0='';if(!this.pager)return;if(!this.storyCount||!this.hasAdditionalStories){CSS.addClass(this.pager,'UIShowMore_NoMore');}else{CSS.removeClass(this.pager,'UIShowMore_NoMore');show(this.pager);}};UIIntentionalStream.getStoriesByAssoc=function(_L0){return DOM.scry(UIIntentionalStream.instance.root,'div.aid_'+_L0);};UIIntentionalStream.prototype.handleResponse=function(_L0,_L1,_L2,_L3){var _L4=_L2.isReplay()||_L3.ignoreReqNum;return this.handleResponsePayload(_L0,_L1,_L2.getPayload(),_L4,_L3);};UIIntentionalStream.prototype.handleDuplicateStories=function(_L0){var _L1=[];for(var i=0;i<_L0.length;i++){var _L3=_L0[i];var _L4=_L3.id;var _L5=ge(_L4);if(!_L5)continue;var _L6=_L5.scry("textarea.add_comment_text");if(_L6.length==1){var _L7=_L6[0];if(_L7.hasClass("DOMControl_autogrow")){var _L8=_L3.scry("textarea.add_comment_text");if(_L8.length!=0){var _L9=_L8[0];_L9.value=_L7.value;_L1.push(_L9);}}}animation(_L5).to('height','0px').to('opacity','0').duration(UIIntentionalStream.ANIMATION_DURATION).ease(animation.ease.end).ondone(function(){DOM.remove(_L5);}).go();}return _L1;};UIIntentionalStream.prototype.handleResponsePayload=function(_L0,_L1,_L2,_L3,_L4){_L4=_L4||{};if(is_empty(_L2))return;if(_L2.streamHeader){this.streamHeader.setContent(HTML(_L2.streamHeader));if(this.isOnNewsFeedFilter())this.setUpStreamHeader();NewHigh.reset();}if(_L2.autoRefreshConfig)this.setAutoRefreshConfig(_L2.autoRefreshConfig);this.setHomeFilterLoading(false);if(_L1==UIIntentionalStream.REFRESH_EXPAND)$(_L4.expandStoryID).find('div.UIIntentionalStory_CollapsedStories').removeClass('UIIntentionalStory_CollapsedStoriesLoading').addClass('hidden_elem');if(this.error)hide(this.error);if(!_L3&&_L0!=this.requestNum)return;if('show_hidden' in _L4)this.shouldShowHidden=_L4.show_hidden;this.hiddenCount=_L2.hiddenCount;this.hiddenIDCount=_L2.hiddenIDCount;this.storyCount+=_L2.storyCount;if('newestStoryTime' in _L2&&_L2.newestStoryTime>this.newest)this.newest=_L2.newestStoryTime;if('oldestStoryTime' in _L2&&(!this.oldest||_L2.oldestStoryTime<this.oldest))this.oldest=_L2.oldestStoryTime;if('hasAdditionalStories' in _L2){this.hasAdditionalStories=_L2.hasAdditionalStories;}else if(_L1==UIIntentionalStream.REFRESH_APPEND&&_L2.storyCount==0)this.hasAdditionalStories=false;if('streamStoryCount' in _L2)this.updateLiveFeedCount(_L2.streamStoryCount);this.updatePager();if(_L2.html){var _L5=HTML(_L2.html).getNodes();switch(_L1){case UIIntentionalStream.REFRESH_COUNT:if(_L2.storyCount)this.updateLiveFeedCount(_L2.storyCount,true);break;case UIIntentionalStream.REFRESH_PREPEND:this.addContentPrepend(_L5);break;case UIIntentionalStream.REFRESH_APPEND:this.addContentAppend(_L5);this.clearScrollLoader();break;case UIIntentionalStream.REFRESH_TRANSITION:this.streamContent.setContent(_L5);DOMScroll.scrollTo(new Vector2(0,0,"document"),false);break;case UIIntentionalStream.REFRESH_EXPAND:DOM.insertAfter($(_L4.expandStoryID),_L5);break;}}};UIIntentionalStream.prototype.updateLiveFeedCount=function(_L0,_L1){var _L2=(this.unseenStoryCount==0||!_L1);if(_L1){this.unseenStoryCount+=_L0;}else this.unseenStoryCount=_L0;if(this.unseenStoryCount>0&&this.liveFeedCount){var _L3='';if(this.unseenStoryCount>this.maxUnseenStoryCount){_L3=_tx("{count}+",{count:this.maxUnseenStoryCount});}else _L3=this.unseenStoryCount.toString();this.liveFeedCount.setContent(HTML(_L3));if(_L2){this.logFeedTrackingEvent(ft.NF_EVENT_IMPRESSION,'new');CSS.setStyle(this.liveFeedBubble,'display','inline');}}};UIIntentionalStream.prototype.logFeedTrackingEvent=function(_L0,_L1,_L2){if(!this.sourceType)return;if(!_L2)_L2=this.getCurrentFilterKey();var _L3={src:this.sourceType,evt:_L0,filter:_L2};if(_L1)_L3.type=_L1;ft.logData(_L3);};UIIntentionalStream.prototype.handleError=function(_L0,_L1,_L2,_L3){if(!_L2.isReplay()&&_L0!=this.requestNum)return;this.setHomeFilterLoading(false);if(_L1==UIIntentionalStream.REFRESH_EXPAND)$(_L3.expandStoryID).find('div.UIIntentionalStory_CollapsedStories').removeClass('UIIntentionalStory_CollapsedStoriesLoading');var _L4=_L2.getError();if(_L4==kError_Async_NotLoggedIn){var _L5=_tx("Session Timeout");var msg=_tx("Innskr\u00e1ningar t\u00edminn er \u00fatrunnin. Vinsamlegast innskr\u00e1\u00f0u \u00feig aftur.");var _L7=Dialog.newButton('login',_tx("Log In"),null,function(){goURI('/login.php');});new Dialog().setTitle(_L5).setBody(msg).setButtons([_L7,Dialog.CANCEL]).show();}if(!_L3.delayLoadCount&&_L1!=UIIntentionalStream.REFRESH_PREPEND&&this.error)CSS.setStyle(this.error,'display','block');};UIIntentionalStream.prototype.handleFinally=function(_L0,_L1){if(_L0==UIIntentionalStream.REFRESH_TRANSITION){PageTransitions.transitionComplete();Arbiter.inform(NavigationMessage.NAVIGATION_COMPLETED);}if(_L0!=UIIntentionalStream.REFRESH_APPEND)NewHigh.hideComposer(this.isOnNewsFeedFilter());this.hasPendingRefresh=false;};UIIntentionalStream.prototype.getValidParams=function(){return UIIntentionalStream.VALID_PARAMS;};UIIntentionalStream.prototype.getEndpoint=function(){return UIIntentionalStream.ENDPOINT;};UIIntentionalStream.prototype.getRefreshMethod=function(){return UIIntentionalStream.REFRESH_METHOD;};UIIntentionalStream.prototype.isOnNewHighlights=function(){var _L0=this.getCurrentFilterKey();return (_L0==UIIntentionalStream.FEED_FILTER_KEY_NEW_HIGHLIGHTS||(_L0==UIIntentionalStream.FEED_FILTER_KEY_DUAL_NEWS_FEED&&this.stickyFilter==UIIntentionalStream.FEED_FILTER_KEY_NEW_HIGHLIGHTS));};UIIntentionalStream.prototype.isOnNewsFeedFilter=function(){var _L0=this.getCurrentFilterKey();return (_L0==UIIntentionalStream.FEED_FILTER_KEY_NEWS_FEED||_L0==UIIntentionalStream.FEED_FILTER_KEY_NEW_HIGHLIGHTS||_L0==UIIntentionalStream.FEED_FILTER_KEY_DUAL_NEWS_FEED);};UIIntentionalStream.prototype.checkAutoPageRefresh=function(){if(!this.allowAutoRefresh)return;if(this.isAutoRefreshing&&(this.getMSSinceLastActivity()>this.disableAutoRefreshTime))this.isAutoRefreshing=false;if(this.getMSSinceLastRefresh()<this.autoRefreshInactiveTime)return;var _L0=this.getMSSinceLastActivity();var _L1=(_L0>this.autoRefreshInactiveTime);if(_L1){var _L2=this.getCurrentFilterKey();if(this.isOnNewsFeed()&&(_L0>this.highlightsOverrideTime))_L2=UIIntentionalStream.FEED_FILTER_KEY_NEW_HIGHLIGHTS;var _L3=(_L2==UIIntentionalStream.FEED_FILTER_KEY_NEW_HIGHLIGHTS);this.refreshFilter(_L2,_L3);}};UIIntentionalStream.prototype.cleanupRefreshInterval=function(){if(this.autoRefreshInterval){clearInterval(this.autoRefreshInterval);this.autoRefreshInterval=null;}};UIIntentionalStream.prototype.setupAutoInsert=function(){Arbiter.subscribe(UIIntentionalStreamMessage.SET_AUTO_INSERT,UIIntentionalStream.setAutoInsert);};UIIntentionalStream.setAutoInsert=function(_L0,_L1){if(_L0!=UIIntentionalStreamMessage.SET_AUTO_INSERT)return;var _L2=UIIntentionalStream.instance;if(_L2)_L2.pauseAutoInsert=_L1.pause;};UIIntentionalStream.prototype.isAutoRefreshPaused=function(){if(this.isOnNewHighlights())return false;return this.pauseAutoInsert;};UIIntentionalStream.prototype.setUpStreamHeader=function(){if(!this.streamHeader)return;this.liveFeedBubble=DOM.scry(this.streamHeader,'div.BubbleCount')[0];if(!this.liveFeedBubble)return;this.liveFeedCount=DOM.scry(this.streamHeader,'div.BubbleCount_Number')[0];};UIIntentionalStream.prototype.refreshFilter=function(_L0,_L1){this.logFeedTrackingEvent(ft.NF_PAGE_AUTOREFRESH,'',_L0);var _L2={'filter':_L0};var _L3={'filter':_L0};if(_L1)_L2.pending=_L1;this.refresh(UIIntentionalStream.REFRESH_TRANSITION,_L2,_L3);};copy_properties(UIIntentionalStream,{ANIMATION_DURATION:300,REFRESH_METHOD:'GET',REFRESH_TRANSITION:1,REFRESH_PREPEND:2,REFRESH_APPEND:3,REFRESH_COUNT:4,REFRESH_EXPAND:5,FEED_FILTER_KEY_NEW_HIGHLIGHTS:'h',FEED_FILTER_KEY_NEWS_FEED:'lf',FEED_FILTER_KEY_DUAL_NEWS_FEED:'nf',VALID_PARAMS:['filter','show_hidden'],ENDPOINT:'/ajax/intent.php',_presenceInit:false,DISABLE_AUTOREFRESH_TIME:4*60*1000,CHECK_AUTOREFRESH_INTERVAL:5*60*1000,AUTOREFRESH_INACTIVE_TIME:30*60*1000,HIGHLIGHTS_OVERRIDE_TIME:240*60*1000,MAX_UNSEEN_STORY_COUNT:300});UIIntentionalStream.presenceRegister=function(){if(UIIntentionalStream._presenceInit)return true;Arbiter.subscribe(PresenceMessage.getArbiterMessageType('feedpub'),UIIntentionalStream.handleNewStoryMessage);UIIntentionalStream._presenceInit=true;};

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