(function($) {

    if (window.burocratos) { return false; }
    
    window.burocratos = {

        currency: function(value) {
            return value.toFixed(2);
        }

    };
    
})(jQuery);

    (function($) {
        var timeout = null;

        window.globalMessage = function(message) {
            if (timeout) { clearTimeout(timeout); }

            $('#global-message')
                .find('.inner').html(message).end()
                .css({
                        'top'       : -$('#global-message').outerHeight() + 'px'
                    ,   'display'   : 'block'
                })
                .animate({ top:0 }, 500, function() {
                    timeout = setTimeout(function() {
                        $('#global-message')
                            .animate({ 'top':-$('#global-message').outerHeight() + 'px' }, 500, function() {
                                $(this).css({ 'display':'none' });
                            })
                    }, 5000);
                });
        }
    })(jQuery);
