/* SimpleMenu (c)2005 michal@prolidi.cz */
/* 08.08.2007 bg upravy pro VGP */

var bgc1="";
var bgc2="#892D1E";
var brc1="";
var brc2="black";
var bpc1="";
var bpc2="white";

var scht=new Array;
function ukaz(co,jak) {
	cop="p" + co.charAt(co.length - 1);
	//leftPosition=document.getElementById(cop).offsetParent.offsetLeft;
	leftPosition=document.getElementById(cop).offsetLeft;
	document.getElementById(co).style.left=leftPosition+"px";
	if(jak==1) {
		typ="none";
		document.getElementById(cop).style.backgroundColor=bgc1;
		document.getElementById(cop).style.borderColor=brc1;
		document.getElementById(cop).style.color=bpc1;
	} else {
		typ="block";
		document.getElementById(cop).style.backgroundColor=bgc2;
		document.getElementById(cop).style.borderColor=brc2;
		document.getElementById(cop).style.color=bpc2;
	}
	//document.getElementById(cop).style.setProperty('color','#00FF00',null);
	document.getElementById(co).style.display=typ;
	if(scht[co]) clearTimeout(scht[co]);
	
	//alert(cop+" / "+leftPosition);
}
function schovej(co) {
	scht[co]=setTimeout("ukaz('"+co+"',1)",100);
}


function OpenWindow(url,s,w,h) {
	if(!s || s=="") s="no";
	if(!w || w=="") w=screen.width;
	if(!h || h=="") h=screen.height;
	popupWin = window.open(url, 'okno', 'menubar=mo, toolbar=no, location=no, directories=no, status=no, scrollbars='+s+', resizable=no, dependent, width='+w+', height='+h+', left=200, top=250');
	popupWin.focus();
}