ven=window.setTimeout("window.top.location='../index.htm'",600000);


document.write("<div style='position:absolute;height:auto;width:200px;border:3px brown double;color:brown; background:yellow;display:none;left:300px;top:100px;' id='CD'>");
document.write("Na Webu jsou jen náhledy, velké foto jen na CD<\/div>");


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)
{
	if (self.pageYOffset) 
  {
		yScroll = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop)
  {
		yScroll = document.documentElement.scrollTop;
	} else if (document.body) 
  {
		yScroll = document.body.scrollTop;
	}            
            
	if (self.innerHeight) {	// all except Explorer
		if(document.documentElement.clientWidth){
			windowWidth = document.documentElement.clientWidth; 
		} else windowWidth = self.innerWidth;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
	} 
 
 odshora = yScroll+100+"px";
 odleva= Math.round((windowWidth - 200)/2)+"px";
 document.getElementById("CD").style.top= odshora;      
 document.getElementById("CD").style.left=odleva;  
 if (document.getElementById("CD").style.display != "block") setTimeout('document.getElementById("CD").style.display="none"',3000); 
 document.getElementById("CD").style.display="block";


 }
          
function smrskL(){if (document.body.clientWidth<950)
                    {if (document.getElementById("vlevo").width>270) document.getElementById("vlevo").width=270};};
function smrskR(){if (document.body.clientWidth<950)
                    {if (document.getElementById("vpravo").width>270) document.getElementById("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>")};