<!--
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
DOM = (document.getElementById) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
var loaded = 0;
var gotlayers = 0;
var lastbutton='top';


function Over(img1,img2) {
      if (document.images) {
        document.images[img1].src = 'img/' + img1 + "2.gif";
        document.images[img2].src = 'img/' + img2 + "2.gif";
      }		 
}

function Out(img1,img2) { 
      if (document.images) {
        document.images[img1].src = 'img/' + img1 + ".gif";
        document.images[img2].src = 'img/' + img2 + ".gif";
      }
}

function moveMenu() {
	if (gotlayers) {
		if (NS4) {
			scrWidth = window.innerWidth;
			document.layers['profil'].left = ((document.sirka_okna.width / 2)-370);
			document.layers['sluzby'].left = ((document.sirka_okna.width / 2)-370);
			document.layers['reference'].left = ((document.sirka_okna.width / 2)-370);
		} else if (DOM) {
			scrWidth = (document.body.clientWidth ? document.body.clientWidth : window.innerWidth) + 18;
			document.getElementById('profil').style.left = ((document.sirka_okna.width / 2)-370);
			document.getElementById('sluzby').style.left = ((document.sirka_okna.width / 2)-370);
			document.getElementById('reference').style.left = ((document.sirka_okna.width / 2)-370);
                } else {
			scrWidth = document.body.clientWidth + 18;
			document.all['profil'].style.pixelLeft = ((document.sirka_okna.width / 2)-370);
			document.all['sluzby'].style.pixelLeft = ((document.sirka_okna.width / 2)-370);
			document.all['reference'].style.pixelLeft = ((document.sirka_okna.width / 2)-370);
		}
	}
}
 
function popUpMenu(menuName,on) {
	if (gotlayers) {
		if (on) {
			moveMenu();
			if (NS4) {
				document.layers[menuName].visibility = "show";
			} else if (DOM) {
				document.getElementById(menuName).style.visibility = "visible";
                        } else {
				document.all[menuName].style.visibility = "visible";
			}
		} else {
			if (NS4) {
				document.layers[menuName].visibility = "hide";
			} else if (DOM) {
				document.getElementById(menuName).style.visibility = "hidden";
			} else {
				document.all[menuName].style.visibility = "hidden";
			}
		}
	}
}

function popDown() {
	popUpMenu('profil',false);
	popUpMenu('sluzby',false);
	popUpMenu('reference',false);
}

-->
