
var inmenu = false;
var lastmenu = 0;

function mutat(nev)
{
   inmenu = true;
   oldmenu = lastmenu;
   lastmenu = nev;

   if (oldmenu) torol(oldmenu);
   if(aIE)
   {
       lejer = eval ("document.all." + nev + ".style");
       lejer.visibility = "visible";
       return true;
   }
   if(aNav)
   {
       lejer= eval ("document." + nev + "");
       lejer.visibility="visible";
       return true;
   }
   if(aNN6)
   {
       document.getElementById(nev).style.visibility="visible";
       return true;
   }
}

function torol(nev)
{
   if (inmenu && lastmenu==nev) {
	  return;
   }
   if(aIE)
   {
       lejer = eval ("document.all." + nev + ".style");
       lejer.visibility = "hidden";
       return true;
   }
   if(aNav)
   {
       lejer= eval ("document." + nev + "");
       lejer.visibility="hidden";
       return true;
   }
   if(aNN6)
   {
       document.getElementById(nev).style.visibility="hidden";
       return true;
   }
}

function timeout(nev)
{
   inmenu = false;
   torol(nev);
}

function negyzet(hol,ertek) {
    if(ertek > 0) {
        document.images[hol].src = 'img/negyzet1.jpg';
    }
    else {
        document.images[hol].src = 'img/negyzet.jpg';
    }
}

function OpenNewWindow(url, x, y) {
    var options = "toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=" + x + ",height=" + y;
    msgWindow=window.open(url,"", options);
}

function OpenNewWindowS(url, x, y) {
    var options = "toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=" + x + ",height=" + y;
    msgWindow=window.open(url,"", options);
}

