var old;
var memold;
/*
if(document.layers)
{
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=do_out;
} else
{
document.onmousedown=do_out;
}
*/
function show_layer(x)
{
document.getElementsByTagName("div")[x].style.visibility="visible";
}
function hide_layer(x)
{
document.getElementsByTagName("div")[x].style.visibility="hidden";
}

function do_check(x)
{
if(old && old!=x)
{
hide_layer(old);
show_layer(x);
old=x;
}
if(!old)
{
show_layer(x);
old=x;
}
}

function do_out()
{
if(old)
hide_layer(old);

memold=old;
old="";
}

