/*
HTTP Host: static.ak.fbcdn.net
Generated: March 14th 2010 11:09:59 AM PDT
Machine: 10.16.140.103
Locale: nu_ll
Path: js/adz/bakers_growth.js
*/

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

function BakerAction(a,b){this.accountId=a;this.eventName=b;this.data={};this.shouldSendToOmniture=true;}copy_properties(BakerAction.prototype,{setData:function(a){this.data=a;return this;},setShouldSendToOmniture:function(a){this.shouldSendToOmniture=a;return this;},log:function(){var a={accountId:this.accountId,eventName:this.eventName,data:this.data,shouldSendToOmniture:this.shouldSendToOmniture};new AsyncRequest().setURI('/ads/ajax/advertiser_action.php').setData(a).setReadOnly(true).send();}});function BakerActionRegistry(a){this.numToLog={};this.numLogged={};this.accountId=a;}copy_properties(BakerActionRegistry.prototype,{register:function(b,a,d,c){if(!b)return;this.numToLog[c]=d;this.numLogged[c]=0;b.listen(a,this._logWithLimit.bind(this,c));},_logWithLimit:function(a){if(this.numLogged[a]>=this.numToLog[a])return;this.numLogged[a]++;this.log(a);},log:function(a){new BakerAction(this.accountId,a).log();}});

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