var PDF = {
    indicator: {
        selector: '#pdf-render-indicator',
        
        show: function() {
            $(this.selector).show();
        },
        
        hide: function() {
            $(this.selector).hide();
        },
        
        hideTimeout: function(time) {
            setTimeout('PDF.indicator.hide();', time);
        }
    },
    
    init: function() {
        this.indicator.hide();
        
        $('#pdf_link_open').click(function(){
            PDF.indicator.show();
            return true;
        });
        
        $('#pdf_link_save').click(function(){
            PDF.indicator.show();
            PDF.indicator.hideTimeout(5000);
            return true;
        });
    }
};
