	function InfoMessage(objName, id, parentId, text, className, options) {
		this.objName = objName;
		this.id = id;
		this.parentId = parentId;
		this.autoClose = (typeof(options.autoClose) != 'undefined' ? options.autoClose : true);
		
		this.show(text, className);
	}
	
	InfoMessage.prototype.show = function(text, className) {
		if ($(this.id))
			$(this.id).replace(this.buildContent(text, className));
		else
			new Insertion.Top($(this.parentId), this.buildContent(text, className));
		
		if (this.autoClose) {
			var ref = this;
			new PeriodicalExecuter(function(pe) {
				if (ref.autoClose == true)
					ref.close();
				pe.stop();
			}, 4);
		}
	}
	
	InfoMessage.prototype.close = function() {
		if ($(this.id))
			$(this.id).hide();
		this.autoClose = false;
	}
	
	InfoMessage.prototype.buildContent = function(text, className) {
		var content = '';
		var content = '<div id="' + this.id + '" class="' + className + '">';
		content += '<div id="' + this.id + '_c">';
		if (typeof(text) == 'object') {
			if (text.length == 1) {
				content += text[0];
			}
			else {
				for (var i = 0; i < text.length; i++) {
					content += '<li>' + text[i] + '</li>';
				}
			}
		}
		else
			content += text;
		content += '</div>';
		content += '</div>';
		return content;
	}