function oo(odkaz) {
    window.open(odkaz, 'obrazek', 'scrollbars=yes,resizable=yes,toolbar=no,status=no,width=200,height=200');
}

function Zobraz() {
    var konstH = 150;
    var konstW = 75;
    top.moveTo(5, 5);

    var cWidth = document.getElementById('obr').clientWidth;
    var cHeight = document.getElementById('obr').clientHeight;

    var liveScreenHeight = screen.availHeight;
    var liveScreenWidth = screen.availWidth;

    var resH = liveScreenHeight;
    var resW = liveScreenWidth;

    if ((cHeight + konstH) < liveScreenHeight) {
        resH = cHeight + konstH
    }
    ;
    if ((cWidth ) < liveScreenWidth) {
        resW = cWidth + konstW
    }
    ;

    if (null != parent && null != parent.frames['slide'] && null != parent.frames['slide'].document.getElementById('imgPanel')) {
        parent.frames['slide'].document.getElementById('imgPanel').style.width = cWidth;
    }
    var style2 = document.getElementById('nacitam').style;
    style2.display = style2.display ? "" : "none";

    // omezime minimalni vysku a sirku obsahu okna
    var minHeight = 350;
    var decorHeight = window.outerHeight - window.innerHeight;
    if (resH<minHeight+decorHeight) { resH = minHeight+decorHeight; }
    var minWidth = 600;
    var decorWidth = window.outerWidth - window.innerWidth;
    if (resW<minWidth+decorWidth) { resW = minWidth+decorWidth; }

    top.resizeTo(resW, resH);
}
function zavriokno() {
    top.close();
}

