var statusMessageController = new Class({
	initialize: function(element){
		this.element = $(element);

		this.scrollable = new Fx.Scroll($(document.body), {
			wait: false,
			duration: 400,
			transition: Fx.Transitions.Quad.easeInOut
			});
		},

	setClass: function(name){
		this.removeClasses();
		this.element.addClass(name);
		},

	removeClasses: function(){
		this.element.set("class", "");
		},

	message: function(message){
		this.element.set("html", message);
		},

	information: function(message){
		this.setClass("info");
		this.message(message);
		},

	success: function(message){
		this.setClass("success");
		this.message(message);
		},

	warning: function(message){
		this.setClass("warning");
		this.message(message);
		},

	error: function(message){
		this.setClass("error");
		this.message(message);
		}
	});
