jQuery.fn.displayMessage = function (type, message)
{
    return this.each(function ()
    {
        $(this).hide(); // Hide it
        
        if (type == 'info' || type == 'error')
        {
            switch (type)
            {
                case 'info':
                    $(this).css('color', 'green');
                    break;
                
                case 'error':
                    $(this).css('color', 'red');
                    break;
            }
            
            $(this).css('font-weight', 'bold');
            $(this).html(message); // Display text
            $(this).fadeIn(500); // Fade in (1s)
        }
    });
    
};
