function on(a)
{
  if (a<10)
  {
    document.getElementById('submenu1').style.display='none';
    document.getElementById('submenu2').style.display='none';
    document.getElementById('submenu3').style.display='none';
    document.getElementById('submenu4').style.display='none';
    document.getElementById('submenu5').style.display='none';
/*    document.getElementById('submenu'+a).style.filter="revealTrans(duration=0.4,transition=5)";*/
//    document.getElementById('submenu'+a).filters.revealTrans.Apply();
    document.getElementById('submenu'+a).style.display='block';
//    document.getElementById('submenu'+a).filters.revealTrans.Play();
    mon=2;
  }
  else
  {
//    document.getElementById('submenu'+a).filters.revealTrans.Apply();
    document.getElementById('submenu'+a).style.display='block';
//    document.getElementById('submenu'+a).filters.revealTrans.Play();
    smon=1;
    mon=3;
  }
}

function rmin(a)
{
  if (mon>2)
    mon=1
  else
    mon=mon-1;
}

function rplu(a)
{
  if (mon<2)
  mon=mon+1;
}

function smin(a)
{
  smon=smon-1;
  mon=1;
}

function splu(a)
{
  smon=smon+1;
  mon=3;
}

function soff(a)
{
  if (smon<2)
  {
    document.getElementById('submenu'+a).style.display='none';
    testoff(1);
  }
}

function roff(a)
{
  if (mon<2)
  {
    document.getElementById('submenu'+a).style.display='none';
  }
}

function testoff(a)
{
  if (a>10)
    timerID = setTimeout ('soff (' + a + ')', 300);
  else
    timerID = setTimeout ('roff (' + a + ')', 300);
}

function loc(a)
{
  document.location=a;
}

function show(co)
{
eval("NewWindow = window.open('uk.php?obraz="+co+"','NAHLAD','toolbar=no,width=600,height=500,directories=no,status=no,scrollbars=no,resize=no,menubar=no,top=20,left=100');");
NewWindow.focus();
};

function kontrola()
{

 if (document.formular.meno.value == "")
 {
  alert('Zadajte svoje meno');
  document.formular.meno.focus();
  return (false);
 }

 if (document.formular.priezvisko.value == "")
 {
  alert('Zadajte svoje priezvisko');
  document.formular.priezvisko.focus();
  return (false);
 }

 if (document.formular.telefon.value == "")
 {
  alert('Zadajte svoj telefon');
  document.formular.telefon.focus();
  return (false);
 }

 if (document.formular.obsah.value == "")
 {
  alert('Zabudli ste napísať text');
  document.formular.obsah.focus();
  return (false);
 }
  return (true);
}

