Ext.namespace("Axi","Axi.UI");Axi.Messenger=function(){if(typeof Axi.Messenger.instance!="undefined"){return false}Axi.Messenger.instance=this;var A;var D=0;function C(){var F=Ext.DomHelper.insertFirst(document.body,{tag:"table",style:"z-index: 20000; width: 650px; left: 50%; margin-left: -325px; position: absolute;",html:'<tr><td id="x-message-container" align="center"></td></tr>'},true);var E=Ext.DomQuery.selectNode("#x-message-container");return E?E:false}function B(J,G,K){var F,E;if(!A){A=C()}F='<table class="x-axi-window-message x-axi-window-message-'+G+'" cellpadding="0" cellspacing="0"><tr><td class="x-box-ml"></td><td class="x-box-mc">'+J+'</td><td class="x-box-mr"><a href="#" class="close"></a></td></tr><tr><td class="x-box-bl"></td><td class="x-box-bc"></td><td class="x-box-br"></td></tr></table>';var I=Ext.DomQuery.select(".x-axi-window-message");if(!I.length){E=Ext.DomHelper.insertFirst(A,{html:F},true)}else{E=Ext.DomHelper.insertAfter(I[I.length-1].parentNode,{html:F},true)}E.slideIn("t",{callback:function(){++D}}).pause(K).slideOut("t",{callback:function(){--D},remove:true});var H=new Ext.Element(Ext.DomQuery.selectNode("a.close",E.dom));H.on("click",function(){var L=this.findParentNode("div");L.parentNode.removeChild(L);--D})}this.constructor=function(){};this.info=function(E){B(E,"info",5)};this.warn=function(E){B(E,"warning",10)};this.error=function(E){B(E,"error",10)};this.getCounter=function(){return D};this.constructor.apply(this,arguments)};Axi.Messenger.instance;Axi.Messenger.getInstance=function(){return Axi.Messenger.instance};