var AdfDhtmlBaseGanttPeer=AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlBaseGanttPeer");A_a("AdfDhtmlBaseGanttPeer",AdfDhtmlBaseGanttPeer);
AdfDhtmlBaseGanttPeer.InitSubclass=function(){this.v="tid";this.Dd="st";this.Pf="et";this.Z="rid";this.l="part";this.S="sid";this.pv="sidf";this.CE="hl";this.FF="vl";this.gm="grbr";this.$b="in";this.nj="lbl";this.Cd="split";this.xc="bar";this.lc="pc";this.Ue="right";this.gq="left";this.Su="la";this.Nu="ia";this.Tu="l";this.Uu="r";this.D=":";this.sa="ctt";this.Pb="dtt";this.Pp="cPopup";this.HE="lc";this.cE="_sac";this.Hu="_sc";this.mF="_sal";this.lF="_sah";this.iE="_create";this.Cv="_update";this.dF=
"_print";this.Xu="_link";this.Bv="_unlink";this.im="_indent";this.km="_outdent";this.Xp="_cut";this.Up="_copy";this.$E="_paste";this.Yp="_delete";this.tF="_ta";this.BE="_gd";this.IE="_legend";this.AF="_undo";this.fF="_redo";this.Mu="_ec";this.xE="_ea";this.Lu="_ebb";this.bE="_ca";this.Gu="_cbb";this.jq="_prop";this.Wp="_bCut";this.Tp="_bCopy";this.YE="_bPaste";this.hm="_bIndent";this.jm="_bOutdent";this.zF="_bUndo";this.eF="_bRedo";this.HF="_bZi";this.IF="_bZo";this.Wu="_bLink";this.Av="_bUnlink";
this.GE="_bLegend";this.cF="_bPrint";this.fm="_bDelete";this.hE="_bCreate";this.$p="_bEdit";this.lE="_tpCut";this.gE="_tpCopy";this.aF="_tpPaste";this.DF="_tpUpdate";this.nE="_tpDelete";this.DE="_tpIndent";this.XE="_tpOutdent";this.kE="_cpCut";this.fE="_cpCopy";this.ZE="_cpPaste";this.mE="_cpDelete";this.CF="_cpUpdate";this.JE="_cpLink";this.BF="_cpUnlink";this.KE="_pTAMaj";this.NE="_pTAMin";this.mq="st_conv";this.Ju="et_conv";this.Ed="st_tt_l";this.Ob=20;this.zd=5;this.CC=80;AdfRichUIPeer.addComponentEventHandlers(this,
AdfActionEvent.ACTION_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfPopupOpeningEvent.POPUP_OPENING_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfPopupClosedEvent.POPUP_CLOSED_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfPopupOpenedEvent.POPUP_OPENED_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfComponentEvent.CONTEXT_MENU_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfDropEvent.DROP_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,
AdfUIInputEvent.DOUBLE_CLICK_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.CLICK_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfComponentEvent.BLUR_EVENT_TYPE);AdfRichUIPeer.addSuppressedPPRAttributes(this,"scrollLeft");var a=this.Qf={};a[this.im]="indent";a[this.km]="outdent";a[this.iE]="create";a[this.Cv]="update";a[this.IE]="legend";a[this.Xp]="cut";a[this.Up]="copy";a[this.$E]="paste";a[this.Yp]="delete";a[this.mF]="showAsList";a[this.lF]="showAsHier";a[this.cE]=
"showAllColumns";a[this.hm]="indent";a[this.jm]="outdent";a[this.GE]="legend";a[this.fm]="delete";a[this.hE]="create";a[this.$p]="update";a[this.Wp]="cut";a[this.Tp]="copy";a[this.YE]="paste";a[this.DE]="indent";a[this.XE]="outdent";a[this.DF]="update";a[this.nE]="delete";a[this.lE]="cut";a[this.gE]="copy";a[this.aF]="paste";a[this.kE]="cut";a[this.fE]="copy";a[this.ZE]="paste";a[this.CF]="update";a[this.mE]="delete";a[this.Ev]="viewSelectedTask";a=this.Nf={};a[this.Hu]="showColumn";a[this.tF]="showTimeAxisDialog";
a[this.BE]="gotoDate";a[this.KE]="showTimeAxisDialog";a[this.NE]="showTimeAxisDialog";a[this.Xu]="link";a[this.Bv]="unlink";a[this.Wu]="link";a[this.Av]="unlink";a[this.YR]="link";a[this.aS]="unlink";a[this.JE]="link";a[this.BF]="unlink";a[this.HF]="zoomin";a[this.IF]="zoomout";a[this.dF]="print";a[this.cF]="print";a[this.Mu]="expandNode";a[this.xE]="expandAllNodes";a[this.Lu]="expandAllNodesBelow";a[this.bE]="collapseAllNodes";a[this.Gu]="collapseAllNodesBelow";a[this.jq]="properties";a[this.AF]=
"undo";a[this.fF]="redo";a[this.zF]="undo";a[this.eF]="redo";this.si=!1;this.os=6;this.Nk="days";this.Dl=this.Pk=!1;this.iq=100;this.pj=10;this.ca="_afrRK";this.dE="_afrColCount";this.WE="_afrNdCol";this.VE="_afrDisImg";this.hq=8;this.kj="p_AFDropTarget";this.wF="af|treeTable::expanded-icon-style";this.vF="af|treeTable::collapsed-icon-style";this.uF="af|treeTable::node-anim-icon-style";this.xF="af|treeTable::leaf-icon-style";this.yF="af|treeTable::selector-icon-style";this.uE=new A_Ac};
A_a("AdfDhtmlBaseGanttPeer.InitSubclass",AdfDhtmlBaseGanttPeer.InitSubclass);
AdfDhtmlBaseGanttPeer.prototype.DispatchComponentEvent=function(a){AdfDhtmlBaseGanttPeer.superclass.DispatchComponentEvent.call(this,a);if(a.getSource()!=this.getComponent()){var b=this.getComponent().getProperty("clientListeners");if(b){var c=a.getType();(b=b[c])&&(c==AdfSelectionEvent.SELECTION_EVENT_TYPE||c==AdfRowDisclosureEvent.ROW_DISCLOSURE_EVENT_TYPE?"oracle.adf.RichTreeTable"==a.getSource().getComponentType()&&A_d.qs(a,b):A_d.qs(a,b))}}};
AdfDhtmlBaseGanttPeer.prototype.DispatchComponentEvent=AdfDhtmlBaseGanttPeer.prototype.DispatchComponentEvent;AdfDhtmlBaseGanttPeer.prototype.needsResizeNotify=function(){return!0};AdfDhtmlBaseGanttPeer.prototype.needsResizeNotify=AdfDhtmlBaseGanttPeer.prototype.needsResizeNotify;AdfDhtmlBaseGanttPeer.prototype.ResizeNotify=function(){this.Dl=!1;var a=AdfDhtmlBaseGanttPeer.createSubId(this.getComponent().getClientId(),"cttp"),a=AdfAgent.AGENT.getElementById(a);null!=a&&a.setAttribute("role","application")};
AdfDhtmlBaseGanttPeer.prototype.ResizeNotify=AdfDhtmlBaseGanttPeer.prototype.ResizeNotify;AdfDhtmlBaseGanttPeer.prototype.InitDomElement=function(a,b){AdfDhtmlBaseGanttPeer.superclass.InitDomElement.call(this,a,b);this.Lq=parseInt(b.getAttribute("currentLeft"));this.vn=0;this.Vh=null;this.vr=0;this.ck=null};AdfDhtmlBaseGanttPeer.prototype.InitDomElement=AdfDhtmlBaseGanttPeer.prototype.InitDomElement;
function A_Bc(a){void 0==a.Gw&&(a.Gw=AdfDhtmlBaseGanttPeer.createSubId(a.getComponent().getClientId(),AdfDhtmlBaseGanttPeer.Pb));return a.Gw}function A_E(a){void 0==a.tw&&(a.tw=AdfDhtmlBaseGanttPeer.createSubId(a.getComponent().getClientId(),AdfDhtmlBaseGanttPeer.sa));return a.tw}AdfDhtmlBaseGanttPeer.createSubId=function(a,b,c){null!=b&&(a=a.concat(AdfDhtmlBaseGanttPeer.D).concat(b));null!=c&&(a=a.concat("::").concat(c));return a};
AdfDhtmlBaseGanttPeer.gT=function(){return AdfAgent.AGENT.atLeast(AdfAgent.IE_PLATFORM,9)?5:4};
AdfDhtmlBaseGanttPeer.IU=function(a){var b=AdfAgent.AGENT,c=b.getElementById(AdfDhtmlBaseGanttPeer.createSubId(a,AdfDhtmlBaseGanttPeer.Pb,"db")).rows;a=b.getElementById(AdfDhtmlBaseGanttPeer.createSubId(a,AdfDhtmlBaseGanttPeer.sa,"db")).rows;if(c.length==a.length)for(var d=b.getPlatform()==AdfAgent.IE_PLATFORM&&7==b.getVersion()?3:0,e=0;e<c.length;e++){var f=b.getAttribute(c[e],"_afrrk");if(null!=f&&f==b.getAttribute(a[e],"_afrrk")){var f=c[e].offsetHeight,g=0;f!=a[e].offsetHeight&&(g=e==c.length-
1?f:c[e+1].offsetTop-c[e].offsetTop,g=Math.max(0,g-d));0<g&&(a[e].style.height=g+"px")}}};AdfDhtmlBaseGanttPeer.It=function(a){AdfDhtmlBaseGanttPeer.bA(a);AdfDhtmlBaseGanttPeer.cA(a)};
AdfDhtmlBaseGanttPeer.bA=function(a){var b=AdfAgent.AGENT,c=document.getElementById(AdfDhtmlBaseGanttPeer.createSubId(a,null,"majorAxis")),d=document.getElementById(AdfDhtmlBaseGanttPeer.createSubId(a,null,"minorAxis")),e=c;null==c&&(e=d);var f=e.lastChild;if(null!=f){var b=b.getElementById(AdfDhtmlBaseGanttPeer.createSubId(AdfDhtmlBaseGanttPeer.createSubId(a,AdfDhtmlBaseGanttPeer.sa),"axes")),g=b.parentNode.parentNode.offsetHeight,h=AdfDhtmlBaseGanttPeer.VK(a),h=document.getElementById(a+":dtt:"+
h),l=h.offsetHeight;if(0!=l&&l!=g){var m=f.innerHTML,n=f.style,g=0;try{f.innerHTML="bq",n&&(n.bottom="auto"),g=f.offsetHeight}finally{f.innerHTML=m,n&&n.removeProperty("bottom")}null!=c&&null!=d?(c.style.height=g+"px",d.style.height=g+"px"):e.style.height=2*g+1+"px";g=b.parentNode.parentNode.offsetHeight;f=g-l;0>f?(1==l%2&&(l+=1,h.style.height=l+"px",m=h.offsetHeight,m!=l&&(h.style.height=l-(m-l)+"px")),g=l/2,null!=c&&null!=d?(c.style.height=g+"px",d.style.height=g+"px",m=b.parentNode.parentNode.offsetHeight,
m!=l&&(f=(m-l)/2,c.style.height=g-f+"px",d.style.height=g-f+"px")):(e.style.height=l+"px",m=b.parentNode.parentNode.offsetHeight,m!=l&&(e.style.height=l-(m-l)+"px"))):0<f&&(h.style.height=l+f+"px",m=h.offsetHeight,m!=g&&(h.style.height=l+f-(m-g)+"px"));if((c=AdfPage.PAGE.findComponent(AdfDhtmlBaseGanttPeer.createSubId(a,AdfDhtmlBaseGanttPeer.sa)).getPeer())&&c.AJ)try{c.LG(0,null,b.parentNode.parentNode.offsetWidth,0,!0)}catch(q){}if((a=AdfPage.PAGE.findComponent(AdfDhtmlBaseGanttPeer.createSubId(a,
AdfDhtmlBaseGanttPeer.Pb)).getPeer())&&a.AJ)try{var p=a.eS();p&&1<=p.length&&(h=p[0],a.LG(h.getDisplayIndex(),null,h.getWidth(),0,!0))}catch(q){}}}};
AdfDhtmlBaseGanttPeer.cA=function(a){var b=AdfDhtmlBaseGanttPeer.createSubId(a,AdfDhtmlBaseGanttPeer.sa),c=AdfDhtmlBaseGanttPeer.createSubId(a,AdfDhtmlBaseGanttPeer.Pb),d=document.getElementById(b),e=document.getElementById(c),c=d.childNodes[1].childNodes,f=e.childNodes[1].childNodes;if(0!=f.length&&0!=c.length){cttHeight=d.offsetHeight;dttHeight=e.offsetHeight;cttHeight<dttHeight?d.style.height=e.style.height:dttHeight<cttHeight&&(e.style.height=d.style.height);for(var g=[],h=[],l=e=0,m=0;m<f.length;m++){var n;
if("TABLE"==f[m].nodeName){n=f[m].rows;for(var p=0;p<n.length;p++)null!=n[p].getAttribute("_afrrk")&&(h[e]=n[p],e+=1)}}for(m=0;m<c.length;m++)if("TABLE"==c[m].nodeName)for(n=c[m].rows,p=0;p<n.length;p++)null!=n[p].getAttribute("_afrrk")&&(g[l]=n[p],l+=1);if(0!=e&&0!=l){n=null;for(m=0;m<g.length;m++)if(h[0].getAttribute("_afrrk")==g[m].getAttribute("_afrrk")){n=m;break}if(null==n)for(m=0;m<h.length;m++)if(g[0].getAttribute("_afrrk")==h[m].getAttribute("_afrrk")){n=-m;break}if(null!=n){l=0;if(0<=n)for(p=
g.length-n,p>h.length&&(p=h.length),m=0;m<p;m++){if(g[m+n].offsetHeight<h[m].offsetHeight){var q=AdfDhtmlBaseGanttPeer.fi(g[m+n]);if(q){q.style.height=h[m].offsetHeight+"px";var u=g[m+n].offsetHeight-h[m].offsetHeight;0!=u&&(q.style.height=h[m].offsetHeight-u+"px")}}l+=h[m].offsetHeight}else for(n=-n,p=h.length-n,p>g.length&&(p=g.length),m=0;m<p;m++)g[m].offsetHeight<h[m+n].offsetHeight&&(q=AdfDhtmlBaseGanttPeer.fi(g[m]))&&(q.style.height=h[m+n].offsetHeight+"px",u=g[m].offsetHeight-h[m+n].offsetHeight,
0!=u&&(q.style.height=h[m+n].offsetHeight-u+"px")),l+=h[m+n].offsetHeight;g=AdfPage.PAGE.findComponent(a).getPeer();a=A_F(g,d);d=A_G(g,d);null!=d&&(b=AdfPage.PAGE.findComponent(b).getPeer(),(d=l/e*b.GetRowCount()-d.childNodes[0].offsetHeight)&&b._adjustCanvasHeight(d,a));AdfDhtmlBaseGanttPeer.ow(f);AdfDhtmlBaseGanttPeer.ow(c)}}}};
AdfDhtmlBaseGanttPeer.fi=function(a){return"DIV"==a.nodeName&&a.id&&-1!==a.id.indexOf("tsb",a.id.length-3)?a:0<a.childNodes.length?AdfDhtmlBaseGanttPeer.fi(a.childNodes[0]):null};
AdfDhtmlBaseGanttPeer.ow=function(a){for(var b=0;b<a.length;b++){if("DIV"!=a[b].nodeName)var c=a[b],d=c.parentNode;else c=a[b].childNodes[0],d=a[b].parentNode;if(c.Qn!=c.offsetHeight){var e=c.offsetHeight-c.Qn;c.Qn=c.offsetHeight;0==b&&1<a.length?(c.zo="DIV"!=a[b].nodeName?a[b+1].zo-c.Qn:a[b+1].childNodes[0].zo-c.Qn,d.scrollTop+=e):0==b&&0!=d.scrollTop&&(d.scrollTop+=e)}}};
AdfDhtmlBaseGanttPeer.prototype.ax=function(a){a||(a=AdfPage.PAGE.getDomWindow().event);0<a.detail||0>a.wheelDelta?A_Cc(this,a,!1):(0>a.detail||0<a.wheelDelta)&&A_Cc(this,a,!0);AdfAgent.AGENT.eatEvent(a)};AdfDhtmlBaseGanttPeer.prototype._handleMouseWheel=AdfDhtmlBaseGanttPeer.prototype.ax;
AdfDhtmlBaseGanttPeer.Ok=function(a,b,c,d,e,f){a:{a=AdfPage.PAGE.findComponent(a).getPeer();var g=a.getComponent().getClientId(),h=a.td();if(null!=h){if(0!=e){AdfPage.PAGE.getLocaleContext().isRightToLeft()?h.scrollLeft-=e:h.scrollLeft+=e;var l=h.scrollLeft;AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(l=0-h.scrollLeft);if((0<e&&h.clientWidth+l>=h.scrollWidth||0>e&&0>=l)&&0==f){a.Va();break a}}if(0!=f&&(h.scrollTop+=f,(0<f&&h.clientHeight+h.scrollTop>=h.scrollHeight||0>f&&0>=h.scrollTop)&&0==
e)){a.Va();break a}a.Gy(e,f)||(a.uq(c,d,!1),a.Ai=setTimeout('AdfDhtmlBaseGanttPeer.doAutoScroll("'+g+'","'+b+'",'+(c+e)+","+(d+f)+","+e+","+f+")",1))}}};AdfDhtmlBaseGanttPeer.prototype.Va=function(){this.xb&&(null!=this.Ai&&clearTimeout(this.Ai),this.xb=!1)};AdfDhtmlBaseGanttPeer.prototype.Ag=function(){};
AdfDhtmlBaseGanttPeer.prototype.Zg=function(a){var b=A_Dc(this);null!=b&&(b.style.display="none");var c=a.getNativeEventTarget(),b=this.getComponent();if(null!=c&&"DIV"==c.nodeName)if("DIV"!=c.parentNode.nodeName||null==c.getAttribute(AdfDhtmlBaseGanttPeer.v)&&null==c.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.v)&&null==c.parentNode.parentNode.getAttribute(AdfDhtmlBaseGanttPeer.v))c=A_H(this,c),null!=c&&(d={},d.rowKey=c,d.location=A_Ec(this,a.getNativeEvent()),a=new A_Fc(b,d),a.setPartial(!0),
b.queueEvent(a));else{var d={};null==c.getAttribute(AdfDhtmlBaseGanttPeer.v)&&(c=c.parentNode);null==c.getAttribute(AdfDhtmlBaseGanttPeer.v)&&(c=c.parentNode);d.taskId=c.getAttribute(AdfDhtmlBaseGanttPeer.v);d.rowKey=A_H(this,c);this.Cs(d);a=new A_Fc(b,d);a.setPartial(!0);b.queueEvent(a)}};A_a("AdfDhtmlBaseGanttPeer.prototype.HandleComponentDblClick",AdfDhtmlBaseGanttPeer.prototype.Zg);
function A_Ec(a,b){var c=A_G(a),d=b.clientX,e=AdfAgent.AGENT,d=AdfPage.PAGE.getLocaleContext().isRightToLeft()?e.getWindowWidth(window)-d-A_Gc(a.getDomElement()):d-e.getElementLeft(a.getDomElement());return d-A_Hc(a)+a.ki(c)+e.getBrowserViewportScrollLeft()}
AdfDhtmlBaseGanttPeer.prototype.HandleComponentAction=function(a){var b=a.getSource();if(!b.getDisabled()){var b=b.getClientId(),c=AdfDhtmlBaseGanttPeer.Qf,d;for(d in c)if(0<=b.indexOf(d)){this.uf(c[d]);a.cancel();return}c=AdfDhtmlBaseGanttPeer.Nf;for(d in c)if(0<=b.indexOf(d)){this[c[d]].call(this,a);a.cancel();return}if(-1!=b.indexOf("_major_")||-1!=b.indexOf("_minor_"))d=this.getComponent().getClientId(),b=a.getSource().getClientId(),d=b.substr(b.indexOf(d)+d.length+1,b.length).split("_"),b=0,
c=A_G(this),null!=c&&(b=parseInt(c.scrollLeft)),c=this.getComponent(),d=new A_Ic(c,d[1],d[2],b),d.setPartial(!0),c.queueEvent(d),a.cancel()}};A_a("AdfDhtmlBaseGanttPeer.prototype.HandleComponentAction",AdfDhtmlBaseGanttPeer.prototype.HandleComponentAction);AdfDhtmlBaseGanttPeer.prototype.Ef=function(a){var b=AdfDhtmlBaseGanttPeer.createSubId(this.getComponent().getClientId(),AdfDhtmlBaseGanttPeer.Pp);a.getSource().getClientId()==b&&(this.si=!0)};
A_a("AdfDhtmlBaseGanttPeer.prototype.HandleComponentPopupOpened",AdfDhtmlBaseGanttPeer.prototype.Ef);AdfDhtmlBaseGanttPeer.prototype.yd=function(a){var b=AdfDhtmlBaseGanttPeer.createSubId(this.getComponent().getClientId(),AdfDhtmlBaseGanttPeer.Pp);a.getSource().getClientId()==b&&(this.si=!1);null!=this.tl&&(this.tl.style.border=this.Pz);this.tl=null};A_a("AdfDhtmlBaseGanttPeer.prototype.HandleComponentPopupClosed",AdfDhtmlBaseGanttPeer.prototype.yd);
AdfDhtmlBaseGanttPeer.prototype.$g=function(a){this.getComponent().getClientId();var b=A_E(this);0==a.getSource().getClientId().indexOf(b)&&a.cancel()};A_a("AdfDhtmlBaseGanttPeer.prototype.HandleComponentPopupOpening",AdfDhtmlBaseGanttPeer.prototype.$g);AdfDhtmlBaseGanttPeer.ct=function(){var a=navigator.userAgent.toLowerCase();return-1!=a.indexOf("mobile")&&-1!=a.indexOf("safari")};AdfDhtmlBaseGanttPeer.R=function(){return AdfAgent.guessOS()==AdfAgent.ANDROID_OS||AdfDhtmlBaseGanttPeer.ct()};
function A_Jc(a){a=a.getDomElement().getAttribute("rccm");return null!=a?a:AdfDhtmlBaseGanttPeer.Pp}
AdfDhtmlBaseGanttPeer.prototype.jb=function(a){var b=a.getNativeEventTarget();if(null!=b){for(;1!=b.nodeType;)if(b=b.parentNode,null==b)return;a=a.getNativeEvent();var c=this.getComponent(),d=A_E(this);"srcomaj"==b.getAttribute("down")||null!=b.parentNode&&"srcomaj"==b.parentNode.getAttribute("down")?this.showContextMenu(a,"matap",c,null,null,d):"srcomin"==b.getAttribute("down")||null!=b.parentNode&&"srcomin"==b.parentNode.getAttribute("down")?this.showContextMenu(a,"mitap",c,null,null,d):(b=this.getComponent().getClientId()+
AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.Pb,"header"==AdfPage.PAGE.findComponent(b).getPeer().jT(a)&&(this.showContextMenu(a,"vp",c,null,null,d),a.stopPropagation()))}};AdfDhtmlBaseGanttPeer.prototype.HandleComponentContextMenu=AdfDhtmlBaseGanttPeer.prototype.jb;A_a("AdfDhtmlBaseGanttPeer.prototype.HandleComponentContextMenu",AdfDhtmlBaseGanttPeer.prototype.jb);
AdfDhtmlBaseGanttPeer.prototype.ge=function(a){a=a.getSource();A_E(this);a.getClientId();AdfDhtmlBaseGanttPeer.R()&&(a=this.getTooltip(),null!=a&&(a.style.display="none"))};A_a("AdfDhtmlBaseGanttPeer.prototype.HandleComponentBlur",AdfDhtmlBaseGanttPeer.prototype.ge);AdfDhtmlBaseGanttPeer.prototype.$h=function(){AdfAgent.AGENT.enableUserSelect(this.getDomElement())};AdfDhtmlBaseGanttPeer.prototype.Eg=function(){AdfAgent.AGENT.enableUserSelect(this.getDomElement())};
function A_Kc(a,b,c){if(null!=c){var d=c.parentNode;c.firstChild.src=c.firstChild.getAttribute("src_dwn");var e=a.getComponent(),f={};f.rowKey=A_H(a,d);f.dpType=c.getAttribute("dpType");d=new A_I(e,"depLnMenu",f);d.setPartial(!0);e.queueEvent(d);e=a.getComponent();d=A_E(a);a.showContextMenu(b,"dPopup",e,c,null,d)}}
function A_Lc(a,b){var c=A_G(a),d=parseInt(b.style.left),e=parseInt(b.style.width),f=c.scrollLeft;c.scrollLeft+c.clientWidth<c.scrollWidth&&d>=c.scrollLeft+c.clientWidth?(f=d+e-c.clientWidth,f+c.clientWidth>c.scrollWidth&&(f=c.scrollWidth-c.clientWidth)):0<c.scrollLeft&&(d<c.scrollLeft&&(f=d),0>f&&(f=0));c.scrollLeft=f;d=AdfAgent.AGENT.getElementTop(c);d=AdfAgent.AGENT.getElementTop(b)-d;e=parseInt(b.parentNode.style.height);f=c.scrollTop;c.scrollTop+c.clientHeight<c.scrollHeight&&d>=c.clientHeight?
(f=d+e+f-c.clientHeight,f+c.clientHeight>c.scrollHeight&&(f=c.scrollHeight-c.clientHeight)):0<c.scrollTop&&(0>d&&(f-=Math.abs(d)),0>f&&(f=0));c.scrollTop=f}function A_J(a,b,c){return null==b.parentNode||b.parentNode.id==A_E(a)?null:null!=AdfAgent.AGENT.getAttribute(b,c)?b:A_J(a,b.parentNode,c)}AdfDhtmlBaseGanttPeer.prototype.Ez=function(a){return"DIV"==a.nodeName&&null!=AdfAgent.AGENT.getAttribute(a,AdfDhtmlBaseGanttPeer.v)};
function A_Mc(a,b){if(a.Ez(b))return b;for(var c=0;c<b.childNodes.length;c++){var d=A_Mc(a,b.childNodes[c]);if(null!=d)return d}return null}function A_Nc(a,b){for(var c=A_E(a),c=AdfPage.PAGE.findComponent(c).getPeer().getDomElement(),c=A_F(a,c).childNodes,d=c.length,e={},f=0;f<d&&!e.Y;++f)for(var g=c[f].rows,h=g.length,l=0;l<h;++l){var m=g[l],n=AdfAgent.AGENT.getAttribute(m,AdfDhtmlBaseGanttPeer.ca);if(n==b){e.Y=n;e.Ra=m;break}}return e}
AdfDhtmlBaseGanttPeer.setScrollPos=function(a,b,c){a=AdfPage.PAGE.findComponent(a);null!=a&&(-1!=b&&a.Wz(b),-1!=c&&(A_G(a.getPeer()).scrollTop=c))};A_a("AdfDhtmlBaseGanttPeer.setScrollPos",AdfDhtmlBaseGanttPeer.setScrollPos);AdfDhtmlBaseGanttPeer.ot=function(a){a=AdfPage.PAGE.findComponent(a);null!=a&&a.getPeer().ot()};A_a("AdfDhtmlBaseGanttPeer.refreshChart",AdfDhtmlBaseGanttPeer.ot);
AdfDhtmlBaseGanttPeer.prototype.ot=function(){var a=AdfPage.PAGE;if(!a.isScreenReaderMode()){var b=a.getLookAndFeel().getTranslatedString("af_table.LABEL_FETCHING");A_Oc(this,b);this.Vh=a.scheduleTimer(this,this.Sz,null,AdfDhtmlBaseGanttPeer.pj);this.vn++}};
AdfDhtmlBaseGanttPeer.prototype.Sz=function(){var a=AdfPage.PAGE;this.getComponent();var b=A_Bc(this),b=AdfPage.PAGE.findComponent(b).getPeer(),c=A_E(this),c=AdfPage.PAGE.findComponent(c).getPeer();if((b.IsFetchPending()||b.BusyAnimating()||c.BusyAnimating())&&this.vn<AdfDhtmlBaseGanttPeer.iq){if(b=this.Vh)a.cancelTimer(b),delete this.Vh;this.Vh=a.scheduleTimer(this,this.Sz,null,AdfDhtmlBaseGanttPeer.pj);this.vn++}else{if(b=this.Vh)a.cancelTimer(b),delete this.Vh;this.vn=0;for(var a=A_Pc(this),c=
A_G(this).scrollTop,d=AdfAgent.AGENT,e=A_F(this),f=e.childNodes,b={},g=f.length-1;0<=g&&!b.Y;--g)for(var h=f[g].zo,l=f[g].rows,m=l.length-1;0<=m;--m){var n=l[m];if(n.offsetTop-(c-h)+AdfDhtmlBaseGanttPeer.hq<e.offsetHeight){h=d.getAttribute(n,AdfDhtmlBaseGanttPeer.ca);b.Y=h;b.Ra=n;break}}c={};c.startRowKey=a.Y;c.endRowKey=b.Y;a=new A_I(this.getComponent(),"refresh",c);AdfPage.PAGE.queueEventToServer(a)}};
AdfDhtmlBaseGanttPeer.UM=function(a,b,c){a=AdfPage.PAGE.findComponent(a);a.getPeer().os=b;a.getPeer().Nk=c};A_a("AdfDhtmlBaseGanttPeer.setDateIncrementAndUnit",AdfDhtmlBaseGanttPeer.UM);function A_Qc(a){var b=new Date;b.setTime(AdfAgent.AGENT.getAttribute(a.getDomElement(),"startDate"));return b}function A_Rc(a){var b=new Date;b.setTime(AdfAgent.AGENT.getAttribute(a.getDomElement(),"endDate"));return b}function A_Sc(a){return AdfAgent.AGENT.getAttribute(a.getDomElement(),"width")}
function A_Tc(a,b,c,d){return a*(c.getTime()-b.getTime())/d+b.getTime()}AdfDhtmlBaseGanttPeer.WM=function(a,b,c){a=AdfPage.PAGE.findComponent(a);a.getPeer().ft=b;a.getPeer().gt=c};A_a("AdfDhtmlBaseGanttPeer.setMajorAndMinorZoomLevel",AdfDhtmlBaseGanttPeer.WM);function A_Uc(a){a=a.getDomElement();return null!=a&&(a=a.getAttribute("fetchSize"),null!=a)?parseInt(a):-1}
function A_K(a,b){if(null==a.et){a.et=[];var c=a.getDomElement().getAttribute("resources");if(null!=c)for(var c=c.split("|"),d=0;d<c.length;d+=2)a.et[c[d]]=c[d+1];a.getDomElement().removeAttribute("resources")}"start_time"==b?b="st":"end_time"==b?b="et":"duration"==b?b="dur":"resource"==b?b="res":"complete_through"==b&&(b="ct");c=a.et[b];return null==c?"":c}AdfDhtmlBaseGanttPeer.prototype.Uj=function(a,b){for(var c=b,d=this.getDomElement();c;){if(c==a)return!0;if(c==d)break;c=c.parentNode}return!1};
function A_H(a,b){var c=b.getAttribute?b.getAttribute("_afrrk"):null;return null!=c?c:null==b.parentNode?null:A_H(a,b.parentNode)}function A_Vc(a,b){var c=A_E(a);b.getAttribute("id");if(b.getAttribute("id")==c)return null;c=b.getAttribute("_afrrk");return null!=c?c:null==b.parentNode?null:A_Vc(a,b.parentNode)}
function A_Hc(a){if(AdfPage.PAGE.getLocaleContext().isRightToLeft()){var b=0,c=a.getComponent().getClientId()+"::majorAxis",c=document.getElementById(c);if(null!=c&&c.offsetParent)for(b+=c.offsetWidth;c.offsetParent;)b+=c.offsetLeft,c=c.offsetParent;return c.offsetWidth-b-A_Gc(a.getDomElement())}b=0;c=a.getComponent().getClientId()+"::majorAxis";c=document.getElementById(c);if(null!=c)if(c.offsetParent)for(;c.offsetParent;)b+=c.offsetLeft,c=c.offsetParent;else c.x&&(b+=c.x);return b-AdfAgent.AGENT.getElementLeft(a.getDomElement())}
AdfDhtmlBaseGanttPeer.pi=function(a,b){var c=AdfPage.PAGE,d=c.findComponent(b),e=a.getAddedSet();if(null!=e)for(var f in e)if(null!=f&&(e=d.getClientId()+":"+AdfDhtmlBaseGanttPeer.sa+":"+f+":tsb",e=AdfAgent.AGENT.getElementById(e),null!=e))for(var g=0;g<e.childNodes.length;g++){var h=e.childNodes[g];if(null!=h.getAttribute(AdfDhtmlBaseGanttPeer.l)&&(h.getAttribute(AdfDhtmlBaseGanttPeer.l)==AdfDhtmlBaseGanttPeer.FF&&"-1px"==h.style.top||h.getAttribute(AdfDhtmlBaseGanttPeer.l)==AdfDhtmlBaseGanttPeer.CE)){d=
new A_I(d,"rowDiscloseRefresh");c.queueEventToServer(d);return}}};A_a("AdfDhtmlBaseGanttPeer.handleDisclosure",AdfDhtmlBaseGanttPeer.pi);AdfDhtmlBaseGanttPeer.prototype.Ps=function(){return[AdfDhtmlBaseGanttPeer.hm,AdfDhtmlBaseGanttPeer.jm,AdfDhtmlBaseGanttPeer.im,AdfDhtmlBaseGanttPeer.km]};function A_Wc(a,b,c){var d=AdfPage.PAGE;a=a.getComponent().getClientId();for(var e=0;e<b.length;e++){var f=d.findComponent(a+AdfDhtmlBaseGanttPeer.D+b[e]);f&&f.setProperty("disabled",c)}}
AdfDhtmlBaseGanttPeer.prototype.Vg=function(a){var b=AdfPage.PAGE,c=b.findComponent(a+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.Pb),d=b.findComponent(a+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.Mu),e=b.findComponent(a+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.Lu),b=b.findComponent(a+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.Gu);if("none"==c.getRowSelection())return d&&d.setProperty("disabled",!0),e&&e.setProperty("disabled",!0),b&&b.setProperty("disabled",!0),0;a=0;var f=null,g=c.getSelectedRowKeys(),
h;for(h in g)if(0==a&&(f=h),a++,1<a)break;if(1<a||null==f)d&&d.setProperty("disabled",!0),e&&e.setProperty("disabled",!0),b&&b.setProperty("disabled",!0);else{h=this.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.Pb;h=AdfPage.PAGE.findComponent(h).getPeer().getDomElement();h=A_Xc(this,f,h);a:{g=null;null!=h&&(g=h.dA);if(null!=g){var l;b:{l=g;var g=AdfAgent.AGENT,m=A_F(this),g=g.getIntAttribute(m,AdfDhtmlBaseGanttPeer.dE,-1);l=l.cells;g=0<=g?g:l.length;for(m=0;m<g;m++){var n=
l[m];if(AdfAgent.AGENT.getAttribute(n,AdfDhtmlBaseGanttPeer.WE)){l=n;break b}}l=null}if(null!=l){b:{g=AdfAgent.AGENT;l=l.getElementsByTagName("SPAN");m=l.length;for(n=0;n<m;n++)if(void 0!=g.getAttribute(l[n],AdfDhtmlBaseGanttPeer.VE))for(var p=l[n],q=p.childNodes.length,u=0;u<q;u++){var v=p.childNodes[u],x;if(x=1==v.nodeType){var w=v,y=AdfPage.PAGE.getLookAndFeel(),r=A_Yc();x=y.getStyleClass(r.Uy);var z=y.getStyleClass(r.IJ),C=y.getStyleClass(r.collapsed),y=y.getStyleClass(r.Hz),r=w.className;0<=
r.indexOf(x)||0<=r.indexOf(C)||0<=r.indexOf(y)||0<=r.indexOf(z)?x=!0:(w=w.parentNode.className,x=0<=w.indexOf(x)||0<=w.indexOf(C)||0<=w.indexOf(y))}if(x){g=v;break b}}g=null}if(null!=g){l=AdfPage.PAGE.getLookAndFeel().getStyleClass(A_Yc().Hz);g=0<=g.className.indexOf(l);break a}}}g=!1}c=c.isPathExpanded(f);f=this.isVisible(h);null==c&&(c=!1);d&&(f?d.setProperty("disabled",g):d.setProperty("disabled",!0),d.setSelected(!c));e&&(f?e.setProperty("disabled",g):e.setProperty("disabled",!0));b&&(f?b.setProperty("disabled",
g||!c):b.setProperty("disabled",!0))}d=this.Ps();0<a?A_Wc(this,d,!1):A_Wc(this,d,!0);return a};AdfDhtmlBaseGanttPeer.prototype.updateMenuItems=AdfDhtmlBaseGanttPeer.prototype.Vg;AdfDhtmlBaseGanttPeer.prototype.isVisible=function(a){return null!=a?!0:!1};AdfDhtmlBaseGanttPeer.TL=function(a,b){var c=AdfPage.PAGE,d=c.findComponent(b),e=c.findComponent(A_E(d.getPeer())).getPeer().getDomElement().offsetWidth,f=parseInt(a.getNewValue()),d=new A_Zc(d,e,f);c.queueEventToServer(d)};
A_a("AdfDhtmlBaseGanttPeer.handleZoomMenu",AdfDhtmlBaseGanttPeer.TL);AdfDhtmlBaseGanttPeer.XT=function(a,b,c){if("ok"==c.getOutcome()){var d=AdfPage.PAGE;a=d.findComponent(a);b=new A__c(a,b);d.queueEventToServer(b)}c.getSource().hide();c.cancel()};AdfDhtmlBaseGanttPeer.JL=function(a,b,c){var d=AdfPage.PAGE,e=d.findComponent(b),f=parseInt(a.getNewValue());a=c[f].type;c=c[f].PS;null==c||""==c?(b=new A__c(e,a),d.queueEventToServer(b)):eval(c+"('"+b+"')")};
A_a("AdfDhtmlBaseGanttPeer.handleFilterMenu",AdfDhtmlBaseGanttPeer.JL);AdfDhtmlBaseGanttPeer.LL=function(a,b){if("ok"==b.getOutcome()){var c=AdfPage.PAGE,d=c.findComponent(a),d=new A_I(d,"gotoDate");c.queueEventToServer(d)}};A_a("AdfDhtmlBaseGanttPeer.handleGotoDateOK",AdfDhtmlBaseGanttPeer.LL);AdfDhtmlBaseGanttPeer.prototype.AL=function(){var a=AdfPage.PAGE,b=this.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.D+"datePopup",a=a.findComponent(b);null!=a&&a.show()};
AdfDhtmlBaseGanttPeer.prototype.gotoDate=AdfDhtmlBaseGanttPeer.prototype.AL;AdfDhtmlBaseGanttPeer.KL=function(a,b){var c=AdfPage.PAGE.findComponent(a);AdfPage.PAGE.getLocaleContext().isRightToLeft()?A_G(c.getPeer()).scrollLeft=0-b:A_G(c.getPeer()).scrollLeft=b};A_a("AdfDhtmlBaseGanttPeer.handleGotoDate",AdfDhtmlBaseGanttPeer.KL);AdfDhtmlBaseGanttPeer.prototype.jN=function(a){AdfPage.PAGE.findComponent(a).show()};AdfDhtmlBaseGanttPeer.prototype.showAdaDialog=AdfDhtmlBaseGanttPeer.prototype.jN;
AdfDhtmlBaseGanttPeer.prototype.lN=function(){var a=AdfPage.PAGE,b=this.getComponent(),c=A_G(this);if(null!=c&&0<parseInt(c.scrollLeft)){var d={};d.scrollLeft=parseInt(c.scrollLeft);c=new A_I(b,"showTimeAxisDialog",d);a.queueEventToServer(c)}b=b.getClientId()+AdfDhtmlBaseGanttPeer.D+"gPopup";a=a.findComponent(b);null!=a&&a.show()};AdfDhtmlBaseGanttPeer.prototype.showTimeAxisDialog=AdfDhtmlBaseGanttPeer.prototype.lN;AdfDhtmlBaseGanttPeer.prototype.link=function(){this.uf("link")};
AdfDhtmlBaseGanttPeer.prototype.link=AdfDhtmlBaseGanttPeer.prototype.link;AdfDhtmlBaseGanttPeer.prototype.Lt=function(){this.uf("unlink")};AdfDhtmlBaseGanttPeer.prototype.unlink=AdfDhtmlBaseGanttPeer.prototype.Lt;AdfDhtmlBaseGanttPeer.prototype.print=function(){var a=AdfPage.PAGE,b=this.getComponent(),b=new A_I(b,"print");b.setPartial(!1);a.queueEventToServer(b)};AdfDhtmlBaseGanttPeer.prototype.print=AdfDhtmlBaseGanttPeer.prototype.print;
AdfDhtmlBaseGanttPeer.prototype.undo=function(){var a=AdfPage.PAGE,b=this.getComponent(),c=this.getWidth(),d={};d.width=c;AdfPage.PAGE.isScreenReaderMode()||(c=A_G(this),null!=c&&(d.scrollLeft=parseInt(c.scrollLeft)));b=new A_I(b,"undo",d);a.queueEventToServer(b)};AdfDhtmlBaseGanttPeer.prototype.undo=AdfDhtmlBaseGanttPeer.prototype.undo;
AdfDhtmlBaseGanttPeer.prototype.redo=function(){var a=AdfPage.PAGE,b=this.getComponent(),c=this.getWidth(),d={};d.width=c;AdfPage.PAGE.isScreenReaderMode()||(c=A_G(this),null!=c&&(d.scrollLeft=parseInt(c.scrollLeft)));b=new A_I(b,"redo",d);a.queueEventToServer(b)};AdfDhtmlBaseGanttPeer.prototype.redo=AdfDhtmlBaseGanttPeer.prototype.redo;
AdfDhtmlBaseGanttPeer.prototype.JN=function(){var a=AdfPage.PAGE,b=this.getComponent(),c=this.getWidth(),d={};d.width=c;c=A_G(this);null!=c&&(d.scrollLeft=parseInt(c.scrollLeft),d.scrollTop=parseInt(c.scrollTop));b=new A_I(b,"zoomin",d);a.queueEventToServer(b)};AdfDhtmlBaseGanttPeer.prototype.zoomin=AdfDhtmlBaseGanttPeer.prototype.JN;
AdfDhtmlBaseGanttPeer.prototype.KN=function(){var a=AdfPage.PAGE,b=this.getComponent(),c=this.getWidth(),d={};d.width=c;c=A_G(this);null!=c&&(d.scrollLeft=parseInt(c.scrollLeft),d.scrollTop=parseInt(c.scrollTop));b=new A_I(b,"zoomout",d);a.queueEventToServer(b)};AdfDhtmlBaseGanttPeer.prototype.zoomout=AdfDhtmlBaseGanttPeer.prototype.KN;AdfDhtmlBaseGanttPeer.MS=function(a){AdfPage.PAGE.findComponent(a).getPeer().zoom(null)};
AdfDhtmlBaseGanttPeer.prototype.zoom=function(){var a=AdfPage.PAGE,b=this.getComponent(),c=this.getWidth(),d={};d.width=c;c=A_G(this);null!=c&&(d.scrollLeft=parseInt(c.scrollLeft),d.scrollTop=parseInt(c.scrollTop));d.MajorScale=this.ft;d.MinorScale=this.gt;b=new A_I(b,"zoom",d);a.queueEventToServer(b)};AdfDhtmlBaseGanttPeer.prototype.zoom=AdfDhtmlBaseGanttPeer.prototype.zoom;AdfDhtmlBaseGanttPeer.prototype.uf=function(a){var b=AdfPage.PAGE,c=this.getComponent();a=new A_I(c,a);b.queueEventToServer(a)};
AdfDhtmlBaseGanttPeer.prototype.kN=function(a){var b=AdfPage.PAGE,c=this.getComponent(),d=c.getClientId();a=a.getSource().getClientId();var e=0;-1<d.indexOf(AdfDhtmlBaseGanttPeer.D)&&(e=d.lastIndexOf(AdfDhtmlBaseGanttPeer.D)+1);var d=a.substr(0,a.indexOf(AdfDhtmlBaseGanttPeer.D,e)+1),e=AdfDhtmlBaseGanttPeer.Hu,e=a.substr(a.indexOf(e)+e.length).replace(/_afrColId_/g,AdfDhtmlBaseGanttPeer.D),f=b.findComponent(d+e),d=!1;null!=f&&(d=f.getVisible());c=new AdfTableShowColumnsEvent(c,e,d?"hide":"show");
b.queueEventToServer(c);(b=b.findComponent(a))&&b.setSelected(!d)};AdfDhtmlBaseGanttPeer.prototype.showColumn=AdfDhtmlBaseGanttPeer.prototype.kN;function A_L(a){return null==a.target?a.srcElement:a.target}A_=AdfDhtmlBaseGanttPeer.prototype;A_.getTooltip=function(){var a=this.getComponent().getClientId()+"::tt";return document.getElementById(a)};function A_Dc(a){a=a.getComponent().getClientId()+"::tt";return document.getElementById(a)}
function A_0c(a){a=a.getComponent().getClientId()+"::dt";return document.getElementById(a)}
A_.zt=function(a){if(!this.si&&!this.ja){this.dragger=A_L(a);!A_1c(this,"edit")&&this.Fe()&&(this.dragger.style.cursor="move");this.ga=!0;this.Ca=!1;this.dragger.parentNode.style.border="solid 1px #000000";a=AdfAgent.AGENT.getComputedStyle(this.dragger.parentNode).marginTop;var b=a.indexOf("px");-1!=b&&(a=parseInt(a.substring(0,b)),this.dragger.parentNode.style.marginTop=a-1+"px");AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.dragger.parentNode.style.right=parseInt(this.dragger.parentNode.style.right)-
1+"px":this.dragger.parentNode.style.left=parseInt(this.dragger.parentNode.style.left)-1+"px"}};
A_.pt=function(){if(!this.ja){null!=this.dragger&&(this.dragger.style.cursor="default");var a=this.getTooltip();null!=a&&(a.style.display="none");a=A_0c(this);null!=a&&(a.style.display="none");this.Bt=!1;if(!this.Ca&&null!=this.dragger){this.dragger.parentNode.style.border="";var a=AdfAgent.AGENT.getComputedStyle(this.dragger.parentNode).marginTop,b=a.indexOf("px");-1!=b&&(a=parseInt(a.substring(0,b)),this.dragger.parentNode.style.marginTop=a+1+"px");AdfPage.PAGE.getLocaleContext().isRightToLeft()?
this.dragger.parentNode.style.right=parseInt(this.dragger.parentNode.style.right)+1+"px":this.dragger.parentNode.style.left=parseInt(this.dragger.parentNode.style.left)+1+"px";this.dragger=null}}};A_.ql=function(){if(!this.ja){null!=this.dragger&&(this.dragger.style.cursor="default");var a=this.getTooltip();null!=a&&(a.style.display="none");a=A_0c(this);null!=a&&(a.style.display="none");this.Bt=!1;this.dragger=null}};A_.cl=function(){};AdfDhtmlBaseGanttPeer.prototype.handleSelectTask=AdfDhtmlBaseGanttPeer.prototype.cl;
AdfDhtmlBaseGanttPeer.prototype.Et=function(a){this.Pk=!0;a.cancelBubble=!0;var b=A_L(a);"bg"==b.getAttribute("part")&&(b=b.parentNode);null!=b&&(b.style.cursor="url("+A_2c(this)+"/bi/cursors/hand.cur), default");AdfAgent.AGENT.disableUserSelect(this.getDomElement());AdfPage.PAGE.startDrag(a,this.createCallback(this.Ny),this.createCallback(this.ts))};AdfDhtmlBaseGanttPeer.prototype.startDragPan=AdfDhtmlBaseGanttPeer.prototype.Et;
AdfDhtmlBaseGanttPeer.prototype.Ny=function(a,b,c){a.cancelBubble=!0;a=A_G(this);a.scrollLeft-=b;a.scrollTop-=c};AdfDhtmlBaseGanttPeer.prototype.contDragPan=AdfDhtmlBaseGanttPeer.prototype.Ny;AdfDhtmlBaseGanttPeer.prototype.ts=function(a){AdfAgent.AGENT.enableUserSelect(this.getDomElement());a.cancelBubble=!0;this.Pk=!1;a=A_L(a);"bg"==a.getAttribute("part")&&(a=a.parentNode);null!=a&&(a.style.cursor="default")};AdfDhtmlBaseGanttPeer.prototype.endDragPan=AdfDhtmlBaseGanttPeer.prototype.ts;
AdfDhtmlBaseGanttPeer.prototype.yt=function(){return!1};
AdfDhtmlBaseGanttPeer.prototype.ai=function(a,b,c){if(null!=this.dragger)if(!A_1c(this,"edit")&&this.Fe()||A_3c(a))if(A_1c(this,"linking")&&A_3c(a))this.zi(a);else if(this.sc){if(this.sc)if(A_3c(a)){a.cancelBubble=!0;var d=this.getComponent();b=document.getElementById(d.getClientId()+"::hline");c=document.getElementById(d.getClientId()+"::vline");d=document.getElementById(d.getClientId()+"::connector");if(null!=b&&null!=c&&null!=d){AdfPage.PAGE.getLocaleContext().isRightToLeft()?d.style.right=parseInt(this.C(a))-
6+"px":d.style.left=parseInt(this.C(a))-6+"px";d.style.top=parseInt(this.pa(a))-13+"px";var e=this.C(a)-parseInt(this.ko),d=this.pa(a)-parseInt(this.dt);0<=e?(b.style.width=e+"px",AdfPage.PAGE.getLocaleContext().isRightToLeft()?b.style.right=this.ko+"px":b.style.left=this.ko+"px"):(AdfPage.PAGE.getLocaleContext().isRightToLeft()?b.style.right=parseInt(this.C(a))-1+"px":b.style.left=parseInt(this.C(a))-1+"px",e=parseInt(this.ko)-parseInt(this.C(a)),b.style.width=e+"px");0<=d?(c.style.height=d+"px",
AdfPage.PAGE.getLocaleContext().isRightToLeft()?c.style.right=parseInt(this.C(a))-1+"px":c.style.left=parseInt(this.C(a))-1+"px",c.style.top=this.dt+"px"):(c.style.top=this.pa(a)+"px",e=parseInt(this.dt)-parseInt(this.pa(a)),c.style.height=e+"px",AdfPage.PAGE.getLocaleContext().isRightToLeft()?c.style.right=parseInt(this.C(a))-1+"px":c.style.left=parseInt(this.C(a))-1+"px")}}else this.$h(a)}else"split"==this.Ud?this.Lk(a,b,c):"recurring"==this.Ud?this.Lk(a,b,c):"entire"==this.Ud?this.ls(a,b,c):this.Lk(a,
b,c);else this.zi(a)};AdfDhtmlBaseGanttPeer.prototype.contDrag=AdfDhtmlBaseGanttPeer.prototype.ai;AdfDhtmlBaseGanttPeer.prototype.Ie=function(a){this.Va();AdfAgent.AGENT.enableUserSelect(this.getDomElement());null==this.dragger||!(!A_1c(this,"edit")&&this.Fe()||A_3c(a))||A_1c(this,"linking")&&A_3c(a)||("split"==this.Ud?this.ei(a):"recurring"==this.Ud?this.ei(a):"entire"==this.Ud?this.us(a):this.ei(a))};AdfDhtmlBaseGanttPeer.prototype.endDrag=AdfDhtmlBaseGanttPeer.prototype.Ie;
function A_1c(a,b){var c=a.getDomElement(),d=!1;null!=c&&(c=c.getAttribute("featuresOff"),null!=c&&c.match(b)&&(d=!0));return d}A_=AdfDhtmlBaseGanttPeer.prototype;A_.Fe=function(){var a=null;if(null!=this.dragger){var b=this.dragger.parentNode;null!=b&&(a=b.getAttribute("ea"))}return null==a?!0:!1};function A_2c(a){a=a.getDomElement();var b=null;null!=a&&(b=a.getAttribute("contextPath"));return b}A_.Cs=function(){};A_.zi=function(){};function A_4c(a,b){a.uq(a.C(b),a.pa(b),!0)}
A_.uq=function(a,b,c){var d=new Date;d.setTime(this.vc.getTime());var e=new Date;e.setTime(this.He.getTime());var f=this.Nk;if(this.ga){var g=this.Za(),h=this.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.sa,h=AdfPage.PAGE.findComponent(h),g=parseInt(A_5c(g))-A_Hc(this),g=null!=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.S)?g+h.getScrollLeft()-2:g-h.getScrollLeft()+2,g=A_Tc(g,A_Qc(this),A_Rc(this),A_Sc(this)),h=this.He.getTime()-this.vc.getTime();d.setTime(g);e.setTime(g+
h)}else if(this.Ca){if(null==this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.lc)){for(var g=null,h=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.S),l=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.Z),m=0;m<this.dragger.parentNode.childNodes.length;m++)if(null!=l){if(this.dragger.parentNode.childNodes[m].getAttribute(AdfDhtmlBaseGanttPeer.l)==AdfDhtmlBaseGanttPeer.xc&&l==this.dragger.parentNode.childNodes[m].getAttribute(AdfDhtmlBaseGanttPeer.Z)){g=this.dragger.parentNode.childNodes[m];break}}else if(this.dragger.parentNode.childNodes[m].getAttribute(AdfDhtmlBaseGanttPeer.l)==
AdfDhtmlBaseGanttPeer.xc||null!=h&&h==this.dragger.parentNode.childNodes[m].getAttribute(AdfDhtmlBaseGanttPeer.S)){g=this.dragger.parentNode.childNodes[m];break}g=null!=h?parseInt(A_5c(this.dragger.parentNode))+parseInt(A_5c(g))+parseInt(this.resizeGhostBar.style.width):parseInt(A_5c(g))+parseInt(this.resizeGhostBar.style.width)}else null!=this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.lc)&&(g=parseInt(A_5c(this.dragger))+parseInt(this.dragger.style.width));g=A_Tc(g,A_Qc(this),A_Rc(this),A_Sc(this));
e.setTime(g)}g=A_Dc(this);null!=g&&(m="",h=this.getDomElement(),l=A_6c(this,AdfDhtmlBaseGanttPeer.Ju),null!=l?l=l.getAsString(e):(l=A_7c(this,e),"hour"==f&&(l+="\x3c/b\x3e")),this.ga?(e=A_6c(this,AdfDhtmlBaseGanttPeer.mq),null!=e?d=e.getAsString(d):(d=A_7c(this,d),"hour"==f&&(d+="\x3c/b\x3e")),m="\x3ctable cellpadding\x3d'0' cellspacing\x3d'0' style\x3d'padding-bottom:3px;padding-right:3px'\x3e\x3ctr valign\x3d'top'\x3e\x3ctd class\x3d'"+h.getAttribute(AdfDhtmlBaseGanttPeer.Ed)+"' style\x3d'text-align:right; padding:0 8px 0 0; white-space: nowrap;'\x3e"+
A_K(this,"start_time")+"\x3c/td\x3e\x3ctd style\x3d'text-align:left;'\x3e"+d+"\x3c/td\x3e\x3c/tr\x3e",m=m+"\x3ctr valign\x3d'top'\x3e\x3ctd class\x3d'"+h.getAttribute(AdfDhtmlBaseGanttPeer.Ed)+"' style\x3d'text-align:right; padding:0 8px 0 0; white-space: nowrap;'\x3e"+A_K(this,"end_time")+"\x3c/td\x3e\x3ctd style\x3d'text-align:left;'\x3e"+l+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e"):this.Ca&&("hour"==f?(f=(e.getTime()-this.vc.getTime())/36E5,f=Math.max(0,Math.round(100*f)/100),f+=" h"):(f=(e.getTime()-
this.vc.getTime())/864E5,f=Math.max(0,Math.round(100*f)/100),f=f+" "+A_K(this,"days")),m="\x3ctable cellpadding\x3d'0' cellspacing\x3d'0' style\x3d'padding-bottom:3px;padding-right:3px'\x3e\x3ctr valign\x3d'top'\x3e\x3ctd class\x3d'"+h.getAttribute(AdfDhtmlBaseGanttPeer.Ed)+"' style\x3d'text-align:right; padding:0 8px 0 0; white-space: nowrap;'\x3e"+A_K(this,"end_time")+"\x3c/td\x3e\x3ctd style\x3d'text-align:left;'\x3e"+l+"\x3c/td\x3e\x3c/tr\x3e",m=m+"\x3ctr valign\x3d'top'\x3e\x3ctd class\x3d'"+
h.getAttribute(AdfDhtmlBaseGanttPeer.Ed)+"' style\x3d'text-align:right; padding:0 8px 0 0; white-space: nowrap;'\x3e"+A_K(this,"duration")+"\x3c/td\x3e\x3ctd style\x3d'text-align:left;'\x3e"+f+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e"),g.childNodes[0].childNodes[1].childNodes[1].innerHTML=m,c&&(g.style.display="block",g.style.top=b-50+"px",g.style.left=a-parseInt(g.offsetWidth)-10+"px"))};
function A_5c(a){var b=a.style.left;AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(b=a.style.right);return b}function A_3c(a){return null==a?window.event.ctrlKey?!0:!1:a.ctrlKey?!0:!1}
function A_8c(a,b,c){var d=parseInt(AdfAgent.AGENT.getDomWindow().document.documentElement.scrollLeft);b.style.left=parseInt(c)-d+5+"px";a=AdfAgent.AGENT.getElementPageBounds(a.getDomElement());d=parseInt(b.style.left)+parseInt(b.offsetWidth)+10-(a.right-a.left+d);0<d&&(b.style.left=parseInt(b.style.left)-d+"px");AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(b.style.right=b.style.left,b.style.left="")}
function A_9c(a,b,c,d){var e=AdfAgent.AGENT.getElementPageBounds(a.getDomElement()),f=AdfAgent.AGENT.getDomWindow().document.documentElement,g=parseInt(f.scrollLeft),f=parseInt(f.scrollTop),h=parseInt(c)-g+5;b.style.left=h+"px";g=h+parseInt(b.offsetWidth)+10-(e.right-e.left+g);0<g&&(h-=g);AdfPage.PAGE.getLocaleContext().isRightToLeft()?(b.style.right=h+"px",b.style.left=""):b.style.left=h+"px";h=parseInt(d)-f+5;b.style.top=h+"px";g=h+parseInt(b.offsetHeight)+10-(e.bottom-e.top+f);0<g?(b.style.top=
h-g+"px",a.fA(b,c,d,f,e)):b.style.top=h+"px"}A_.fA=function(){};
A_.DomReplaceNotify=function(a){if(!this.si){var b=a.getAttribute("parentId");if(null!=b){var c=a.getAttribute(AdfDhtmlBaseGanttPeer.v),b=document.getElementById(b),c=A_$c(b,c);null!=c&&c.setAttribute("tooltip",a.getAttribute("tooltip"))}if(null!=this.dragger){var c=a.getAttribute("getX"),b=a.getAttribute("getY"),d=this.getTooltip();if(null==a.getAttribute("tooltip")||""==a.getAttribute("tooltip"))return null;d.style.top=parseInt(b)+5+"px";var e=AdfAgent.AGENT.getElementPageBounds(this.getDomElement()),
e=parseInt(d.style.top)+parseInt(d.style.height)-e.bottom+5;0<e&&(d.style.top=parseInt(d.style.top)-e+"px");d.childNodes[0].childNodes[1].childNodes[1].innerHTML=a.getAttribute("tooltip");d.style.display="block";A_9c(this,d,c,b);return null}}};AdfDhtmlBaseGanttPeer.prototype.DomReplaceNotify=AdfDhtmlBaseGanttPeer.prototype.DomReplaceNotify;
AdfDhtmlBaseGanttPeer.prototype.showTooltip=function(a){if(!(this.ja||this.Pk||this.si)){var b=A_ad(this,this.dragger),c=b[0],d=b[1],b=A_$c(d,c);null==b||null!=b.getAttribute("tooltip")&&""!=b.getAttribute("tooltip")||(b=null);if(null==b){if(this.dragger.getAttribute(AdfDhtmlBaseGanttPeer.l)==AdfDhtmlBaseGanttPeer.$b||"IMG"==this.dragger.nodeName)this.dragger=A_J(this,this.dragger,AdfDhtmlBaseGanttPeer.v);if(null==this.dragger.getAttribute("tooltip")||""!=this.dragger.getAttribute("tooltip"))b={},
b.taskId=c,b.rowKey=A_Vc(this,this.dragger),b.parentId=d.getAttribute("id"),b.getX=this.C(a),b.getY=this.pa(a),c=this.getComponent(),a=AdfPage.PAGE,b=new A_I(c,"onDemandTooltip",b),b.setPartial(!0),a.queueEventToServer(b)}else c=this.getTooltip(),c.style.top=parseInt(this.pa(a))+5+"px",d=AdfAgent.AGENT.getElementPageBounds(this.getDomElement()),d=parseInt(c.style.top)+parseInt(c.style.height)-d.bottom+5,0<d&&(c.style.top=parseInt(c.style.top)-d+"px"),c.childNodes[0].childNodes[1].childNodes[1].innerHTML=
b.getAttribute("tooltip"),c.style.display="block",A_9c(this,c,this.C(a),this.pa(a))}};
function A_Cc(a,b,c){var d=a.getTooltip();null!=d&&(d.style.display="none");null!=a.Bo&&clearTimeout(a.Bo);var e=a.getComponent(),d=A_0c(a);a.Dl=!0;var f=document.getElementById(e.getClientId()),e=f.getAttribute("major"),f=f.getAttribute("minor"),e=A_la(a.ft,c,e);c=A_la(a.gt,c,f);null!=e&&null!=c&&(a.ft=e[0],a.gt=c[0]);d.style.top=parseInt(a.pa(b))-30+"px";f=AdfAgent.AGENT.getElementPageBounds(a.getDomElement());f=parseInt(d.style.top)+parseInt(d.style.height)-f.bottom+5;0<f&&(d.style.top=parseInt(d.style.top)-
f+"px");d.childNodes[0].childNodes[1].childNodes[1].innerHTML="\x3cdiv style\x3d'position:relative;padding-bottom:3px;padding-right:3px'\x3e"+e[1]+", "+c[1]+"\x3c/div\x3e";d.style.display="block";A_8c(a,d,a.C(b));b=a.getComponent().getClientId();a.Bo=setTimeout('AdfDhtmlBaseGanttPeer.callZoom("'+b+'")',1E3)}
function A_la(a,b,c){c=c.split(";");c.pop();for(var d=0;d<c.length;d++){var e=c[d].split(",");if(a==e[0]){if(b&&d<c.length-1)return c[d+1].split(",");if(!b&&0<d)return c[d-1].split(",")}}return null}
function A_ad(a,b){var c=null,d=null,d=null,c=a.getComponent().getClientId()+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.sa;if(null!=b){if(b.getAttribute("id")==c)return null;var c=b.getAttribute(AdfDhtmlBaseGanttPeer.v),d=A_J(a,b.parentNode,"id"),d=[c,d],e=b.getAttribute(AdfDhtmlBaseGanttPeer.S),f=b.getAttribute(AdfDhtmlBaseGanttPeer.Z);if(null==c||null!=e||null!=f)d=A_ad(a,b.parentNode)}return d}
function A_$c(a,b){for(var c=null,d=0;d<a.childNodes.length;d++){var e=a.childNodes[d];if("DIV"==e.nodeName&&e.getAttribute(AdfDhtmlBaseGanttPeer.v)==b){c=e;break}}return c}AdfDhtmlBaseGanttPeer.prototype.debug=function(a){var b=this.getComponent().getClientId(),b=document.getElementById(b+"::debugger");null!=b&&(b.innerHTML=a)};
AdfDhtmlBaseGanttPeer.prototype.getWidth=function(){var a=this.getDomElement(),b=AdfAgent.AGENT.getComputedStyle(a),c=0;"100%"==b.width||"webkit"==AdfAgent.AGENT.getPlatform()&&"auto"==b.left?c=parseInt(AdfAgent.AGENT.getWindowClientWidth(AdfAgent.AGENT.getDomWindow())):(c="",c=AdfAgent.AGENT.getPlatform()==AdfAgent.IE_PLATFORM?a.clientWidth:b.width,c="auto"==b.left?Math.min(parseInt(AdfAgent.AGENT.getWindowClientWidth(AdfAgent.AGENT.getDomWindow())),parseInt(c)):Math.min(parseInt(AdfAgent.AGENT.getWindowClientWidth(AdfAgent.AGENT.getDomWindow())),
parseInt(b.left)+parseInt(c)));parseInt(AdfAgent.AGENT.getWindowClientHeight(AdfAgent.AGENT.getDomWindow()))<parseInt(AdfAgent.AGENT.getWindowScrollHeight(AdfAgent.AGENT.getDomWindow()))&&(c-=14);return c};function A_bd(a){return(0>a||9<a?"":"0")+a}function A_6c(a,b){var c=a.getDomElement().getAttribute(b);return null!=c?eval(c):null}
function A_7c(a,b,c){a=a.getDomElement().getAttribute("df");a+="";var d="",e=0,f="",g="",f=b.getYear()+"",g=b.getMonth()+1,h=b.getDate(),l=b.getHours(),m=b.getMinutes();b={};4>f.length&&(f=""+(f-0+1900));b.y=""+f;b.yyyy=f;b.yy=f;b.M=A_bd(g);b.MM=A_bd(g);b.d=A_bd(h);b.dd=A_bd(h);b.H=A_bd(l);b.HH=A_bd(l);b.h=0==l?12:12<l?l-12:l;b.h=A_bd(b.h);b.hh=A_bd(b.h);b.K=11<l?l-12:l;b.k=l+1;b.KK=A_bd(b.K);b.kk=A_bd(b.k);b.a=11<l?"PM":"AM";b.m=A_bd(m);for(b.mm=A_bd(m);e<a.length;){f=a.charAt(e);for(g="";a.charAt(e)==
f&&e<a.length;)g+=a.charAt(e++);void 0!=c||"H"!=g&&"HH"!=g&&"hh"!=g&&"h"!=g||(d+="\x3cb\x3e");d=null!=b[g]?d+b[g]:d+g}return d}AdfDhtmlBaseGanttPeer.HL=function(a,b){"width"==a.getPropertyName()&&AdfDhtmlBaseGanttPeer.It(b)};A_a("AdfDhtmlBaseGanttPeer.handleColumnPropertyChange",AdfDhtmlBaseGanttPeer.HL);
AdfDhtmlBaseGanttPeer.Ws=function(a,b){var c=a.getPropertyName();if("scrollLeft"==c){var d=parseInt(a.getNewValue()),e=AdfPage.PAGE.findComponent(b),c=e.getPeer(),f=parseInt(A_Uc(c)),g=AdfAgent.AGENT.getElementById(A_E(c)).offsetWidth,h=a.getSource(),h=new AdfScrollEvent(e,"chartHorizontalScroll",a,d,h.getScrollTop());e.queueEvent(h);if(-1<f&&(e.setProperty("scrollLeft",d,!0,AdfUIComponent.PROPAGATE_ALWAYS),d+g>c.Lq+f||d-g<c.Lq-f)){c.Lq=d;var f=AdfPage.PAGE,g=A_cd(c),h=c.Ww(),l={};l.startRowKey=g;
l.endRowKey=h;d=new A_dd(e,d,l);f.queueEventToServer(d);d=f.getLookAndFeel().getTranslatedString("af_table.LABEL_FETCHING");A_Oc(c,d)}}else"selectedRowKeys"==c?(e=AdfPage.PAGE.findComponent(b),c=e.getPeer(),c.Vg(b)):"splitterPosition"==c?AdfPage.PAGE.isScreenReaderMode()&&AdfDhtmlBaseGanttPeer.It(b):"collapsed"==c&&0==a.getNewValue()&&setTimeout(function(){AdfDhtmlBaseGanttPeer.It(b)},10)};A_a("AdfDhtmlBaseGanttPeer.handlePropertyChange",AdfDhtmlBaseGanttPeer.Ws);
AdfDhtmlBaseGanttPeer.VK=function(a){a=AdfDhtmlBaseGanttPeer.createSubId(a,AdfDhtmlBaseGanttPeer.Pb);var b=AdfAgent.AGENT.getElementById(a),b=AdfAgent.AGENT.getAttribute(b,"_leafColClientIds"),b=b.replace(/'/g,'"'),b=JSON.parse(b);return 0<b.length?b[b.length-1].substring(a.length+1):null};AdfDhtmlBaseGanttPeer.fo=function(a){var b=AdfPage.PAGE.findComponent(a).getPeer();b.Th=0;b.$t(a)};A_a("AdfDhtmlBaseGanttPeer.handleDataFetch",AdfDhtmlBaseGanttPeer.fo);A_=AdfDhtmlBaseGanttPeer.prototype;
A_.$t=function(a){var b=AdfPage.PAGE,c=A_Bc(this);if(null==b.findComponent(c).getPeer().gS&&this.Th<AdfDhtmlBaseGanttPeer.ZR){if(c=this.Ee)b.cancelTimer(c),delete this.Ee;this.Ee=b.scheduleTimer(this,this.$t,a,AdfDhtmlBaseGanttPeer.pj);this.Th++}else{if(c=this.Ee)b.cancelTimer(c),delete this.Ee;this.Th=0;AdfDhtmlBaseGanttPeer.bA(a);this.fo(a)}};
A_.fo=function(a){var b=AdfPage.PAGE,c=A_Bc(this),c=b.findComponent(c).getPeer(),d=A_E(this),d=b.findComponent(d).getPeer();if((c.IsFetchPending()||c.BusyAnimating()||d.BusyAnimating())&&this.Th<AdfDhtmlBaseGanttPeer.iq){if(c=this.Ee)b.cancelTimer(c),delete this.Ee;this.Ee=b.scheduleTimer(this,this.fo,a,AdfDhtmlBaseGanttPeer.pj);this.Th++}else{if(c=this.Ee)b.cancelTimer(c),delete this.Ee;this.Th=0;this._hideStatus();AdfDhtmlBaseGanttPeer.cA(a);this.tz(a)}};
A_.tz=function(a){var b=AdfPage.PAGE;if(null==b.findComponent(a+AdfDhtmlBaseGanttPeer.D+AdfDhtmlBaseGanttPeer.Pb).getSelectedRowKeys()&&this.vr<AdfDhtmlBaseGanttPeer.iq){var c=this.ck;c&&(b.cancelTimer(c),delete this.ck);this.ck=b.scheduleTimer(this,this.tz,a,AdfDhtmlBaseGanttPeer.pj);this.vr++}else{if(c=this.ck)b.cancelTimer(c),delete this.ck;this.vr=0;this.Xs(a)}};A_.Xs=function(a){this.Vg(a)};A_.Ds=function(){return this.getComponent().getClientId()+"::ghost"};
AdfDhtmlBaseGanttPeer.prototype.getGhostId=AdfDhtmlBaseGanttPeer.prototype.Ds;AdfDhtmlBaseGanttPeer.prototype.Za=function(){return document.getElementById(this.Ds())};AdfDhtmlBaseGanttPeer.prototype.getGhost=AdfDhtmlBaseGanttPeer.prototype.Za;
AdfDhtmlBaseGanttPeer.hK=function(a,b,c){var d=document.getElementById(c);0>a?(a=Math.min(0,a+5),AdfPage.PAGE.getLocaleContext().isRightToLeft()?d.style.right=parseInt(d.style.right)+5+"px":d.style.left=parseInt(d.style.left)+5+"px"):0<a&&(a=Math.max(0,a-5),AdfPage.PAGE.getLocaleContext().isRightToLeft()?d.style.right=parseInt(d.style.right)-5+"px":d.style.left=parseInt(d.style.left)-5+"px");0>b?(b=Math.min(0,b+5),d.style.top=parseInt(d.style.top)+5+"px"):0<b&&(b=Math.max(0,b-5),d.style.top=parseInt(d.style.top)-
5+"px");if(0==a&&0==b){clearTimeout(this.zL);for(a=d.firstChild;a.firstChild;)a.removeChild(a.firstChild);d.style.display="none"}else this.zL=setTimeout("AdfDhtmlBaseGanttPeer.doMove("+a+","+b+',"'+c+'")',1)};AdfDhtmlBaseGanttPeer.prototype.ra=function(a){var b=this.qf(a.getNativeEventTarget());if(void 0!=b){a=a.getNativeEventTarget();if(null!=a&&null!=a.parentNode&&(a=a.getAttribute(AdfDhtmlBaseGanttPeer.l),null==a||"bg"==a))return;this.Xb(b);this.N=b}};
A_a("AdfDhtmlBaseGanttPeer.prototype.HandleComponentClick",AdfDhtmlBaseGanttPeer.prototype.ra);AdfDhtmlBaseGanttPeer.prototype.Wk=function(a){return this.qf(a)};AdfDhtmlBaseGanttPeer.prototype.qf=function(){return null};function A_ed(a,b,c,d){b=b.concat(c);null!=d&&(b=b.concat(" "),d instanceof Date&&(d=A_7c(a,d,!0)),b=b.concat(d));return b=b.concat(", ")}
AdfDhtmlBaseGanttPeer.prototype.Xb=function(a){if(null!=a&&(a.setAttribute("tabIndex",0),a.focus(),a=a.getAttribute("data-tooltip"),null!=a)){var b=AdfDhtmlBaseGanttPeer.createSubId(this.getComponent().getClientId(),null,"ots");AdfAgent.AGENT.getElementById(b).textContent=a}};
AdfDhtmlBaseGanttPeer.tC=function(a,b){for(var c=AdfAgent.AGENT,d=c.getElementById(b+"::stp").getElementsByTagName("td"),e=0;e<d.length;e++)a=0<e?a.concat(", "):a.concat(" "),a=a.concat(d[e].textContent),a=a.concat(" "),e+1<d.length&&(a=a.concat(d[e+1].textContent),e++);c.getElementById(b+"::sts").textContent=a};A_a("AdfDhtmlBaseGanttPeer.HandleLegendUpdate",AdfDhtmlBaseGanttPeer.tC);
AdfDhtmlBaseGanttPeer.uC=function(a,b,c,d){var e=AdfPage.PAGE.findComponent(a).getPeer(),e=A_K(e,"tu");null!=b&&(e=e.concat(" "),e=e.concat(b));null!=c&&null!=d&&(b=document.getElementById(c),d=A_$c(b,d),null!=d&&d.setAttribute("data-tooltip",e));AdfAgent.AGENT.getElementById(a+"::ots").textContent=e};A_a("AdfDhtmlBaseGanttPeer.HandleTooltipFetched",AdfDhtmlBaseGanttPeer.uC);