Could use the notification class to set the type dynamically?
Scroll down about two thirds:
Dynamic CSS Class
You can apply different dynamic CSS Classes to your elements, depending on different conditions. In our example we will apply a custom class if a value returned by our database query is less than 5000.