<!--
function bg_ch(th,col){
  th.style.backgroundColor=col;
}

var tim;
function MenuShow(akce){
  clearTimeout(tim);
  menu_fr=document.getElementById('menuF');
  menu_el=document.getElementById('menuH');
  menu_el.style.top=menu_fr.style.top+25;
  menu_el.style.left=menu_fr.style.left;
  menu_el.style.display=akce;
  if (akce=='none') menu_fr.style.backgroundColor='';
}

function MenuHide() {
  clearTimeout(tim);
  tim=setTimeout("MenuShow('none')",700);
}

//barvy efekt

var I = new Array();
var maxI = 10;
var count;
var i, iid;
var TimerSet = false;

var HiRed = 205;
var HiGreen = 225;
var HiBlue = 255;

var Red = 233;
var Green = 208;
var Blue = 132;

function Hilight(index)
{
  if (!initialized) return;
  I[index] = -1;
  //menu[index].style.backgroundColor = "RGB(" + String(HiRed) + "," + String(HiGreen) + "," + String(HiBlue) + ")";
  document.getElementById('menu'+index).style.backgroundColor = "RGB(" + String(HiRed) + "," + String(HiGreen) + "," + String(HiBlue) + ")";
}

function StartDarken(index)
{
  if (!initialized) return;
  I[index] = maxI;
  if (!TimerSet)
  {
    iid = window.setInterval ("Darken()", 100);
    TimerSet = true;
  }
}

function Darken()
{
  var R,G,B;
  var txt;
  var pos;

  for (i=0; i<count; i++)
    if (I[i] > 0)
    {
      I[i]--;
      R = String( I[i] * (HiRed - Red) / maxI + Red );
      G = String( I[i] * (HiGreen - Green) / maxI + Green );
      B = String( I[i] * (HiBlue - Blue) / maxI + Blue );
      //txt = menu[i].innerText;
      //pos = Math.round((I[i] / maxI) * txt.length);
      //menu[i].style.backgroundColor = "RGB(" + R + "," + G + "," + B + ")";
      R=Math.round(R).toString(16);
      G=Math.round(G).toString(16);
      B=Math.round(B).toString(16);
      document.getElementById('menu'+i).style.backgroundColor = "#"+R+""+G+""+B;
    }

  TimerSet = false;
  for (i=0; i<count; i++) if (I[i] > 0) TimerSet = true;
  if (!TimerSet) window.clearInterval (iid);
}

var initialized = false;

function init()
{
  //count = menu.length;
  count = 6;
  for (i=0;i<count;i++) I[i] = 0;
  initialized = true;
}

if (document.images) {
flag1on = new Image();  flag1on.src = "images/cz_on.gif";
flag1off = new Image();  flag1off.src = "images/cz_off.gif";

flag2on = new Image();  flag2on.src = "images/en_on.gif";
flag2off = new Image();  flag2off.src = "images/en_off.gif";
}
function p_on(imageName) {  if (document.images) {
    document[imageName].src = eval(imageName + "on.src");  }}
function p_off(imageName) {  if (document.images) {
    document[imageName].src = eval(imageName + "off.src");  }}

function i_wop(soub,jm,x,y) {
  xx=x;
  yy=y;
  sc='';
  if (x > 800 || y > 600) sc='scrollbars,';
  if (sc!='') xx+=20;
  if (y > 600) yy=600;
  window.open(soub, jm, sc+'left='+Math.round((screen.availWidth-xx)/2)+',top='+Math.round((screen.availHeight-yy)/2)+',width='+xx+', height='+yy);
}
//-->
