
AlertTooltip = {
	'create':function() {
		if(document.getElementById('alert_tooltip'))
			return;
		var b = document.createElement('DIV');
		var d = document.createElement('DIV');
		d.className = 'message';
		b.id = 'alert_tooltip';
		b.appendChild(d);
		document.getElementsByTagName('body')[0].appendChild(b);
	},
	'on':function(msg,style) {
		var d = document.getElementById('alert_tooltip');
		if(!d) {
			AlertTooltip.create();
			var d = document.getElementById('alert_tooltip');
		}
		d.firstChild.innerHTML = msg;
		if(style) {
			for(var i in style) {
				if(i=='inArray')
					continue;
				eval('d.childNodes[0].style.'+i+' = style[i];');
			}
		}
		d.style.display = 'block';
	},
	'msg':function(msg) {
		var d = document.getElementById('alert_tooltip');
		if(!d)
			return;
		d.firstChild.innerHTML = msg;
	},
	'off':function() {
		var d = document.getElementById('alert_tooltip');
		if(!d)
			return;
		d.style.display = 'none';
	}
}