
function showart(ktery, tit, lan) {
// pro Netscape a Mozillu otevře nové okno a v něm zobrazí článek,
// pro IE a Operu článek pouze zviditelní
// úprava 12.9.2004 zkusíme display:block i pro Netscape a Mozillu
var nn = navigator.appName;
var tfeat = "menubar=no, status=no, scrollbars=yes, resizable=yes, left=0, top=0";
if (nn == "Netscape05" || nn == "Mozilla05")
{
newWin = window.open('ShowArt.php?pim=' + ktery + '&tt=' + tit + '&pism=' + lan, '', tfeat);
newWin.focus();
}
else document.getElementById(ktery).style.display='block';
}

function ShowBig(ktery,rozmer,tit) {
var stred = rozmer.indexOf('x', 0);
var konec = rozmer.length;
sirka = eval(rozmer.substring(0, stred));
vyska = eval(rozmer.substring(stred+1, konec));
var ofsetLeft = 0;
var ofsetTop = 0;
var tfeat = "menubar=no, status=no, scrollbars=";
if (((sirka+32) > screen.availWidth) || ((vyska+48) > screen.availHeight))
	tfeat += "yes"
else
	tfeat += "no";
if (navigator.appName != "Opera") {
	// IE, Netscape, Mozilla - small, centered
	sirka += 32;
	vyska += 24;
	ofsetLeft = Math.floor((screen.availWidth-32 - sirka)/2);
	ofsetTop = Math.floor((screen.availHeight-48 - vyska)/2);
	tfeat += ", width=" + sirka + ", height=" + vyska;
	}
tfeat += ", left=" + ofsetLeft + ", top=" + ofsetTop ;
newWin = window.open('ShowIm.php?pim=' + ktery + '&tt=' + tit, '', tfeat);
newWin.focus();
}

function endpic() {
// dynamický styl (obrázky) - nefunguje !!!
var nn = navigator.appName;
if (nn == "Netscape" || nn == "Mozilla"){
document.getElementById('podlozka').style.height='auto';
}
}

function tick() {
	// change style of "dulezite" element
	prvek = document.getElementById("dulezite");
	prvek.style.backgroundColor = (prvek.param==0) ? "#b0efef" : "#eeeeee";
	prvek.style.color = (prvek.param==0) ? "f00" : "#600";
	prvek.param = (prvek.param==0) ? 1 : 0 ;
}

// end

