Xinha.PanelDialog=function(E,D,C,B){this.id={};this.r_id={};this.editor=E;this.document=document;this.rootElem=E.addPanel(D);var A=this;if(typeof B=="function"){this._lc=B}else{if(B){this._lc=function(F){return Xinha._lc(F,B)}}else{this._lc=function(F){return F}}}C=C.replace(/\[([a-z0-9_]+)\]/ig,function(F,G){if(typeof A.id[G]=="undefined"){A.id[G]=Xinha.uniq("Dialog");A.r_id[A.id[G]]=G}return A.id[G]}).replace(/<l10n>(.*?)<\/l10n>/ig,function(G,F){return A._lc(F)}).replace(/="_\((.*?)\)"/g,function(G,F){return'="'+A._lc(F)+'"'});this.rootElem.innerHTML=C};Xinha.PanelDialog.prototype.show=function(A){this.setValues(A);this.editor.showPanel(this.rootElem)};Xinha.PanelDialog.prototype.hide=function(){this.editor.hidePanel(this.rootElem);return this.getValues()};Xinha.PanelDialog.prototype.onresize=Xinha.Dialog.prototype.onresize;Xinha.PanelDialog.prototype.toggle=Xinha.Dialog.prototype.toggle;Xinha.PanelDialog.prototype.setValues=Xinha.Dialog.prototype.setValues;Xinha.PanelDialog.prototype.getValues=Xinha.Dialog.prototype.getValues;Xinha.PanelDialog.prototype.getElementById=Xinha.Dialog.prototype.getElementById;Xinha.PanelDialog.prototype.getElementsByName=Xinha.Dialog.prototype.getElementsByName;