function init() {
IE = (document.all);
NC = (document.layers);
Opera = (document.getElementById);
}

function showLayer(vdiv,event) {
init();
if (IE) {
  x = window.event.clientX + document.documentElement.scrollLeft
    + document.body.scrollLeft;
  y = window.event.clientY + document.documentElement.scrollTop
    + document.body.scrollTop;
}
else {
  x = event.clientX + window.scrollX;
  y = event.clientY + window.scrollY;
}
x1 = x + 10;
y1 = y + 10;

if(IE) {
document.all[vdiv].style.top = y1;
document.all[vdiv].style.left = x1;
eval("document.all[vdiv].style.visibility = 'visible'")}

if(NC) {
document.layers[vdiv].top = y1;
document.layers[vdiv].left = x1;
eval("document.layers[vdiv].visibility = 'visible'")}

if(Opera) {
document.getElementById(vdiv).style.top = y1;
document.getElementById(vdiv).style.left = x1;
eval("document.getElementById(vdiv).style.visibility = 'visible'");
}
}

function hiddenLayer(vdiv) {
init();
if(IE) eval("document.all[vdiv].style.visibility = 'hidden'");
if(NC) eval("document.layers[vdiv].visibility = 'hidden'");
if(Opera) eval("document.getElementById(vdiv).style.visibility = 'hidden'");
}
