var Notify=new Class({Implements:[Events],notifier:false,create:function(){this.notifier=(new Element("div",{"class":"notifier_body"})).inject($(document.body))},setTimer:function(){this.notifier.timer=function(){this.hide()}.delay(6E3,this);this.notifier.addEvents({mouseenter:function(){this.stopTimer()}.bind(this),mouseleave:function(){this.setTimer()}.bind(this),click:function(){this.hide()}.bind(this)})},stopTimer:function(){$clear(this.notifier.timer)},show:function(a,b){this.notifier||this.create(); this.notifier.set({html:a,"class":"notifier_body "+b}).show().fade(1);this.setTimer()},hide:function(){this.notifier.fade(0);this.stopTimer()},warning:function(a){this.show(a,"warning")},message:function(a){this.show(a,"message")},toElement:function(){return this.notifier}}),Notifier=new Notify;
