AjaxIndicatorClass = Class.create();
	
AjaxIndicatorClass.prototype = {
	on : function() {
		this.indicator.style.visibility = 'visible';
	},

	off : function() {
		this.indicator.style.visibility = 'hidden';
	},
	
	initialize : function(elm) {
		if (document.getElementsByTagName) {
			if (elm) {

				this.indicator               = elm;
				this.off();

			} else {

				this.indicator               = document.createElement('div');
				this.indicator.id            = 'ajax-indicator';
				this.indicator.innerHTML     = '<span>nahrávám...</span>';
				this.indicator.style.display = 'block';

				this.off();

				document.body.appendChild(this.indicator);
			}
		}
	}
}
	