function popwin(cesta, width, height) 
	{
	WinFeatures = 'toolbar=no,scrollbars=no,status=no,resizable=yes,width='+width+',height='+height;
	ShowWindow = window.open(cesta,'info',WinFeatures);
	}

function showpic(cesta, width, height) 
	{
	WinFeatures = 'toolbar=no,scrollbars=no,status=no,resizable=yes,width='+width+',height='+height;
	ShowWindow = window.open('showpic.php?path='+cesta,'info',WinFeatures);
	}

/*
 * Cross browser Layer visibility / Placement & Detection
 * Done by Chris Heilmann (mail@onlinetools.org) www.onlinetools.org
 * Modified by Roman Chlebec (rchlebec@studiostyle.sk) www.studiostyle.sk / added getx & gety functions
 */



function la(status,id) {

// Layer visible
if (status=="1"){
	if (document.layers) document.layers[''+id+''].visibility = "show"
	else if (document.all) document.all[''+id+''].style.visibility = "visible"
	else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"				
	}
// Layer hidden
else if (status=="0"){ 	

//	which=setxy.arguments[2];
//	clearTimeout(l[which]);

	if (document.layers) document.layers[''+id+''].visibility = "hide"
	else if (document.all) document.all[''+id+''].style.visibility = "hidden"
	else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"	
	}
		
}

// Place layer
function setxy(id,lax0,lay0) {
if (lax0){
	if (document.layers){document.layers[''+id+''].left = lax0}
	else if (document.all){document.all[''+id+''].style.left=lax0}
	else if (document.getElementById){document.getElementById(''+id+'').style.left=lax0+"px"}
	}
if (lay0){
	if (document.layers){document.layers[''+id+''].top = lay0}
	else if (document.all){document.all[''+id+''].style.top=lay0}
	else if (document.getElementById){document.getElementById(''+id+'').style.top=lay0+"px"}
	}
}

	/**
	 * diky ListApart - aktivuje CSS valid roletove menu v IE
	 */
		activateMenu = function(nav) {
		    /* currentStyle restricts the Javascript to IE only */
			if (document.all && document.getElementById(nav)) {  
		        var navroot = document.getElementById(nav);
		        /* Get all the list items within the menu */
		        var lis=navroot.getElementsByTagName("LI");  
		        for (i=0; i<lis.length; i++) {
		           /* If the LI has another menu level */
		            if(lis[i].lastChild.tagName=="UL"){
		                /* assign the function to the LI */
		             	lis[i].onmouseover=function() {	
		                   /* display the inner menu */
		                   this.lastChild.style.display="block";
		                }
		                lis[i].onmouseout=function() {                       
		                   this.lastChild.style.display="none";
		                }
		            }
		        }
		    }
		}

	/*
	window.onload= function() {
	    // pass the function the id of the top level UL 
	    // remove one, when only using one menu 
	    activateMenu('menu'); 
	}
	*/

