//утф-8
startList = function() {
	if (document.all&&document.getElementsByTagName) {
    var vsechnyLI = document.getElementsByTagName("LI");
		for (i=0; i< vsechnyLI.length; i++) {
			node = vsechnyLI[i];
			node.onmouseover=function() {
				this.className+=" over";
			}
			node.onmouseout=function() {
				this.className=this.className.replace(" over", "");
			}
		}
	}
}
window.onload=startList;

function tisk(elem) {
  var o;
  o = document.getElementById("horni-logo"); if(o) o.style.display = o.style.display==''?"none":"";
  o = document.getElementById("horni-2"); if(o) o.style.display = o.style.display==''?"none":"";
  o = document.getElementById("vyhledavani"); if(o) o.style.display = o.style.display==''?"none":"";
  o = document.getElementById("dolni-pruh"); if(o) o.style.display = o.style.display==''?"none":"";
  //o = document.getElementById("hlavicka-tisk"); if(o) o.style.display = (o.style.display==''||o.style.display=='none')?"block":"none";
  
  if(elem) elem.innerHTML = (elem.innerHTML=='zobrazit pro tisk')?'zrušit zobrazení pro tisk':"zobrazit pro tisk";
}


function wo (url,html,sirka,vyska,l,t,vzdyNoveOkno) {
	var small = (sirka<800 && vyska<600);
  if (!small) {
    sirka+=16;
    vyska+=16;
  }
  popupWin = window.open(url , 'o'+(vzdyNoveOkno?"_"+d.toString():""),'Width=' +sirka +',Height=' +vyska +',Left=' +l +',Top=' +t +',status=no'+(small?"":",scrollbars=yes"));
  if (html) popupWin.document.write(html);
  popupWin.focus();
  return false;
}

//window popup - obrazek
function img(src,title){
  var titlebody = "height=10,width=10,resizable=1,scrollbars=0";
  newwindow=window.open('','name',titlebody);
  newwindow.document.write('<html><head><title>' +title +'</title></head><body  onload="window.resizeTo(document.images[0].width+12,document.images[0].height+51);" text="#000000" style="background-color:white; margin: 0px; padding: 0px;">');
  newwindow.document.write('<div align="center">');
  newwindow.document.write('<img title="po kliknutí se popup okno zavře"  onclick="window.close()"  border=0 src="');
  newwindow.document.write(src);
  newwindow.document.write('"');

  newwindow.document.write(' alt="');
  newwindow.document.write(title);
  newwindow.document.write('"');
  
  newwindow.document.write(' style="cursor:hand;">');
  newwindow.document.write('</div>');
  newwindow.document.write('</body></HTML>');
  newwindow.focus();
  newwindow.document.close();
  return false;
}

