function show_bar(ev, id) {

MouseX = ev.clientX + document.body.scrollLeft;
MouseY = ev.clientY + document.body.scrollTop; 
if ((closewindow == true) && (openwindow != ''))
{
document.getElementById(openwindow).style.visibility="hidden";
}
openwindow = "win[" + id + "]";
obj = document.getElementById(openwindow);

obj.style.top = MouseY + 10;
obj.style.left = MouseX;
obj.style.visibility = "visible";
}

function hide_bar(id) {

document.getElementById("win[" + id + "]").style.visibility="hidden";

}

function hide_bar_timer(id) {

setTimeout(function hide_bar() { document.getElementById("win[" + id + "]").style.visibility="hidden"; }, 2000);

}