
function showMenu(event, id) {
	var top;
	var left;
	var t_handler;
	var clickevent = this.onclick;

	this.obj    = document.getElementById(id);
	this.top    = (document.documentElement.scrollTop  + event.clientY);
	var me = this;

	this.obj.onmouseover = function() {
		window.clearTimeout(this.t_handler);
	};
	this.obj.onmouseout = function() {
		this.t_handler = window.setTimeout(function() { me.hide(); }, 1500);
	};

	this.display();
}

showMenu.prototype.display = function() {
	this.obj.style.display = "block";
//	this.obj.style.top     = (this.top - this.obj.offsetHeight - 59)  + "px";
	this.obj.style.top     = this.top  + "px";
	this.obj.style.left    = "33px";
}

showMenu.prototype.hide = function() {
		this.obj.style.display = "none";
		this.obj.style.top     = "-1000px";
		this.obj.style.left    = "-1000px";
}

/*
function showMenu(event, id) {
	var top;
	var left;
	var t_handler;
	var clickevent = this.onclick;

	this.obj    = document.getElementById(id);
	this.top    = (document.documentElement.scrollTop  + event.clientY);
	this.left   = (document.documentElement.scrollLeft + event.clientX);
	this.top   += 5;
	this.left  -= 5;

	var me = this;

	this.obj.onmouseover = function() {
		window.clearTimeout(this.t_handler);
	};
	this.obj.onmouseout = function() {
		this.t_handler = window.setTimeout(function() { me.hide(); }, 1500);
	};

	this.display();
}

showMenu.prototype.display = function() {
	this.obj.style.display = "block";
	this.obj.style.top     = (this.top - this.obj.offsetHeight)  + "px";
	this.obj.style.left    = this.left + "px";
}

showMenu.prototype.hide = function() {
		this.obj.style.display = "none";
		this.obj.style.top     = "-1000px";
		this.obj.style.left    = "-1000px";
}
*/
