/*    HTTP Host:  b.static.ak.fbcdn.net                                        */
/*    Generated:  February 9th 2010 1:27:19 PM PST                             */
/*      Machine:  10.16.140.101                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/cmiwckkg1v4s8ks8.pkg.js h:5z5r09b2                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/cmiwckkg1v4s8ks8.pkg.js                                   */

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

function ui_tokenizer_source(_L0,_L1){this.parent.construct(this);if(typeof(_L0)=='string')_L0=JSON.decode(_L0);if(_L0.length&&typeof(_L0[0])=="string")for(var ii=0;ii<_L0.length;ii++)_L0[ii]={t:_L0[ii],i:_L0[ii]};copy_properties(this,_L1);this.values=_L0;this.build_index();}ui_tokenizer_source.extend('static_source');ui_tokenizer_source.prototype.text_placeholder=ui_tokenizer_source.prototype.text_noinput=false;ui_tokenizer_source.prototype.gen_html=function(_L0,_L1){var _L2=['<div>',typeahead_source.highlight_found(_L0.t,_L1),'</div>'];if(_L0.s)_L2.push('<div><small>',htmlspecialchars(_L0.s),'</small></div>');return _L2.join('');};
function ProfileSettings(_L0){this.profile_id=_L0;}ProfileSettings.instance={};ProfileSettings.getInstance=function(_L0){if(!ProfileSettings.instance[_L0])ProfileSettings.instance[_L0]=new ProfileSettings(_L0);return ProfileSettings.instance[_L0];};ProfileSettings.prototype.saveCombinedPosts=function(_L0){var _L1={};_L0=parseInt(_L0);_L1['combined_posts']=1;_L1['value']=_L0;var _L2=function(){var _L3=ge('profile_stream_filters_all_posts');if(_L3){CSS.conditionClass(_L3,'hidden_elem',!_L0);var _L4=$('profile_filters_just');CSS.conditionClass(_L4,'hidden_elem',!_L0);}};this._saveSettings(_L1,_L2);};ProfileSettings.prototype.saveSetting=function(_L0,key){var _L2={};_L2[key]=1;_L2['value']=$(_L0).checked?1:0;this._saveSettings(_L2);};ProfileSettings.prototype.saveSettingValue=function(key,_L1){var _L2={};_L2[key]=1;_L2['value']=_L1;this._saveSettings(_L2);};ProfileSettings.prototype.saveFriendsWall=function(){var _L0=$('profile_settings_connections_post').checked?1:0;var _L1={'connections_can_post':1,'value':_L0};var _L2=function(){var _L3=$$('#profile_settings div.privacy');var _L4=_L3[0];var _L5=ge('combined_posts_section');if(_L0){show(_L4);}else hide(_L4);if(_L5)CSS.conditionClass(_L5,'hidden_elem',!_L0);};this._saveSettings(_L1,_L2);};ProfileSettings.prototype.savePrivacy=function(_L0){this._saveSettings(_L0);};ProfileSettings.prototype.saveFansWall=function(){var _L0=$('profile_settings_connections_post').checked?1:0;var _L1={'connections_can_post':1,'value':_L0};var _L2=function(){var _L3=ge('fan_posting_permissions');if(_L0){show(_L3);}else hide(_L3);};this._saveSettings(_L1,_L2);};ProfileSettings.prototype._saveSettings=function(_L0,_L1){var _L2=_L1||bagofholding;var _L3=ge('profile_settings_bar_loading');if(_L3)CSS.removeClass('profile_settings_bar_loading','invisible_elem');_L0['profile_id']=this.profile_id;new AsyncRequest().setData(_L0).setURI('/ajax/profile/settings.php').setHandler(_L2).setFinallyHandler(function(){if(_L3)setTimeout(CSS.addClass.bind(CSS,'profile_settings_bar_loading','invisible_elem'),500);}).send();};

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