<!--
var old;
var memold;
var subold;
var vopen_w="";
  function close_w(a)
  {
    document.getElementById(a).style.display='none';
  }
  function open_w(a)
  {
    if (vopen_w>"") {close_w(vopen_w);vopen_w="";}
    document.getElementById(a).style.display='block';
    vopen_w=a;
  }
function open_ws(o,p) {
	o.style.backgroundImage='url(fon.png)';
	open_w(p);
}
function close_ws(o,p) {
	o.style.backgroundImage="url(fon.jpg)";
	close_w(p);
}
function close_wo(p) {
	m1.style.backgroundImage="url(fon.jpg)";
	close_w(p);
}
function on3(o,a) {
	o.style.backgroundImage='url(fon.png)';
	document.getElementById(a).style.backgroundImage='url(fon.png)';
function of3(o,a) {
	o.style.backgroundImage='fon.jpg';
	document.getElementById(a).style.backgroundImage='url(fon.jpg)';
}
}
if(document.layers)
{
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=do_out;
} else 
{
document.onmouseup=do_out; 
}
function show_layer(x)
{
if(document.layers)
document.layers[x].visibility="show";
else
document.all[x].style.visibility="visible";
}
function hide_layer(x)
{
if(document.layers)
document.layers[x].visibility="hide";
else
document.all[x].style.visibility="hidden";
}
function do_menu(x)
{
if(!old)
old=memold;
if(old!=x)
{
show_layer(x);
old=x;
} else
old="";
}
function do_menu1(x)
{
old=memold;
show_layer(x);
}
function do_check(x)
{
if(old && old!=x)
{
hide_layer(old);
show_layer(x);
old=x;
}
do_submenu();
}
function do_out()
{
if(old)
hide_layer(old);
memold=old; old="";
do_submenu();
}
function do_submenu(x)
{
if(subold)
{
hide_layer(subold);
subold="";
}
if(x)
{
show_layer(x);
subold=x;
}
}
// -->
