    var click_dis = false;

    function roll(item) {
        var pom;
        if (item.classNameRoll) {
            pom = item.classNameRoll;
            item.classNameRoll = item.className;
            item.className = pom;
        } else {
            item.classNameRoll = item.className;
            item.className = 'active';
        }
    }

    function clickme(item) {
        var pom;
        if (click_dis) {
            click_dis = false;
            return;
        }
        if (item.className == item.classNameRoll) {
            item.classNameRoll = item.classNameClick;
            item.className = 'activ';
        } else {
            item.classNameClick = item.classNameRoll
            item.className = 'click';
            item.classNameRoll = 'click';
        }
    }

    function openPage(url, target, width, height) {
        lefti = (window.screen.width / 2) - (width / 2);
        topi = (window.screen.height / 2) - (height / 2);

        options = 'margin=5,scrollbars=yes,toolbar=0,resizable=yes,menubar=0'+(width>0&&height>0?',top=' + topi + ',left=' + lefti + ',width=' + width + ',height=' + height:'');
        var win = window.open(url, target, options);
        win.focus();

        //zastaveni pripadneho probublavani
        click_dis = true;

        return (typeof(win) != 'object');
    }

    function show(obj, status) {
        document.getElementById(obj).style.display = status?'block':'none';
    }

    function hide(elId) {
        document.getElementById(elId).style.visibility = "hidden";
    }
