function LoadingClass() {
	this.element;
	
	this.construct();
	
	var count;
	
	return (this);
}

LoadingClass.prototype.construct = function () {
	this.element = document.createElement('div');
	this.element.className = "loading";
	this.element.innerHTML = loading;
	
	this.count = 0;
}

LoadingClass.prototype.set = function () {
	if (this.count <= 0) {
		document.body.appendChild(this.element);
	}
	this.count++;
}

LoadingClass.prototype.remove = function () {
	this.count--;
	if (this.count <= 0) {
		document.body.removeChild(this.element);
	}
}