function Zmen(obrazok,novy_obr) {
	document.images[obrazok].src=novy_obr;	
}

function Zavri(id) {
	id.style.visibility = "hidden";
	//window.alert("nazdar");
}

function Ukaz(id) {
	document.getElementById(id).style.visibility = "visible";
	document.getElementById(id).style.top = "197px";
	//nastavenie polohy podmenu
	//alert(TopMenu);
	switch (id) 
	{
		case "menu1" : 
			document.getElementById(id).style.left = ((document.body.scrollWidth - document.getElementById("menu").width)/2+9)+"px";
			break;
		case "menu2" : 
			document.getElementById(id).style.left = ((document.body.scrollWidth - document.getElementById("menu").width)/2+9+100)+"px";
			break;
		case "menu3" : 
			document.getElementById(id).style.left = ((document.body.scrollWidth - document.getElementById("menu").width)/2+9+100+100)+"px";
			break;
		case "menu4" : 
			document.getElementById(id).style.left = ((document.body.scrollWidth - document.getElementById("menu").width)/2+9+100+100+100)+"px";
			break;
		case "menu5" : 
			document.getElementById(id).style.left = ((document.body.scrollWidth - document.getElementById("menu").width)/2+9+100+100+100+100)+"px";
			break;
		case "menu6" : 
			document.getElementById(id).style.left = ((document.body.scrollWidth - document.getElementById("menu").width)/2+9+100+100+100+100+100)+"px";
			break;
		case "menu7" : 
			document.getElementById(id).style.left = ((document.body.scrollWidth - document.getElementById("menu").width)/2+9+100+100+100+100+100+100)+"px";
			break;		
		default :
			//alert("Ani jedno menu");	
		//case polozka3 : id.style.left = (document.body.scrollWidth - 700) / 2 + 150 + 100 +100;
	}
}

function Zmaz(id,polozka) {
	document.getElementById(id).style.visibility = "hidden";
}


function KillAll(polozka) {
	menu1.style.visibility = "hidden";
	menu2.style.visibility = "hidden";
	menu3.style.visibility = "hidden";
	menu4.style.visibility = "hidden";
polozka.style.backgroundColor = "";
}

function Otvor(name) {
	window.open(name,"_self");
	
}

function UkazObrazok(name,sirka,vyska) {
	okno=window.open(name,"_blank","toolbar=no,directories=no,status=no,scrollbars=no,resize=yes,menubar=no,width="+(sirka+15)+",height="+(vyska+25)+"");
	okno.moveTo(200,300);
	okno.document.write("<body bgcolor='#495578'>");
	okno.document.write("<img src='"+name+"'>");
	//	alert (sirka+10);
}

function ZavriObrazok(name) {
	name.style.visibility = "hidden";
}

function pokus(text) {
	alert(text);
}

function clickHandler() {
  var targetId, srcElement, targetElement;
  srcElement = window.event.srcElement;
  if (srcElement.className == "Outline") {
     targetId = srcElement.id + "details";
     targetElement = document.all(targetId);
     if (targetElement.style.display == "none") {
        targetElement.style.display = "";
     } else {
        targetElement.style.display = "none";
     }
  }
}

function noveokno(subor) 
{
window.open(subor,'_blank','toolbar=no,directories=no,address=no,status=no,scrollbars=yes,resize=yes,menubar=no,width=500, height=350');
}
function noveoknoPrint(subor) 
{
window.open(subor,'_blank','toolbar=no,directories=no,address=no,status=no,scrollbars=yes,resize=yes,menubar=yes,width=800, height=500');
}

function showPic(cesta)
{
window.open(cesta,'_blank','scrollbars=yes,resizable=yes,status=yes,width=700, height=450');	
}

function transEff(image)
{
	 image.filters[0].Apply();
	 image.style.visibility="visible";
	 image.filters[0].Play();
	 //alert(image);
}

function index()
{
window.open("index.php",'_self');	
}
function fnChange(id){
   alert(id.options.selectedIndex.value);
}