/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  March 3rd 2010 8:52:46 PM PST                                */
/*      Machine:  10.16.139.106                                                */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/4el5y0ntp0qokk0g.pkg.js                                   */

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

function EmuUIController(_L0,_L1,_L2){this.adId=_L0;this.frameId=_L1;this.state=_L2;this.emuFrame=$('emu_'+this.adId+'_'+this.frameId);this.emuAd=$('emu_'+this.adId);DataStore.set(this.emuFrame,'emuUIController',this);this._init();}copy_properties(EmuUIController.prototype,{_init:abstractMethod,_getMoreUserContentText:abstractMethod,_initHiddenToggler:function(){var _L0=DOM.scry(this.emuFrame,'a.emu_toggle_hidden');for(var i=0;i<_L0.length;i++)_L0[i].listen('click',this._toggleHidden.bind(this));},_toggleHidden:function(){var _L0=DOM.find(this.emuFrame,'div.hidden_user_content');var _L1=DOM.find(this.emuFrame,'a.emu_show_hidden');var _L2=DOM.find(this.emuFrame,'a.emu_hide_hidden');if(!shown(_L0)){animation(_L0).show().from('height',0).to('height','auto').from('opacity',0).to('opacity',1).duration(200).ease(animation.ease.both).go();_L1.addClass('hidden');_L2.removeClass('hidden');}else{animation(_L0).to('height',0).from('opacity',1).to('opacity',0).hide().duration(200).ease(animation.ease.both).blind().go();_L1.removeClass('hidden');_L2.addClass('hidden');}return false;}});copy_properties(EmuUIController,{getController:function(_L0,_L1){var _L2=$('emu_'+_L0+'_'+_L1);var ret=DataStore.get(_L2,'emuUIController');return ret;}});
function CommentableEmuUIController(_L0,_L1,_L2){this.parent.construct(this,_L0,_L1,_L2);}CommentableEmuUIController.extend('EmuUIController');copy_properties(CommentableEmuUIController.prototype,{_getCommentInput:abstractMethod,_init:function(){this._initCommentHandlers();this._initHiddenToggler();},_initCommentHandlers:function(){var _L0=this._getCommentInput();if(_L0)_L0.listen('focus',this._commentOnFocus.bind(this));var _L1=DOM.scry(this.emuFrame,'input.submit_post')[0];if(_L1)_L1.listen('click',this._commentOnSubmit.bind(this));},_commentOnFocus:function(){var _L0=DOM.find(this.emuFrame,'input.submit_post');_L0.disabled=false;_L0.removeClass('hidden');},_commentOnSubmit:function(evt){var _L1=this._getCommentInput();var _L2=_L1.value;var _L3=_L1.getControl().getPlaceholderText();if(!_L2||(_L2==_L3)){$E(evt).kill();}else{var _L4=DOM.find(this.emuFrame,'img.submit_progress');_L4.removeClass('hidden');}}});
function InviteEmuUIController(_L0,_L1,_L2){this.parent.construct(this,_L0,_L1,_L2);return this;}InviteEmuUIController.extend('CommentableEmuUIController');copy_properties(InviteEmuUIController.prototype,{_init:function(){this.parent._init();},_getCommentInput:function(){return DOM.scry(this.emuFrame,'input[name="email_list"]')[0];}});

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