// Change BgColor 
function changeBgColor(id, color) {
 document.getElementById(id).style.backgroundColor = color;
}
// --

// Show PopUp
function showPopUp(idMenuItem, numItem, idPopUp, bgColorChange) {
 if (navigator.appName == "Microsoft Internet Explorer") {
  with (document.getElementById(idPopUp).style) {
   left       = (((document.body.clientWidth - 862) / 2) + 42) + (80 * (numItem - 1)) + (8 * (numItem - 1));
   visibility = "visible";
  }
  document.getElementById(idMenuItem).style.backgroundColor = bgColorChange;
 }
 else if (navigator.appName == "Netscape") {
  with (document.getElementById(idPopUp).style) {
   left       = (((window.innerWidth - 862) / 2) + 42) + (80 * (numItem - 1)) + (8 * (numItem - 1));
   visibility = "visible";
  }
  document.getElementById(idMenuItem).style.backgroundColor = bgColorChange;
 } 
}
// --

// Hidden PopUp
function hiddenPopUp(idMenuItem, idPopUp, bgColorChange) {
 document.getElementById(idPopUp).style.visibility = "hidden";
 document.getElementById(idMenuItem).style.backgroundColor = bgColorChange;
}
// --

// OpenWindow("adresa", šířka, výška, "posuvníky yes/no", "max/min yes/no")
// -------------------------------------------------------------------
function OpenWindow(winURL, winWidth, winHeight, winScrollBars, winResizable)
{
 window.open(winURL,"","scrollbars=" + winScrollBars + ",status=no,width=" + winWidth + ",height=" + winHeight + ",menubar=no,resizable=" + winResizable + ",directories=no");
}
// -------------------------------------------------------------------


