/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  December 11th 2009 3:44:55 PM PST                            */
/*      Machine:  10.16.139.110                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/bnfb11bobxck40s8.pkg.js h:37selbcq                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/bnfb11bobxck40s8.pkg.js                                   */

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

function EventController(_L0){copy_properties(this,{_queue:[],_ready:false,_responder:_L0});}copy_properties(EventController.prototype,{startQueue:function(){this._ready=true;this.dispatchEvents();return this;},pauseQueue:function(){this._ready=false;return this;},addEvent:function(_L0){_L0=_L0.toLowerCase();var _L1=[];for(var ii=1;ii<arguments.length;ii++)_L1.push(arguments[ii]);this._queue.push({type:_L0,args:_L1});if(this._ready)this.dispatchEvents();return false;},dispatchEvents:function(){if(!this._responder)throw new Error('No event responder.');for(var ii=0;ii<this._queue.length;ii++){var _L1='on'+this._queue[ii].type;if(typeof(this._responder[_L1])!='function'&&typeof(this._responder[_L1])!='null'){throw new Error('No event handler.');}else if(this._responder[_L1])this._responder[_L1].apply(this._responder,this._queue[ii].args);}this._queue=[];}});
function PulseUpdater(){copy_properties(this,{lastSntVersion:0,lastRcvVersion:0,prevValue:null,intervalId:null,timerDelay:4000});}copy_properties(PulseUpdater.prototype,{triggerUpdate:function(){var _L0=this.asyncDataCollector();if(this.prevValue==null||!are_equal(this.prevValue,_L0)){this.prevValue=_L0;var _L1=++this.lastSntVersion;var _L2=function(_L3){if(_L1>=this.lastRcvVersion){this.lastRcvVersion=_L1;this.asyncCallback(_L3.getPayload());}}.bind(this);new AsyncRequest().setURI(this.endpointURI).setData({content:_L0}).setReadOnly(true).setHandler(_L2).send();}},stop:function(){if(this.intervalId){this.lastRcvVersion=++this.lastSntVersion;clearInterval(this.intervalId);this.intervalId=null;}else Util.error('None started!  You should of checked intervalId first');return this;},start:function(){if(this.intervalId){Util.error('Already started!  You should of checked intervalId first.');}else if(!this.asyncCallback){Util.error('Start?  But who would know?');}else if(!this.endpointURI){Util.error('I could start, but where to go?');}else if(!this.asyncDataCollector){Util.error('I could start, but when?');}else this.intervalId=setInterval(this.triggerUpdate.bind(this),this.timerDelay);return this;},setAsyncCallback:function(_L0){this.asyncCallback=_L0;return this;},setAsyncDataCollector:function(_L0){this.asyncDataCollector=_L0;return this;},setEndpointURI:function(_L0){this.endpointURI=_L0;return this;},setTimerDelay:function(_L0){this.timerDelay=_L0;return this;}});

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