/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 9th 2010 11:33:38 PM PST                            */
/*      Machine:  10.16.140.103                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/1z16dolt2j8gkck0.pkg.js h:e0wqxtxx                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/1z16dolt2j8gkck0.pkg.js                                   */

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

function UIToolbarWell(_L0){this._root=_L0;this._leftSide=this._root.find('span.UIToolbarWell_Left');this._rightSide=this._root.find('span.UIToolbarWell_Right');this._secondaryContentContainer=this._root.find('div.UIToolbarWell_SecondaryContent');return this;}UIToolbarWell.prototype.addContent=function(_L0,_L1){if(_L1=='left'){this._leftSide.appendContent(_L0);}else if(_L1=='right')this._rightSide.appendContent(_L0);};UIToolbarWell.prototype.addButton=function(_L0,_L1){_L0.setSuppressMargin(true);var _L2=$N('span',{className:'UIToolbarWell_Button'},_L0.getNodes());this.addContent(_L2,_L1);return this;};UIToolbarWell.prototype.reset=function(){DOM.empty(this._leftSide);DOM.empty(this._rightSide);return this;};UIToolbarWell.prototype.addSecondaryContent=function(_L0){this._secondaryContentContainer.appendContent(_L0);this.setShowSecondaryContent(true);};UIToolbarWell.prototype.setShowSecondaryContent=function(_L0){CSS.conditionClass(this._secondaryContentContainer,'hidden_elem',!_L0);};
function ToolTips(){copy_properties(this,{tipBox:$N('div'),tipInner:$N('div'),_showTimer:null});CSS.addClass(this.tipBox,'tooltip');CSS.addClass(this.tipInner,'tooltip_inner');this.tipBox.appendChild(this.tipInner);DOM.getRootElement().appendChild(this.tipBox);}ToolTips.TOP_CENTER={orientClassName:'tooltip_top_center'};ToolTips.RIGHT_CENTER={orientClassName:'tooltip_right_center'};ToolTips.BOTTOM_CENTER={orientClassName:'tooltip_bottom_center'};ToolTips.LEFT_CENTER={orientClassName:'tooltip_left_center'};ToolTips.DEFAULT=ToolTips.TOP_CENTER;copy_properties(ToolTips.prototype,{show:function(_L0){var _L1=$E(_L0).getTarget();var _L2=DataStore.get(_L1,'tooltip',{}).delay||0;if(!_L2){this._show(_L1);}else if(!this._showTimer)this._showTimer=this._show.bind(this,_L1).defer(_L2);},_show:function(_L0){var _L1=DataStore.get(_L0,'tooltip');if(_L1){this.tipInner.setContent(HTML(_L1.tip));CSS.setClass(this.tipBox,'tooltip');if(_L1.className)this.tipBox.addClass(_L1.className);this.tipBox.style.display='block';this.tipBox.style.visibility='hidden';orientation=_L1.orientation||ToolTips.DEFAULT;var _L2;var _L3=Vector2.getElementDimensions(this.tipBox);switch(orientation){case ToolTips.RIGHT_CENTER:_L2=Vector2.getElementCompassPoint(_L0,Vector2.compass.southeast).add(3,-(Vector2.getElementDimensions(_L0).y+_L3.y)/2);break;case ToolTips.TOP_CENTER:_L2=Vector2.getElementCompassPoint(_L0,Vector2.compass.north).add(-_L3.x/2,-_L3.y-3);break;case ToolTips.LEFT_CENTER:_L2=Vector2.getElementCompassPoint(_L0,Vector2.compass.southwest).add(-_L3.x-7,-(Vector2.getElementDimensions(_L0).y+_L3.y)/2);break;case ToolTips.BOTTOM_CENTER:_L2=Vector2.getElementCompassPoint(_L0,Vector2.compass.south).add(-_L3.x/2,3);break;default:throw new Error(sprintf('Unknown tooltip orientation: %s.',orientation));}CSS.addClass(this.tipBox,orientation.orientClassName);this.tipBox.style.visibility='visible';if(_L1.offset)_L2=_L2.sub(_L1.offset);_L2.setElementPosition(this.tipBox);(function(){Rect.getElementBounds(this.tipBox).boundWithin(Rect.getViewportBounds()).getPositionVector().setElementPosition(this.tipBox);}).bind(this).defer();}else this.hide();return this;},hide:function(_L0){if(this._showTimer){clearTimeout(this._showTimer);this._showTimer=null;}this.tipBox.style.display='';return this;}});copy_properties(ToolTips,{instance:null,getInstance:function(){return ToolTips.instance||(ToolTips.instance=new ToolTips());},setTips:function(_L0,_L1,_L2,_L3){for(var k in _L0)ToolTips.setTip(k,_L0[k],_L1,_L2,_L3);return ToolTips;},setTip:function(_L0,_L1,_L2,_L3,_L4){el=ge(_L0);if(el){var _L5=ToolTips.getInstance();var _L6=_L5.show.bind(_L5);var _L7=_L5.hide.bind(_L5);DataStore.set(el,'tooltip',{tip:_L1,orientation:_L2,delay:_L3,offset:_L4});el.listen('mouseover',_L6);el.listen('mouseout',_L7);}return ToolTips;},configureTip:function(_L0,_L1,_L2){switch(_L1){case 'orientation':case 'delay':case 'tip':case 'className':_L0=$(_L0);var _L3=DataStore.get(_L0,'tooltip');_L3[_L1]=_L2;DataStore.set(_L0,'tooltip',_L3);return ToolTips;break;}throw new TypeError('Invalid property, consult documentation.');}});
Arbiter.inform("template\/registerTemplate", {"name":"\/templates\/UIActionButton.tmpl","template":"\n<a bindPoint=\"root\" class=\"UIButton UIActionButton\" href=\"#\">\n  <span class=\"UIButton_Text\" bindPoint=\"text\"><\/span>\n<\/a>\n"}, Arbiter.BEHAVIOR_PERSISTENT);
function UIActionButton(_L0){this.root=null;this.text=null;this.parent.construct(this,URI('/templates/UIActionButton.tmpl'));this.setTitle(_L0);this.setOnclick(bagofholding);this.setColor(UIActionButton.colorGray);Event.listen(this.root,'click',this._click.bind(this));}UIActionButton.extend('TemplateObject');copy_properties(UIActionButton,{colorBlue:'Blue',colorGray:'Gray',colorGreen:'Green',iconChevronGray:142,iconChevronWhite:166,iconChevronBlue:190,iconLockGray:214,iconLockWhite:238,iconLockBlue:262,iconScopeGray:286,iconScopeWhite:310,iconScopeBlue:334,iconPlus:361,iconFriend:386,iconFan:410,iconConnect:432,iconBack:454,sizeNormal:'Normal',sizeLarge:'Large'});UIActionButton.prototype={setHref:function(_L0){this.root.href=_L0;return this;},setIcon:function(_L0){if(this.icon)DOM.remove(this.icon);if(_L0&&parseInt(_L0,10)){CSS.addClass(this.root,'Icon_Btn');this.icon=$N('span',{className:'UIButton_Icon UIButton_IconNoSpriteMap'+(this._isSmallMonochromaticIcon(_L0)?' UIButton_IconSmallMonochromatic':''),style:{backgroundPosition:'0 -'+_L0+'px',backgroundImage:'url(/images/ui/UIActionButton_v2.gif)'}});DOM.prependContent(this.text,this.icon);}else throw new Error('Custom icon buttons cannot be created from JS.');return this;},setTooltip:function(_L0){if(this.tooltip){if(_L0){DOM.setContent(this.tooltip.firstChild,_L0);}else{DOM.remove(this.tooltip);CSS.removeClass(this.root,'UITooltip');this.tooltip=null;}}else{this.tooltip=$N('span',{className:'UITooltip_Wrap'},$N('span',{className:'UITooltip_Text'},_L0));CSS.addClass(this.root,'UITooltip');DOM.prependContent(this.root,this.tooltip);}return this;},setSize:function(_L0){if(_L0!=UIActionButton.sizeNormal)CSS.addClass(this.root,'UIButton_'+_L0);return this;},setDepressed:function(_L0){CSS.conditionClass(this.root,'UIButton_Depressed',_L0);return this;},getDepressed:function(){return CSS.hasClass(this.root,'UIButton_Depressed');},setDisabled:function(_L0){CSS.conditionClass(this.root,'UIButton_Disabled',_L0);return this;},getDisabled:function(){return CSS.hasClass(this.root,'UIButton_Disabled');},setColor:function(_L0){CSS.removeClass(this.root,'UIButton_Blue');CSS.removeClass(this.root,'UIButton_Green');CSS.addClass(this.root,'UIButton_'+_L0);return this;},setSuppressButton:function(_L0){CSS.conditionClass(this.root,'UIButton_Suppressed',_L0);return this;},setSuppressMargin:function(_L0){CSS.conditionClass(this.root,'UIActionButton_SuppressMargin',_L0);return this;},setOnclick:function(fn){this._onclick=fn;return this;},setTitle:function(_L0){DOM.setContent(this.text,_L0);return this;},setHidden:function(_L0){CSS.conditionClass(this.root,'hidden_elem',_L0);return this;},getHidden:function(){return CSS.hasClass(this.root,'hidden_elem');},getNodes:function(){return [this.root];},_click:function(){return this.getDisabled()?false:this._onclick();},_isSmallMonochromaticIcon:function(_L0){return _L0==UIActionButton.iconPlus||_L0==UIActionButton.iconBack;}};
Arbiter.inform("template\/registerTemplate", {"name":"\/templates\/UIObjectListing.tmpl","template":"\n\n<div bindPoint=\"root\" class=\"UIObjectListing clearfix\">\n    <div class=\"UIObjectListing_Pic\">\n      <a href=\"${href}\">\n        <img class = \"UIProfileImage UIProfileImage_LARGE\" bindPoint=\"pic\" \/>\n      <\/a>\n    <\/div>\n    <div class=\"UIObjectListing_MetaData\">\n      <a bindPoint=\"title\" class=\"UIObjectListing_Title\" href=\"${href}\"\/>\n      <div class=\"UIObjectListing_MetaDataSecondary\">\n        <span bindPoint=\"subtitle\" class=\"UIObjectListing_Subtitle\"\/>\n        <span bindPoint=\"subtext\" class=\"UIObjectListing_Subtext\"\/>\n      <\/div>\n    <\/div>\n    <div class=\"UIObjectListing_RightContent\" bindPoint=\"rightContent\">\n      <div class=\"UIObjectListing_RemoveContainer hidden_elem\" bindPoint=\"removeContainer\">\n        <a class=\"UIObjectListing_RemoveLink\" bindPoint=\"removeLink\" href=\"#\">&nbsp;<\/a>\n      <\/div>\n      <div class=\"UIObjectListing_ActionContainer hidden_elem\" bindPoint=\"actionContainer\">\n      <\/div>\n    <\/div>\n<\/div>\n"}, Arbiter.BEHAVIOR_PERSISTENT);
function UIObjectListing(_L0){copy_properties(this,{_data:_L0,_dirty:true,root:null,pic:null,actionContainer:null,removeContainer:null,removeLink:null,rightContent:null,subtext:null});this._removeLinkHandler=bagofholding;this._control=false;var uri=URI('/templates/UIObjectListing.tmpl');this.parent.construct(this,uri,this._data);}UIObjectListing.extend('TemplateObject');UIObjectListing.prototype.setBoldTitle=function(_L0){CSS.conditionClass(this.root,'UIObjectListing_TitleNormal',!_L0);};UIObjectListing.prototype.setPicPadding=function(_L0){CSS.conditionClass(this.root,'UIObjectListing_PicPadding',_L0);};UIObjectListing.prototype.getId=function(){return this._data.id;};UIObjectListing.prototype.setSubtext=function(_L0){DOM.setContent(this.subtext,_L0);return this;};UIObjectListing.prototype.setActionControl=function(_L0){this._control=_L0;DOM.setContent(this.actionContainer,_L0.getNodes());CSS.removeClass(this.actionContainer,'hidden_elem');return this;};UIObjectListing.prototype.getActionControl=function(){return this._control;};UIObjectListing.prototype.setRemoveControl=function(_L0,_L1,_L2){CSS.conditionClass(this.removeContainer,'hidden_elem',!_L0);CSS.conditionClass(this.root,'UIObjectListing_HasRemoveControl',_L0);if(_L0){if(_L1)this._removeLinkHandler=_L1;if(_L2)ToolTips.setTip(this.removeLink,_L2,ToolTips.TOP_CENTER,0,new Vector2(0,5));}};UIObjectListing.prototype.setRightContent=function(_L0){DOM.setContent(this.rightContent,_L0);return this;};UIObjectListing.prototype._removeLinkClick=function(e){this._removeLinkHandler();return false;};UIObjectListing.prototype.paint=function(){this.pic.src=this._data.pic;if(this._data.removeable)CSS.removeClass(this.removeContainer,'hidden_elem');DOM.setContent(this.title,this._data.title);if(this._data.subtitle)DOM.setContent(this.subtitle,this._data.subtitle);CSS.conditionClass(this.subtitle,'UIObjectListing_Padding',this._data.subtitle);if(this._data.subtext)this.setSubtext(this._data.subtext);Event.listen(this.removeLink,'click',this._removeLinkClick.bind(this));if(!this._data.href)DOM.replace(this.title,$N('span',{className:this.title.className},DOM.getText(this.title)));this._dirty=false;};
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("1 result");}else return _tx("{number_of_results} results",{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("{starting_offset}-{ending_offset} of over {number_of_results} results",{starting_offset:(_L0+1),ending_offset:_L3,number_of_results:500});}else var _L4=_tx("{starting_offset}-{ending_offset} of {number_of_results} results",{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\/1z16dolt2j8gkck0.pkg.js"]); }