/*
HTTP Host: static.ak.fbcdn.net
Generated: March 19th 2010 4:35:54 PM PDT
Machine: 10.16.140.101
Locale: nu_ll
Path: js/ep67jeq5rvcc8wow.pkg.js
*/

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

function InstrumentedLogger(_L0){if(this===window)return new InstrumentedLogger(_L0);if(InstrumentedLogger._instances[_L0])return InstrumentedLogger._instances[_L0];copy_properties(this,{id:_L0,_phases:{}});return InstrumentedLogger._instances[_L0]=this;}copy_properties(InstrumentedLogger,{_instances:{}});copy_properties(InstrumentedLogger.prototype,{beginPhase:function(_L0){if(this._phases[_L0]&&this._phases[_L0].start)this.endPhase(_L0);if(typeof(this._phases[_L0])=='undefined')this._phases[_L0]={start:0,count:0,duration:0};this._phases[_L0].start=new Date().getTime();return this;},endPhase:function(_L0){var _L1=this._phases[_L0];if(_L1&&_L1.start){_L1.count++;_L1.duration+=new Date().getTime()-_L1.start;_L1.start=null;}return this;},dumpAndReset:function(){this.dump();return this.reset();},dump:function(){for(var _L0 in this._phases){var p=this._phases[_L0];var _L2=(this.id?this.id+'::':'')+_L0;Util.warn(' %s %f ms [%d ms / %d]',_L2,p.duration/p.count,p.duration,p.count);}return this;},get:function(_L0){if(this._phases[_L0])return this._phases[_L0].duration/this._phases[_L0].count;return 0;},reset:function(){this._phases={};return this;}});InstrumentedLogger.prototype.b=InstrumentedLogger.prototype.beginPhase;InstrumentedLogger.prototype.e=InstrumentedLogger.prototype.endPhase;InstrumentedLogger.prototype.d=InstrumentedLogger.prototype.dump;InstrumentedLogger.prototype.D=InstrumentedLogger.prototype.dumpAndReset;InstrumentedLogger.prototype.r=InstrumentedLogger.prototype.reset;var IL=InstrumentedLogger;
function static_source(){this.values=null;this.index=null;this.index_includes_hints=false;this.exclude_ids={};this.parent.construct(this);}static_source.extend('typeahead_source');static_source.prototype.enumerable=true;static_source.prototype.filter_excluded=function(_L0){return _L0.filter((function(_L1){return !this.exclude_ids[_L1.i];}).bind(this));};static_source.prototype.build_index=function(){var _L0=[];var _L1=this.values;var _L2=_L1.length&&typeof _L1[0].i=='undefined';for(var i=0,il=_L1.length;i<il;i++){var _L5=typeahead_source.tokenize(_L1[i].t);for(var j=0,jl=_L5.length;j<jl;j++)_L0.push({t:_L5[j],o:_L1[i]});if(this.index_includes_hints&&_L1[i].s){var _L5=typeahead_source.tokenize(_L1[i].s);for(var j=0,jl=_L5.length;j<jl;j++)_L0.push({t:_L5[j],o:_L1[i]});}if(_L2)_L1[i].i=i;}_L0.sort(function(a,b){return (a.t==b.t)?0:(a.t<b.t?-1:1);});this.index=_L0;this.ready();};static_source.prototype._sort_text_obj=function(a,b){if(a.e&&!b.e)return 1;if(!a.e&&b.e)return -1;return a.t.localeCompare(b.t);};static_source.prototype.search_value=function(_L0,_L1){if(!this.is_ready)return;var _L2;if(_L0==''){_L2=this.values;}else{var _L3=typeahead_source.tokenize(_L0).sort(typeahead_source._sort);var _L4=this.index;var lo=0;var hi=this.index.length-1;var p=Math.floor(hi/2);while(lo<=hi){if(_L4[p].t>=_L3[0]){hi=p-1;}else lo=p+1;p=Math.floor(lo+((hi-lo)/2));}var _L2=[];var _L8={};var _L9=typeof _ignoreList!='undefined';for(var i=lo;i<_L4.length&&_L4[i].t.lastIndexOf(_L3[0],0)!=-1;i++){var _Lb=_L4[i].o.flid?_L4[i].o.flid:_L4[i].o.i;if(typeof _L8[_Lb]!='undefined'){continue;}else _L8[_Lb]=true;if((!_L9||!_ignoreList[_Lb])&&!this.exclude_ids[_Lb]&&(_L3.length==1||typeahead_source.check_match(_L3,_L4[i].o.t)))_L2.push(_L4[i].o);}}_L2.sort(this._sort_text_obj.bind(this));if(this.owner&&this.owner.max_results)_L2=_L2.slice(0,this.owner.max_results);if(_L1)_L1(this,_L0,_L2);return _L2;};static_source.prototype.set_exclude_ids=function(ids){this.exclude_ids=ids;};
function Template(_L0){copy_properties(this,{_templateSource:_L0});}copy_properties(Template,{_operatorRepeat:function(s,_L1){var _L2='';var _L3=s.match(/([^:]*):(.*)/);if(!_L3){Util.warn('Invalid template call: %s',s);}else if(!TemplateRegistry.hasTemplate(_L3[2])){Util.warn('Template not available: %s',s);}else if(_L1[_L3[1]]){var _L4=TemplateRegistry.getTemplate(_L3[2]);var _L5=arrayize(_L1[_L3[1]]);_L2+=_L5.map(function(_L4,_L1){return _L4.render(_L1);}.curry(_L4)).join(' ');}return _L2;}});copy_properties(Template.prototype,{getSource:function(){return this._templateSource;},render:function(_L0){var _L1=function(_L2,_L3,_L4,key){switch(_L4){case 'H':return _L2[key]||'';case 'R':return Template._operatorRepeat(key,_L2);default:return _L2[key]?htmlize(_L2[key]):'';}return _L2[key]?translator(_L2[key]):'';}.curry(_L0||{});return this._templateSource.replace(/\$(H|R)?{([^\}]*)\}/g,_L1);}});var TemplateRegistry={_storage:{},registerTemplate:function(_L0,_L1){if(typeof(_L1)=="string")_L1=new Template(_L1);this._storage[_L0]=_L1;return this;},unregisterTemplate:function(_L0){delete this._storage[_L0];},hasTemplate:function(_L0){return _L0 in this._storage;},getTemplate:function(_L0){if(this.hasTemplate(_L0))return this._storage[_L0];return null;},registerServerSideTemplate:function(_L0,_L1,_L2,_L3){_L1=_L1||bagofholding;_L2=!!_L2;_L3=!!_L3;if(this.hasTemplate(_L0)){_L1();return this;}var _L4=new AsyncRequest(_L0).setReadOnly(true).setMethod('GET').setOption('asynchronous',!_L2).setOption('suppressEvaluation',!_L3);if(!_L2)_L4.setErrorHandler(this._registerErrorHandler.bind(this,_L0)).setHandler(this._registerHandler.bind(this,_L0,_L3,_L1));_L4.send();if(_L2){var _L5=this._stripHasteComments(_L4.transport.responseText);this.registerTemplate(_L0,new Template(_L5));_L1();}return this;},_registerErrorHandler:function(_L0,_L1){Util.warn('Failed to register template "%s"',_L0);},_registerHandler:function(_L0,_L1,_L2,_L3){var _L4=_L3.getPayload();var _L5=null;if(_L1){if(_L4.template)_L5=_L4.template;}else _L5=this._stripHasteComments(_L4.responseText);if(_L5){this.registerTemplate(_L0,_L5);_L2();}else Util.error('No template found in response payload');},_stripHasteComments:function(_L0){return _L0.replace(/^\s*\/\*\*?(.|\n)*\*\//m,'');},_onRegisterTemplate:function(_L0,_L1){if(_L0=='template/registerTemplate'){if(!_L1||!_L1.name||!_L1.template){Util.warn('TemplateRegister: Invalid template data.');}else this.registerTemplate(_L1.name,_L1.template);return false;}Util.warn('TemplateRegister: Invalid arbiter message type: %s',_L0);return true;}};Arbiter.subscribe('template/registerTemplate',TemplateRegistry._onRegisterTemplate.bind(TemplateRegistry),Arbiter.SUBSCRIBE_ALL);
function TemplateObject(_L0,_L1){_L1=_L1||{};if(!(_L0 instanceof Template))if(TemplateRegistry.hasTemplate(_L0)){_L0=TemplateRegistry.getTemplate(_L0);}else if(_L0 instanceof URI){TemplateRegistry.registerServerSideTemplate(_L0.toString(),null,true);_L0=TemplateRegistry.getTemplate(_L0);}if(_L0==null)throw new Error("Template could not be found");var _L2=_L0.render(_L1);copy_properties(this,{_nodes:HTML(_L2).getNodes(),_template:_L0,_rendered:_L2});TemplateObject.bindNodes(this._nodes,this);}copy_properties(TemplateObject,{bindNodes:function(_L0,_L1){var _L2=[];for(var i=0;i<_L0.length;i++)if(_L0[i].nodeType==DOM.NODE_TYPES.ELEMENT){_L2.push(_L0[i]);var _L4=_L0[i].getElementsByTagName('*');_L2=_L2.concat(to_array(_L4));}for(var i=0;i<_L2.length;i++){var _L5=_L2[i].getAttribute('bindPoint');var _L6=_L2[i].getAttribute('listen');if(_L5)if(hasArrayNature(_L1[_L5])){_L1[_L5].push(_L2[i]);}else _L1[_L5]=_L2[i];if(_L6)_L6.replace(/(\w+) *: *(\w+)/g,function(_L7,_L8,_L9,_La){if(typeof(this[_La])=="function"){Event.listen(_L7,_L9,bind(this,this[_La]));}else Event.listen(_L7,_L9,bind(this,TemplateObject._eventWrapper,_La));}.bind(_L1,_L2[i]));}},_eventWrapper:function(_L0,_L1){if(typeof(this[_L0])=="function"){return this[_L0](_L1);}else{Util.warn('Event wrapper [%s] not defined for template object',_L0);return true;}}});copy_properties(TemplateObject.prototype,{getNodes:function(){return this._nodes;},getRendered:function(){return this._rendered;}});
Arbiter.inform("template\/registerTemplate", {"name":"\/templates\/UIActionMenu.tmpl","template":"\n<div class=\"UIActionMenu\" bindPoint=\"root\">\n  <a class=\"UIActionMenu_Wrap\" bindPoint=\"wrap\" href=\"#\">\n    <span class=\"UIActionMenu_Icon\" bindPoint=\"icon\"><\/span>\n    <span class=\"UIActionMenu_Text\" bindPoint=\"text\"><\/span>\n    <span class=\"UIActionMenu_Chevron\"><\/span>\n  <\/a>\n  <div class=\"UIActionMenu_Menu\" bindPoint=\"menu\"><\/div>\n<\/div>\n"}, Arbiter.BEHAVIOR_PERSISTENT);
function UIActionMenu(_L0){this.root=null;this.wrap=null;this.icon=null;this.text=null;this.menu=null;this._dirty=true;this._title=_L0;this._contentCallback=bagofholding;this._selectList=null;this.parent.construct(this,URI('/templates/UIActionMenu.tmpl'));this._initialize();}UIActionMenu.extend('TemplateObject');copy_properties(UIActionMenu,{ICONS:{LOCK:'UIActionMenu_Lock',PEOPLE:'UIActionMenu_People'},COLORS:{BLUE:'UIActionMenu_Blue'}});UIActionMenu.mixin('Arbiter',{_initialize:function(){Event.listen(this.wrap,'click',this.click.bind(this));Event.listen(this.menu,'mouseover',function(_L0){var _L1=DOM.getNearest(_L0.getTarget(),'a');_L1&&_L1.focus();});},hideMenu:function(){Toggler.hide();return this;},click:function(_L0){if(this._dirty){this.buildMenu();this.setDirty(false);}this.inform('menuActivated');Toggler.toggle(this.wrap);_L0.prevent();},setAlignRight:function(_L0){this._right=_L0;CSS.conditionClass(this.root,'UIActionMenu_AlignRight',_L0);return this;},setContentCallback:function(fn){this._contentCallback=fn;return this;},setSuppressButton:function(_L0){CSS.conditionClass(this.root,'UIActionMenu_SuppressButton',_L0);return this;},setSuppressText:function(_L0){CSS.conditionClass(this.root,'UIActionMenu_SuppressText',_L0);return this;},setColor:function(_L0){switch(_L0){case UIActionMenu.COLORS.BLUE:if(this.color)CSS.removeClass(this.root,this.color);CSS.addClass(this.root,_L0);this.color=_L0;break;default:if(this.color){CSS.removeClass(this.root,this.color);this.color=null;}}return this;},setIcon:function(_L0){switch(_L0){case UIActionMenu.ICONS.LOCK:case UIActionMenu.ICONS.PEOPLE:CSS.addClass(this.root,'UIActionMenu_IconIncluded');CSS.addClass(this.icon,_L0);break;default:CSS.removeClass(this.root,'UIActionMenu_IconIncluded');Util.error('invalid icon passed to `UIActionMenu.setIcon`');}return this;},_getContent:function(){var _L0=this._contentCallback();return _L0;},setTitle:function(_L0){this._title=_L0;DOM.setContent(this.text,this._title);return this;},setTooltip:function(_L0){if(this.tooltip){if(_L0){DOM.setContent(this.tooltip.firstChild,_L0);}else{DOM.remove(this.tooltip);CSS.removeClass(this.wrap,'uiTooltip');this.tooltip=null;}}else{this.tooltip=$N('span',{className:'uiTooltipWrap'},$N('span',{className:'uiTooltipText'},_L0));CSS.addClass(this.wrap,'uiTooltip');if(this._right)CSS.addClass(this.tooltip,'right');DOM.prependContent(this.wrap,this.tooltip);}return this;},getNodes:function(){DOM.setContent(this.text,this._title);return [this.root];},buildMenu:function(){DOM.setContent(this.menu,this._getContent());return this;},useSelectList:function(_L0,_L1,_L2){_L2=_L2||UISelectList.MULTI_SELECT_MODE;this.setContentCallback(function(){this._selectList=new UISelectList().setMode(_L2).setCallback(function(_L3,key){this.hideMenu();_L1&&_L1(_L3,key);}.bind(this)).addItems(_L0);return this._selectList.getElement();}.bind(this));return this;},resetSelectList:function(){this._selectList&&this._selectList.reset();},getSelectList:function(){return this._selectList;},setDirty:function(_L0){this._dirty=_L0;return this;}});
Arbiter.inform("template\/registerTemplate", {"name":"\/templates\/UIPager.tmpl","template":"\n<span class=\"UIPager\" bindPoint =\"root\">\n  <span class=\"UIPager_PageNum\" bindPoint=\"pageNumber\"><\/span>\n  <span class=\"UIPager_ButtonWrapper\" bindPoint=\"backWrapper\">\n    <a class=\"UIPager_Button UIPager_ButtonBack\" bindPoint=\"backRoot\" href=\"#\"><\/a>\n  <\/span>\n  <span class=\"UIPager_ButtonWrapper\" bindPoint=\"forwardWrapper\">\n    <a class=\"UIPager_Button UIPager_ButtonForward\" bindPoint=\"forwardRoot\" href=\"#\"><\/a>\n  <\/span>\n<\/span>\n"}, Arbiter.BEHAVIOR_PERSISTENT);
function UIPager(_L0,_L1,_L2,_L3){copy_properties(this,{_rm:new RenderManager(this),_callback:_L3||bagofholding,_backHandler:null,_forwardHandler:null,_maxPerPage:_L1,_total:_L0,_offset:_L2,_isDisabled:false,root:null,backRoot:null,forwardRoot:null,pageNumber:null,backWrapper:null,fowardWrapper:null});this.parent.construct(this,URI('/templates/UIPager.tmpl'));this._summaryTextHandler=this._getSummaryText;this._rm.dirty();this._setupHandlers();return this;}UIPager.extend('TemplateObject');UIPager.prototype._setupHandlers=function(){this._backHandler=Event.listen(this.backRoot,'click',this._handleClick.bind(this,'back'));this._forwardHandler=Event.listen(this.forwardRoot,'click',this._handleClick.bind(this,'forward'));};UIPager.prototype._handleClick=function(_L0){var _L1;var dir;if(_L0=='forward'){_L1=this.forwardWrapper;dir=1;}else{_L1=this.backWrapper;dir=-1;}if(!CSS.hasClass(_L1,'UIPager_ButtonDisabled')){this._offset=this._offset+(dir*this._maxPerPage);this._callback(this._offset,dir);this._rm.dirty();}return false;};UIPager.prototype._getSummaryText=function(_L0,_L1,_L2){if(_L1==0)return '';if(_L1<=_L2){if(_L1==1){return tx('sr01');}else return tx('sr02',{number_of_results:_L1});}else{if(_L0+_L2<_L1){var _L3=((_L0/_L2+1)*_L2);}else var _L3=_L1;if(_L1>500){var _L4=tx('sr04',{starting_offset:(_L0+1),ending_offset:_L3,number_of_results:500});}else var _L4=tx('sr03',{starting_offset:(_L0+1),ending_offset:_L3,number_of_results:_L1});return _L4;}};UIPager.prototype.setCallback=function(_L0){this._callback=_L0;return this;};UIPager.prototype.setMaxPerPage=function(_L0){this._maxPerPage=Math.max(_L0,0);this._rm.dirty();return this;};UIPager.prototype.setTotal=function(_L0){this._total=Math.max(_L0,0);this._rm.dirty();return this;};UIPager.prototype.setOffset=function(_L0){this._offset=Math.max(_L0,0);this._rm.dirty();return this;};UIPager.prototype.setPage=function(_L0){this._offset=Math.max(_L0-1,0)*this._maxPerPage;this._rm.dirty();return this;};UIPager.prototype.setDisabled=function(_L0){this._isDisabled=_L0;this._rm.dirty();return this;};UIPager.prototype._getCurrentPage=function(){return this._offset/this._maxPerPage+1;};UIPager.prototype._getPageCount=function(){return Math.ceil(this._total/this._maxPerPage);};UIPager.prototype.setSummaryTextHandler=function(fn){this._summaryTextHandler=fn;this._rm.dirty();return this;};UIPager.prototype._setDisabled=function(_L0,_L1){var _L2;if(_L0=="back"){_L2=this.backWrapper;}else if(_L0=="forward")_L2=this.forwardWrapper;CSS.conditionClass(_L2,'UIPager_ButtonDisabled',_L1);return this;};UIPager.prototype.paint=function(){if(this._offset==0||this._isDisabled){this._setDisabled("back",true);}else this._setDisabled("back",false);if((this._offset+this._maxPerPage)>=this._total||this._isDisabled){this._setDisabled("forward",true);}else this._setDisabled("forward",false);var _L0=this._summaryTextHandler(this._offset,this._total,this._maxPerPage);if(_L0){DOM.setContent(this.pageNumber,_L0);}else hide(this.pageNumber);};UIPager.prototype.resetPager=function(_L0,_L1,_L2,_L3){this.setOffset(_L2);this.setTotal(_L0);this.setMaxPerPage(_L1);if(_L3)this._callback=_L3;this._rm.dirty();};UIPager.prototype.getRoot=function(){return this.root;};UIPager.prototype.setHidden=function(_L0){CSS.conditionClass(this.root,'hidden_elem',_L0);return this;};UIPager.prototype.getHidden=function(){return CSS.hasClass(this.root,'hidden_elem');};

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