/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 10th 2010 1:36:28 AM PST                            */
/*      Machine:  10.16.140.101                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/ayeets4w9i8kc4g4.pkg.js h:3z70wkfa                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/ayeets4w9i8kc4g4.pkg.js                                   */

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

var DAYS_OF_WEEK={'mon':1,'tue':1,'wed':1,'thu':1,'fri':1,'sat':1,'sun':1};var HOURS_PERIODS={'1':1,'2':1};var OPEN_CLOSE={'open':1,'close':1};function _fbstruct_hours_set_range_enabled(_L0,day,_L2,_L3){(_L3?show:hide)(ge(_L0+'inputs_'+day+'_'+_L2));(_L3?hide:show)(ge(_L0+'closed_'+day+'_'+_L2));if(!_L3)for(var _L4 in OPEN_CLOSE){var _L5=_fbstruct_hours_get_input(_L0,day,_L2,_L4);_L5.value=_tx("Time");CSS.setClass(_L5,'inputtext DOMControl_placeholder');}}function fbstruct_hours_update(_L0){var _L1=$(_L0+'inputs_second_period_toggle').checked;for(var day in DAYS_OF_WEEK){var _L3=$(_L0+'inputs_toggle_'+day).checked;_fbstruct_hours_set_range_enabled(_L0,day,1,_L3);_fbstruct_hours_set_range_enabled(_L0,day,2,_L3&&_L1);}}function _fbstruct_hours_is_empty(_L0){return _L0.value==''||CSS.hasClass(_L0,'DOMControl_placeholder');}function fbstruct_hours_consider_copying(_L0,day,_L2,_L3){if(_L3!='close')return;return;var _L4=_fbstruct_hours_get_input(_L0,day,_L2,'open');var _L5=_fbstruct_hours_get_input(_L0,day,_L2,'close');if(_fbstruct_hours_is_empty(_L4)||_fbstruct_hours_is_empty(_L5))return;var _L6=false;var _L7=[];var _L8=[];for(var _L9 in DAYS_OF_WEEK)if(day==_L9){_L6=true;continue;}else if(_L6){var _La=_fbstruct_hours_get_input(_L0,_L9,_L2,'open');var _Lb=_fbstruct_hours_get_input(_L0,_L9,_L2,'close');if(!_fbstruct_hours_is_empty(_La)||!_fbstruct_hours_is_empty(_Lb))return;_L7.push(_La);_L8.push(_Lb);}for(var i=0;i<_L7.length;++i){_L7[i].value=_L4.value;CSS.setClass(_L7[i],_L4.className);_L8[i].value=_L5.value;CSS.setClass(_L8[i],_L5.className);}fbstruct_hours_update(_L0);}function _fbstruct_hours_get_input(_L0,day,_L2,_L3){return ge(_L0+day+'_'+_L2+'_'+_L3);}function fbstruct_on_city_selected(){}function fbstruct_payment_options_cash_selected(_L0,_L1){var _L2=$(_L0+'cash_only_checkbox').checked;for(var _L3 in _L1){var cc=ge(_L0+_L1[_L3]+'_checkbox');if(cc){cc.disabled=_L2;cc.checked=false;if(_L2)$(_L0+_L1[_L3]).value=0;}}$(_L0+'cash_only').value=_L2?1:0;}function fbstruct_toggle_checkbox(_L0,_L1){$(_L0).value=$(_L1).checked?1:0;}function fbstruct_country_restrictions_add_default_css(){CSS.addClass($('fbpage_control_panel_settings'),'abbr');}function fbstruct_explain_country_restrictions(){new Dialog().setTitle(_tx("Country Restrictions")).setBody(_tx("Entering one or more countries means that only people located in those countries listed will be able to view your Page. This also means that logged out users will not be able to see your Page. If no countries are listed, your Page will be visible to people located in all countries. You understand that you are responsible for setting the proper country restrictions to ensure that the content of your Page is appropriate for the country or countries where you allow it to be visible.")).setButtons(Dialog.OK).show();}function fbstruct_explain_age_restrictions(){new Dialog().setTitle(_tx("Age Restrictions")).setBody(_tx("Selecting an age restriction means that anyone under the specified age will not be able to find your Page in search or on friends' profiles or view the content in other ways. This also means that logged out users will not be able to see your Page. The Alcohol-Related age restriction sets the minimum age based on the location of the user. Only users in Canada and South Korea who are 19+, in Japan and Paraguay who are 20+, in India who are 25+, and elsewhere (including the US) who are 21+ will be able to view your Page. You understand that the Alcohol-Related age restriction is only for convenience and that Facebook does not represent that by using that setting your Page will be legally compliant in all countries where your Page is visible.  You understand that ultimately you are responsible for setting the proper legally compliant age restrictions for each country where your Page is visible.")).setButtons(Dialog.OK).show();return false;}function fbstruct_confirm_removing_underage_fans(obj,_L1){if(typeof obj.lastKnownGoodValue=='undefined'){obj.lastKnownGoodValue=_L1;obj.contentiousValue=_L1;}var _L2=obj.selectedIndex;var _L3=obj.options[_L2].value;if(_L3<=obj.lastKnownGoodValue){obj.lastKnownGoodValue=_L3;obj.contentiousValue=_L3;return false;}obj.contentiousValue=_L3;var _L4=function(_L5){if(_L5.name=='make_changes'){obj.lastKnownGoodValue=_L3;}else for(var i=0;i<obj.options.length;i++){var _L7=obj.options[i];if(_L7.value==obj.lastKnownGoodValue){obj.selectedIndex=i;break;}}};new Dialog().setTitle(_tx("Age Restrictions")).setBody(_tx("If you change your age restrictions, all current fans of the Page that are underage will be removed. Are you sure you want to do this? As a Page admin you are solely responsible for setting the age restrictions appropriately.")).setButtons([{'label':_tx("Yes"),'name':'make_changes'},Dialog.CANCEL]).setHandler(_L4).show();}
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 pages_show_tab_permalink(_L0,_L1){new Dialog().setAsync(new AsyncRequest().setURI('/ajax/pages/show_tab_permalink.php').setData({'page_id':_L0,'app_id':_L1})).show();}function pages_toggle_edit_settings(){pages_toggle_edit_link('settings_edit_link');pages_toggle_edit_section(['settings_description','settings_editor']);}function pages_toggle_edit_link(id){var _L1=ge(id);var _L2=DOM.getText(_L1);if(_L2==_tx("Hide")){DOM.setText(_L1,_tx("Edit"));}else DOM.setText(_L1,_tx("Hide"));}function pages_toggle_edit_section(ids){for(var i=0;i<ids.length;i++)CSS.toggleClass($(ids[i]),'hidden_elem');}function pages_edit_settings(_L0){var _L1=serialize_form($('settings_form'));_L1['fbpage_id']=_L0;var _L2=function(){var _L3=$('settings_status');CSS.toggleClass(_L3,'hidden_elem');CSS.setOpacity(_L3,1);animation(_L3).duration(2000).checkpoint().to('opacity',0).duration(1000).hide().go();};new AsyncRequest().setData(_L1).setURI('/ajax/pages/save_page_settings.php').setHandler(_L2).setFinallyHandler(pages_toggle_edit_settings).send();return false;}function pages_remove_app_integration(_L0,_L1){new AsyncRequest().setURI('/ajax/edit_app_settings.php').setData({'remove':true,'profile_id':_L0,'app_id':_L1}).setHandler(function(_L2){toggleDisplayNone('card_'+_L1);}).send();return false;}
function fbpage_get_new_media_box(_L0,_L1,_L2){var _L3=function(_L1,_L4){var _L5=_L4.getPayload();var _L6=$('fbpage_rich_media_status');switch(_L1){case 'fbml':var _L7=_tx("You have successfully added a new FBML box. To configure the box, click edit");break;case 'flash':var _L7=_tx("You have successfully added a new Flash box. To configure the box, click edit");break;default:var _L7='';Util.log('Invalid which passed to handler for fbpage_get_new_media_box');}set_inner_html(_L6,_L7);show(_L6);set_inner_html($('fbpage_rich_media_current_boxes'),_L5.current_rich_media_boxes);};new AsyncRequest().setURI('/ajax/pages/new_media_box.php').setData({owner_id:_L0,which:_L1,app_id:_L2}).setHandler(bind(null,_L3,_L1)).send();return false;}function fbpage_show_delete_dialog(_L0,_L1,_L2){var uri=new URI('/ajax/pages/delete_page.php');var _L4={'id':_L0};_L2=_L2||'';if(_L2)_L4['elem_id']=_L2;uri.addQueryData(_L4);Dialog.showFormAjax(_tx("Delete Page?",{'page-name':_L1}),uri.toString(),_tx("Delete"));return false;}
function pages_publish(_L0,_L1){var _L2=function(_L3){var _L4=ge(_L1);set_inner_html(_L4,_L3.getPayload());animation(_L4).duration(3000).checkpoint().from('opacity',1).to('opacity',0).to('height',0).blind().hide().duration(500).go();};new AsyncRequest().setURI('/ajax/pages/toggle_publish_mode.php').setData({page_id:_L0,mode:1}).setHandler(_L2).send();}_page_publish_listeners=[];function pages_add_publish_listener(_L0){_page_publish_listeners.push(_L0);}pages_add_publish_listener(function(){setTimeout(function(){animation(ge('page_publish_box')).from('opacity',1).to('opacity',0).to('height',0).blind().hide().duration(500).go();},3000);});

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