/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  December 22nd 2009 10:27:25 AM PST                           */
/*      Machine:  10.16.139.107                                                */
/*       Source:  Local Cache                                                  */
/*     Location:  rsrc:4:8687suj7                                              */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/7q2we71cst4wo8sg.pkg.js                                   */

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

function EmuUIController(a,b,c){this.adId=a;this.frameId=b;this.state=c;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 b=DOM.scry(this.emuFrame,'a.emu_toggle_hidden');for(var a=0;a<b.length;a++)b[a].listen('click',this._toggleHidden.bind(this));},_toggleHidden:function(){var a=DOM.find(this.emuFrame,'div.hidden_user_content');var c=DOM.find(this.emuFrame,'a.emu_show_hidden');var b=DOM.find(this.emuFrame,'a.emu_hide_hidden');if(!shown(a)){animation(a).show().from('height',0).to('height','auto').from('opacity',0).to('opacity',1).duration(200).ease(animation.ease.both).go();c.addClass('hidden');b.removeClass('hidden');}else{animation(a).to('height',0).from('opacity',1).to('opacity',0).hide().duration(200).ease(animation.ease.both).blind().go();c.removeClass('hidden');b.addClass('hidden');}return false;}});copy_properties(EmuUIController,{getController:function(a,c){var b=$('emu_'+a+'_'+c);var d=DataStore.get(b,'emuUIController');return d;}});
function CommentableEmuUIController(a,b,c){this.parent.construct(this,a,b,c);}CommentableEmuUIController.extend('EmuUIController');copy_properties(CommentableEmuUIController.prototype,{_getCommentInput:abstractMethod,_init:function(){this._initCommentHandlers();this._initHiddenToggler();},_initCommentHandlers:function(){var a=this._getCommentInput();if(a)a.listen('focus',this._commentOnFocus.bind(this));var b=DOM.scry(this.emuFrame,'input.submit_post')[0];if(b)b.listen('click',this._commentOnSubmit.bind(this));},_commentOnFocus:function(){var a=DOM.find(this.emuFrame,'input.submit_post');a.disabled=false;a.removeClass('hidden');},_commentOnSubmit:function(c){var b=this._getCommentInput();var a=b.value;var d=b.getControl().getPlaceholderText();if(!a||(a==d)){$E(c).kill();}else{var e=DOM.find(this.emuFrame,'img.submit_progress');e.removeClass('hidden');}}});
function SMSLinkEmuUIController(a,b,c){this.parent.construct(this,a,b,c);return this;}SMSLinkEmuUIController.extend('CommentableEmuUIController');copy_properties(SMSLinkEmuUIController.prototype,{_init:function(){this.parent._init();},_getCommentInput:function(){return DOM.scry(this.emuFrame,'input[name="phone_number"]')[0];}});

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