/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  December 11th 2009 12:37:33 AM PST                           */
/*      Machine:  10.16.140.109                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/acrl0jyrxlc8cs0o.pkg.js h:c85yogs9                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/acrl0jyrxlc8cs0o.pkg.js                                   */

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

var share_last_comment={p:null,t:null};function share_internal_config(_L0){if(share_last_comment.p==_L0){_L0+='&c='+escapeURI(share_last_comment.t?share_last_comment.t:'');}else share_last_comment.p=_L0;Bootloader.loadComponents(['async','dialog'],function(){var _L1=new AsyncRequest().setURI('/ajax/share_dialog.php?'+_L0).setMethod('GET').setReadOnly(true);var _L2=new Dialog().setAsync(_L1).setStackable(true).show();});return false;}
function VideoHistogram(){this.videos={};this.video_payloads={};this.listening=false;this.checking=false;}VideoHistogram.prototype.start=function(_L0){var _L1=document[_L0]||window[_L0];this.videos[_L0]=_L1;this.listening=true;};VideoHistogram.prototype.videoFinished=function(_L0,_L1){this.videos[_L0]=null;this.setPayload(_L0,_L1);this.updateServer();};VideoHistogram.prototype.setPayload=function(_L0,_L1){this.video_payloads[_L0]=_L1;};VideoHistogram.prototype.updateServer=function(){var _L0=[];for(var _L1 in this.video_payloads){var _L2=this.video_payloads[_L1];this.video_payloads[_L1]=null;if(_L2)_L0.push(_L2);}var _L3=JSON.encode(_L0);new AsyncSignal('/video/motion_log.php',{'h':_L3}).send();this.listening=false;this.checking=false;};VideoHistogram.prototype.checkStatus=function(){if(this.listening){this.checking=true;for(var v in this.videos)if(this.videos[v].reportTime)this.videos[v].reportTime();this.updateServer();}};copy_properties(VideoHistogram,{init:function(){if(!window.video_histogram)window.video_histogram=new VideoHistogram();onbeforeunloadRegister(function(){if(!window.video_histogram.checking)window.video_histogram.checkStatus();});}});

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