em.X={sort_indicator_ascending:"sort_indicator_ascending",sort_indicator_descending:"sort_indicator_descending",filter_field:"filter_field",header_text:"header_text"};
em.prototype.z=function(a){B.Wa(a);if("sort_indicator_ascending"==a||"sort_indicator_descending"==a){var b=NA(this);if(b)return"sort_indicator_ascending"==a?H.Ua(b.rows[0].cells[0],"A"):H.Ua(b.rows[0].cells[1],"A")}else if("filter_field"==a){for(var b=this.h(),d=b.parentNode;"TR"!=d.nodeName&&d.parentNode;)d=d.parentNode;if(a=d.previousSibling)for(var e=d.cells,f=e.length,d=0;d<f;d++)if(e[d]==b){b=a.cells[d].getElementsByTagName("input");if(0<b.length&&(a=b[0],-1!=a.id.indexOf("_afrFltr")))return a;
break}}else if("filter_label"==a){b=this.h();for(d=b.parentNode;"TR"!=d.nodeName&&d.parentNode;)d=d.parentNode;if(a=d.previousSibling){e=d.cells;f=e.length;for(d=0;d<f;d++)if(e[d]==b)return b=a.cells[d].getElementsByTagName("label"),0<b.length?b[0]:a.cells[d]}}else if("header_text"==a&&(b=this.h()))return NA(this)?b.firstChild.nextSibling:b.firstChild;return n};z.a("AdfDhtmlColumnPeer.prototype.GetSubIdDomElement",{z:em.prototype.z});
function NA(a){a=a.d().e();a=M.g(a,V.At);return w.b.getElementById(a)}
em.prototype.D=function(a){if("A"==a.nodeName){var b=NA(this);if(b){if(H.oc(b.rows[0].cells[0],a))return"sort_indicator_ascending";if(H.oc(b.rows[0].cells[1],a))return"sort_indicator_descending"}}if(a.id&&-1!=a.id.indexOf("_afrFltr")&&"INPUT"==a.nodeName)return"filter_field";if("LABEL"==a.nodeName){for(var d=this.h(),e=d.parentNode;"TR"!=e.nodeName&&e.parentNode;)e=e.parentNode;if(b=e.previousSibling)for(var f=e.cells,g=f.length,e=0;e<g;e++)if(f[e]==d){d=b.cells[e].getElementsByTagName("label");if(0<
d.length){if(d[0]==a)return"filter_label"}else if(b.cells[e]==a)return"filter_label";break}}if(d=this.h())if(NA(this)){if(d.firstChild.nextSibling==a)return"header_text"}else if(d.firstChild==a)return"header_text";return vh.Sc(a,this,em.X)};z.a("AdfDhtmlColumnPeer.prototype.GetBestMatchSubId",{D:em.prototype.D});