/*    HTTP Host:  b.static.ak.fbcdn.net                                        */
/*    Generated:  January 30th 2010 10:52:00 AM PST                            */
/*      Machine:  10.16.140.101                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/7ca756xwsfc4swww.pkg.js h:51eu0q9u                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/7ca756xwsfc4swww.pkg.js                                   */

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

function resend_confirmation_email(){hide($('confirm_error'));hide($('confirm_status'));show($('confirm_progress'));new AsyncRequest().setURI('/ajax/confirm_email.php').setData({resend:1}).setHandler(function(_L0){hide($('confirm_progress'));if(_L0){var _L1=_L0.getPayload();if(_L1&&_L1.success){DOM.setContent($('confirm_status'),HTML(_L1.msg));show($('confirm_status'));}else{DOM.setContent($('confirm_error'),HTML(_L1.msg));show($('confirm_error'));}}else{DOM.setContent($('confirm_error'),HTML(_L1.msg));show($('confirm_error'));}}).send();}
function external_friend_add(uid,_L1,_L2,_L3,_L4){var _L5=(function(_L6){_L3(_L6.getPayload());});new AsyncRequest().setURI('/friends/ajax/external.php').setData({action:'add',uid:uid,email:_L1,name:_L2,allow_nameless:true,ok:true,no_success_dialog:true,from_invite:_L4}).setHandler(_L5).send();}function accept_external_friend_suggestion(uid,_L1){external_friend_add(uid,null,_L1,function(){FriendSuggesterDialog.show(uid,true,function(){handle_request_click('friend_suggestion',uid,'accept');});},false);}function show_external_friend_dialog(uid,_L1,_L2,_L3){_L3=_L3||bagofholding;var _L4=new AsyncRequest().setMethod('GET').setData({action:_L2,uid:uid,email:_L1}).setReadOnly(true).setURI('/friends/ajax/external.php');new Dialog().setAsync(_L4).setCloseHandler(function(){var id=this.getUserData();if(id){external_friend_hide_link(id);_L3(id);}}).show();}function external_friend_hide_link(uid){var _L1=ge('add_as_friend_'+uid);if(_L1)hide(_L1);}
var message_dialog={_registered:false,register:function(){if(!message_dialog._registered){LinkController.registerHandler(_message_composer_link_handler);message_dialog._registered=true;}},show:function(_L0,_L1,_L2,ref){_L1=_L1?_L1:'';_L2=_L2?_L2:'';var _L4={'id':_L0,'subject':_L1,'message':_L2};var _L5=new AsyncRequest().setMethod('POST').setData(_L4).setContextData('clicktype','Send a Message',ref==="profile_others").setURI('/ajax/inbox/composer.php');new Dialog().setStackable(true).setContentWidth(500).setAsync(_L5).show();return false;},send:function(_L0){var _L1=serialize_form(_L0.form);_L1['action']='compose';new AsyncRequest().setURI('/ajax/inbox/ajax.php').setData(_L1).setHandler(bind(null,message_dialog.send_handle,_L0)).setErrorHandler(bind(null,message_dialog.send_error,_L0)).send();},send_handle:function(_L0,r){var _L2=r.getPayload();var _L3=Dialog.getCurrent();if(_L3){_L3.setTitle(_L2.title).setBody(_L2.content).setButtons([Dialog.OK]).clearHandler().show();if(!_L2.error)_L3.setAutohide(2000);}},send_error:function(_L0,r){var _L2=Dialog.getCurrent();if(_L2){if(r.getError()==kError_Inbox_DuplicateMessages){_L2.hide();return;}_L2.setTitle(_tx("Error")).setBody(_tx("Sorry, an unknown error occurred")).setButtons([Dialog.OK]).clearHandler().show().setAutohide(1100);}}};function _message_composer_link_handler(_L0){return true;var _L1=URI.getRequestURI();if(_L1.getPath().match(/^\/inbox\//))return true;var uri=new URI(_L0.href);if(uri.getPath()=='/inbox/'){var _L3=uri.getQueryData();if((typeof _L3.compose!="undefined")&&(typeof _L3.id!="undefined")&&(_L3.id<2.2e+09)){message_dialog.show(_L3.id);return false;}}return true;}

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