
// lotame
dojo.require("dojo.lang.declare");
dojo.declare('lothelper', null, {
	clientid: 32,
	domain: 'somethingawful.crwdcntrl.net',
	lotcc: null,

	initializer: function(lotcc) {
		this.lotcc = lotcc;
	},

	beh_set: function(type, b) {
		for(i = 0; i < b.length; i++) {
			this.lotcc.add(type, b[i]);
		}
	},
	
	exec: function(now) {
		this.lotcc.domain = this.domain;
		this.lotcc.client = this.clientid;
		now ? this.lotcc.bcp() : this.lotcc.bcpd();
	}
});

