var mostrarLoading = function(){
};

$.overlay = {
    div : null,
    
    create : function(){
        var load = $('#load-overlay');
        
        if (load.length == 0) {
            load = $('<div />').css({
                'background': 'url(images/backalpha.png)',
                'position': 'fixed',
                'top': 0,
                'left': 0,
                'opacity': 1,
                'overflow' : 'auto'
            }).attr('id', 'load-overlay').appendTo($('body'));		
        }

        load.hide(0);
        this.div = load;    

        return this;
    },

    resize : function(){        
        this.div.width($(document).width());
        this.div.height($(document).height());
    },

    show : function(content){
        if(this.div == null) this.create();
        this.resize();       
        
        this.div.append(content).hide().fadeIn('fast');

        return this;
    },

    hide : function(){
        if(this.div == null) this.create();
        this.div.fadeOut('fast').empty();
        
        return this;
    },

    content : function(child){
        child = child || '*';
        
        return this.div.find('> ' + child);
    }
};
