
    var cBubble = new Object();

    cBubble.styles = new Array();

    cBubble.styles['fondstat'] = new Array();
    cBubble.styles['fondstat']['loader'] = '<div class="cbubble-fondstat-loader"><img src="user/img/ajaxbig.gif" alt="loading..." /></div>';
    cBubble.styles['right'] = new Array();
    cBubble.styles['right']['loader'] = '<div class="cbubble-right-loader"><img src="user/img/ajaxbig.gif" alt="loading..." /></div>';
    cBubble.styles['righttable'] = new Array();
    cBubble.styles['righttable']['loader'] = '<div class="cbubble-righttable-loader"><img src="user/img/ajaxbig.gif" alt="loading..." /></div>';
    cBubble.loaded = new Array();
    cBubble.timeout = null;
    cBubble.timeoutId = '';
    cBubble.timeoutStyle = '';
    cBubble.timeoutTime = 300;



    cBubble.showWrapped = function() {
        var id = cBubble.timeoutId;
        var style = cBubble.timeoutStyle;

        var el = SZN.gEl('a_' + id);

        if (!el) return false;

        if (!cBubble.loaded[id]) {
            el.innerHTML = cBubble.styles[style]['loader'];
            vytvoritZadost('ajax.php/' + LAYOUT + '&event:e_id=E_LOAD_BUBBLE&e_to=' + id);
        }

        el.style.display = "block";

        cBubble.hideSelectBoxes();


        return true;
    }

    cBubble.show = function(id, style) {
        if (cBubble.timeout != null) clearTimeout(cBubble.timeout);

        cBubble.timeoutId = id;
        cBubble.timeoutStyle = style;
        cBubble.timeout = setTimeout(cBubble.showWrapped,cBubble.timeoutTime);
    }

    cBubble.hide = function(id,style) {
        clearTimeout(cBubble.timeout);

        var el = SZN.gEl('a_' + id);

        if (!el) return false;

        el.style.display = "none";

        cBubble.restoreSelectBoxes();

        return true;
    }

    cBubble.hideSelectBoxes = function() {
        if (!BO["ie"]) return; //neni treba nic schovavat

        var selects = document.getElementsByTagName('select');
        for (var i = 0; i < selects.length; i++) {
            SZN.Dom.addClass(selects[i],'invisible');
        }
    }

    cBubble.restoreSelectBoxes = function() {
        if (!BO["ie"]) return; //neni treba nic obnovovat

        var selects = document.getElementsByTagName('select');
        for (var i = 0; i < selects.length; i++) {
            SZN.Dom.removeClass(selects[i],'invisible');
        }
    }
