Element.implement({
	inline_loading_indicator_show: function(text)
	{
		this.getChildren().each(function(child){child.addClass('invisible')});
		new Element('p', {'class': 'inline_loading_indicator', 'html': text}).inject(this, 'top');
	},
	
	inline_loading_indicator_hide: function()
	{
		var indicator = this.getElement('p.inline_loading_indicator');
		if (indicator)
			indicator.destroy();
			
		this.getChildren().each(function(child){child.removeClass('invisible')});
	}
})

