version = navigator.appVersion.toLowerCase(); agent = navigator.userAgent.toLowerCase(); ie = (version.indexOf('msie')>-1); ie50 = (version.indexOf('msie 5.0')>-1); win = (version.indexOf('windows')>-1); opera = (agent.indexOf('opera')>-1); function cl(sid,pos,elm,dom) { var muri = "?clk=" + pos + "&sid=" + sid + "&url=" + elm.href; var mi = new Image(); mi.src=muri; startTime = (new Date()).getTime(); while ( (!mi.complete) && (((new Date).getTime() - startTime) < 100) ); return true; } function popup(href) { window.open(href); } function infoheader() { document.write('Všechny informace\074br /\076'); } function otevriOkno(url, jmeno, w, h) { if (document.all) { w = w + 20; h = h + 10; } popupWin = window.open(url, jmeno, 'resizable=1,top=20,left=20,menubar=0,scrollbars=yes,width='+ w +',height='+ h); } function setWindow() { imgx = document.img.width; imgy = document.img.height; if(document.img.width > 984) { imgx = 1024; } else { imgx += 40; } if(document.img.height > 723) { imgy = 768; } else { imgy += 55; } window.resizeTo(imgx, imgy) } function prn() { document.write('\074a href=\"javascript:goprn();\"\076tisknout stránku\074/a\076, '); } function goprn() { if(window.print) { window.print(); } else { alert("Stránky jsou připraveny pro tisk.\nVe svém prohlížeči zvolte Tisk/Print."); } } function zpet() { document.write('\074input type="button" value="Zpět" onclick="history.back()" /\076 '); } function zavriOkno() { document.write('\074p\076\074a href="#" onclick="javascript: window.close();"\076Zavřít okno\074/a\076\074/p\076'); } function display (elementID) { var id; if ((ie) &! (opera)) { id = "area" + elementID; if (document.all.item(id)) document.all.item(id).style.display = "block"; } else { id = "area" + elementID; if (document.getElementById(id)) document.getElementById(id).style.display = "block"; } } function undisplay (elementID) { var id; if ((ie) &! (opera)) { id = "area" + elementID; if (document.all.item(id)) document.all.item(id).style.display = "none"; } else { id = "area" + elementID; if (document.getElementById(id)) document.getElementById(id).style.display = "none"; } } function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 1000) { Geti() document.getElementById('info-text').style.display="block" document.getElementById('ticker').innerHTML="" InsertAhref() } else { document.getElementById('info-text').style.display="none" ticker_timer = setTimeout('Ticker()',5000); } } function Geti() { ticker_i=Math.round(Math.random()* (aTicker.length - 1)); if(ticker_i==ticker_previous_i) {Geti()} } function ShowTicker() { document.getElementById('tickerhref').innerHTML=aTicker[ticker_i].substring(ticker_j, 0) if(ticker_j < aTicker[ticker_i].length) { ticker_j = ticker_j + 1 ticker_timer = setTimeout('ShowTicker()',30); } else { ticker_j = 0 ticker_previous_i = ticker_i ticker_timer = setTimeout('Ticker()',5000); } } function InsertAhref() { document.getElementById('ticker').innerHTML=aTickerHref[ticker_i] ShowTicker() }