function addBookmark(title,url) {
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,"");
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
		return true;
	}
}

function okno(soubor,sirka,vyska)  {
	window.open(soubor,'','toolbar=no,scrollbars=yes,location=no,status=no,width='+sirka+',height='+vyska+',resizable=1')
}

// ------------------------------------------ zmena tridy
function Aktivni(id)  {
  document.getElementById(id).className = "aktivni";
}

function Deaktivni(id)  {
  document.getElementById(id).className = "";
}

var states=new Array();
var mhtimeout=new Array();
function swm(id) {
	close_menus();
	if (mhtimeout[id]) cleartm(id);
	e=document.getElementById(id);
	e.style.display='inline';
}

function close_menus()
{
	hidemenu('sm1');
	hidemenu('sm2');
	hidemenu('sm3');
	hidemenu('sm4');
	hidemenu('sm5');
	hidemenu('sm6');
	hidemenu('sm7');
	hidemenu('sm8');
}

function swmo(id)
{
	cleartm(id);
	e=document.getElementById(id);
	states[id]=false;
	if (states[id]==true) e.style.display='inline'; else e.style.display='none';
}

function swmon(id)
{
	cleartm(id);
	e=document.getElementById(id);
	states[id]=true;
	if (states[id]==true) e.style.display='inline'; else e.style.display='none';
}

function tmo(id)
{
	mhtimeout[id]=setTimeout('hidemenu(\''+id+'\')',250);
}

function hidemenu(id)
{
	swmo(id);
}

function cleartm(id)
{
	if (mhtimeout[id]) clearTimeout(mhtimeout[id]);
}

function cm()
{
	return confirm('Přejete si odeslat e-mailovou zprávu pomocí výchozího poštovního klienta?');
}

var currentimg=3;

function timg_advance()
{
	e=document.getElementById('timg');
//	alert(e);
	e.innerHTML='<img src="img/topimg'+currentimg+'.jpg" alt="MEZSERVIS" width="682" height="105" border="0">';
	currentimg++;
	if (currentimg==11) currentimg=2;
	setTimeout('timg_advance()',5000);
}

<!--
	function winH() {
	   if (window.innerHeight)
	      /* NN4 a kompatibilní prohlížeče */
	      return window.innerHeight;
	   else if
	   (document.documentElement &&
	   document.documentElement.clientHeight)
	      /* MSIE6 v std. režimu - Opera a Mozilla
	      již uspěly s window.innerHeight */
	      return document.documentElement.clientHeight;
	   else if
	   (document.body && document.body.clientHeight)
	      /* starší MSIE + MSIE6 v quirk režimu */
	      return document.body.clientHeight;
	   else
	      return null;
	}

	function init_imgover(imgsrc,imgw,imgh)
	{
		fromtop=document.body.scrollTop;
		e=document.getElementById('ol');
		eio=document.getElementById('io');
		e.className='imgover';
		height=winH();
		bheight=document.body.scrollHeight;
		if (bheight>height) oh=bheight; else oh=height;
		e.style.height=oh;

		et=(height-imgh)/2+fromtop;
		eio.className='imgover-img';
		eio.style.top=et+'px';
		eio.innerHTML='<img src="'+imgsrc+'" alt="" width="'+imgw+'" height="'+imgh+'" border="0" onclick="closeimgover()" id="iim" title="Klikem zavřít obrázek">';
	}

	function closeimgover()
	{
		e=document.getElementById('ol');
		eio=document.getElementById('io');
		e.className='imgover-hidden';
		eio.className='imgover-hidden';
	}
	
function zobraz_podmenu(menu_item)
{
  document.getElementById("podmenu" + menu_item).style.visibility = "visible";
  document.getElementById("a-menu"+menu_item).className = "selected";
}

function smaz_podmenu(menu_item)
{
  document.getElementById("podmenu" + menu_item).style.visibility = "hidden";
  document.getElementById("a-menu"+menu_item).className="";
}


	
	
//-->
