var sz=M.U(M,"AdfDhtmlTrainPeer",p);v("AdfDhtmlTrainPeer",sz);
sz.prototype.q=function(a,b){var d=b.getElementsByTagName("table")[0];this.$d="vertical"==a.getLayout();if(d!=n){if(this.uN=this.$d?d.rows:d.rows[0].cells,this.Qwa=l,!this.$d&&w.b.G()==w.ed&&1.9>w.b.nb())for(var e,d=-1,f=w.fa();e=this.uN[++d];)if(e=e.getElementsByTagName("tr")[1])if(e=e.getElementsByTagName("div")[0]){var g=f.getComputedStyle(e);if(g=f.$i(g,"width"))length=w.ua(g),0<length&&(e.style.width=length+4+"px")}}else this.Qwa=p};z.a("AdfDhtmlTrainPeer.prototype.InitDomElement",{q:sz.prototype.q});
sz.m=function(){this.a7a="p_AFSelected";this.NMa="AFOverflowElement";this.UMa="parentStart";this.TMa="parentEnd"};v("AdfDhtmlTrainPeer.InitSubclass",sz.m);sz.prototype.ja=t(l);z.a("AdfDhtmlTrainPeer.prototype.needsResizeNotify",{ja:sz.prototype.ja});
sz.prototype.se=function(a){this.h();if(!this.Fa){a=a.e();if(!this.Qwa||!Oi.b1(a))return;this.Fa=new Oi(a,this,"both","after",this.$d?"vertical":"horizontal");for(var b,d=-1;b=this.uN[++d];)if(!sz.Jwa(b,a)){this.Fa.un();this.Fa.addElement(b);var e=d,f=a;0<e&&tz(this,this.uN[e-1],f);tz(this,this.uN[e+1],f,l);b=this.MA(b);this.Fa.lp(b)}}this.Fa.Nf()};z.a("AdfDhtmlTrainPeer.prototype.resizeNotify",{se:sz.prototype.se});
sz.prototype.Z=function(a){delete this.uN;this.Fa&&(this.Fa.lv(),delete this.Fa);sz.f.Z.call(this,a)};z.a("AdfDhtmlTrainPeer.prototype.ComponentRemoved",{Z:sz.prototype.Z});function tz(a,b,d,e){b&&!sz.Jwa(b,d)&&(b=b.getElementsByTagName("table")[0],(e=a.$d?b.rows[e?0:2].cells[1]:b.rows[0].cells[e?0:2])&&e.firstChild&&a.Fa.addElement(a.$d?e:e.firstChild))}
sz.prototype.MA=function(a){var b=a.ownerDocument.createElement("div"),d=F.c.u();H.n(b,d.getStyleClass(sz.NMa));var d=a.id,e=F.c.j(d);a=(this.$d?a.cells[1].getElementsByTagName("a")[0]:a.getElementsByTagName("tr")[1].getElementsByTagName("a")[0]).cloneNode(l);b.appendChild(a);e.getDisabled()||(a.href="#",a.onclick="return false;",a.yj=d,d=this.o(this.L1a),w.b.S(a,"click",d));return b};sz.prototype.L1a=function(a){a=w.b.T(a).yj;a=F.c.j(a);bb.v(a,a.getPartialSubmit())};
sz.prototype.Fd=function(a,b,d,e){b=a.e();a=xa.count(b,":");B.assert(0<=d.indexOf(b));d=d.substring(b.length+1);b=d.indexOf(":");0<b&&e.push([a+1,d.substring(0,b)])};z.a("AdfDhtmlTrainPeer.prototype.ConvertClientIdToLocator",{Fd:sz.prototype.Fd});sz.prototype.Jd=function(a,b){var d=this.h(),e=H.Ua(d,"tbody");if(!e)return n;var f=a.getLayout();"string"==typeof b&&(b=parseInt(b));0==b?d="vertical"==f?H.ca(e):H.Ua(d,"td"):(d="vertical"==f?e:H.Ua(e,"tr"),d=H.Tj(d,1,b));return d?d.id:n};
z.a("AdfDhtmlTrainPeer.prototype.convertLocatorToClientId",{Jd:sz.prototype.Jd});sz.Jwa=function(a,b){var d=M.g(b,sz.UMa),e=M.g(b,sz.TMa);return a.id?a.id===d||a.id===e?l:p:p};