/*
 * SIMPLE MENU script v2
 * created for Soft-tronik
 * copyright (c) 2000 by .pisi
 * INET Web.deSign, Brno CZ (http://webdesign.inet.cz)
 * ALL RIGHTS RESERVED
 *
 * this software is furnished under a license and may be used and copied
 * only in accordance with the terms of such license and with the
 * inclusion of the above copyright notice. this software or any other
 * copies thereof may not be provided or otherwise made available to any
 * other person. no title to and ownership of the software is hereby
 * transferred.
*/
 
//************************************************************************
// KONFIGURACE SKRIPTU
function swapImage(imgName,newImg,id){
	if ((navigator.appName == 'Netscape' && parseFloat(navigator.appVersion) >= 3) || (parseFloat(navigator.appVersion) >= 4)){
	  if (ie) eval("document."+imgName+".src=\""+newImg+"\"");
	  if (n) eval("document.menu"+id+".document."+imgName+".src=\""+newImg+"\"");
	}
}

function swapIm(imgName,newImg){
	if ((navigator.appName == 'Netscape' && parseFloat(navigator.appVersion) >= 3) || (parseFloat(navigator.appVersion) >= 4)){
		eval('document.' + imgName + '.src = "' + newImg + '"');
	}
}


var menuItems = 26; // celkovy pocet vetvi menu
var cesta = "img/"; // cesta k obrazkum polozek menu ! NUTNE LOMITKO NA KONCI ADRESARE (napr. cesta="images/";) !! pokud jsou obrazky ve stejnem adresari bude definice vypadat takto: cesta="";


















//************************************************************************
// ZDROJOVE KODY SKRIPTU
//************************************************************************
// TUTO CAST NEEDITUJTE !!!!!!! JAKYKOLIV ZASAH NA VLASTNI NEBEZPECI !!!!!

var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;
var vii = new Array;
var loaded = false;

if (ie){
   vrstva="document.all.menu";
   jak="\"visible\"";
   vidim=".style.visibility";
   videt=".style.visibility=\"visible\"";
   nevidet=".style.visibility=\"hidden\"";
}

if (n){
   vrstva="document.menu";
   jak="\"show\"";
   vidim=".visibility";
   videt=".visibility=\"show\"";
   nevidet=".visibility=\"hide\"";
}

function showMenu(cislo){
      if (loaded){
          for(var i=1;i<(menuItems+1);i++){
              if (vii[i]==true){
                  eval(vrstva+i+nevidet);
//              		eval("document.mnu"+i+".src=\""+cesta+i+"off.jpg\"");
                  vii[i]=false;
              }
          }
          if (cislo!=0){
              eval(vrstva+cislo+videt); 
//           		eval("document.mnu"+cislo+".src=\""+cesta+cislo+"on.jpg\"");
              vii[cislo]=true;
          }
      }
}

var loaded=true;
