/*
HTTP Host: static.ak.fbcdn.net
Generated: March 20th 2010 9:29:25 PM PDT
Machine: 10.16.139.104
Locale: nu_ll
Path: js/ds91sryaqhskgccw.pkg.js
*/

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

function toggle_page_categories_radio_options(_L0,_L1){parent_div=ge(_L1+'_parent');clicked_id=_L0.id;selected_class='clearfix radio_option checked_option';for(var x=0;x<parent_div.childNodes.length;x++){current_div=parent_div.childNodes[x];prefix=current_div.id;if(current_div.className==selected_class&&current_div.id!=clicked_id){option_title=ge(prefix+'_option_title');option_body=ge(prefix+'_option_body');radio_button=ge(prefix+'_radio_button');radio_button=radio_button.getElementsByTagName('input')[0];CSS.setClass(current_div,'clearfix radio_option');show(option_title);hide(option_body);radio_button.checked=false;}else if(current_div.id==clicked_id){option_title=ge(prefix+'_option_title');option_body=ge(prefix+'_option_body');radio_button=ge(prefix+'_radio_button');radio_button=radio_button.getElementsByTagName('input')[0];CSS.setClass(current_div,selected_class);hide(option_title);show(option_body);radio_button.checked=true;var _L3=ge('fbtype_category');if(_L3)_L3.setAttribute('value',x);}}}
var SelfServeDeleteBootstrap={bootstrap:function(){var _L0=new AsyncRequest().setMethod('POST').setReadOnly(true).setURI('/ajax/self_serve_delete.php');new Dialog().setAsync(_L0).setButtons(Dialog.OK).setModal().show();return false;},processDelete:function(){var _L0={'confirm':1};var _L1=$('password_dialog_text');var _L2=$('captcha_response');var _L3=ge('captcha');if(_L3){var _L4=_L3.getElementsByTagName('input');for(var i=0;i<_L4.length;i++)_L0[_L4[i].name]=_L4[i].value;}if($('password_dialog_text'))_L0['password']=$('password_dialog_text').value;new AsyncRequest().setURI('/ajax/self_serve_delete.php').setData(_L0).setHandler(this._asyncHandler.bind(this)).send();return false;},_asyncHandler:function(_L0){var _L1=_L0.getPayload();if(!_L1.error){new Dialog().setButtons(_L1.buttons).setModal().setTitle(_L1.title).setBody(_L1.body).setHandler(_L1.handler).show();}else{var _L2={'error':_L1.error?_L1.error:null};var _L3=new AsyncRequest().setMethod('POST').setData(_L2).setReadOnly(true).setURI('/ajax/self_serve_delete.php');new Dialog().setAsync(_L3).setButtons(Dialog.OK).setModal().show();}}};

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