// JavaScript Document

var lastlink;
var lastlinktu;
var lastlinkk;
var lastlinktuk;

function refsem(id) {
  var prodzekt;
  prodzekt = document.getElementById(id);
  prodzekt.style.background='none';
  return false;
}

function reftam(id) {
  var prodzekt;
  prodzekt = document.getElementById(id);
  //prodzekt.style.background='url(/images/prodbg.gif) repeat center top';
  prodzekt.style.background = '#F4DCD4';
  return false;
}

function aktsem(id) {
  var prodzekt;
  prodzekt = document.getElementById(id);
  prodzekt.style.background='url(/images/prodbgon.gif) repeat center top';
  return false;
}

function akttam(id) {
  var prodzekt;
  prodzekt = document.getElementById(id);
  prodzekt.style.background='none';
  return false;
}

function show(kat){
	var podmenu;
	if (podmenu = document.getElementById(kat)) {
		var visible = (podmenu.style.display!='none');
		if(visible){
			podmenu.style.display='none';
		} else {
			podmenu.style.display='block';
		}
	}
	return false;
}

function show2(kat,uroven, button){
	var podmenu;
	var button;
	button = document.getElementById(button)
	if (podmenu = document.getElementById(kat)) {
		var visible = (podmenu.style.display!='none');
		if(visible){
			podmenu.style.display='none';
			button.style.color='#7B1846';
		} else {
			podmenu.style.display='block';
			button.style.color='#FF4672';
		}
	}
	return false;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function showon(kat){
	var podmenu;
	var hodnota;
	var x;
	if (document.getElementById(lastlink)) { 
	   if (x = document.getElementById('h'+lastlink)) {
        x.selectedIndex=0;
        x.disabled=true;
       }
    document.getElementById(lastlink).style.display='none';
  } 
  if (document.getElementById(lastlinktu)) { 
	  if (x = document.getElementById('h'+lastlinktu)) {
      x.selectedIndex=0;
      x.disabled=true;
    }
    document.getElementById(lastlinktu).style.display='none';
  }
	hodnota = document.getElementById(kat).value;
	if (podmenu = document.getElementById('hdd'+hodnota)) {
			x = document.getElementById('hhdd'+hodnota);
        x.disabled=false;
      podmenu.style.display='block'; 
			lastlink = 'hdd'+hodnota;
	}
	return false;
}

function showon2(kat){
	var podmenu;
	var hodnota;
	var x;
	if (document.getElementById(lastlinkk)) { 
	   if (x = document.getElementById('h'+lastlinkk)) {
        x.selectedIndex=0;
        x.disabled=true;
       }
    document.getElementById(lastlinkk).style.display='none';
  } 
  if (document.getElementById(lastlinktu)) { 
	  if (x = document.getElementById('h'+lastlinktuk)) {
      x.selectedIndex=0;
      x.disabled=true;
    }
    document.getElementById(lastlinktuk).style.display='none';
  }
	hodnota = document.getElementById(kat).value;
	if (podmenu = document.getElementById('hdde'+hodnota)) {
			x = document.getElementById('hhdde'+hodnota);
        x.disabled=false;
      podmenu.style.display='block'; 
			lastlinkk = 'hdde'+hodnota;
	}
	return false;
}

function showontu(kat){
	var podmenu;
	var hodnota;
	if (document.getElementById(lastlinktu)) { 
	  if (x = document.getElementById('h'+lastlinktu)) {
      x.selectedIndex=0;
      x.disabled=true;
    }
    document.getElementById(lastlinktu).style.display='none';
  } 
	hodnota = document.getElementById(kat).value;
	if (podmenu = document.getElementById('hddtu'+hodnota)) {
			  x = document.getElementById('hhddtu'+hodnota);
        x.disabled=false;
      podmenu.style.display='block';
			
			lastlinktu = 'hddtu'+hodnota;
	}
	return false;
}
