if(!Nibynic) {
	var Nibynic = {};
}

Nibynic.Indicator = Class.create({
	defaultOptions: {
		image: '/images/indicator.gif',
		className: ''
	},
	
	initialize: function(container, options) {
		this.container = $(container);
		this.container.makePositioned();
		this.options = Object.extend(Object.extend({ }, this.defaultOptions), options || { });
		
		this.element = new Element('div', {
			className: 'indicator ' + this.options.className
		});
		this.element.insert(new Element('img', {
			'src': this.options.image
		}));
		this.container.insert(this.element);
	},
	
	destroy: function() {
		this.element.remove();
	}
})
