function A_kd(a){a=a.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.la;return AdfPage.PAGE.findComponent(a).getPeer().getDomElement()}function A_Ec(a,b){if(b==A_a||b==A_)b=A_kd(a);return AdfDhtmlBaseGanttPeer.Mp(b,"db")}function A_M(a,b){if(b==A_a||b==A_)b=A_kd(a);var c=AdfDhtmlBaseGanttPeer.Mp(b,"scroller");return c!=A_?c:b}
AdfDhtmlBaseGanttPeer.Mp=function(a,b){AdfAssert.assert(a!=A_,"Table peer cannot get a child by sub ID if the parent is null!");for(var c=a.id+"::"+b,d=a.childNodes,e=0;e<d.length;e++)if(c==d[e].id)return d[e];return A_};function A__c(a,b,c){var d=A_;a=A_Ec(a,c).childNodes;for(c=0;c<a.length&&!d;c++){var e=a[c],f=e.rows;if(f)for(var g=0;g<f.length&&!d;g++){var h=f[g];if(b==h.getAttribute(AdfDhtmlBaseGanttPeer.W)){d={tr:h,index:e.startRow+g,block:e};break}}}return d}
function A_Sc(a){var b=AdfDhtmlBaseGanttPeer.Bp,c=a.jF;if(c)return c;for(var d=A_M(a).scrollTop,e=AdfAgent.AGENT,f=A_Ec(a).childNodes,g=f.length,c={},b=b==A_a?AdfDhtmlBaseGanttPeer.Bp:b,h=0;h<g&&!c.P;++h){var l=f[h],m=l.Qn,n=l.rows,p=0;n!=A_&&(p=n.length);for(var q=0;q<p;++q)if(l=n[q],l.offsetTop+l.offsetHeight+m-b>d){m=e.getAttribute(l,AdfDhtmlBaseGanttPeer.W);c.P=m;c.Ia=l;break}}return a.jF=c}
function A_ld(a,b){for(var c=AdfAgent.AGENT,d=A_Ec(a).childNodes,e=d.length,f={},g=0;g<e&&!f.P;++g)for(var h=d[g].rows,l=h.length,m=0;m<l;++m){var n=h[m],p=c.getAttribute(n,AdfDhtmlBaseGanttPeer.W);if(b==A_){f.P=p;f.Ia=n;break}else if(p==b){f.vL=p;m+1<l?(n=h[m+1],p=c.getAttribute(n,AdfDhtmlBaseGanttPeer.W),f.P=p,f.Ia=n):g+1<e&&(h=d[g+1].rows,0<h.length&&(n=h[0],p=c.getAttribute(n,AdfDhtmlBaseGanttPeer.W),f.P=p,f.Ia=n));break}}return f}
function A_Rc(a,b){var c;c||(c=A_kd(a));var d=A_md(a);d.innerHTML=b;var e=d.style;if("none"==e.display){e.zIndex=5E3;var f=A_Ec(a);e.visibility="hidden";e.display="block";var g=AdfAgent.AGENT.getElementById(AdfDhtmlBaseGanttPeer.createSubId(A_L(a),A_,"ch")).offsetHeight;e.top=g+Math.floor(((a.jd?f.offsetHeight:c.clientHeight-g)-d.offsetHeight)/2)+"px";c="25px";c=Math.floor(f.offsetWidth/2-d.offsetWidth/2)+"px";AdfDhtmlBaseGanttPeer.YG()?e.left=c:e.right=c;e.visibility="visible"}}
AdfDhtmlBaseGanttPeer.prototype._hideStatus=function(){var a=A_md(this),b=AdfAgent.AGENT,c=A_M(this),d,e;if(b=c!=A_&&b.getPlatform()==AdfAgent.IE_PLATFORM&&8<=b.getVersion())d=c.scrollTop,e=c.scrollLeft;a.style.display="none";b&&(c.scrollTop=d,c.scrollLeft=e)};function A_md(a){var b;if(b==A_a||b==A_)b=A_kd(a);return AdfDhtmlBaseGanttPeer.Mp(b,"sm")}AdfDhtmlBaseGanttPeer.YG=function(){return AdfPage.PAGE.getLocaleContext().isRightToLeft()};
AdfDhtmlBaseGanttPeer.prototype.cr=function(){var a=this.getComponent().getClientId(),b=page.findComponent(a+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.Zb),c=b.getSelectedRowKeys();c&&!AdfCollections.isEmpty(c)&&(c={},b.setSelectedRowKeys(c),AdfPage.PAGE.findComponent(a+AdfDhtmlBaseGanttPeer.u+AdfDhtmlBaseGanttPeer.la).setSelectedRowKeys(c))};A_h("AdfDhtmlBaseGanttPeer.prototype._selUnselectAll",AdfDhtmlBaseGanttPeer.prototype.cr);
function A_gd(a){a=A_Ec(a).childNodes;0<a.length?(a=a[0],AdfAssert.assert(a.rows!=A_&&0<a.rows.length,"Unable to get row key by index when the block contains no rows!"),a=AdfAgent.AGENT.getAttribute(a.rows[0],AdfDhtmlBaseGanttPeer.W)):a=A_;return a}AdfDhtmlBaseGanttPeer.prototype.hw=function(){var a=A_Ec(this).childNodes,b=a.length;return 0<b?this.oq(a[b-1]):A_};
AdfDhtmlBaseGanttPeer.prototype.oq=function(a){AdfAssert.assert(a.rows!=A_&&0<a.rows.length,"Unable to get row key by index when the block contains no rows!");var b=AdfAgent.AGENT;a=a.rows[a.rows.length-1];var c=b.getAttribute(a,AdfDhtmlBaseGanttPeer.W);c==A_&&a.previousSibling&&(c=b.getAttribute(a.previousSibling,AdfDhtmlBaseGanttPeer.W));return c};