var LoaderBar = new Class({
	Implements: Options,

	options: {
		loader_bar:	'loading_bar'
	},

	initialize: function(options){
		this.setOptions(options);
		this.loader  = $(this.options.loader_bar);
		this.count = 0;
	},

	addLoad : function(){
		if(this.loader == null) return;
		if(this.count == 0)
			this.loader.setStyle("display", "block");
		this.count++;

	},

	removeLoad : function(){
		if(this.loader == null) return;
		if(this.count ==1)
			this.loader.setStyle("display", "none");
		this.count--;
	}

});
