/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 11th 2010 7:20:24 PM PST                            */
/*      Machine:  10.16.140.104                                                */
/*       Source:  Global Cache                                                 */
/*     Location:  js/3ryrfhpiv668kksc.pkg.js h:9ftqxjyr                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/3ryrfhpiv668kksc.pkg.js                                   */

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

function AsyncLayout(){}AsyncLayout.prototype={init:function(b,a){this.canvas=b;this.auxiliary=a;this.auxEndpoints={};Arbiter.subscribe(NavigationMessage.NAVIGATION_BEGIN,this.onNavigate.bind(this));return this;},setAuxiliaryEndpoints:function(b){for(var a in b)this.auxEndpoints[a]=b[a];},onNavigate:function(b,a){if(a.endpoint){a.handled=true;if(this.request){this.request.setFinallyHandler(bagofholding);this.request.abort();}if(this.sideRequest)this.sideRequest.abort();if(a.sidecol&&this.auxEndpoints[a.endpoint]){this.sideRequest=new AsyncRequest(this.auxEndpoints[a.endpoint]).setData({key:a.key}).setHandler(this.onSideResponse.bind(this));this.sideRequest.send();}this.request=new AsyncRequest(a.endpoint).setReadOnly(true).setMethod('GET').setData(a).setHandler(this.onResponse.bind(this)).setErrorHandler(this.errorHandler.bind(this)).setTransportErrorHandler(this.errorHandler.bind(this)).setFinallyHandler(this.finallyHandler.bind(this));this.request.send();}},onSideResponse:function(b){var a=b.getPayload();if(a&&this.auxiliary)DOM.setContent(this.auxiliary,HTML(a));},onResponse:function(c){var b=c.getPayload();if(b.redirect){goURI(b.redirect);}else{var a=b.html||b;DOM.setContent(this.canvas,HTML(a));if(b.side_html&&this.auxiliary)DOM.setContent(this.auxiliary,HTML(b.side_html));}Arbiter.inform(NavigationMessage.NAVIGATION_COMPLETED);},errorHandler:function(a){ErrorDialog.showAsyncError(a);Arbiter.inform(NavigationMessage.NAVIGATION_FAILED);},finallyHandler:function(a){this.request=null;PageTransitions.transitionComplete();}};
function UISideNav(){}UISideNav.prototype={init:function(b,a){this.root=b;this.defaultKey=a;this.path=this.equivalentPath(URI.getRequestURI().getPath());this.loadingNode=null;PageTransitions.registerHandler(this.catchPageTransition.bind(this));Arbiter.subscribe(NavigationMessage.NAVIGATION_COMPLETED,this.navigationComplete.bind(this));Arbiter.subscribe(NavigationMessage.NAVIGATION_FAILED,this.navigationFailed.bind(this));},setEndpoints:function(a,b){this.endpoints=a;this.endpointPrefix=b||'';},getEndpoint:function(a){return this.endpoints?this.endpoints[a]||this.endpoints:'';},equivalentPath:function(a){return (a=='/home.php')?'/':a;},catchPageTransition:function(c){if(this.path!=this.equivalentPath(c.getPath()))return false;var b=c.getQueryData();var a=b.sk;if(a===undefined)a=this.defaultKey;this.loadKey(a);this.handlePageTransition(b,a);return true;},handlePageTransition:function(c,b){var a=this.endpointPrefix+this.getEndpoint(b);copy_properties(c,{key:b,endpoint:a,sidecol:this.refreshRightColumn});Arbiter.inform(NavigationMessage.NAVIGATION_BEGIN,c);},loadKey:function(b){var a=DOM.scry(this.root,'li.key-'+b);this.loadingNode&&CSS.removeClass(this.loadingNode,'loading');if(a.length){this.loadingNode=a[0];CSS.addClass(this.loadingNode,'loading');this.refreshRightColumn=this.isTopLevelNode(this.loadingNode);}else this.refreshRightColumn=false;},isTopLevelNode:function(a){return (a&&a.firstChild&&(CSS.hasClass(a.firstChild,'item')||CSS.hasClass(a.firstChild,'inputsearch')));},navigationFailed:function(){CSS.removeClass(this.loadingNode,'loading');this.loadingNode=null;},navigationComplete:function(){if(this.loadingNode){CSS.removeClass(this.loadingNode,'loading');var a=null;if(this.isTopLevelNode(this.loadingNode)){a=this.loadingNode;}else a=this.loadingNode.parentNode.parentNode;if(!CSS.hasClass(a,'open')){this.root.scry('li.open').removeClass('open');CSS.addClass(a,'open');}this.root.scry('li.selected').removeClass('selected');this.loadingNode.addClass('selected');this.loadingNode=null;}},toggleHiddenSection:function(){CSS.toggleClass(this.root.parentNode,'expandedMode');return false;}};
function FBSideNav(){this.parent.construct(this);this.shouldFocusComposer=false;}FBSideNav.extend('UISideNav');FBSideNav.STATUS_UPDATE_APP_ID=2915120374;FBSideNav.prototype.handlePageTransition=function(c,b){var a=this.getEndpoint(b);var d=null;if(window.UIIntentionalStream&&window.UIIntentionalStream.instances){if(UIIntentionalStream.instances.nile)d=UIIntentionalStream.instances.nile;UIIntentionalStream.instances.global&&UIIntentionalStream.instances.global.unload();UIIntentionalStream.instances.friends&&UIIntentionalStream.instances.friends.unload();}this.shouldFocusComposer=!!c.fc;if(this.shouldFocusComposer)if(d&&d.isOnNewsFeedFilter()&&a=='feed.php'){this.navigationComplete();return true;}d&&d.unload();this.parent.handlePageTransition(c,b);};FBSideNav.prototype.navigationComplete=function(){if(this.shouldFocusComposer){setTimeout(this.focusComposer.bind(this),0);}else DOMScroll.scrollTo(document.documentElement,false);return this.parent.navigationComplete();};FBSideNav.prototype.focusComposer=function(){NewHigh.showComposer(FBSideNav.STATUS_UPDATE_APP_ID);this.shouldFocusComposer=false;};
function FBStaticNav(){}FBStaticNav.prototype={init:function(a){this.root=a;Event.listen(this.root,'click',function(event){var b=event.getTarget();if(DOM.isNode(b,'input'))CSS.addClass(DOM.getNearest(b,'li'),'hidden_elem');});if(ua.ie()<7)DOM.scry(this.root,'li').each(function(b){Event.listen(b,{mouseover:CSS.addClass.bind(null,b,'hover'),mouseout:CSS.removeClass.bind(null,b,'hover')});});},toggleHiddenSection:function(){var a='expandedMode';if(!CSS.hasClass(this.root.parentNode,a))fbx_ab_log_click('OPEN_LEFT_NAV');CSS.toggleClass(this.root.parentNode,a);return false;}};
function EventController(a){copy_properties(this,{_queue:[],_ready:false,_responder:a});}copy_properties(EventController.prototype,{startQueue:function(){this._ready=true;this.dispatchEvents();return this;},pauseQueue:function(){this._ready=false;return this;},addEvent:function(event){event=event.toLowerCase();var a=[];for(var b=1;b<arguments.length;b++)a.push(arguments[b]);this._queue.push({type:event,args:a});if(this._ready)this.dispatchEvents();return false;},dispatchEvents:function(){if(!this._responder)throw new Error('No event responder.');for(var b=0;b<this._queue.length;b++){var a='on'+this._queue[b].type;if(typeof(this._responder[a])!='function'&&typeof(this._responder[a])!='null'){throw new Error('No event handler.');}else if(this._responder[a])this._responder[a].apply(this._responder,this._queue[b].args);}this._queue=[];}});

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