function Loading(){
	this.properties = {
		loadingBlockID: 'autogen_loading_block'
	}

	var _self = this;

	this.Init = function(options){
		_self.properties = $.extend(_self.properties, options);
		_self.create_loading_block();
	}

	this.create_loading_block = function(){
		if(!$("#"+_self.properties.loadingBlockID).attr("id")){
			$("body").append('<div id="'+_self.properties.loadingBlockID+'" class="ajax_notice"><div class="loading">Loading...</div></div>');
			$("#"+_self.properties.loadingBlockID).css('display', 'none');
			$("#"+_self.properties.loadingBlockID).css('position', 'fixed');
			$("#"+_self.properties.loadingBlockID).css('z-index', '1500');
			$("#"+_self.properties.loadingBlockID).css('right', '10px');
			$("#"+_self.properties.loadingBlockID).css('top', '10px');
		}
	}

	this.setLoading = function(){
		$("body").css("cursor", "wait");
		$("#"+_self.properties.loadingBlockID).show();
	}

	this.unsetLoading = function(){
		$("body").css("cursor", "default");
		$("#"+_self.properties.loadingBlockID).hide();
	}

	_self.Init();

};

