function A_gd(a){a=a.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.sa;return AdfPage.PAGE.findComponent(a).getPeer().getDomElement()}function A_F(a,b){if(void 0==b||null==b)b=A_gd(a);return AdfDhtmlBaseGanttPeer.sq(b,"db")}function A_G(a,b){if(void 0==b||null==b)b=A_gd(a);var c=AdfDhtmlBaseGanttPeer.sq(b,"scroller");return null!=c?c:b}
AdfDhtmlBaseGanttPeer.sq=function(a,b){AdfAssert.assert(null!=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 null};function A_Xc(a,b,c){var d=null;a=A_F(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.ca)){d={tr:h,index:e.startRow+g,block:e};break}}}return d}
function A_Pc(a){var b=AdfDhtmlBaseGanttPeer.hq,c=a.bG;if(c)return c;for(var d=A_G(a).scrollTop,e=AdfAgent.AGENT,f=A_F(a).childNodes,g=f.length,c={},b=void 0==b?AdfDhtmlBaseGanttPeer.hq:b,h=0;h<g&&!c.Y;++h){var l=f[h],m=l.zo,n=l.rows,p=0;null!=n&&(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.ca);c.Y=m;c.Ra=l;break}}return a.bG=c}
function A_hd(a,b){for(var c=AdfAgent.AGENT,d=A_F(a).childNodes,e=d.length,f={},g=0;g<e&&!f.Y;++g)for(var h=d[g].rows,l=h.length,m=0;m<l;++m){var n=h[m],p=c.getAttribute(n,AdfDhtmlBaseGanttPeer.ca);if(null==b){f.Y=p;f.Ra=n;break}else if(p==b){f.lM=p;m+1<l?(n=h[m+1],p=c.getAttribute(n,AdfDhtmlBaseGanttPeer.ca),f.Y=p,f.Ra=n):g+1<e&&(h=d[g+1].rows,0<h.length&&(n=h[0],p=c.getAttribute(n,AdfDhtmlBaseGanttPeer.ca),f.Y=p,f.Ra=n));break}}return f}
function A_Oc(a,b){var c;c||(c=A_gd(a));var d=A_id(a);d.innerHTML=b;var e=d.style;if("none"==e.display){e.zIndex=5E3;var f=A_F(a);e.visibility="hidden";e.display="block";var g=AdfAgent.AGENT.getElementById(AdfDhtmlBaseGanttPeer.createSubId(A_E(a),null,"ch")).offsetHeight;e.top=g+Math.floor(((a.Sd?f.offsetHeight:c.clientHeight-g)-d.offsetHeight)/2)+"px";c="25px";c=Math.floor(f.offsetWidth/2-d.offsetWidth/2)+"px";AdfDhtmlBaseGanttPeer.SH()?e.left=c:e.right=c;e.visibility="visible"}}
AdfDhtmlBaseGanttPeer.prototype._hideStatus=function(){var a=A_id(this),b=AdfAgent.AGENT,c=A_G(this),d,e;if(b=null!=c&&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_id(a){var b;if(void 0==b||null==b)b=A_gd(a);return AdfDhtmlBaseGanttPeer.sq(b,"sm")}AdfDhtmlBaseGanttPeer.SH=function(){return AdfPage.PAGE.getLocaleContext().isRightToLeft()};
AdfDhtmlBaseGanttPeer.prototype.Pr=function(){var a=this.getComponent().getClientId(),b=page.findComponent(a+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.Pb),c=b.getSelectedRowKeys();c&&!AdfCollections.isEmpty(c)&&(c={},b.setSelectedRowKeys(c),AdfPage.PAGE.findComponent(a+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.sa).setSelectedRowKeys(c))};AdfDhtmlBaseGanttPeer.prototype._selUnselectAll=AdfDhtmlBaseGanttPeer.prototype.Pr;
function A_cd(a){a=A_F(a).childNodes;0<a.length?(a=a[0],AdfAssert.assert(null!=a.rows&&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.ca)):a=null;return a}AdfDhtmlBaseGanttPeer.prototype.Ww=function(){var a=A_F(this).childNodes,b=a.length;return 0<b?this.Xq(a[b-1]):null};
AdfDhtmlBaseGanttPeer.prototype.Xq=function(a){AdfAssert.assert(null!=a.rows&&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.ca);null==c&&a.previousSibling&&(c=b.getAttribute(a.previousSibling,AdfDhtmlBaseGanttPeer.ca));return c};