$D=YAHOO.util.Dom;$E=YAHOO.util.Event;var yuiLoadingPanel=function(A){A=A==undefined?new Array():A;A.id=A.id==undefined?"yuiLoadingPanel":confi.id;A.header=A.header==undefined?"Loading, please wait...":A.header;A.width=A.width==undefined?"240px":A.width;A.modal=A.modal==undefined?false:A.modal;this.conf=A;
this.cancelEvent=new YAHOO.util.CustomEvent("cancelEvent",this);this.init();};yuiLoadingPanel.prototype={init:function(){var B=new YAHOO.widget.Panel(this.conf.id,{width:this.conf.width,fixedcenter:true,close:false,draggable:false,modal:this.conf.modal,visible:false,underlay:"none",zIndex:1});B.setBody(this.conf.header+'<img src="'+ctx+'/images/loading_panel.gif" />');
B.render(document.body);$D.addClass(B.id,"tcc_lightboxLoader");var A=document.createElement("a");$D.setStyle(A,"cursor","pointer");A.appendChild(document.createTextNode("Cancel"));$E.on(A,"click",function(C,D){D.self.loadingPanel.hide();D.self.cancelEvent.fire();},{self:this});B.appendToBody(document.createElement("br"));
B.appendToBody(A);$D.setStyle(B.body,"text-align","center");$D.addClass(document.body,"yui-skin-sam");this.loadingPanel=B;},show:function(A){if(A!=undefined){this.loadingPanel.setHeader(A);}else{this.loadingPanel.setHeader(this.conf.header);}this.loadingPanel.show();},hide:function(){this.loadingPanel.hide();
}};