/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 10th 2010 12:07:52 AM PST                           */
/*      Machine:  10.16.139.101                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/91i03t7eizwo04wc.pkg.js h:8fgb02ml                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/91i03t7eizwo04wc.pkg.js                                   */

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

function ads_fetch_admarket_ad(_L0,_L1,_L2,_L3,_L4,_L5){var _L6={'page':_L0,'location':_L1,'adnetwork_id':_L2,'netego':_L5?_L5:false};var r=new AsyncRequest().setURI(muffinize('/muffins/ajax/fetch_admarket_muffin.php')).setData(_L6).setHandler(_L3).setErrorHandler(_L4).send();}
function ads_refresh(tab,_L1,_L2,_L3,_L4,_L5,_L6){if(window.ads_refreshing)return;if(_L5===undefined)_L5=0;var _L7=['sidebar_ads','home_sponsor_nile'];var _L8=[];for(var i=0;i<_L7.length;i++)if(ge(_L7[i]))_L8.push(_L7[i]);if(_L8.length==0)return;var _La={'page':_L1,'tab':tab,'locations':_L8,'photo_refresh':(_L4?'yes':'no'),'cache':_L5};var _Lb=function(_L6,_Ld){window.ads_refreshing=false;if(!_L6){var _Le=_Ld.getPayload();for(var id in _Le){var elem=ge(id);if(elem&&_Le[id].length>0)elem.parentNode.innerHTML=_Le[id];}}if(_L2)_L2(_Ld);}.curry(_L6);var _Lc=function(_Ld){window.ads_refreshing=false;if(_L3)_L3(_Ld);};new AsyncRequest().setURI('/ajax/location_refresh.php').setData(_La).setOption('bundle',true).setHandler(_Lb).setErrorHandler(_Lc).send();window.ads_refreshing=true;}function social_ads_pagecache_log_imps(){var ads=DOM.scry(document,'div.pagecache_social_ad');for(var i=0;i<ads.length;i++){var _L2={'meta':DataStore.get(ads[i],'link_data')};new AsyncRequest().setURI('/ajax/social_ad_impression.php').setOption('bundle',true).setData(_L2).send();}}
function collect_data_attrib(_L0,_L1){var _L2={};var _L3='data-'+_L1;while(_L0&&!DOM.isNode(_L0,'body')){var _L4=_L0.getAttribute(_L3);if(_L4){var _L5=JSON.decode(_L4);for(var i in _L5)if(_L2[i]==undefined)_L2[i]=_L5[i];}_L0=_L0.parentNode;}return _L2;}function replace_collected_data_attrib(_L0,_L1,_L2,_L3){var _L4='data-'+_L1;for(;_L0&&!DOM.isNode(_L0,'body');_L0=_L0.parentNode){var _L5=_L0.getAttribute(_L4);if(_L5){var _L6=JSON.decode(_L5);if(_L6[_L2]!==undefined){_L6[_L2]=_L3;_L0.setAttribute(_L4,JSON.encode(_L6));return true;}}}return false;}
copy_properties(ft,{NF_SOURCE_MINIFEED:9,NF_SOURCE_STREAM:10,NF_SOURCE_HIGHLIGHTS:11,NF_EVENT_IMPRESSION:2,NF_EVENT_SEE_MORE:28,NF_EVENT_PILL_CLICK:37,NF_PAGE_AUTOREFRESH:38,FT_COM_EXPANSION:'c_exp',STREAM_SOURCES:{9:true,10:true,11:true}});function ft(_L0){var _L1=new AsyncSignal('/ajax/f.php',{'meta':_L0}).send();return true;}ft.get_see_more_params=function(_L0){return {evt:ft.NF_EVENT_SEE_MORE,type:_L0};};ft.f3=function(_L0){ft.logElem(_L0);};ft.enableFeedTracking=function(_L0){ft.feedTrackingIsEnabled=_L0;onunloadRegister(function(){ft.feedTrackingIsEnabled=false;});};ft.logElem=function(_L0,_L1){if(!ft.feedTrackingIsEnabled)return;var _L2=collect_data_attrib(_L0,'ft');if(count(_L2)){if(ft.feedTrackingIsEnabled==1&&ft.STREAM_SOURCES[parseInt(_L2.src,10)])return;_L2.dest=_L0.href;ft.logData(_L2,_L1);}};ft.logData=function(_L0,_L1){var _L2={};copy_properties(_L2,_L0);if(_L1)copy_properties(_L2,_L1);new AsyncSignal('/ajax/f2.php',{link_data:JSON.encode(_L2)}).send();};onloadRegister(function(){LinkController.registerFallbackHandler(function(_L0){ft.logElem(_L0);},LinkController.ALL,true);});
function adjustImage(obj){var _L1=obj.parentNode;while(CSS.getStyle(_L1,'display')!='block'&&_L1.parentNode)_L1=_L1.parentNode;var _L2=_L1.offsetWidth;if(obj.offsetWidth>_L2)try{if(ua.ie()<8){var _L3=document.createElement('div');_L3.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+obj.src.replace('"','%22')+'", sizingMethod="scale")';_L3.style.width=_L2+'px';_L3.style.height=Math.floor(((_L2/obj.offsetWidth)*obj.offsetHeight))+'px';if(obj.parentNode.tagName=='A')_L3.style.cursor='pointer';obj.parentNode.insertBefore(_L3,obj);obj.parentNode.removeChild(obj);}else throw 1;}catch(e){obj.style.width=_L2+'px';}CSS.removeClass(obj,'img_loading');}function imageConstrainSize(src,_L1,_L2,_L3){var _L4=new Image();_L4.onload=function(){if(_L4.width>0&&_L4.height>0){var _L5=_L4.width;var _L6=_L4.height;if(_L5>_L1||_L6>_L2){var _L7=_L2/_L1;var _L8=_L6/_L5;if(_L8>_L7){_L5=_L5*(_L2/_L6);_L6=_L2;}else{_L6=_L6*(_L1/_L5);_L5=_L1;}}var _L9=ge(_L3);if(_L9){var _La=document.createElement('img');_La.src=src;_La.width=_L5;_La.height=_L6;_L9.parentNode.insertBefore(_La,_L9);_L9.parentNode.removeChild(_L9);}}};_L4.src=src;}function image_has_loaded(img){if(img.naturalWidth!==undefined){return img.complete&&img.width!=0;}else if(img.height==20&&img.width==20&&img.complete){return false;}else if(img.complete===undefined&&ua.safari()<500){var _L1=new Image();_L1.src=img.src;return _L1.complete;}return img.complete;}function image_has_failed(obj){if((obj.complete==null&&obj.width==20&&obj.height==20)||(obj.mimeType!=null&&obj.complete&&obj.mimeType=='')||(obj.naturalHeight!=null&&obj.complete&&obj.naturalHeight==0))return true;}
function DOMControl(_L0){copy_properties(this,{root:_L0&&$(_L0),updating:false});if(_L0)_L0.getControl=identity.bind(null,this);}copy_properties(DOMControl.prototype,{getRoot:function(){return this.root;},beginUpdate:function(){if(this.updating)return false;this.updating=true;return true;},endUpdate:function(){this.updating=false;},update:function(e){if(!this.beginUpdate())return this;this.onupdate(e);this.endUpdate();}});
function TextInputControl(_L0){this.parent.construct(this,_L0);copy_properties(this,{placeholderText:null,maxLength:this.getRoot().maxLength||null,radio:null,focused:false,interval:null,nativePlaceholder:false});var r=this.getRoot();if((String(r.type).toLowerCase()=='search')&&ua.safari()){this.nativePlaceholder=true;this.setPlaceholderText(r.getAttribute('placeholder'));}addEventBase(r,'focus',this.onfocus.bind(this));addEventBase(r,'blur',this.onblur.bind(this));var up=this.update.bind(this);Event.listen(r,{'keyup':up,'keydown':up,'keypress':up});this.setFocused(false);}TextInputControl.extend('DOMControl');copy_properties(TextInputControl.prototype,{associateWithRadioButton:function(_L0){this.radio=_L0&&$(_L0);return this;},setMaxLength:function(_L0){var r=this.getRoot();this.maxLength=_L0;if(_L0){r.maxLength=_L0;}else r.removeAttribute('maxlength');return this;},getValue:function(){if(!this.focused&&this.getRoot().value==this.placeholderText)return null;return this.getRoot().value;},isEmpty:function(){var v=this.getValue();return (v===null||v=='');},setValue:function(_L0){this.getRoot().value=_L0;this.update();return this;},clear:function(){return this.setValue('');},isFocused:function(){return this.focused;},setFocused:function(_L0){var _L1=this.isEmpty();this.focused=_L0;if(this.placeholderText&&!this.nativePlaceholder){var r=this.getRoot();var v=r.value;if(this.focused){CSS.removeClass(r,'DOMControl_placeholder');if(_L1)this.clear();}else if(_L1){CSS.addClass(r,'DOMControl_placeholder');this.setValue(this.placeholderText);}}this.update();return this;},setPlaceholderText:function(_L0){this.placeholderText=_L0;if(this.nativePlaceholder)this.getRoot().setAttribute('placeholder',_L0);return this.setFocused(this.isFocused());},getPlaceholderText:function(){return this.placeholderText;},onupdate:function(){if(this.radio)if(this.focused)this.radio.checked=true;var _L0=this.getRoot();if(this.maxLength>0)if(_L0.value.length>this.maxLength){var _L1=_L0.value;var _L2=_L1.length-this.maxLength;var _L3=DOM.getCaretPosition(_L0);var _L4=_L3.end||_L1.length;_L0.value=_L1.substring(0,_L4-_L2)+_L1.substring(_L4);if(typeof _L3.start!='undefined')DOM.setCaretPosition(_L0,_L3.start-_L2,Math.max(_L3.start,_L3.end)-_L2);}this.setFocused(this.focused);},onfocus:function(){this.setFocused(true);if(this.interval)clearInterval(this.interval);this.interval=setInterval(this.update.bind(this),150);return this;},onblur:function(){this.setFocused(false);if(this.interval)this.interval=clearInterval(this.interval);return this;}});function placeholderSetup(id){if(!ge(id)){Util.warn('Setting up a placeholder for an element which does not exist: %q.',id);return;}if(!$(id).getAttribute('placeholder')){Util.warn('Setting up a placeholder for an element with no placeholder text: %q.',id);return;}return new TextInputControl($(id)).setPlaceholderText($(id).getAttribute('placeholder'));}
function TextAreaControl(_L0){copy_properties(this,{autogrow:false,clearHeightOnBlur:false,shadow:null,originalHeight:null,metricsValue:null});this.parent.construct(this,_L0);}TextAreaControl.extend('TextInputControl');copy_properties(TextAreaControl.prototype,{setAutogrow:function(_L0,_L1){this.autogrow=_L0;this.clearHeightOnBlur=_L1;this.refreshShadow();CSS.addClass(this.getRoot(),'DOMControl_autogrow');return this;},setFocused:function(_L0){if(this.autogrow&&!_L0&&this.isEmpty()&&this.clearHeightOnBlur)this.getRoot().style.height='';return this.parent.setFocused(_L0);},setOriginalHeight:function(_L0){this.originalHeight=_L0;return this;},onupdate:function(){this.parent.onupdate();var r=this.getRoot();if(this.autogrow&&r.value!=this.metricsValue){this.metricsValue=r.value;if(CSS.getStyle(r,'fontSize')=="")return false;copy_properties(this.shadow.style,{fontSize:parseInt(CSS.getStyle(r,'fontSize'),10)+'px',fontFamily:CSS.getStyle(r,'fontFamily'),width:Math.max(Vector2.getElementDimensions(r).x-8,0)+'px'});DOM.setContent(this.shadow,HTML(htmlize(r.value)));if(this.isEmpty()){r.style.height='';}else r.style.height=Math.max(this.originalHeight,Vector2.getElementDimensions(this.shadow).y+15)+'px';}},refreshShadow:function(){if(this.autogrow){this.shadow=$N('div',{className:'DOMControl_shadow'});DOM.getRootElement().appendChild(this.shadow);var r=this.getRoot();if(!this.originalHeight)this.originalHeight=parseInt(CSS.getStyle(r,'height'),10)||Vector2.getElementDimensions(this.getRoot()).y;}else{if(this.shadow)DOM.remove(this.shadow);this.shadow=null;}}});function autogrow_textarea(_L0){_L0=$(_L0);if(!_L0._hascontrol){_L0._hascontrol=true;new TextAreaControl(_L0).setAutogrow(true);}}
function UIPagelet(_L0,src,_L2,_L3){this._id=_L0||null;this._element=ge(_L0||$N('div'));this._src=src||null;this._context_data=_L2||{};this._data=_L3||{};this._handler=bagofholding;this._request=null;return this;}copy_properties(UIPagelet.prototype,{getElement:function(_L0){_L0=_L0||false;if(_L0)this._element=ge(this._id);return this._element;},setHandler:function(_L0){this._handler=_L0;return this;},go:function(src,_L1){if(arguments.length>=2||typeof src=='string'){this._src=src;this._data=_L1||{};}else if(arguments.length==1)this._data=src;this.refresh();return this;},refresh:function(_L0){var _L1=function(_L2){this._request=null;if(_L0&&this._id)this._element=ge(this._id);this._element.setContent(HTML(_L2.getPayload()));this._handler();}.bind(this);this._request=new AsyncRequest().setURI(this._src).setMethod('GET').setData({data:JSON.encode(merge(this._context_data,this._data))}).setReadOnly(true).setHandler(_L1).setOption('bundle',true);this._request.send();return this;},cancel:function(){if(this._request)this._request.abort();}});
function UISelectList(){this._callback=bagofholding;this.container=$N('div',{className:'UISelectList clearfix'});this._mode=UISelectList.MULTI_SELECT_MODE;this._inputName='UISelectList_name_'+(+new Date());this._items={};}copy_properties(UISelectList,{MULTI_SELECT_MODE:1,SINGLE_SELECT_MODE:2,MULTI_SELECT_MODE_CHECKED_CLASS_NAME:'UISelectList_check_Checked',SINGLE_SELECT_MODE_CHECKED_CLASS_NAME:'UISelectList_radio_Checked'});UISelectList.prototype={setMode:function(_L0){if(_L0!=UISelectList.MULTI_SELECT_MODE&&_L0!=UISelectList.SINGLE_SELECT_MODE){Util.error('invalid mode %s passed to UISelectList.selectMode',_L0);return this;}if(!is_empty(this._items)){Util.error("You have to set `mode' before adding any items to "+"UISelectList");return this;}this._mode=_L0;return this;},setCallback:function(fn){this._callback=fn;return this;},addItem:function(_L0,_L1,key){var _L3={label:_L0,checked:_L1,key:key};this._renderItem(_L3);return this;},addItems:function(_L0){for(var i=0;i<_L0.length;i++)this.addItem(_L0[i].label,_L0[i].checked,_L0[i].key);return this;},clearItems:function(){this._items={};DOM.empty(this.container);return this;},setSelected:function(key,_L1){if(this._items[key]){var _L2=this._items[key].input;_L2.checked=!_L1;_L2.click();}return this;},getElement:function(){return this.container;},reset:function(){for(var key in this._items){var _L1=this._items[key].input;var _L2=this._items[key].label;_L1.checked=_L1.defaultChecked;CSS.conditionClass(_L2,this._getCheckedClass(),_L1.checked);}},_renderItem:function(_L0){var _L1=$N('input',{type:this._getInputType(),name:this._inputName});_L1.checked=_L0.checked;_L1.defaultChecked=_L0.checked;var _L2=$N('a',{className:'UISelectList_Label',href:'#'},_L0.label);if(_L0.checked)_L2.addClass(this._getCheckedClass());_L2.listen('click',Event.kill);_L2.listen('mouseup',this._linkClicked.bind(this,_L1));_L1.listen('click',this._clicked.bind(this,_L1,_L2,_L0.key));this.container.appendContent($N('div',{className:'UISelectList_Item'},[_L1,_L2]));_L0.input=_L1;_L0.label=_L2;this._items[_L0.key]=_L0;},_getInputType:function(){if(this._mode==UISelectList.MULTI_SELECT_MODE)return 'checkbox';return 'radio';},_getCheckedClass:function(){if(this._mode==UISelectList.MULTI_SELECT_MODE)return UISelectList.MULTI_SELECT_MODE_CHECKED_CLASS_NAME;return UISelectList.SINGLE_SELECT_MODE_CHECKED_CLASS_NAME;},_linkClicked:function(_L0,e){_L0.click();},_clicked:function(_L0,_L1,key,e){var _L4;if(this._mode==UISelectList.SINGLE_SELECT_MODE){for(var k in this._items){var _L6=_L0==this._items[k].input;CSS.conditionClass(this._items[k].label,this._getCheckedClass(),_L6);}_L4=true;}else{_L4=_L0.checked;CSS.conditionClass(_L1,this._getCheckedClass(),_L0.checked);}this._callback(_L4,key);$E(e).stop();}};
function typeahead_source(){}typeahead_source.prototype.cache_results=false;typeahead_source.prototype.enumerable=false;typeahead_source.prototype.allow_fake_results=false;typeahead_source.prototype.search_limit=10;typeahead_source.prototype.check_limit=10;typeahead_source.prototype.bootstrap=bagofholding;typeahead_source.check_match=function(_L0,_L1){_L1=typeahead_source.tokenize(_L1);for(var i=0,il=_L0.length;i<il;i++)if(_L0[i].length){var _L4=false;for(var j=0,jl=_L1.length;j<jl;j++)if(_L1[j].length>=_L0[i].length&&_L1[j].substring(0,_L0[i].length)==_L0[i]){_L4=true;_L1[j]='';break;}if(!_L4)return false;}return true;};typeahead_source.tokenize=function(_L0,_L1,_L2){return (_L2?_L0:typeahead_source.flatten_string(_L0)).split(_L1?typeahead_source.normalizer_regex_capture:typeahead_source.normalizer_regex);};typeahead_source.normalizer_regex_str='(?:(?:^| +)["\'.\\-]+ *)|(?: *[\'".\\-]+(?: +|$)|[@_]| +)';typeahead_source.normalizer_regex=new RegExp(typeahead_source.normalizer_regex_str,'g');typeahead_source.normalizer_regex_capture=new RegExp('('+typeahead_source.normalizer_regex_str+')','g');typeahead_source.flatten_string=function(_L0){if(!typeahead_source.accents)typeahead_source.accents={a:/\u0430|\u00e0|\u00e1|\u00e2|\u00e3|\u00e4|\u00e5/g,b:/\u0431/g,c:/\u0446|\u00e7/g,d:/\u0434|\u00f0/g,e:/\u044d|\u0435|\u00e8|\u00e9|\u00ea|\u00eb/g,f:/\u0444/g,g:/\u0433/g,h:/\u0445/g,i:/\u0438|\u00ec|\u00ed|\u00ee|\u00ef/g,j:/\u0439/g,k:/\u043a/g,l:/\u043b/g,m:/\u043c/g,n:/\u043d|\u00f1/g,o:/\u043e|\u00f8|\u00f6|\u00f5|\u00f4|\u00f3|\u00f2/g,p:/\u043f/g,r:/\u0440/g,s:/\u0441/g,t:/\u0442/g,u:/\u0443|\u044e|\u00fc|\u00fb|\u00fa|\u00f9/g,v:/\u0432/g,y:/\u044b|\u00ff|\u00fd/g,z:/\u0437/g,ae:/\u00e6/g,oe:/\u0153/g,ts:/\u0446/g,ch:/\u0447/g,sh:/\u0448/g,ya:/\u044f/g};_L0=_L0.toLowerCase();for(var i in typeahead_source.accents)_L0=_L0.replace(typeahead_source.accents[i],i);return _L0;};typeahead_source.prototype.set_owner=function(obj){this.owner=obj;if(this.is_ready)this.owner.update_status(typeaheadpro.STATUS_IDLE);};typeahead_source.prototype.ready=function(){if(this.owner&&!this.is_ready){this.is_ready=true;this.owner.update_status(typeaheadpro.STATUS_IDLE);}else this.is_ready=true;};typeahead_source.highlight_found=function(_L0,_L1){var _L2=[];resultv=typeahead_source.tokenize(_L0,true,true);_L0=typeahead_source.tokenize(_L0,true);_L1=typeahead_source.tokenize(_L1);_L1.sort(typeahead_source._sort);for(var i=0,il=resultv.length;i<il;i++){var _L5=false;for(var j=0,jl=_L1.length;j<jl;j++)if(_L1[j]&&_L0[i].lastIndexOf(_L1[j],0)!=-1){_L2.push('<em>',htmlspecialchars(resultv[i].substring(0,_L1[j].length)),'</em>',htmlspecialchars(resultv[i].substring(_L1[j].length,resultv[i].length)));_L5=true;break;}if(!_L5)_L2.push(htmlspecialchars(resultv[i]));}return _L2.join('');};typeahead_source._sort=function(a,b){return b.length-a.length;};typeahead_source.prototype.gen_nomatch=function(){return this.text_nomatch!=null?this.text_nomatch:_tx("No matches found");};typeahead_source.prototype.gen_loading=function(){return this.text_loading!=null?this.text_loading:_tx("\u0932\u094b\u0921\u093f\u0919....");};typeahead_source.prototype.gen_placeholder=function(){return this.text_placeholder!=null?this.text_placeholder:_tx("Start typing...");};typeahead_source.prototype.gen_noinput=function(){return this.text_noinput!=null?this.text_noinput:_tx("Start typing...");};typeahead_source.prototype.onselect_not_found=function(){if(typeof this.tokenizer._ontokennotfound!='undefined')this.tokenizer._ontokennotfound(this.obj.value);if(typeof this.tokenizer.onselect!='undefined')return this.tokenizer.onselect();};
var HistoryManager={_IFRAME_BASE_URI:'http://static.ak.facebook.com/common/history_manager.html',history:null,current:0,fragment:null,_setIframeSrcFragment:function(src){src=src.toString();var _L1=HistoryManager.history.length-1;HistoryManager.iframe.src=HistoryManager._IFRAME_BASE_URI+'?|index='+_L1+'#'+encodeURIComponent(src);return HistoryManager;},getIframeSrcFragment:function(){return decodeURIComponent(URI(HistoryManager.iframe.contentWindow.document.location.href).getFragment());},nextframe:function(_L0,_L1){if(_L1){HistoryManager._setIframeSrcFragment(_L0);return;}if(_L0!==undefined){HistoryManager.iframeQueue.push(_L0);}else{HistoryManager.iframeQueue.splice(0,1);HistoryManager.iframeTimeout=null;HistoryManager.checkURI();}if(HistoryManager.iframeQueue.length&&!HistoryManager.iframeTimeout){var src=HistoryManager.iframeQueue[0];HistoryManager.iframeTimeout=setTimeout(function(){HistoryManager._setIframeSrcFragment(src);},100,false);}},isInitialized:function(){return !!HistoryManager._initialized;},init:function(){if(URI.getRequestURI(false).getProtocol().toLowerCase()=='https')return;if(!env_get('ALLOW_TRANSITION_IN_IFRAME')&&window!=window.top)return;if(HistoryManager._initialized)return HistoryManager;var uri=URI();var _L1=uri.getFragment()||'';copy_properties(HistoryManager,{_initialized:true,fragment:_L1,orig_fragment:_L1,history:[uri],callbacks:[],lastChanged:new Date().getTime(),canonical:URI('#'),fragmentTimeout:null,user:0,iframeTimeout:null,iframeQueue:[],enabled:true,debug:bagofholding});if(ua.safari()<500||ua.firefox()<2){HistoryManager.enabled=false;return HistoryManager;}if(ua.ie()<8){HistoryManager.iframe=document.createElement('iframe');copy_properties(HistoryManager.iframe.style,{width:'0',height:'0',frameborder:'0',left:'0',top:'0',position:'absolute'});onloadRegister(function(){HistoryManager._setIframeSrcFragment(_L1);document.body.insertBefore(HistoryManager.iframe,document.body.firstChild);});}else setInterval(HistoryManager.checkURI,42,false);HistoryManager._updateRefererURI(URI.getRequestURI(false));return HistoryManager;},registerURIHandler:function(_L0){HistoryManager.callbacks.push(_L0);return HistoryManager;},setCanonicalLocation:function(loc){HistoryManager.canonical=URI(loc);return HistoryManager;},notify:function(uri){if(uri==HistoryManager.orig_fragment)uri=HistoryManager.canonical.getFragment();for(var ii=0;ii<HistoryManager.callbacks.length;ii++)try{if(HistoryManager.callbacks[ii](uri))return true;}catch(ex){Util.error('Uncaught exception in HistoryManager URI handler callback: %x',ex);}return false;},checkURI:function(){if(new Date().getTime()-HistoryManager.lastChanged<400)return;if(ua.ie()<8&&HistoryManager.iframeQueue.length)return;if(ua.safari()&&window.history.length==200){if(!HistoryManager.warned){HistoryManager.warned=true;Util.error('Your history length is over 200 and you are in Safari; things will '+'start behaving oddly now. This is a known bug.');}return;}var _L0=URI().getFragment();if(ua.ie()<8)_L0=HistoryManager.getIframeSrcFragment();if(_L0!=HistoryManager.fragment){HistoryManager.debug([_L0,' vs ',HistoryManager.fragment,'whl: ',window.history.length,'QHL: ',HistoryManager.history.length].join(' '));for(var ii=HistoryManager.history.length-1;ii>=0;--ii)if(HistoryManager.history[ii].getFragment()==_L0)break;++HistoryManager.user;if(ii>=0){HistoryManager.go(ii-HistoryManager.current);}else HistoryManager.go('#'+_L0);--HistoryManager.user;}delete _L0;},_updateRefererURI:function(uri){uri=uri.toString();if(uri.charAt(0)!='/'&&uri.indexOf('//')==-1)return;setCookie('x-referer',URI(uri).getQualifiedURI().setFragment('').toString());},go:function(_L0,now,_L2){HistoryManager.debug('go: '+_L0);if(now===undefined)now=true;if(!HistoryManager.enabled)if(!now)return false;if(typeof(_L0)=='number'){if(!_L0)return false;var dst=_L0+HistoryManager.current;var loc=Math.max(0,Math.min(HistoryManager.history.length-1,dst));HistoryManager.current=loc;dst=HistoryManager.history[loc].getFragment()||HistoryManager.orig_fragment;HistoryManager.fragment=dst;HistoryManager.lastChanged=new Date().getTime();if(ua.ie()<8){if(HistoryManager.fragmentTimeout)clearTimeout(HistoryManager.fragmentTimeout);HistoryManager._temporary_fragment=dst;HistoryManager.fragmentTimeout=setTimeout(function(){window.location.hash='#'+dst;delete HistoryManager._temporary_fragment;},750,false);if(!HistoryManager.user)HistoryManager.nextframe(dst,_L2);}else if(!HistoryManager.user)go_or_replace(window.location,window.location.href.split('#')[0]+'#'+dst,_L2);if(now)HistoryManager.notify(dst);HistoryManager._updateRefererURI(dst);return false;}_L0=URI(_L0);if(_L0.getDomain()==URI().getDomain())_L0=URI('#'+_L0.getUnqualifiedURI());var cur=HistoryManager.history[HistoryManager.current].getFragment();var tgt=_L0.getFragment();if(tgt==cur||(cur==HistoryManager.orig_fragment&&tgt==HistoryManager.canonical.getFragment())){if(now)HistoryManager.notify(tgt);HistoryManager._updateRefererURI(tgt);return false;}if(_L2)HistoryManager.current--;var _L7=(HistoryManager.history.length-HistoryManager.current)-1;HistoryManager.history.splice(HistoryManager.current+1,_L7);HistoryManager.history.push(URI(_L0));return HistoryManager.go(1,now,_L2);},getCurrentFragment:function(){var _L0=HistoryManager._temporary_fragment!==undefined?HistoryManager._temporary_fragment:URI.getRequestURI(false).getFragment();return _L0==HistoryManager.orig_fragment?HistoryManager.canonical.getFragment():_L0;}};var PageTransitions={_transition_handlers:[],_scroll_positions:{},isInitialized:function(){return !!PageTransitions._initialized;},_init:function(){if(URI.getRequestURI(false).getProtocol().toLowerCase()=='https')return;if(!env_get('ALLOW_TRANSITION_IN_IFRAME')&&window!=window.top)return;if(PageTransitions._initialized)return PageTransitions;PageTransitions._initialized=true;var _L0=URI.getRequestURI(false);var _L1=_L0.getUnqualifiedURI();var _L2=URI(_L1).setFragment(null);if(_L2.toString()===_L1.getFragment())_L1=_L2;copy_properties(PageTransitions,{_current_uri:_L1,_most_recent_uri:_L1,_next_uri:_L1});var _L3;if(_L0.getFragment().startsWith('/')){_L3=_L0.getFragment();}else _L3=_L1;HistoryManager.init().setCanonicalLocation('#'+_L3).registerURIHandler(PageTransitions._historyManagerHandler);LinkController.registerFallbackHandler(PageTransitions._rewriteHref,LinkController.TARGETS|LinkController.MODIFIERS);LinkController.registerFallbackHandler(PageTransitions._onlinkclick);window.onscroll=chain(window.onscroll,function(){var _L4=HistoryManager.getCurrentFragment();if(PageTransitions._current_uri==_L4)PageTransitions._scroll_positions[_L4]=Vector2.getScrollPosition();});return PageTransitions;},registerHandler:function(_L0,_L1){PageTransitions._init();if(PageTransitions._transition_handlers.contains(_L0))Util.warn('Registering a transition handler that\'s already been '+'registered.  Ur probably doin it wrong.');if(_L1){PageTransitions._transition_handlers.unshift(_L0);}else PageTransitions._transition_handlers.push(_L0);},getCurrentURI:function(_L0){if(!PageTransitions._current_uri&&!_L0){Util.warn('You\'ve requested the current URI, but there is no "current" '+'URI.  This is probably because you\'re in the middle of a '+'page transition.  That\'s an awkward time to ask for the '+'current URI, and you should probably avoid this situation.  '+'For now, I\'m just gonna return the most recent page URI, '+'since that\'s better than returning null.');return new URI(PageTransitions._most_recent_uri);}return new URI(PageTransitions._current_uri);},getMostRecentURI:function(){return new URI(PageTransitions._most_recent_uri);},getNextURI:function(){return new URI(PageTransitions._next_uri);},_rewriteHref:function(_L0){var _L1=_L0.getAttribute('href');var _L2=_computeRelativeURI(PageTransitions._most_recent_uri.getQualifiedURI(),_L1).toString();if(_L1!=_L2)_L0.setAttribute('href',_L2);},_onlinkclick:function(_L0){_BusyUIManager.lookBusy(_L0);PageTransitions.go(_L0.getAttribute('href'));return false;},_rewriteSubDomain:function(uri){uri=URI(uri);var _L1=uri.getDomain();if(_L1.indexOf('apps.')===0){var _L2=URI.getRequestURI().getDomain();uri.addQueryData({_fb_qsub:_L1}).setDomain(_L2);}return uri;},_revertSubDomain:function(uri){uri=URI(uri);var _L1=uri.getQueryData();if('_fb_qsub' in _L1){var _L2=_L1._fb_qsub;uri.removeQueryData('_fb_qsub').setDomain(_L2).setProtocol(URI().getProtocol());}return uri;},go:function(uri,_L1){var _L2=new URI(uri).removeQueryData('quickling').getQualifiedURI();_L2=PageTransitions._rewriteSubDomain(_L2);var _L3=_L2.getUnqualifiedURI();delete PageTransitions._scroll_positions[_L3];_BusyUIManager.lookBusy();PageTransitions._loadPage(_L2,function(_L4){if(_L4){HistoryManager.go(_L2.toString(),false,_L1);}else{_L2=PageTransitions._revertSubDomain(_L2);go_or_replace(window.location,_L2,_L1);}});},_historyManagerHandler:function(_L0){if(_L0.charAt(0)!='/')return false;PageTransitions._loadPage(new URI(_L0),function(_L1){if(!_L1){_L0=PageTransitions._revertSubDomain(_L0);go_or_replace(window.location,_L0,true);}});return true;},_loadPage:function(uri,_L1){if(uri.getFragment()&&are_equal(URI(uri).setFragment(null).getQualifiedURI(),URI(PageTransitions._current_uri).setFragment(null).getQualifiedURI())){PageTransitions._current_uri=PageTransitions._most_recent_uri=uri;PageTransitions.restoreScrollPosition();_BusyUIManager.stopLookingBusy();return;}var _L2=PageTransitions._scroll_positions[PageTransitions._current_uri];PageTransitions._current_uri=null;PageTransitions._next_uri=uri;if(_L2)DOMScroll.scrollTo(_L2,false);var _L3=function(){var _L5=PageTransitions._handleTransition(uri);_L1&&_L1(_L5);};var _L4=_runHooks('onbeforeleavehooks');if(_L4){_BusyUIManager.stopLookingBusy();PageTransitions._warnBeforeLeaving(_L4,_L3);}else _L3();},_handleTransition:function(uri){window.onbeforeleavehooks=undefined;_BusyUIManager.lookBusy();for(var i=PageTransitions._transition_handlers.length-1;i>=0;--i)if(PageTransitions._transition_handlers[i](uri)===true){var _L2={sender:this,uri:uri};Arbiter.inform(Arbiter.PAGE_TRANSITION,_L2);return true;}else PageTransitions._transition_handlers.splice(i,1);return false;},transitionComplete:function(){_BusyUIManager.stopLookingBusy();PageTransitions._current_uri=PageTransitions._most_recent_uri=PageTransitions._next_uri;PageTransitions.restoreScrollPosition();},_warnBeforeLeaving:function(_L0,_L1){new Dialog().setTitle(_tx("Are you sure you want to navigate away from this page?")).setSummary(_tx("Press {ok} to continue, or {cancel} to stay on the current page.",{ok:_tx("Okay"),cancel:_tx("Cancel")})).setBody(htmlize(_L0)).setButtons(Dialog.OK_AND_CANCEL).setHandler(_L1).setModal().show();},restoreScrollPosition:function(){var _L0=PageTransitions._current_uri;var _L1=PageTransitions._scroll_positions[_L0];if(_L1){DOMScroll.scrollTo(_L1,false);return;}function _L2(_L5){return (_L5||null)&&(DOM.find(document,sprintf('a[name=%e]',_L5))||ge(_L5));}var _L3=_L2(_L0.getFragment());if(_L3){var _L4=Vector2.getElementPosition(_L3);_L4.x=0;DOMScroll.scrollTo(_L4);}}};function _computeRelativeURI(_L0,_L1){var ret=new URI(),_L3=_L1;_L0=new URI(_L0);_L1=new URI(_L1);if(!_L1.isFacebookURI())return _L3;var _L4=_L0;var _L5=['Protocol','Domain','Port','Path','QueryData','Fragment'];_L5.forEach(function(_L6){var _L7=_L6=='Path'&&_L4===_L0;if(_L7)ret.setPath(_computeRelativePath(_L0.getPath(),_L1.getPath()));if(!is_empty(_L1['get'+_L6]()))_L4=_L1;if(!_L7)ret['set'+_L6](_L4['get'+_L6]());});return ret;}function _computeRelativePath(_L0,_L1){if(!_L1)return _L0;if(_L1.charAt(0)=='/')return _L1;var _L2=_L0.split('/').slice(0,-1);if(_L2[0]!=='')Util.warn('Original path is not absolute.');_L1.split('/').forEach(function(_L3){if(_L3=='.'){}else if(_L3=='..'){if(_L2.length>1)_L2=_L2.slice(0,-1);}else _L2.push(_L3);});return _L2.join('/');}function go_or_replace(_L0,_L1,_L2){var uri=new URI(_L1);if(_L0.pathname=='/'&&uri.getPath()!='/'&&uri.isQuicklingEnabled()){var _L4=_L0.search?{}:{q:''};uri=new URI().setPath('/').setQueryData(_L4).setFragment(uri.getUnqualifiedURI()).toString();_L1=uri.toString();}if(_L2&&!(ua.ie()<8)){_L0.replace(_L1);}else if(_L0.href==_L1){_L0.reload();}else _L0.href=_L1;}var _BusyUIManager={_looking_busy:false,_original_cursors:[],lookBusy:function(_L0){if(_L0)_BusyUIManager._giveProgressCursor(_L0);if(_BusyUIManager._looking_busy)return;_BusyUIManager._looking_busy=true;_BusyUIManager._giveProgressCursor(document.body);},stopLookingBusy:function(){if(!_BusyUIManager._looking_busy)return;_BusyUIManager._looking_busy=false;while(_BusyUIManager._original_cursors.length){var _L0=_BusyUIManager._original_cursors.pop();var _L1=_L0[0];var _L2=_L0[1];if(_L1.style)_L1.style.cursor=_L2||'';}},_giveProgressCursor:function(_L0){if(!ua.safari()){_BusyUIManager._original_cursors.push([_L0,_L0.style.cursor]);_L0.style.cursor='progress';}}};
PresenceMessage={STARTED:'presence/started',SHUTDOWN:'presence/shutdown',RESTARTED:'presence/restarted',WINDOW_RESIZED:'presence/window-resized',TAB_CLOSED:'presence/tab-closed',TAB_OPENED:'presence/tab-opened',PRESENCE_UPDATER_READY:'presence/updater-ready',getAppMessageType:function(_L0,_L1){return 'presence/app_message:'+_L0+':'+_L1;},getArbiterMessageType:function(_L0){return 'presence/message:'+_L0;}};

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