// JavaScript Document
function okno(adres) {
noweOkno = window.open(adres, 'mapa', 'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=no, width=520, height=520')
noweOkno.focus();
}

onload = function() {
	var e, i = 0;
	while (e = document.getElementsByTagName ('B') [i++]) {
		if (e.className == 'switch') {
		e.onclick = function () {
			this.className = this.className == 'switch' ? 'switch off' : 'switch';
			this.nextSibling.className = this.className == 'switch' ? 'hide' : 'show';
			}
		}
	}
}

/*clickMenu = function(menu,element,cname) {
	var getEls = document.getElementById(menu).getElementsByTagName(element);
	for (var i=0; i<getEls.length; i++) {
			getEls[i].onclick=function() {
			if ((this.className.indexOf(cname))!=-1)
			{
			if ((this.className.indexOf('click'))!=-1) {
				this.className=this.className.replace("click", "");;
				}
				else {
				this.className+=" click";
				}
			}
		}
	}
}*/

function schemat(id){
document.getElementById(id).style.visibility='visible';
		}
function bezschematu(id){
document.getElementById(id).style.visibility='hidden';
		}
