var A_8=AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlTimelineSeriesPeer",A_c);A_h("AdfDhtmlTimelineSeriesPeer",A_8);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.timeline.TimelineSeries","AdfDhtmlTimelineSeriesPeer");
A_8.InitSubclass=function(){AdfObject.ensureClassInitialization(A_8);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.CLICK_EVENT_TYPE,AdfUIInputEvent.MOUSE_IN_EVENT_TYPE,AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE,AdfUIInputEvent.KEY_DOWN_EVENT_TYPE,AdfComponentEvent.CONTEXT_MENU_EVENT_TYPE,AdfDropEvent.DROP_EVENT_TYPE);AdfRichUIPeer.addSuppressedPPRAttributes(this,"blockStart");AdfRichUIPeer.addSuppressedPPRAttributes(this,"blockEnd");AdfRichUIPeer.addComponentPropertyChanges(this,"selectedRowKeys");
this.qE=0;this.Fp=1;this.uu=2;this.gQ="afrSelectAll";this.jR="single";this.nE="multiple";this.oE="none";this.td="p_AFSelected";this.Si="p_AFHighlighted";this.Ge="p_AFFocused";this.Be="dataW";this.cu=/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/;this.ZD="_afrNdsRfr";this.W="_rk";this.Hz=-99;this.Vn=0;this.Tn=1;this.Un=2;this.Iz=3;this.cD=-98;this.eB=-97;this.qt=1;this.rt=2;this.YB=4;this.Pi=0;this.ql=15;this.vl=3;this.Sz=0;this.Bo=1;this.Co=2;this.oo="#267DB3 #68C182 #FAD55C #ED6647 #8561C8 #6DDBDB #FFB54D #E371B2 #47BDEF #A2BF39 #A75DBA #F7F37B".split(" ")};
A_h("AdfDhtmlTimelineSeriesPeer.InitSubclass",A_8.InitSubclass);A_8.prototype.InitDomElement=function(a,b){A_8.superclass.InitDomElement.call(this,a,b);A_7.Pb()||this.Ls(b);this.aw=0;this.hx=A_c;this.kg=A_;this.vq=A_c;this.Dd=0;this.lb=-1;this.Im=parseInt(AdfAgent.AGENT.getAttribute(b,"_timt"));this.Gq=parseInt(AdfAgent.AGENT.getAttribute(b,"_timb"));this.Aj=Math.max(this.Im,this.Gq)};A_h("AdfDhtmlTimelineSeriesPeer.prototype.InitDomElement",A_8.prototype.InitDomElement);
A_8.prototype.BindToComponent=function(a,b){A_8.superclass.BindToComponent.call(this,a,b);a.getParent().getPeer().xo(a)};A_8.prototype.ComponentRemoved=function(a){var b=this.q();b!=A_&&b.pz(this);A_8.superclass.ComponentRemoved.call(this,a)};A_h("AdfDhtmlTimelineSeriesPeer.prototype.ComponentRemoved",A_8.prototype.ComponentRemoved);
A_8.prototype.Ls=function(a){var b=AdfAgent.AGENT,c=b.getPlatform(),d=c==AdfAgent.IE_PLATFORM&&9<=b.getVersion(),b=(c=c==AdfAgent.GECKO_PLATFORM)&&17<=b.getVersion(),e=this.createCallback(this.Od);d||b?a.addEventListener("wheel",e,A_b):c?a.addEventListener("DOMMouseScroll",e,A_b):a.onmousewheel=e};A_8.prototype.Od=function(a){a||(a=AdfPage.PAGE.getDomWindow().event);a=a.wheelDeltaX;a!=A_&&(a=Math.round(-1/120*a),this.q().wf(a,A_b))};
A_8.ps=function(){return AdfAgent.AGENT.atLeast(AdfAgent.IE_PLATFORM,9)};A_8.Qd=function(){var a=AdfAgent.AGENT;return a.getPlatform()==AdfAgent.IE_PLATFORM&&7==a.getVersion()};A_8.jf=function(){var a=AdfAgent.AGENT;return a.getPlatform()==AdfAgent.IE_PLATFORM&&8==a.getVersion()};A_8.prototype.mf=function(){return AdfDvtAnimator.$a.mf()};function A_$(a){return AdfAgent.AGENT.getIntAttribute(a.getDomElement(),"_tai")!=A_}
function A_Hj(a,b){return A_$(a)?AdfAgent.AGENT.getAttribute(b.firstChild,"_et")!=A_?b.firstChild.nextSibling:b.firstChild:A_}function A_jj(a){a=a.getComponent().getClientId();return AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(a,"dta"))}function A_Ij(a,b){return A_$(a)?A_Hj(a,b).nextSibling:AdfAgent.AGENT.getAttribute(b.firstChild,"_et")!=A_?b.firstChild.nextSibling:b.firstChild}A_8.prototype.q=function(){return this.getComponent().getParent().getPeer()};A_8.prototype.we=function(){return this.getComponent().getParent().we()};
A_h("AdfDhtmlTimelineSeriesPeer.prototype.getAnimationOnDisplay",A_8.prototype.we);A_8.prototype.af=function(){return this.getComponent().getParent().af()};A_h("AdfDhtmlTimelineSeriesPeer.prototype.getAnimationOnDataChange",A_8.prototype.af);A_g=A_8.prototype;A_g.Za=function(){return this.q().Za()};A_g.X=function(){this.kg==A_&&(this.kg=this.q().X());return this.kg};A_g.xb=function(){this.Lj==A_&&(this.Lj=this.q().xb());return this.Lj};
A_g.DomReplaceNotify=function(a){return 0<a.id.indexOf(A_8.Be)?A_:a};A_g.ta=function(a){return this.X()?parseInt(a.style.top):AdfPage.PAGE.getLocaleContext().isRightToLeft()?parseInt(a.style.right):parseInt(a.style.left)};A_g.mc=function(a,b){this.X()?a.style.top=b+"px":AdfPage.PAGE.getLocaleContext().isRightToLeft()?a.style.right=b+"px":a.style.left=b+"px"};function A_Jj(a,b){var c;c==A_a&&(c=a.X());return c?parseInt(b.style.height):parseInt(b.style.width)}
function A_kj(a,b,c){var d;d==A_a&&(d="px");a.X()?b.style.height=c+d:b.style.width=c+d}A_g.aa=function(a){return this.X()?parseInt(a.scrollTop):this.q().Th(a)};A_g.setScrollPos=function(a,b){this.X()?a.scrollTop=b:A_aj(this.q(),a,b)};function A_Kj(a){a.getDomElement().scrollTop=0;A_9(a).style.height="100%";a.xb()&&(A_jj(a).style.top="0px")}
A_g.ReplaceDomElement=function(a,b){if(0<a.id.indexOf(A_8.Be)){var c=AdfAgent.AGENT,d=A_8.vJ(a);if(this.jd){this.vg();for(var e=c.getIntAttribute(a,"_fetchId",-1),f=this.Oj,g=b.firstChild;g;)this.Xe(g),b.removeChild(g),g=b.firstChild;g=A_9(this);if(f!=A_a&&this.Vw==e){var h=this.Ww,e=this.Xw;this.mn();if(c.getBooleanAttribute(a,A_8.ZD,A_c))AdfPage.PAGE.addPartialTargets(this.getComponent());else{if(3==f){this.Ka=parseInt(d.style.left);this.Oa=parseInt(d.style.left)+parseInt(d.style.width);f=g.childNodes;
for(h=f.length-1;0<=h;h--){var l=f[h];this.Xe(l);g.removeChild(l)}g.appendChild(d);c.elementsAdded(d);A_Kj(this)}else{this.ta(d)<this.Ka&&(this.Ka=this.ta(d));this.ta(d)+A_Jj(this,d)>this.Oa&&(this.Oa=this.ta(d)+A_Jj(this,d));2==f?g.appendChild(d):g.insertBefore(d,g.firstChild);c.elementsAdded(d);if(h){f=A_9(this);this.X()?(h=this.ya().scrollTop,l=h+this.ya().offsetHeight):(h=this.q().Th(this.ya()),l=h+this.ya().offsetWidth);this.Oa=this.Ka=-1;for(var m=f.childNodes,n=m.length-1;0<=n;n--){var p=m[n],
q=this.ta(p),v=q+A_Jj(this,p);if(q>l||v<h)this.Xe(p),f.removeChild(p);else{if(-1==this.Ka||-1<this.Ka&&q<this.Ka)this.Ka=q;if(-1==this.Oa||-1<this.Oa&&v>this.Oa)this.Oa=v}}}f=g.childNodes;1==f.length&&A_Kj(this);for(h=0;h<f.length;h++)f[h].style.zIndex=f.length-h+2}A_8.setCursor(g,"");e?(A_$(this)&&(this.xb()?d.firstChild.style.top=g.firstChild.firstChild.style.top:d.firstChild.style.bottom=g.firstChild.firstChild.style.bottom),this.rm=A_c):(A_Lj(this,A_c,A_c),A_lj(this));A_Mj(this,d);A_Nj(this);
if(this.Nq!=A_){d=d.childNodes;for(e=0;e<d.length;e++)if(f=d[e],g=c.getAttribute(f,A_8.W),h=c.getIntAttribute(f,"x"),!(h==A_||g==A_)&&h==this.Nq){A_Fj(this,g,f);A_Bj(this.q(),g,f,this.getComponent().getClientId());break}}this.Nq=A_;this.Rq!=A_&&(g=document.getElementById(this.Rq),g!=A_&&(c=A_5i(g,this.getDomElement()),g=c[0],f=c[1],A_6i(this,this.vw,g,f),this.vw=this.Rq=A_));this.eS=A_}}else if(e==A_8.Hz&&f==A_a){c=a.childNodes;b:{d=AdfAgent.AGENT;for(e=0;e<c.length;e++)if(d.getIntAttribute(c[e],
"_autopprBlock",-1)==A_8.Iz){e=c[e];break b}e=A_}d=AdfAgent.AGENT;if(e){c=e;d=AdfAgent.AGENT;e=[];f=g.childNodes;for(h=0;h<f.length;h++){l=f[h].childNodes;for(m=0;m<l.length;m++)n=l[m],d.getAttribute(n,A_8.W)!=A_&&A_Oj(this,e,n)}AdfDvtAnimator.$a.animate(this,e,1E3,A_8.nJ,[this,g,c.childNodes[0]])}else{e=[];f=A_;this.af()==AdfDhtmlTimelinePeer.dl&&this.mf()&&(f=[]);h=A_;this.mf()&&(h=[]);l=[];for(m=0;m<c.length;m++)switch(n=d.getIntAttribute(c[m],"_autopprBlock",-1),A_Pj(this,c[m]),n){case A_8.Tn:n=
c[m].firstChild;A_Yi(this,e,n,g);f!=A_&&f.push(n);break;case A_8.Vn:n=c[m].firstChild;A_Zi(this,e,n);h!=A_&&h.push(n);break;case A_8.Un:n=d.getAttribute(c[m],A_8.W),n!=A_&&(n=A_Dj(this,n),n!=A_&&(A_Oj(this,e,n),l.push(n)))}0<e.length&&(0<l.length?AdfDvtAnimator.$a.animate(this,e,1E3,A_8.oJ,[this,l]):f!=A_?AdfDvtAnimator.$a.animate(this,e,1E3,A_8.iL,[this,f]):h!=A_?AdfDvtAnimator.$a.animate(this,e,1E3,A_8.GM,[this,h]):AdfDvtAnimator.$a.animate(this,e,1E3,A_,A_));A_Qj(this,A_8.Fp);A_Qj(this,A_8.uu)}}else e==
A_8.cD&&f==A_a?this.ns(a)||A_Nj(this):e==A_8.eB&&f==A_a&&this.Zh(a)}else this.mn(),d&&d.firstChild&&(this.Ka=this.ta(d),this.Oa=this.Ka+A_Jj(this,d),A_Rj(this,d,A_c),c.elementsAdded(d),A_Lj(this,A_b,A_c),A_Mj(this,d),A_Nj(this))}else A_8.superclass.ReplaceDomElement.call(this,a,b)};A_h("AdfDhtmlTimelineSeriesPeer.prototype.ReplaceDomElement",A_8.prototype.ReplaceDomElement);
function A_Nj(a){var b=a.getComponent();b.setProperty("blockStart",a.Ka,A_b,AdfUIComponent.PROPAGATE_ALWAYS);b.setProperty("blockEnd",a.Oa,A_b,AdfUIComponent.PROPAGATE_ALWAYS)}A_8.prototype.Lr=function(){for(var a=0,b=0,c=AdfAgent.AGENT,d=A_9(this).childNodes,e=0;e<d.length;e++){var f=d[e];if(c.getAttribute(f,"_timeAxisOnly")==A_){var g=this.ta(f),f=g+A_Jj(this,f);g<a&&(a=g);f>b&&(b=f)}}return{start:a,end:b}};A_8.Vx=function(a,b,c){return Math.floor(Math.random()*(a-b-c))};
A_8.og=function(a,b,c,d){var e=AdfAgent.AGENT,f=e.getIntAttribute(a,"x",0),g=e.getIntAttribute(a,"y",c),h=e.getIntAttribute(a,"h");h==A_&&(h=A_8.xr(a),a.setAttribute("h",h));for(var l=0;l<b.length;l++)for(var m=b[l].childNodes,n=0;n<m.length;n++){var p=m[n];if(e.getAttribute(p,"x")!=A_&&p!=a){var q=e.getIntAttribute(p,"x",0),v=e.getIntAttribute(p,"y",c),u=e.getIntAttribute(p,"w");u==A_&&(u=p.firstChild.offsetWidth,p.setAttribute("w",u));var w=e.getIntAttribute(p,"h");w==A_&&(w=A_8.xr(p),p.setAttribute("h",
w));if(f>=q&&f<=q+u&&(g>=v&&g<=v+w||v>=g&&v<=g+h))g=v+w+d,a.setAttribute("y",g),g=A_8.og(a,b,c,d)}}return g};A_h("AdfDhtmlTimelineSeriesPeer.calculateY",A_8.og);function A_Sj(a,b){return b||!A_$(a)||a.xb()?a.Im:A_nj(a.q())+a.Im}function A_Tj(a){if(a.Bx==A_){var b=A_jj(a);a.Bx=b==A_?0:b.offsetWidth}return a.Bx}function A_Uj(a){if(a.Ax==A_){var b=A_jj(a);a.Ax=b==A_?0:b.offsetHeight}return a.Ax}function A_Vj(a){return A_8.xr(a)}
A_8.xr=function(a){var b=A_c;A_k.ja(a.firstChild,A_8.td)&&(A_k.S(a.firstChild,A_8.td),b=A_b);var c=a.firstChild.offsetHeight;b&&A_k.sa(a.firstChild,A_8.td);return c};function A_Wj(a,b){a.Cx==A_&&(A_k.ja(b,A_8.td)&&A_k.S(b,A_8.td),a.Cx=b.offsetHeight);return a.Cx}function A_Xj(a){return AdfAgent.AGENT.getAttribute(a,"rks")!=A_}A_8.prototype.ay=function(a){A_Lj(this,a.animate,a.isAutoPPR);a=A_9(this).childNodes;for(var b=0;b<a.length;b++)A_Mj(this,a[b])};
function A_Yj(a){a=a.getElementsByTagName("img");for(var b=AdfAgent.AGENT,c=a.length,d=0;d<c;d++){var e=a[d];if(e)if(e.complete){if(0==e.offsetHeight)return A_8.Co}else{var f=b.getComputedStyle(e),e=f.width,f=f.height;if("0px"==e||"auto"==e||"0px"==f||"auto"==f)return A_8.Bo}}return A_8.Sz}
function A_Lj(a,b,c){var d=A_Yj(A_9(a));if(d==A_8.Bo&&10>a.Dd)a.Dd++,AdfPage.PAGE.scheduleTimer(a,a.ay,{animate:b,isAutoPPR:c},100);else if(d==A_8.Co&&1>a.Dd)a.Dd++,AdfPage.PAGE.scheduleTimer(a,a.ay,{animate:b,isAutoPPR:c},0);else{a.Dd=0;d=A_;b&&(d=[]);var e=A_9(a),f=e.childNodes,g=a.od(a.getComponent()),h=a.X()?a.getDomElement().offsetWidth:a.getDomElement().offsetHeight,l=A_$(a),m=a.xb(),n=a.Ec();a.lb=-1;b=[];for(var p=0;p<f.length;p++)for(var q=f[p],v=a.ta(q),u=v+A_Jj(a,q),q=q.childNodes,w=0;w<
q.length;w++){var r=q[w];A_Zj(r)&&b.push(r)}A__j(a,b);for(var x=-1,s=A_Sj(a,n),p=0;p<f.length;p++){q=f[p];v=a.ta(q);u=v+A_Jj(a,q);q=q.childNodes;for(w=0;w<q.length;w++){var r=q[w],z;if(c){var A=a;z=d;var G=f,B=v,D=s,y=-1,C=AdfAgent.AGENT,H=C.getIntAttribute(r,"x");H!=A_&&(B=H-B,G=A_8.og(r,G,D,A.Aj),D=C.getIntAttribute(r,"h"),D==A_&&(D=A_Vj(r),r.setAttribute("h",D)),A_0j(A,r),H=A_9(A),C=parseInt(H.style.height),"100%"==H.style.height&&(C=A.getDomElement().offsetHeight,H.style.height=C+"px"),!A_$(A)||
A.xb()?(G=C-G-D-A.hc,0>G&&(y=G),A.lb=Math.max(A.lb,C-G),G+=A.hc):(D=G+D+A_Uj(A)+A.hc,D>C&&(y=D),A.lb=Math.max(A.lb,D)),z!=A_?(A={},AdfPage.PAGE.getLocaleContext().isRightToLeft()?A.right=B:A.left=B,A.top=G,B={},B.element=r,B.properties=A,z.push(B)):(r.style.left=B+"px",r.style.top=G+"px"));z=y}else a:{var y=a,A=d,F=f,H=v,t=u;z=r;var E=g,D=n,G=h,K=s,B=y.X(),r=-1,C=AdfAgent.AGENT,I=C.getIntAttribute(z,"x");if(I!=A_){H=I-H;if(E)if(F=C.getIntAttribute(z,"h"),F==A_){if(F=A_Vj(z),z.setAttribute("h",F),
!B)var J=A_8.Vx(G,F,A_Uj(y))}else{z=A_a;break a}else J=A_8.og(z,F,K,y.Aj),F=C.getIntAttribute(z,"h"),F==A_&&(F=A_Vj(z),z.setAttribute("h",F)),I=A_9(y),t=parseInt(I.style.height),"100%"==I.style.height&&(t=G,I.style.height=t+"px"),!A_$(y)||y.xb()?(J=t-J-F-y.hc,0>J&&(r=J),y.lb=Math.max(y.lb,t-J),J+=y.hc):(F=J+F+A_Uj(y)+y.hc,F>t&&(r=F),y.lb=Math.max(y.lb,F));if(A_Xj(z)){C.getPlatform()==AdfAgent.WEBKIT_PLATFORM?z.firstChild.style.webkitBoxShadow="none":C.getPlatform()==AdfAgent.GECKO_PLATFORM?(z.firstChild.style.mozBoxShadow=
"none",z.firstChild.style.boxShadow="none"):A_8.ps()&&(z.firstChild.style.boxShadow="none");var L=z.lastChild;A_8.Qd()?L.style.zIndex=-1:L.style.zIndex=0;L.style.width=z.firstChild.offsetWidth+"px";L.style.height=z.firstChild.offsetHeight+"px";B?L.style.left="1px":y.q().mc(L,-19);L.style.top="1px";C.setOpacity(L,0)}B?z.style.top=H-A_Vj(z)/2+"px":AdfPage.PAGE.getLocaleContext().isRightToLeft()?z.style.right=H+"px":z.style.left=H+"px";A_0j(y,z);H=z.firstChild;0>H.offsetLeft+H.offsetWidth&&(H.style.left=
"-6px");t=H.nextSibling;C.setOpacity(t,0);F=t.nextSibling;A_8.Qd()||A_8.jf()?D||(C.setOpacity(F.firstChild,0),C.setOpacity(F.lastChild,0)):C.setOpacity(F,0);if(D){D=y;I=L;K=AdfAgent.AGENT;E=K.getPlatform();K=K.getVersion();if(F!=A_){var R="rotate(45deg)";if(!A_$(D)||D.xb())R="rotate(-135deg)";E==AdfAgent.WEBKIT_PLATFORM?F.style.webkitTransform=R:E==AdfAgent.GECKO_PLATFORM&&16>K?F.style.mozTransform=R:E==AdfAgent.IE_PLATFORM&&9==K&&(F.style.msTransform=R)}E==AdfAgent.IE_PLATFORM&&9>K&&(F!=A_&&(F.style.display=
"none"),t!=A_&&(t.style.marginTop=I!=A_?"-1px":"-4px"))}A!=A_?(D=y.we(),D==AdfDhtmlTimelinePeer.cl?(B?A_1j(y,z,G):z.style.top=J+"px",z.setAttribute("animating",A_b),C.setOpacity(H,0),y={alpha:100},B={},B.element=H,B.properties=y,A.push(B),L!=A_&&(B={},B.element=L,B.properties=y,A.push(B))):D==AdfDhtmlTimelinePeer.dl&&y.mf()?(z.style.top=J+"px",z.setAttribute("animating",A_b),C.setOpacity(z,100),z.style.width=z.firstChild.offsetWidth+"px",z.style.webkitTransform="scale(0)",y={scale:1},B={},B.element=
z,B.properties=y,A.push(B)):D==AdfDhtmlTimelinePeer.xz?(z.style.top="0px",z.setAttribute("animating",A_b),C.setOpacity(z,100),y={},y.top=J,B={},B.element=z,B.properties=y,A.push(B)):D==AdfDhtmlTimelinePeer.fl?(y.getDomElement().style.webkitTransform="perspective(800)",z.style.top=J+"px",z.setAttribute("animating",A_b),C.setOpacity(z,100),z.style.width=z.firstChild.offsetWidth+"px",z.firstChild.style.webkitTransform="rotateY(270deg)",y={rotate:0},B={},B.element=z.firstChild,B.properties=y,A.push(B)):
(z.style.top=J+"px",C.setOpacity(z,100))):C.getAttribute(z,"animating")==A_&&(B?A_1j(y,z,G):z.style.top=J+"px",C.setOpacity(z,100),L!=A_&&C.setOpacity(L,100))}else if(z.getAttribute("_ox")==A_&&z.style!=A_a){I=y.ta(z);if(isNaN(I)){z=A_a;break a}z.setAttribute("_ox",I);H=I-H;A=0-H;0<A&&(H=0,A_kj(y,z,Math.max(0,A_Jj(y,z)-A)));B?z.style.top=H+"px":AdfPage.PAGE.getLocaleContext().isRightToLeft()?z.style.right=H+"px":z.style.left=H+"px";A=I+A_Jj(y,z)-t;0<A&&A_kj(y,z,A_Jj(y,z)-A)}z=r}if((!l||m)&&z<x||l&&
!m&&z>x)x=z}}if(l&&!m){if(h=0,-1!=x?(e.style.height=x+"px",h=x-a.getDomElement().offsetHeight):(h=parseInt(f[0].firstChild.style.bottom),isNaN(h)&&(h=0)),0!=h)for(e=0;e<f.length;e++)q=f[e],q.firstChild.style.bottom=h+"px"}else if(-1!=x){J=0-x;for(L=0;L<f.length;L++){q=f[L];q=q.childNodes;for(g=0;g<q.length;g++)r=q[g],isNaN(parseInt(r.style.top))||(r.style.top=parseInt(r.style.top)+J+"px")}e.style.height=h+J+"px";A_uj(a,J)}if(!A_$(a)||a.xb())for(f=0;f<b.length;f++){e=b[f];h=e.childNodes[3];h.style.zIndex=
100-h.bc;q=AdfAgent.AGENT.getIntAttribute(e,"x2")-AdfAgent.AGENT.getIntAttribute(e,"x");h.style.width=q+"px";q=Math.min(10,q/2);for(j=0;3>j;j++)J=e.childNodes[j],J.style.marginLeft=q+"px";(J=e.childNodes[4])&&(J.style.marginLeft=q+"px");q=18+10*h.bc;h.style.height=q+"px";h.style.top=-1*parseInt(e.style.top)+"px"}else if(a.X())for(f=0;f<b.length;f++)e=b[f],h=e.childNodes[3],h.style.zIndex=100-h.bc,q=AdfAgent.AGENT.getIntAttribute(e,"x2")-AdfAgent.AGENT.getIntAttribute(e,"x"),h.style.height=q+"px",
q=18+10*h.bc,h.style.width=q+"px",h.style.top=A_Vj(e)/2+"px",h.style.left=e.parentNode.offsetWidth-parseInt(e.style.left)-q-A_Tj(a)-1+"px";else for(f=0;f<b.length;f++){e=b[f];h=e.childNodes[3];h.style.zIndex=100-h.bc;q=AdfAgent.AGENT.getIntAttribute(e,"x2")-AdfAgent.AGENT.getIntAttribute(e,"x");h.style.width=q+"px";q=Math.min(10,q/2);for(j=0;3>j;j++)J=e.childNodes[j],J.style.marginLeft=q+"px";(J=e.childNodes[4])&&(J.style.marginLeft=q+"px");q=18+10*h.bc;h.style.height=q+"px";h.style.top=e.parentNode.offsetHeight-
parseInt(e.style.top)-q-A_Uj(a)-1+"px"}-1!=x&&a.ma!=A_&&(a.ma.style.visibility="visible");c?(AdfDvtAnimator.$a.animate(a,d,1E3,A_,A_),A_2j(a)):d!=A_&&0<d.length?a.nz({animationObjects:d,index:0}):A_2j(a);A_7.Pb()&&(a=a.ya(),a.style.overflow="scroll",a.style.webkitOverflowScrolling="touch")}}A_8.Tx=function(a,b,c,d){return a.parentNode.offsetHeight-c-b-d};A_8.Ux=function(a,b,c){return-1*c};A_8.Wx=function(a,b,c,d){return a.parentNode.offsetWidth-c-b-d};
function A__j(a,b){if(a.nj==A_){a.kj=0;var c=a.q().Za();c?(c=A_9i(c),a.nj=c?c:{}):a.nj={}}for(c=a.Nm=0;c<b.length;c++){var d=b[c],e=AdfAgent.AGENT.getAttribute(d,"id"),f=d.childNodes[3];f.bc=A_3j(a,d,b);f.iq==A_&&(a.nj[e]==A_?(a.nj[e]=a.kj,f.iq=A_8.oo[a.kj],a.kj++,a.kj==A_8.oo.length&&(a.kj=0)):f.iq=A_8.oo[a.nj[e]],f.style.backgroundColor=f.iq)}a.hc=0==a.Nm?a.Gq:10*a.Nm+Math.max(a.Gq,40)}
function A_3j(a,b,c){var d=c.length,e=AdfAgent.AGENT.getIntAttribute(b,"x"),f=b.childNodes[3],g=f.bc;g==A_&&(g=1);for(var h=0;h<d;h++){var l=c[h];if(l!=b){var m=l.childNodes[3],n=AdfAgent.AGENT.getIntAttribute(l,"x2");n!=A_&&(l=AdfAgent.AGENT.getIntAttribute(l,"x"),m=m.bc,m==A_&&(m=1),e>=l&&(e<=n&&g==m)&&(g=m+1,f.bc=g,g=A_3j(a,b,c)))}}g>a.Nm&&(a.Nm=g);return g}
function A_Zj(a){return 3<a.childNodes.length?(a=AdfAgent.AGENT.getAttribute(a.childNodes[3],"id"))&&-1!==a.indexOf("duration",a.length-8):A_c}A_g=A_8.prototype;
A_g.nz=function(a){var b=a.animationObjects,c=a.index;if(c==b.length)this.we()==AdfDhtmlTimelinePeer.fl&&(this.getDomElement().style.webkitTransform=""),a=AdfAgent.AGENT,(a.getPlatform()==AdfAgent.GECKO_PLATFORM||14<=parseInt(a.getVersion()))&&AdfPage.PAGE.scheduleTimer(this,this.yJ,A_,1E3);else{a=AdfPage.PAGE;var d=[],e=b[c].element.parentNode,f=this.Ec();this.we()==AdfDhtmlTimelinePeer.fl&&(e=e.parentNode);d.push(b[c]);AdfDvtAnimator.$a.animate(this,d,1E3,A_,A_,f);d=1E3/Math.max(1,b.length);a.scheduleTimer(this,
this.nz,{animationObjects:b,index:c+1},d);b=A_9(this).offsetHeight;c=1E3;this.we()==AdfDhtmlTimelinePeer.cl?c=450:this.we()==AdfDhtmlTimelinePeer.fl&&(c=850);a.scheduleTimer(this,this.mJ,{item:e,databodyHeight:b},c)}};function A_2j(a){for(var b=A_9(a),c=b.childNodes,b=b.offsetHeight,d=0;d<c.length;d++)A_4j(a,c[d],b)}function A_4j(a,b,c){var d=AdfAgent.AGENT;b=b.childNodes;for(var e=0;e<b.length;e++){var f=b[e];d.getAttribute(f,"animating")==A_&&A_5j(a,f,c)}}
A_g.mJ=function(a){var b=a.item;a=a.databodyHeight;AdfAgent.AGENT.setOpacity(b.childNodes[2],0);A_5j(this,b,a)};function A_0j(a,b){var c=b.childNodes[2],d=AdfAgent.AGENT.getIntAttribute(b,"h");if(d!=A_&&A_$(a)){var e=A_Wj(a,c);a.X()?A_8.Qd()||A_8.jf()?c.style.left=b.firstChild.offsetWidth+"px":(c.style.left=b.firstChild.offsetWidth-e/2+"px",c.style.top=d/2-e/2+1+"px"):c.style.top=d-e/2+"px"}}function A_1j(a,b,c){b.style.left=c-b.firstChild.offsetWidth-A_Tj(a)-8-a.hc+"px"}
function A_5j(a,b,c){var d=AdfAgent.AGENT;if(d.getIntAttribute(b,"x")!=A_){var e=b.childNodes[1],f=b.childNodes[2],d=d.getIntAttribute(b,"h");if(d!=A_){var g=A_Wj(a,f);!A_$(a)||a.xb()?(c=parseInt(b.style.top),A_8.Qd()||A_8.jf()?e.style.top=0-c-7+"px":e.style.top=0-c+"px",e.style.height=Math.max(0,c-2)+"px"):a.X()||(e.style.top=d+g/2+"px",e.style.height=c+"px");c=[];d={alpha:100};g={};g.element=e;g.properties=d;c.push(g);g={};g.element=f;g.properties=d;c.push(g);e=a.Ec();if((A_8.Qd()||A_8.jf())&&!e)g=
{},g.element=f.firstChild,g.properties=d,c.push(g),g={},g.element=f.lastChild,g.properties=d,c.push(g);AdfDvtAnimator.$a.animate(a,c,2E3,A_,A_,e)}b.removeAttribute("animating");b.style.width=""}}A_g.yJ=function(){this.ya().parentNode.parentNode.style.maxHeight="0px"};A_g.ya=function(){return this.getDomElement().parentNode};A_g.Xe=function(a){AdfPage.PAGE.removeComponentsInSubtree(a);AdfAgent.AGENT.elementsRemoved(a)};
function A_Rj(a,b,c){a.vg();a.jd=A_b;var d=A_9(a);if(!c){c=d.childNodes;for(var e=c.length-1;0<=e;e--)d.removeChild(c[e]);d.appendChild(b)}A_Pj(a,b);a:{b=a.q();for(c=0;c<b.w.length;c++)if(!b.w[c].jd)break a;c=b.getComponent().getScrollLeft();0<c&&b.scrollToPos(c,A_b);e=b.Za();e!=A_&&(0==c?e.xf():A__i(e,c));b.jd=A_b}A_8.setCursor(d,"");A_lj(a)}A_g.needsResizeNotify=A_f(A_b);A_h("AdfDhtmlTimelineSeriesPeer.prototype.needsResizeNotify",A_8.prototype.needsResizeNotify);
A_8.prototype.ResizeNotify=function(a,b,c,d){this.hx||(this.q().Zy(this),this.hx=A_b);var e=this.getDomElement().parentNode.childNodes.length;this.X()?this.getDomElement().style.width=100/e+"%":this.getDomElement().style.height=100/e+"%";e=A_9(this);A_8.Qd()&&(e.style.zIndex=2);if(A_7.Pb())e.style.zIndex=2;else{var f=AdfAgent.AGENT,g=this.getDomElement(),h=this.q(),l=this.X(),m=AdfPage.PAGE.getLocaleContext().isRightToLeft(),n=this.xb()?this.Za().getDomElement().offsetHeight:0,p=l?A_nj(this.q()):
0,q=g.offsetHeight,v=g.offsetWidth,u=g.offsetTop,w=g.offsetLeft;if(this.oa==A_){this.oa=document.createElement("div");this.oa.hotspot="leftMost";this.oa.style.zIndex=998;this.oa.style.position="absolute";this.Ed=this.oa.cloneNode(A_c);this.Ed.style.zIndex=4;this.Ed.hotspot="left";l?this.Ed.style.top="22px":m?this.Ed.style.right="24px":this.Ed.style.left="24px";this.oa.style.visibility="hidden";var r=document.createElement("div");r.className=f.getAttribute(g,"_laic");this.oa.appendChild(r);h.getDomElement().appendChild(this.oa);
h.getDomElement().appendChild(this.Ed)}l?(this.oa.style.top="0px",this.oa.style.left=w+"px",this.oa.style.width=v-A_Tj(this)+"px",this.oa.style.height="22px"):(this.oa.style.top=u+n+"px",m?this.oa.style.right="0px":this.oa.style.left="0px",this.oa.style.width="24px",this.oa.style.height=q-A_Uj(this)+"px");l?this.Ed.style.left=this.oa.style.left:this.Ed.style.top=this.oa.style.top;this.Ed.style.width=this.oa.style.width;this.Ed.style.height=this.oa.style.height;this.ra==A_&&(this.ra=document.createElement("div"),
this.ra.hotspot="rightMost",this.ra.style.zIndex=998,this.ra.style.position="absolute",this.Fd=this.ra.cloneNode(A_c),this.Fd.style.zIndex=4,this.Fd.hotspot="right",l?this.Fd.style.bottom=22+p+"px":m?this.Fd.style.left="24px":this.Fd.style.right="24px",r=document.createElement("div"),r.className=f.getAttribute(g,"_raic"),this.ra.appendChild(r),h.getDomElement().appendChild(this.ra),h.getDomElement().appendChild(this.Fd));l?(this.ra.style.bottom=p+"px",this.ra.style.left=w+"px",this.ra.style.width=
v-A_Tj(this)+"px",this.ra.style.height="22px"):(this.ra.style.top=u+n+"px",m?this.ra.style.left="0px":this.ra.style.right="0px",this.ra.style.width="24px",this.ra.style.height=q-A_Uj(this)+"px");l?this.Fd.style.right=this.ra.style.right:this.Fd.style.top=this.ra.style.top;this.Fd.style.width=this.ra.style.width;this.Fd.style.height=this.ra.style.height;l||(this.Wa==A_&&(this.Wa=document.createElement("div"),this.Wa.hotspot="top",this.Wa.seriesId=g.id,this.Wa.style.zIndex=998,this.Wa.style.position=
"absolute",this.Wa.style.left="0px",this.Wa.style.height="22px",this.Wa.style.width="100%",A_$(this)&&(this.Wa.style.visibility="hidden"),r=document.createElement("div"),r.className=f.getAttribute(g,"_taic"),this.Wa.appendChild(r),h.getDomElement().appendChild(this.Wa)),this.Wa.style.top=u+n+"px",this.ma==A_&&(this.ma=document.createElement("div"),this.ma.hotspot="bottom",this.ma.seriesId=g.id,this.ma.style.position="absolute",this.ma.style.zIndex=998,this.ma.style.left="0px",this.ma.style.height=
"22px",this.ma.style.width="100%",A_$(this)&&(this.ma.style.visibility="hidden"),r=document.createElement("div"),r.className=f.getAttribute(g,"_baic"),this.ma.appendChild(r),h.getDomElement().appendChild(this.ma)),A_$(this)?this.ma.style.top=u+q-A_Uj(this)-22+n+"px":this.ma.style.top=u+q-22+n+"px",A_9(this).offsetHeight>q?this.ma.style.visibility="visible":this.ma.style.visibility="hidden")}if(this.jd)if(this.X()){if(a!=c){e=AdfAgent.AGENT;d=A_9(this).childNodes;for(a=0;a<d.length;a++){b=d[a].childNodes;
for(f=0;f<b.length;f++)g=b[f],e.getIntAttribute(g,"x")!=A_&&A_1j(this,g,c)}}}else{if(a!=c&&A_lj(this),b!=d){c=d-b;a=AdfAgent.AGENT;b=A_9(this).childNodes;for(f=0;f<b.length;f++){g=b[f].childNodes;for(h=0;h<g.length;h++)l=g[h],a.getIntAttribute(l,"x")!=A_&&(l=l.childNodes[1],l.style.height=parseInt(l.style.height)+c+"px")}e.style.height=d>this.lb?d+"px":this.lb+"px";if(A_$(this)){a=parseInt(e.style.height)-d-this.getDomElement().scrollTop;d=e.childNodes;for(b=0;b<d.length;b++)c=d[b],c.firstChild.style.bottom=
a+"px"}d=A_9(this).childNodes;this.X()?(f=A_8.Wx,c="width",a="left",b=A_Tj(this)-1):(c="height",a="top",b=A_Uj(this)-1,f=!A_$(this)||this.xb()?A_8.Ux:A_8.Tx);for(g=0;g<d.length;g++){h=d[g].childNodes;for(l=0;l<h.length;l++)m=h[l],A_Zj(m)&&(n=m.childNodes[3],(p=parseInt(n.style[c]))&&(n.style[a]=f(m,p,parseInt(m.style[a]),b)+"px"))}d=e.childNodes;for(e=0;e<d.length;e++)c=d[e],A_Mj(this,c)}}else if(d=this.getComponent(),this.Ec()||"immediate"==d.getContentDelivery())c=e.firstChild,this.Ka=parseInt(c.style.left),
this.Oa=this.Ka+parseInt(c.style.width),c!=A_&&0<c.childNodes.length?(A_Rj(this,c,A_b),A_Lj(this,A_b,A_c),A_Mj(this,c)):this.OR=A_b,A_Nj(this);else if(!this.bG&&(this.bG=A_b,e=this.getComponent(),(AdfPage.PAGE.isStreamingDisabled()||!AdfPage.PAGE.isStreamingRequestPending(e.getClientId()))&&!A_yj(this,0,-1,A_c)))A_8.setCursor(A_9(this),"wait"),this.te()};A_h("AdfDhtmlTimelineSeriesPeer.prototype.ResizeNotify",A_8.prototype.ResizeNotify);A_g=A_8.prototype;
A_g.Fk=function(a){if(!this.vq&&!(this.oa==A_||this.ra==A_)){if(a)a=AdfAgent.AGENT,a.setOpacity(this.oa,0),a.setOpacity(this.ra,0),this.Wa!=A_&&this.ma!=A_&&(a.setOpacity(this.Wa,0),a.setOpacity(this.ma,0));else{a=[];var b={alpha:0},c={};c.element=this.ra;c.properties=b;a.push(c);c={};c.element=this.oa;c.properties=b;a.push(c);this.Wa!=A_&&this.ma!=A_&&(c={},c.element=this.Wa,c.properties=b,a.push(c),c={},c.element=this.ma,c.properties=b,a.push(c));AdfPage.PAGE.scheduleTimer(this,this.gL,{animationObjects:a},
1E3)}this.vq=A_c}};A_g.gL=function(a){AdfDvtAnimator.$a.animate(this,a.animationObjects,1E3,A_,A_)};A_g.mi=function(){if(this.Oe!=A_b&&!(this.oa==A_||this.ra==A_)){var a=AdfAgent.AGENT;a.setOpacity(this.oa,100);a.setOpacity(this.ra,100);this.Wa!=A_&&this.ma!=A_&&(a.setOpacity(this.Wa,100),a.setOpacity(this.ma,100));this.vq=A_c}};
function A_Mj(a,b){var c=a.Za();if(c!=A_){var d=AdfAgent.AGENT,e=a.q().getDomElement(),f=d.getIntAttribute(e,"start"),g=d.getIntAttribute(e,"end"),h=d.getIntAttribute(e,"width"),l=A_$(a),e=d.getAttribute(e,"_ovi"),m=a.X(),n=A_Ij(a,b);n.innerHTML="";if(m)var p=0;else{var q=20;if(l){var v=parseInt(b.firstChild.style.bottom);isNaN(v)||(q+=v)}}c=c.getDomElement().getAttribute("_ta");v=AdfAgent.AGENT.getElementById(c);if(A_8.jf()||A_8.Qd())v=v.cloneNode(A_b),c=v.innerHTML,c=c.replace(/<TICKS/g,"\x3cDIV"),
c=c.replace(/TICKS>/g,"DIV\x3e"),c=c.replace(/<TICK/g,"\x3cDIV"),c=c.replace(/TICK>/g,"DIV\x3e"),v.innerHTML=c;for(var c=d.getAttribute(a.getDomElement(),"_ovlc"),v=v.firstChild.childNodes,u=0;u<v.length;u++){var w=v[u],r=d.getIntAttribute(w,"time"),w=d.getAttribute(w,"label"),r=A_7.vb(f,g,r,h),x=a.ta(b),s=x+A_Jj(a,b);if(r>=x&&r<=s){s=document.createElement("div");s.className=e;a.mc(s,r-x);var z=-1;u+1<v.length&&(z=d.getIntAttribute(v[u+1],"time"),z=A_7.vb(f,g,z,h));var A=document.createElement("div");
m?A.style.left=p+"px":A.style.bottom=q+"px";A.className=c;a.mc(A,r-x+2);-1!=z&&A_kj(a,A,z-r);l&&(A.innerHTML=w);n.appendChild(s);n.appendChild(A)}}}}function A_9(a){return AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(a.getComponent().getClientId(),"inner"))}function A_yj(a,b,c,d){var e=a.aw++,f=a.getComponent();c=new A_6j(f,e,b,c);c.setPartial(A_b);c.Kn(A_b);c.ix=d;AdfPage.PAGE.queueEventToServer(c);a.Oj=b;a.Vw=e;a.Ww=A_b;a.Xw=d;a.te();A_8.setCursor(A_9(a),"wait");return c}A_g.od=function(a){return this.q().od(a.getParent())};
A_g.Ec=function(){return this.q().Ec()};A_8.setCursor=function(a,b){a&&a.style.cursor!=b&&(a.style.cursor=b)};A_8.prototype.vg=function(){this.q().vg()};A_8.prototype.te=function(){this.q().te()};A_8.vJ=function(a){AdfAssert.assert(a!=A_,"Timeline peer cannot find first child by tag name if the parent is null!");a=a.childNodes;for(var b=0;b<a.length;b++)if("DIV"==a[b].tagName)return a[b];return A_};
A_8.prototype.xg=function(a){a=a.getSource();for(var b=this.getComponent(),c=A_c;!c&&a;)if(a==b)c=A_b;else{if(a instanceof AdfRichTimeline||a instanceof AdfUIPopup)break;a=a.getParent()}return c};
function A_5i(a,b){AdfAssert.assertDomElement(a);var c=a,d=AdfAgent.AGENT;if(c==A_||1!=c.nodeType)return A_;for(var e=d.getAttribute(c,A_8.W);e==A_;){if(c==A_||c==b)return A_;c=c.parentNode;if(c==A_||1!=c.nodeType)return A_;e=d.getAttribute(c,A_8.W)}return a.id==AdfRichUIPeer.CreateSubId(c.id,"connector")||a.id==AdfRichUIPeer.CreateSubId(c.id,"tip")?A_:[e,c]}
function A_lj(a){var b=A_9(a),c;c=a.q().getDomElement();c=a.X()?parseInt(c.offsetHeight):parseInt(c.offsetWidth);var d=A_8.Pi;if(0<c){var d=AdfAgent.AGENT,e=a.q().getDomElement(),d=d.getIntAttribute(e,"width"),e=Math.max(0,a.aa(a.ya())),f=e+c;f>=d&&a.Oa>=d&&e>=a.Ka?(0==e&&A_7j(a,c,A_b,A_c),d=A_8.Pi):(c=A_8.Pi,a.Oa<f&&d>a.Oa&&(c|=A_8.qt),a.Ka>e&&(c|=A_8.rt),c!=A_8.Pi&&a.Oa<e&&(c=A_8.YB),d=c);d==A_8.Pi?(a.vg(),A_8.setCursor(b,"")):d&A_8.rt?(c=A_yj(a,1,a.Ka,A_c),c||(A_8.setCursor(b,"wait"),a.te())):
d&A_8.qt&&(c=A_yj(a,2,a.Oa,A_c),c||(A_8.setCursor(b,"wait"),a.te()))}}A_8.prototype.mn=function(){this.Xw=this.Ww=this.Vw=this.Oj=A_a;this.q().mn()};A_8.prototype.Mr=function(){var a=A_9(this).childNodes;if(0<a.length)return parseInt(a[0].style.width)};
function A_uj(a,b){var c=a.getDomElement();c.scrollTop+=b;var d=A_9(a),e=d.childNodes,f=parseInt(d.offsetHeight)-c.offsetHeight;c.scrollTop>f&&(c.scrollTop=f);var g=A_jj(a),h=a.xb(),l=d=0;0>b&&0==c.scrollTop?(d=f,l=0,a.Wa!=A_&&(a.Wa.style.visibility="hidden"),a.Na()):0<b&&c.scrollTop==f?(d=h?f:0,l=h?f:0-f,a.ma!=A_&&(a.ma.style.visibility="hidden"),a.Na()):(f=A_Hj(a,e[0]),f==A_&&(f=A_Ij(a,e[0])),d=h?Math.max(0,parseInt(f.style.top)-b):Math.max(0,parseInt(f.style.bottom)-b),l=h?c.scrollTop:0-c.scrollTop,
a.Wa!=A_&&a.ma!=A_&&(a.Wa.style.visibility="visible",a.ma.style.visibility="visible"));if(g!=A_){for(c=0;c<e.length;c++)block=e[c],f=A_Hj(a,block),h?f.style.top=d+"px":f.style.bottom=d+"px";h?g.style.top=l+"px":g.style.bottom=l+"px"}for(c=0;c<e.length;c++)if(block=e[c],g=A_Ij(a,block),g!=A_){g=g.childNodes;for(h=0;h<g.length;h++)l=g[h],"span"==l.nodeName.toLowerCase()&&(l.style.bottom=d+20+"px")}}
function A_8j(a,b,c){var d=a.ta(b.parentNode),e=a.ya(),f=a.aa(e),g=a.ta(b);if(d+g<f)b=(d+g-f-20)/5,a.Bg({increment:b,counter:5,speed:1});else{var e=e.offsetWidth,h=AdfAgent.AGENT.getIntAttribute(b,"w");if(h==A_){if(c)return;h=b.firstChild.offsetWidth}h>e&&(h=10);b=d+g+h-(f+e);0<b&&(b/=5,a.Bg({increment:b,counter:5,speed:1}))}}A_8.prototype.ia=function(a){if(this.xg(a)){var b=a.getNativeEvent();(b=AdfAgent.AGENT.getEventTarget(b))&&this.ls(b,a)}};
A_h("AdfDhtmlTimelineSeriesPeer.prototype.HandleComponentClick",A_8.prototype.ia);A_8.prototype.ls=function(a,b){var c=AdfAgent.AGENT,d=A_5i(a,this.getDomElement());if(d!=A_){var e=d[0],d=d[1];if(e!=A_&&(b!=A_&&b.isLeftButtonPressed()||A_7.Pb()))this.Oe!=A_b&&c.getAttribute(d,"rks")!=A_?A_9j(this,e,d):(c=A_,b!=A_&&(c=b.getNativeEvent()),A_ij(this)&&(c=AdfAgent.AGENT.isSelectionToggle(c),A_6i(this,c,e,d)))}else A_zj(this.q()),c.getPlatform()==AdfAgent.IE_PLATFORM?this.getDomElement().setActive():this.getDomElement().focus()};
A_8.prototype.BA=A_f(A_b);A_h("AdfDhtmlTimelineSeriesPeer.prototype.ComponentSelectedRowKeysChanged",A_8.prototype.BA);function A_$j(a,b){var c=b.getNativeEventTarget(),c=A_5i(c,a.getDomElement());return c!=A_?c[1]:A_}A_8.prototype.getTransferable=function(a,b){var c=a.getNativeEventTarget(),c=A_5i(c,this.getDomElement());if(b&&b.length&&(c=c[0])){var d=[],e=[],f=AdfDataFlavor.getRowKeyDataFlavor(b);e.push([c]);d.push(f);return new AdfObjectTransferable(e,d)}return A_};
A_8.prototype.$k=function(){this.q().xw=A_c};A_8.prototype.yo=function(a){var b=AdfAgent.AGENT,c=this.q().getDomElement(),d=b.getIntAttribute(c,"width"),e=b.getIntAttribute(c,"start"),b=b.getIntAttribute(c,"end");a=a.GetParams();a.dropSite=new Date(A_7.dc(e,b,a.dropX,d));a.dropSiteIndex=0};A_h("AdfDhtmlTimelineSeriesPeer.prototype.HandleComponentDrop",A_8.prototype.yo);A_8.iL=function(a,b){if(b!=A_&&0<b.length)for(var c=0;c<b.length;c++)b[c].style.webkitTransform=""};
A_8.GM=function(a,b){if(b!=A_&&0<b.length){for(var c=[],d=AdfAgent.AGENT,e=0;e<b.length;e++){var f=b[e],g=d.getAttribute(f,A_8.W),g=A_Dj(a,g);g.firstChild.replaceChild(f.firstChild.firstChild,g.firstChild.firstChild);d.setOpacity(g.lastChild,100);c.push(g)}AdfPage.PAGE.scheduleTimer(a,a.SI,c,1E3)}};
A_8.prototype.SI=function(a){for(var b=AdfAgent.AGENT,c=A_c,d=0;d<a.length;d++)a[d].firstChild.style.webkitTransitionProperty="none",a[d].firstChild.style.webkitTransform="none",b.getAttribute(a[d],"moved")!=A_&&!c&&(a[d].removeAttribute("moved"),c=A_b);this.getDomElement().style.webkitTransform="";c&&A_Lj(this,A_b,A_b)};
A_8.oJ=function(a,b){if(b!=A_&&0<b.length){for(var c=AdfAgent.AGENT,d=a.Oa,e=0;e<b.length;e++){var f=c.getIntAttribute(b[e],"x",0);b[e].parentNode.removeChild(b[e]);f<d&&(d=f)}c=d;d=AdfAgent.AGENT;e=A_9(a).childNodes;for(f=0;f<e.length;f++){var g=e[f];if(!(parseInt(g.style.left)+parseInt(g.style.width)<c))for(var g=g.childNodes,h=0;h<g.length;h++){var l=g[h];d.getIntAttribute(l,"x",0)>=c&&l.removeAttribute("y")}}A_Lj(a,A_b,A_b)}};
function A_Yi(a,b,c,d){var e=AdfAgent.AGENT,f=d.childNodes;d=a.od(a.getComponent());for(var g=a.af(),h=e.getIntAttribute(c,"x"),l=0;l<f.length;l++)if(h>=parseInt(f[l].style.left)&&h<=parseInt(f[l].style.left)+parseInt(f[l].style.width)){for(var m=A_c,n=f[l].childNodes,p=0;p<n.length;p++){var q=n[p],v=e.getIntAttribute(q,"x");if(v!=A_&&h<v){f[l].insertBefore(c,q);m=A_b;break}}m||f[l].insertBefore(c,f[l].lastChild);g==AdfDhtmlTimelinePeer.cl?(e.setOpacity(c,0),e={alpha:100},f={},f.element=c,f.properties=
e,b.push(f)):g==AdfDhtmlTimelinePeer.dl&&(c.style.width=c.firstChild.offsetWidth+"px",c.style.webkitTransform="scale(0)",e={scale:1},f={},f.element=c,f.properties=e,b.push(f));break}A_8j(a,c,A_c);d||A_Lj(a,A_b,A_b)}
function A_Zi(a,b,c){var d=AdfAgent.AGENT,e=d.getAttribute(c,A_8.W);if(e!=A_&&(e=A_Dj(a,e),e!=A_)){var f=d.getIntAttribute(c,"x"),g=d.getIntAttribute(e,"x");if(!(f==A_||g==A_)){c.style.top=e.style.top;c.style.width=e.style.width;c.setAttribute("h",A_Vj(c));var h=A_9(a).offsetHeight;A_5j(a,c,h);a.getDomElement().style.webkitTransform="perspective(800)";a={rotate:360};c={};c.element=e.firstChild;c.properties=a;b.push(c);d.setOpacity(e.lastChild,0);f!=g&&(a={},a.left=f,c={},c.element=e,c.properties=
a,b.push(c),e.setAttribute("x",f),e.setAttribute("moved",g))}}}function A_Oj(a,b,c){a=a.af();if(a==AdfDhtmlTimelinePeer.cl){a={alpha:0};var d={};d.element=c;d.properties=a;b.push(d)}else a==AdfDhtmlTimelinePeer.dl&&(c.style.width=c.firstChild.offsetWidth+"px",c.style.webkitTransform="scale(1)",a={scale:0},d={},d.element=c,d.properties=a,b.push(d))}
function A_Dj(a,b){for(var c=AdfAgent.AGENT,d=A_ak(a).childNodes,e=0;e<d.length;e++){var f=d[e];if(b==c.getAttribute(f,A_8.W))return f}d=A_9(a).childNodes;for(e=0;e<d.length;e++)if(f=d[e].childNodes)for(var g=0;g<f.length;g++){var h=f[g];if(b==c.getAttribute(h,A_8.W))return h}return A_}
A_8.nJ=function(a,b,c){for(var d=b.firstChild;d;)a.Xe(d),b.removeChild(d),d=b.firstChild;a.Ka=parseInt(c.style.left);a.Oa=a.Ka+parseInt(c.style.width);A_7i(a.q(),a.Ka);A_Rj(a,c,A_c);AdfAgent.AGENT.elementsAdded(c);A_Lj(a,A_b,A_c);A_Nj(a)};
A_8.prototype.ns=function(a){var b=A_9(this),c=A_Yj(a);if(c==A_8.Bo&&10>this.Dd)this.Dd++,AdfPage.PAGE.scheduleTimer(this,this.ns,a,100);else if(c==A_8.Co&&1>this.Dd)this.Dd++,AdfPage.PAGE.scheduleTimer(this,this.ns,a,0);else{this.Dd=0;var d=A_$(this),e=AdfAgent.AGENT,f=this.X();f||A_Kj(this);var g=b.offsetHeight,h=f?this.getDomElement().offsetWidth:this.getDomElement().offsetHeight,l=e.getAttribute(a,"zl"),m=this.q(),c=AdfAgent.AGENT,m=c.getElementById(AdfRichUIPeer.CreateSubId(m.getComponent().getClientId(),
"zm"));if(m!=A_){for(var n=-1,p=m.previousSibling;p;){var q=c.getAttribute(p,"tick");if(q==A_)break;if(q==l){n=c.getIntAttribute(p,"index");break}p=p.previousSibling}-1!=n&&(l="left",AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(l="right"),m.style[l]=parseInt(p.style[l])+parseInt((p.offsetWidth-m.offsetWidth)/2)+"px",m.setAttribute("index",n),m.setAttribute("title",c.getAttribute(p,"title")))}var v=e.getIntAttribute(a,"blockStart"),u=e.getIntAttribute(a,"blockEnd");this.Ka=v;this.Oa=u;var w=b.childNodes,
n=w[0].cloneNode(A_c);this.mc(n,v);A_kj(this,n,u-v);b.appendChild(n);c=[];m=l=A_;p=A_Ij(this,w[0]);if(d){l=A_Hj(this,w[0]);m=a.removeChild(a.firstChild);e.setOpacity(m,0);this.xb()?(l.style.top="0px",A_jj(this).style.top="0px"):l.style.bottom="0px";n.appendChild(l);var r={alpha:0},x={};x.element=l;x.properties=r;c.push(x)}n.appendChild(p);for(var s=this.od(this.getComponent()),z=this.xb(),A=this.lb=-1,G=[n],B=A_Sj(this,this.Ec()),p=[];a.firstChild;){var q=a.removeChild(a.firstChild),D=e.getAttribute(q,
"tid"),x=e.getIntAttribute(q,"x"),r=e.getIntAttribute(q,"x2");x==A_?n.appendChild(q):D!=A_?(D=document.getElementById(D),D==A_&&(q=e.getAttribute(q,A_8.W),D=A_Dj(this,q)),D!=A_&&(f?(q=e.getIntAttribute(D,"x"),D.style.top=q-A_Vj(D)/2+"px",D.setAttribute("x",x),D.setAttribute("x2",r),D.removeAttribute("t"),D.removeAttribute("edt"),D.removeAttribute("et"),n.appendChild(D),r={},r.top=x-v-A_Vj(D)/2,x={},x.element=D,x.properties=r,c.push(x),A_Zj(D)&&p.push(D)):(q=e.getIntAttribute(D,"x"),this.mc(D,q),D.setAttribute("x",
x),D.setAttribute("x2",r),D.removeAttribute("t"),D.removeAttribute("edt"),D.removeAttribute("et"),r=e.getIntAttribute(D,"h"),s?itemY=A_8.Vx(h,r,A_Uj(this)):(D.removeAttribute("y"),itemY=A_8.og(D,G,B,this.Aj),!d||z?(itemY=g-itemY-r-this.hc,0>itemY&&itemY<A&&(A=itemY),this.lb=Math.max(this.lb,g-itemY),itemY+=this.hc):(r=itemY+r+A_Uj(this)+this.hc,r>h&&r>A&&(A=r),this.lb=Math.max(this.lb,r))),n.appendChild(D),r={},AdfPage.PAGE.getLocaleContext().isRightToLeft()?r.right=x-v:r.left=x-v,r.top=itemY,x={},
x.element=D,x.properties=r,c.push(x),A_Zj(D)&&(D.th=itemY,p.push(D))))):(f?(q.style.top=u+"px",n.appendChild(q),A_1j(this,q,h),r=e.getIntAttribute(q,"h"),r==A_&&(r=A_Vj(q),q.setAttribute("h",r)),r={},r.top=x-v-A_Vj(q)/2,x={},x.element=q,x.properties=r,c.push(x),A_Zj(q)&&p.push(q)):(n.appendChild(q),this.mc(q,u),itemY=A_8.og(q,G,B,this.Aj),r=e.getIntAttribute(q,"h"),r==A_&&(r=A_Vj(q),q.setAttribute("h",r)),!d||z?(itemY=g-itemY-r-this.hc,0>itemY&&itemY<A&&(A=itemY),this.lb=Math.max(this.lb,g-itemY),
itemY+=this.hc):(r=itemY+r+A_Uj(this)+this.hc,r>h&&r>A&&(A=r),this.lb=Math.max(this.lb,r)),r=q.firstChild,0>r.offsetLeft+r.offsetWidth&&this.mc(r,-6),r={},AdfPage.PAGE.getLocaleContext().isRightToLeft()?r.right=x-v:r.left=x-v,r.top=itemY,x={},x.element=q,x.properties=r,c.push(x),A_Zj(q)&&(q.th=itemY,p.push(q))),A_0j(this,q))}for(a=w.length-2;0<=a;a--)this.Xe(w[a]),b.removeChild(w[a]);if(-1!=A){if(d&&!z)b.style.height=A+"px",l.style.bottom=A-h-this.getDomElement().offsetTop+"px",m.style.bottom=A-h-
this.getDomElement().offsetTop+"px";else{a=0-A;for(d=0;d<c.length;d++)x=c[d],r=x.properties,r.top!=A_&&(r.top+=a,x.element.th+=a);b.style.height=g+a+"px";A_uj(this,a)}this.ma!=A_&&(this.ma.style.visibility="visible")}else this.ma!=A_&&(this.ma.style.visibility="hidden");A__j(this,p);this.X()?(h=A_8.Wx,b="width",g="height",a="left",d=A_Tj(this)-1):(b="height",g="width",a="top",d=A_Uj(this)-1,h=!A_$(this)||this.xb()?A_8.Ux:A_8.Tx);for(e=0;e<p.length;e++)q=p[e],f=q.childNodes[3],f.style.zIndex=100-f.bc,
r=AdfAgent.AGENT.getIntAttribute(q,"x2")-AdfAgent.AGENT.getIntAttribute(q,"x"),f.style[g]=r+"px",w=18+10*f.bc,f.style[b]=w+"px",q.th?(x=q.th,q.th=A_):x=parseInt(q.style[a]),f.style[a]?(r={},r[a]=h(q,w,x,d),x={},x.element=f,x.properties=r,c.push(x)):f.style[a]=h(q,w,x,d)+"px";A_Mj(this,n);n=this.q();isNaN(n.fw)||(b=n.fw,"none"!=n.getComponent().af()?Math.abs(n.aa()-b)>AdfDhtmlTimelinePeer.NB?n.scrollToPos(b,A_c):(n.dm=A_b,AdfPage.PAGE.scheduleTimer(n,n.lJ,b,1E3)):n.scrollToPos(b,A_c));AdfPage.PAGE.scheduleTimer(this,
this.UI,{animationObjects:c,oldTimeAxis:l,newTimeAxis:m},0)}};A_8.prototype.UI=function(a){AdfDvtAnimator.$a.animate(this,a.animationObjects,1E3,A_8.OM,[this,a.oldTimeAxis,a.newTimeAxis])};A_8.OM=function(a,b,c){var d=A_9(a);A_4j(a,d.childNodes[0],d.offsetHeight);b==A_||c==A_||(d=b.parentNode,a.xb()?c.style.top=b.style.top:c.style.bottom=b.style.bottom,d.replaceChild(c,b),b=[],d={},d.element=c,d.properties={alpha:100},b.push(d),AdfPage.PAGE.scheduleTimer(a,a.CM,{peer:a,animationObjects:b},0))};
A_8.prototype.CM=function(a){AdfDvtAnimator.$a.animate(a.peer,a.animationObjects,1E3,A_,A_)};A_8.prototype.gs=function(a,b){A_7j(this,a,b,A_b)};
function A_7j(a,b,c,d){for(var e=AdfAgent.AGENT,f=a.q().getDomElement(),g=e.getIntAttribute(f,"start"),h=e.getIntAttribute(f,"end"),l=e.getIntAttribute(f,"width"),m=a.od(a.getComponent()),n=A_9(a),p=n.offsetHeight,n=n.childNodes,q=A_$(a),v=a.xb(),u=[],w=A_Sj(a,a.Ec()),r=0;r<n.length;r++){var x=n[r],s=a.ta(x),z=e.getIntAttribute(x,"st");z==A_&&(z=A_7.dc(g,h,s,l),isNaN(z)||x.setAttribute("st",z));var A=e.getIntAttribute(x,"et"),G=a.ta(x)+A_Jj(a,x);A==A_&&(A=A_7.dc(g,h,G,l),isNaN(A)||x.setAttribute("et",
A));z=A_7.vb(g,h,z,b);A=A_7.vb(g,h,A,b);a.mc(x,z);A_kj(a,x,A-z);var G=x.childNodes,A=A_,B=0;q&&(A=A_Hj(a,x),B=1);for(x=B;x<G.length-1;x++){var B=G[x],D=a.ta(B)+s;if(!isNaN(D)){var y=e.getIntAttribute(B,"t");y==A_&&(y=A_7.dc(g,h,D,l),isNaN(y)||B.setAttribute("t",y));if(A_Zj(B)){var C=B.childNodes[3],H=e.getIntAttribute(B,"edt");H==A_&&(H=A_7.dc(g,h,D+(AdfAgent.AGENT.getIntAttribute(B,"x2")-AdfAgent.AGENT.getIntAttribute(B,"x")),l),isNaN(H)||B.setAttribute("edt",H))}var F=-1,t=A_Jj(a,B);t!=A_&&!isNaN(t)&&
(F=e.getIntAttribute(B,"et"),F==A_&&(F=A_7.dc(g,h,D+parseInt(t),l),isNaN(F)||B.setAttribute("et",F)),F=A_7.vb(g,h,F,b));D={};y=A_7.vb(g,h,y,b);if(H)var E=A_7.vb(g,h,H,b);a.mc(B,y-z);if(-1!=F)A_kj(a,B,F-y);else{if(e.getIntAttribute(B,"x")!=A_&&(B.setAttribute("x",y),E&&B.setAttribute("x2",E),!m)){B.removeAttribute("y");var K=A_8.og(B,n,w,a.Aj);D.top=!q||v?p-K-e.getIntAttribute(B,"h"):K}y={noclean:A_b};y.element=B;y.properties=D;u.push(y);if(A_Zj(B)){C.style.zIndex=100-C.bc;D={};a.X()?(F=AdfAgent.AGENT.getIntAttribute(B,
"x2")-AdfAgent.AGENT.getIntAttribute(B,"x"),y=18+10*C.bc,D.left=B.parentNode.offsetWidth-parseInt(B.style.left)-y-A_Tj(a)-1):(y=AdfAgent.AGENT.getIntAttribute(B,"x2")-AdfAgent.AGENT.getIntAttribute(B,"x"),F=18+10*C.bc,D.top=!q||v?K-p+e.getIntAttribute(B,"h"):p-K-F-A_Uj(a)-1);t=Math.min(10,y/2);for(k=0;3>k;k++){var I=B.childNodes[k];I.style.marginLeft=t+"px"}(I=B.childNodes[4])&&(I.style.marginLeft=t+"px");C.style.height=F+"px";C.style.width=y+"px";y={noclean:A_b};y.element=C;y.properties=D;u.push(y)}}}}if(q&&
!A_7.Pb())for(var s=a,z=A,A=b,G=c,x=AdfAgent.AGENT,y=s.q().getDomElement(),B=x.getIntAttribute(y,"start"),D=x.getIntAttribute(y,"end"),y=x.getIntAttribute(y,"width"),F=1,J=-1,t=z.childNodes,I=0;I<t.length;I++){var L=t[I],R=x.getIntAttribute(L,"t");R==A_&&(R=s.ta(L),R=A_7.dc(B,D,R,y),L.setAttribute("t",R));R=A_7.vb(B,D,R,A);s.mc(L,R);if(-1==J){var N;if(N="none"!=L.style.display){N=L;var O=AdfAgent.AGENT.getAttribute(z,"_sc");N=N.className==O?A_b:A_c}N&&(G?1<I&&(N=t[0],"none"!=N.style.display&&(J=s.ta(N),
30>R-J?(L.style.display="none",I<t.length-1&&(t[I+1].style.display="none"),J=2*I,F=1):J=0)):(L=Math.round(I/2),N=t[L],"none"==N.style.display&&(J=s.ta(N),30<R-J?(N.style.display="block",t[L+1].style.display="block",J=2*L,F=L+1):J=0)))}else 0<J&&(F==J?(L.style.display=G?"none":"block",I<t.length-1&&(t[I+1].style.display=G?"none":"block"),F=1):F++)}}AdfDvtAnimator.$a.animate(a,u,1E3,A_8.iJ,Array(a));A_kj(a,a.getDomElement(),b);if(d&&q&&(a.rm==A_||!a.rm)){b=a.ya();c=n[n.length-1];if(a.aa(b)+A_Jj(a,f)-
1>a.ta(c)+A_Jj(a,c)){a:{if(A_$(a)){f=AdfAgent.AGENT;d=A_9(a).lastChild.firstChild.lastChild;for(c=e=A_;d;){if("none"!=d.style.display){e=d.previousSibling;for(d=e.previousSibling;d;){if("none"!=d.style.display){c=d.previousSibling;break}d=d.previousSibling}break}d=d.previousSibling}if(e!=A_&&c!=A_){d=f.getIntAttribute(e,"t");c=f.getIntAttribute(c,"t");c=d+(d-c);g=a.q().getDomElement();d=f.getIntAttribute(g,"start");e=f.getIntAttribute(g,"end");f=f.getIntAttribute(g,"width");f=A_7.vb(d,e,c,f);break a}}f=
a.Oa}if(f=A_yj(a,2,f,A_b))a.rm=A_b}if(a.ta(n[0])>a.aa(b)&&(f=A_yj(a,1,a.Ka,A_b)))a.rm=A_b}}A_8.iJ=function(a){A_2j(a)};A_g=A_8.prototype;A_g.zn=function(a){var b=A_Cj(this);b!=A_&&(b=A_Dj(this,b),b!=A_&&A_bk(this,a,b,A_))};
A_g.Ok=function(a){var b=a.increment,c=a.reminder,d=a.counter;a=a.speed!=A_?a.speed:10;if(0<=d){if(0==d)if(A_vj(this,A_c),0<c)b=c;else return;var e=this.getDomElement();if(0<b){var f=A_9(this);if(e.scrollTop==parseInt(f.style.height)-parseInt(e.style.height))return}else if(0==e.scrollTop)return;A_uj(this,b);AdfPage.PAGE.scheduleTimer(this,this.Ok,{increment:b,reminder:c,counter:d-1,speed:a},a)}};
A_g.Bg=function(a){var b=a.callback,c=a.increment,d=a.counter;a=a.scrollOverview;a==A_a&&(a=A_b);if(0<d){var e=this.ya();if(0<c){var f=A_Jj(this,this.getDomElement())-(this.X()?e.offsetHeight:e.offsetWidth)+4;if(this.aa(e)==f){b!=A_&&b();return}}else if(0==this.aa(e)){b!=A_&&b();return}this.q().wf(c,a);AdfPage.PAGE.scheduleTimer(this,this.Bg,{callback:b,increment:c,counter:d-1,scrollOverview:a},10)}else b!=A_&&b()};
function A_Cj(a){var b=a.q();a=a.getComponent().getClientId();return b.rb==A_||b.rb.SL!=a?A_:b.rb.P}
function A_vj(a,b){for(var c=b==A_b?"none":"block",d=A_9(a).childNodes,e=0;e<d.length;e++){var f=A_Ij(a,d[e]);if(!b){var g=a,h=d[e],l=AdfAgent.AGENT.getAttribute(g.getDomElement(),"_ovlc"),m=20,n=A_Ij(g,h);A_$(g)&&(g=parseInt(h.firstChild.style.bottom),isNaN(g)||(m+=g));n=n.childNodes;for(g=0;g<n.length;g++)A_k.ja(n[g],l)&&(n[g].style.bottom=m+"px")}f.style.display=c}if(A_$(a)&&(c=AdfAgent.AGENT,!(c.getPlatform()!=AdfAgent.GECKO_PLATFORM||2<=parseInt(c.getVersion())))){c=b==A_b?"none":"block";d=A_9(a).childNodes;
A_jj(a).style.display=c;for(e=0;e<d.length;e++)block=d[e],timeAxis=A_Hj(a,block),timeAxis.style.display=c}}A_g.Dg=function(a){this.mi();A_vj(this,A_b);A_uj(this,a);this.$b=AdfPage.PAGE.scheduleTimer(this,this.Dg,a,10)};A_g.Na=function(){this.$b!=A_&&AdfPage.PAGE.cancelTimer(this.$b);A_vj(this,A_c);this.$b=A_};function A_ck(a){return a.q().getGlassPane().firstChild}function A_dk(a){return A_ck(a).nextSibling}function A_ak(a){return A_dk(a).nextSibling}
function A_9j(a,b,c){var d=AdfAgent.AGENT;a.Eg(c);a.vj=c.style.left;a.wj=c.style.top;a.Bd=c.cloneNode(A_b);A_ek(a,a.Bd);d.clearSubtreeIds(a.Bd);var e=c.parentNode;e.insertBefore(a.Bd,c);a.Bd.style.left=a.vj;a.Bd.style.top=a.wj;a.Pe=c;c.childNodes[1].style.display="none";c.childNodes[2].style.display="none";c.childNodes[3].style.display="none";for(var f=d.getDescendantComponentsForNode(c),g=0;g<f.length;g++){var h=f[g];h.ZR=AdfRichUIPeer.getFirstAncestorComponent(AdfRichUIPeer.getDomElementForComponent(h).parentNode)}a.xj=
document.getElementById(d.getAttribute(c,"id")+"::cnt");a.xj&&(a.xj.style.display="none");f=a.aa(a.ya());a.X()?(a.tj=parseInt(e.style.top)+(parseInt(a.wj)-f)+"px",a.sj=parseInt(a.vj)-a.getDomElement().scrollLeft+"px"):(a.tj=parseInt(a.wj)-a.getDomElement().scrollTop+"px",a.sj=parseInt(e.style.left)+(parseInt(a.vj)-f)+"px");c.style.top=a.tj;c.style.left=a.sj;e=A_ak(a);e.appendChild(c);e.parentNode.style.display="block";e=A_ak(a);f=A_sj(a.q());if(f!=A_){f.style.display="block";var g=[],h={alpha:50},
l={};l.element=f}else g=[],h={alpha:20},l={},l.element=e.parentNode.nextSibling;l.properties=h;g.push(l);AdfDvtAnimator.$a.animate(a,g,A_fk(),A_,A_);e=a.q();a!=A_?A_pj(e):A_oj(e);e.Pa=a;d=d.getAttribute(c,"rks");a.Ec()?(b=document.getElementById(AdfRichUIPeer.CreateSubId(c.id,"ris")),b!=A_&&a.Zh(b)):(a=new A_gk(a.getComponent(),b,d),a.setPartial(A_b),AdfPage.PAGE.queueEventToServer(a))}
function A_fk(){var a=AdfAgent.AGENT,b=a.getPlatform(),a=a.getVersion();return b==AdfAgent.IE_PLATFORM&&9>a||b==AdfAgent.GECKO_PLATFORM&&2>a?400:800}
A_g.Zh=function(a){if(a){var b=AdfAgent.AGENT,c=A_ak(this),d=A_dk(this),e=this.Za(),f=0;this.X()&&e!=A_&&(f=e.getDomElement().offsetWidth);var e=Math.max(0,(c.offsetWidth-d.offsetWidth-f)/2),f=[],g=d.offsetHeight+A_8.vl,h=g,g=c.parentNode.offsetHeight-g,l=[];for(l.push(this.Pe);a.firstChild;){var m=a.firstChild;m.style.left=this.sj;m.style.top=this.tj;m.lastChild.style.display="none";b.setOpacity(m,100);c.appendChild(m);b.elementsAdded(m);l.push(m)}for(a=0;a<l.length;a++){var m=l[a],n={};n.left=e;
n.top=h;var p={};p.element=m;p.properties=n;f.push(p);n=A_Vj(m);m.setAttribute("h",n);h+n>g&&(m.style.display="none",d.style.visibility="visible",d.style.left=e+"px",b.getIntAttribute(c,"bottomIndex")==A_&&c.setAttribute("bottomIndex",c.childNodes.length-1));h=h+n+A_8.ql}A_8.ps()||this.getDomElement().focus();AdfPage.PAGE.scheduleTimer(this,this.VI,f,A_fk())}else{this.Oe=A_;e=A_ak(this);A_hk(this,e);b=parseInt(this.sj);c=parseInt(this.tj);d=[];e=e.childNodes;for(f=0;f<e.length;f++)h=e[f],g={},g.left=
b,g.top=c,l={},l.element=h,l.properties=g,d.push(l);AdfDvtAnimator.$a.animate(this,d,A_fk(),A_8.rJ,Array(this))}};A_g.VI=function(a){this.Oe=A_b;AdfDvtAnimator.$a.animate(this,a,1E3,A_,A_)};function A_hk(a,b){A_ck(a).style.visibility="hidden";A_dk(a).style.visibility="hidden";b.removeAttribute("topIndex");b.removeAttribute("bottomIndex")}A_8.rJ=function(a){a.dj=A_;AdfPage.PAGE.scheduleTimer(a,a.kJ,A_,100)};
A_8.prototype.kJ=function(){var a=A_ak(this),b=a.childNodes;if(this.Ec()&&1<b.length){if(b=document.getElementById(AdfRichUIPeer.CreateSubId(a.firstChild.nextSibling.id,"ris")),b!=A_)for(;a.firstChild.nextSibling;){var c=a.firstChild.nextSibling;b.appendChild(c)}}else for(var d=1;d<b.length;d++)c=b[d],this.Xe(c),a.removeChild(c);this.Pe.childNodes[1].style.display="";this.Pe.childNodes[2].style.display="";this.Pe.childNodes[3].style.display="";this.xj&&(this.xj.style.display="");this.Bd.parentNode.insertBefore(this.Pe,
this.Bd);this.Pe.style.left=this.vj;this.Pe.style.top=this.wj;this.Bd.parentNode.removeChild(this.Bd);this.tj=this.sj=this.Bd=this.xj=this.wj=this.vj=this.Pe=A_;AdfPage.PAGE.scheduleTimer(this,this.fL,A_,A_fk())};
A_8.prototype.fL=function(){var a=A_ak(this);for(a.parentNode.style.display="none";a.firstChild;)a.removeChild(a.firstChild);var b=A_sj(this.q());if(b!=A_)b.style.display="none",b.style.filter="alpha(opacity\x3d0)";else{var b=[],c={};c.element=a.parentNode.nextSibling;c.properties={alpha:100};b.push(c);AdfDvtAnimator.$a.animate(this,b,A_fk(),A_,A_)}a=this.q();A_oj(a);a.Pa=A_};
function A_qj(a,b){var c=AdfAgent.AGENT,d=A_ak(a),e=A_dk(a),f=e.offsetHeight+A_8.vl,g=f,h=-1;A_hk(a,d);for(var f=b-f,l=d.childNodes,m=1;m<l.length;m++){var n=l[m];n.style.top=g+"px";-1==h&&(h=parseInt(n.style.left));var p=parseInt(n.getAttribute("h"));g+p>f?(n.style.display="none",e.style.visibility="visible",e.style.left=h+"px",c.getIntAttribute(d,"bottomIndex")==A_&&d.setAttribute("bottomIndex",m)):n.style.display="block";g=g+p+A_8.ql}}
function A_fj(a){var b=AdfAgent.AGENT,c=A_ak(a),d=A_dk(a),e=d.offsetHeight+A_8.vl,f=b.getIntAttribute(c,"topIndex"),g=c.childNodes[f];g.style.display="block";var h=g.firstChild.offsetHeight+A_8.ql;"visible"==A_ck(a).style.visibility&&(d.style.visibility="visible",d.style.left=g.style.left);1<f?c.setAttribute("topIndex",f-1):A_ck(a).style.visibility="hidden";d=c.parentNode.offsetHeight-e;e=[];f=c.childNodes;for(g=1;g<f.length;g++){var l=f[g],m={};m.top=parseInt(l.style.top)+h;var n={};n.element=l;
n.properties=m;e.push(n);n=b.getIntAttribute(l,"h");m.top+n>d&&"block"==l.style.display&&(l.style.display="none",c.setAttribute("bottomIndex",g))}AdfDvtAnimator.$a.animate(a,e,500,A_,A_)}
function A_gj(a){var b=A_ak(a),c=A_dk(a),d=c.offsetHeight+A_8.vl,e=AdfAgent.AGENT.getIntAttribute(b,"bottomIndex"),f=b.childNodes[e];f.style.display="block";var g=f.firstChild.offsetHeight+A_8.ql;if("visible"==c.style.visibility){var h=A_ck(a);h.style.visibility="visible";h.style.left=f.style.left}f.nextSibling!=A_?b.setAttribute("bottomIndex",e+1):c.style.visibility="hidden";c=[];e=b.childNodes;for(f=1;f<e.length;f++){var h=e[f],l={};l.top=parseInt(h.style.top)-g;var m={};m.element=h;m.properties=
l;c.push(m);l.top<d&&(h.style.display="none",b.setAttribute("topIndex",f))}AdfDvtAnimator.$a.animate(a,c,500,A_,A_)}
A_8.prototype.ConvertClientIdToLocator=function(a,b,c,d){b=AdfAgent.AGENT;var e=a.getClientId();a=AdfStrings.count(e,":");AdfAssert.assert(0<=c.indexOf(e));c=c.substring(e.length+1);e=c.indexOf(":");if(0<e)if(c=c.substring(0,e),e=A_Dj(this,c),e==A_)d.push([a+1,A_]);else{for(var f=0,g=e.parentNode.childNodes,h=0;h<g.length;h++)if(c=b.getAttribute(g[h],A_8.W),c!=A_){if(g[h]==e)break;f++}d.push([a+1,f])}};A_h("AdfDhtmlTimelineSeriesPeer.prototype.ConvertClientIdToLocator",A_8.prototype.ConvertClientIdToLocator);
A_8.prototype.convertLocatorToClientId=function(a,b){var c=AdfAgent.AGENT,d=a.getClientId(),e=A_9(this);if(e!=A_)for(var e=e.childNodes,f=0;f<e.length;f++){var g=e[f],h=A_ik(g);if(b>=h.startRow&&b<h.endRow)for(var g=g.childNodes,l=0,m=0;m<g.length;m++){var n=c.getAttribute(g[m],A_8.W);if(n!=A_){if(h.startRow+l==b)return d+":"+n;l++}}}return A_};
function A_ik(a){var b=AdfAgent.AGENT;a=a.lastChild;var c={};c.startRow=b.getIntAttribute(a,"startRow");c.endRow=b.getIntAttribute(a,"endRow");c.prevItemPos=b.getIntAttribute(a,"prevItemPos");c.nextItemPos=b.getIntAttribute(a,"nextItemPos");return c};