ven=window.setTimeout("window.top.location='../index.htm'",600000);


document.oncontextmenu=copyright;
function copyright() {hr=event.srcElement.href; hrs="";
if (hr) hrs=hr.substr(hr.lastIndexOf("/")+1,50);
alert("© Miroslav Pikous\n\n"+hrs); return true; }


document.onkeydown=ovladani;
function nic(){};
function ovladani(e)
{if(e) {event = e};
 aa = event.keyCode;
 if ((window.location.href.indexOf('uvod-cesky.htm')>-1)||(window.location.href.indexOf('barokoaselske.htm')>-1)||
     (window.location.href.indexOf('svobodnablata.htm')>-1)||(window.location.href.indexOf('skody.htm')>-1)||
     (window.location.href.indexOf('zniceno.htm')>-1)||(window.location.href.indexOf('vylety.htm')>-1)||
     (window.location.href.indexOf('sos.htm')>-1)
    )
{
switch(aa){
                 case 85: window.top.location='uvod-cesky.htm'; break;
                 case 77: window.top.location='mapa/mapa.htm'; break;
                 case 83: window.top.location='slovnik/slovnik.htm'; break;
                 case 75: window.top.location='intro.htm'; break;
                 case 90: history.back(); break;
                 case 89: history.back(); break;
                 default: break; }
}
else
{
switch(aa){
                 case 85: window.top.location='../uvod-cesky.htm'; break;
                 case 77: document.getElementById("map").click(); break;
                 case 83: window.top.location='../slovnik/slovnik.htm'; break;
                 case 75: window.top.location='../intro.htm'; break;
                 case 90: history.back(); break;
                 case 89: history.back(); break;
                 default: break;}
}}

function ZobrazObrazek(ktery,popis){
          podpis="© Miroslav Pikous";
          obrazek=window.open("","obrazek","scrollbars,width=800,height=600,top=0,left=0");
          //obrazek.blur();
          obrazek.document.open();
          obrazek.document.write("<html><head><title>Obrázek<\/title><\/head>");
          obrazek.document.write("<body bgcolor='#CC9933' onBlur='self.close();' onContextmenu='alert(\"© Miroslav Pikous\");return true;' ><center style='color:brown;font-size:120%;'>",unescape(popis),"<br><img src=");
          obrazek.document.write(ktery," id='obr' style='border:outset 5px white' ");
          obrazek.document.write(" onLoad='resizeTo(obr.width+60,obr.height+100);'>");
          obrazek.document.write("<\/center><\/body><\/html>");
          obrazek.document.close();
          obrazek.focus();
           }
function smrskL(){if (document.body.clientWidth<950)
                    {if (vlevo.width>270) vlevo.width=270};};
function smrskR(){if (document.body.clientWidth<950)
                    {if (vpravo.width>270) vpravo.width=270};};

// Zobrazit obrázek vlevo s klikacím odkazem
function OL(kt,pop)
{if (kt.lastIndexOf(".jpg")>0) kt=kt.substring(0,kt.lastIndexOf(".jpg"));
 if (kt.lastIndexOf("-m")>0) kt=kt.substring(0,kt.lastIndexOf("-m"));
if ( arguments.length == 4 ) 
rozmery = " width = '"+arguments[2]+"' height='"+arguments[3]+"'";  else rozmery="";
document.write("<a href=javascript:ZobrazObrazek('",kt,".jpg','",escape(pop),"')>");
document.write("<img src='",kt,"-m.jpg' align='left'",rozmery," alt='",pop,"' title='",pop,"'  id='vlevo' onLoad='smrskL();')><\/a>")};

// Zobrazit obrázek vpravo s klikacím odkazem
function OR(kt,pop)
{if (kt.lastIndexOf(".jpg")>0) kt=kt.substring(0,kt.lastIndexOf(".jpg"));
 if (kt.lastIndexOf("-m")>0) kt=kt.substring(0,kt.lastIndexOf("-m"));
if ( arguments.length == 4 ) 
rozmery = " width = '"+arguments[2]+"' height='"+arguments[3]+"'";  else rozmery="";
document.write("<a href=javascript:ZobrazObrazek('",kt,".jpg','",escape(pop),"')>");
document.write("<img src='",kt,"-m.jpg' align='right'",rozmery," alt='",pop,"' title='",pop,"' id='vpravo' onLoad='smrskR();'><\/a>")};

// Zobrazit obrázek uprostřed s klikacím odkazem
function OM(kt,pop)
{if (kt.lastIndexOf(".jpg")>0) kt=kt.substring(0,kt.lastIndexOf(".jpg"));
 if (kt.lastIndexOf("-m")>0) kt=kt.substring(0,kt.lastIndexOf("-m"));
if ( arguments.length == 4 ) 
rozmery = " width = '"+arguments[2]+"' height='"+arguments[3]+"'";  else rozmery="";
document.write("<a href=javascript:ZobrazObrazek('",kt,".jpg','",escape(pop),"')>");
document.write("<img src='",kt,"-m.jpg' align='middle'",rozmery," alt='",pop,"' title='",pop,"'><\/a>")};