function kom(evt,textik) {
	//zmenit text
	document.getElementById('text').innerHTML='<img src="grafika/sipka.gif" width="7" height="8" alt="" border="0"> '+textik

	//souradnice
	if (document.all) {
		levomys=parseInt(evt.x)
		horemys=document.body.scrollTop+parseInt(evt.y)
		}
	else {
		levomys=parseInt(evt.pageX)
		horemys=document.body.scrollTop+parseInt(evt.pageY)
		}

	//rozmery stranky
	//------sirka textu - priblizne
	if (textik.replace('<br>','\n').indexOf('\n')==-1) {
		txtl=textik.length;
		}
	else {
		radky=textik.replace('<br>','\n').split('\n');
		txtev='Math.max('
		for (i=0;i<radky.length;i++) {
			if (i!=0) txtev=txtev+',';
			txtev=txtev+radky[i].length
			}
		txtev=txtev+')'
		txtl=eval(txtev)
		}

	sirkastr=document.body.clientWidth-(txtl*7+16)
	vyskastr=document.body.scrollTop+document.body.clientHeight

	altt=horemys+20
	altl=Math.min(levomys-3,sirkastr)


	document.getElementById('text').style.top=altt
	document.getElementById('text').style.left=altl
	objeveni=setTimeout("document.getElementById('text').style.visibility='visible'",400);
	}

function pryc() {
	document.getElementById('text').style.visibility='hidden'
	clearTimeout(objeveni)
	}

function mail(domena,jmeno) {
	document.write('<a href="mailto:'+jmeno+'@'+domena+'">'+jmeno+'@'+domena+'</a>')
	}

function okno(url,sirka,vyska) {
	window.open(url,'','width='+sirka+',height='+vyska+',scrollbars=no,resizable=no')
	}

function ion(co) {
	co.style.backgroundColor='#FFFAE8';
	}

function ipryc(co) {
	co.style.backgroundColor='white';
	}

function btno(co) {
	co.style.borderColor='#64ACD2';
	co.style.backgroundColor='#64ACD2';
	}

function btnp(co) {
	co.style.borderColor='#3893C2';
	co.style.backgroundColor='#3893C2';
	}

function smenu(co) {
	url=co.options[co.selectedIndex].value;
	if (url!='') window.location.href=url;
	}