if (typeof(AC) == "undefined") { AC = {}; }

AC.Bureau = Class.create();
Object.extend(AC.Bureau.prototype, Event.Listener);
Object.extend(AC.Bureau.prototype, {
	drawers: null,
	container: null,
	triggerTimeout: null,
	initialize: 	function(container){this.drawers = [];this.container = $(container);},
	addDrawer: 		function(newDrawer){},
	getDrawerCount: function(){return this.drawers.length;},
	hasDrawers: 	function(){return (this.drawers.length > 0);},
	getFirstDrawer: function(){return this.drawers[0] || null;},
	getLastDrawer: 	function(){return this.drawers[this.drawers.length-1] || null;},
	scheduleTrigger:function(onFire, delay){this.triggerTimeout = setTimeout(onFire, delay);},
	clearTrigger: 	function(){clearTimeout(this.triggerTimeout);}
});
