var AdfDhtmlTimelinePeer=AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlTimelinePeer",A_c);A_h("AdfDhtmlTimelinePeer",AdfDhtmlTimelinePeer);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.timeline.Timeline","AdfDhtmlTimelinePeer");
AdfDhtmlTimelinePeer.InitSubclass=function(){AdfObject.ensureClassInitialization(AdfDhtmlTimelinePeer);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.CLICK_EVENT_TYPE,AdfUIInputEvent.MOUSE_DOWN_EVENT_TYPE,AdfUIInputEvent.MOUSE_IN_EVENT_TYPE,AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE,AdfUIInputEvent.KEY_DOWN_EVENT_TYPE);AdfRichUIPeer.addComponentPropertyChanges(this,"scrollTop","scrollLeft");AdfRichUIPeer.addSuppressedPPRAttributes(this,"scrollTop");AdfRichUIPeer.addSuppressedPPRAttributes(this,
"scrollLeft");AdfRichUIPeer.addSuppressedPPRAttributes(this,"minimumWidth");this.Be="dataW";this.Mz=200;this.NB=1500;this.cl="default";this.dl="pop";this.xz="slide";this.fl="flip"};A_h("AdfDhtmlTimelinePeer.InitSubclass",AdfDhtmlTimelinePeer.InitSubclass);
AdfDhtmlTimelinePeer.prototype.InitDomElement=function(a,b){AdfDhtmlTimelinePeer.superclass.InitDomElement.call(this,a,b);this.aw=0;this.xw=A_c;this.kg=A_;this.Dq=A_b;A_7.Pb()&&(b.addEventListener("gesturechange",this.createCallback(this.zG),A_c),A_$i()?(b.addEventListener("touchstart",this.createCallback(this.GG),A_c),b.addEventListener("touchmove",this.createCallback(this.FG),A_c),b.addEventListener("touchend",this.createCallback(this.EG),A_c)):b.addEventListener("scroll",this.createCallback(this.yG),
A_b))};A_h("AdfDhtmlTimelinePeer.prototype.InitDomElement",AdfDhtmlTimelinePeer.prototype.InitDomElement);AdfDhtmlTimelinePeer.prototype.xo=function(a){if(this.We!=A_){for(var b=a.getClientId(),c=-1,d=0;d<this.We.length;d++)if(this.We[d]==b){c=d;break}-1!=c&&(this.We.splice(c,1),AdfPage.PAGE.registerResizeNotifyComponent(a),AdfPage.PAGE.doResizeNotify(a))}};A_h("AdfDhtmlTimelinePeer.prototype.HandleChildrenInitialized",AdfDhtmlTimelinePeer.prototype.xo);
function A_$i(){var a=navigator.userAgent.toLowerCase();return-1!=a.indexOf("applewebkit")&&-1!=a.indexOf("mobile")&&-1!=a.indexOf("os 4_")}A_g=AdfDhtmlTimelinePeer.prototype;A_g.Ec=function(){return this.getDomElement().getAttribute("_offline")!=A_};A_g.X=function(){this.kg==A_&&(this.kg="horizontal"!=AdfAgent.AGENT.getAttribute(this.getDomElement(),"_orn"));return this.kg};
A_g.xb=function(){if(AdfAgent.AGENT.getAttribute(this.getDomElement(),"_ov")==A_||1<this.ya().childNodes.length)return A_c;this.Lj==A_&&(this.Lj="below"!=AdfAgent.AGENT.getAttribute(this.getDomElement(),"_ovp"));return this.Lj};
A_g.Th=function(a){if(AdfPage.PAGE.getLocaleContext().isRightToLeft()){var b=AdfAgent.AGENT.getPlatform();if(b==AdfAgent.GECKO_PLATFORM||b==AdfAgent.IE_PLATFORM)return Math.abs(a.scrollLeft);b=AdfAgent.AGENT.getIntAttribute(this.getDomElement(),"width");return Math.max(0,b-parseInt(a.style.width)-a.scrollLeft)}return a.scrollLeft};
function A_aj(a,b,c){if(AdfPage.PAGE.getLocaleContext().isRightToLeft()){var d=AdfAgent.AGENT.getPlatform();d==AdfAgent.GECKO_PLATFORM?b.scrollLeft=0-c:d==AdfAgent.IE_PLATFORM?b.scrollLeft=c:(a=AdfAgent.AGENT.getIntAttribute(a.getDomElement(),"width"),b.scrollLeft=a-parseInt(b.style.width)-c)}else b.scrollLeft=c}A_g.aa=function(a){a==A_a&&(a=this.ya());return this.X()?a.scrollTop:this.Th(a)};
A_g.setScrollPos=function(a,b){b==A_a&&(b=this.ya());this.X()?b.scrollTop=a:A_aj(this,b,a);for(var c=a+this.getDomElement().offsetWidth>=AdfAgent.AGENT.getIntAttribute(this.getDomElement(),"width"),d=0;d<this.w.length;d++){var e=this.w[d];e.oa!=A_&&e.ra!=A_&&(0==a?(e.oa.style.visibility="hidden",e.ra.style.visibility="visible"):c?(e.oa.style.visibility="visible",e.ra.style.visibility="hidden"):(e.oa.style.visibility="visible",e.ra.style.visibility="visible"))}};
A_g.ia=function(a){if(this.xg(a)&&a.isLeftButtonPressed()){a=a.getNativeEvent();var b=AdfAgent.AGENT.getEventTarget(a);b&&this.ls(b,a)}};A_h("AdfDhtmlTimelinePeer.prototype.HandleComponentClick",AdfDhtmlTimelinePeer.prototype.ia);
function A_bj(a){var b=AdfAgent.AGENT,c=a.getComponent(),d=AdfRichUIPeer.CreateSubId(c.getClientId(),"zm"),d=b.getElementById(d);if(d!=A_){var e=b.getIntAttribute(d,"index");0!=e&&(a.te(),a=new A_cj(c,0,b.getIntAttribute(a.getDomElement(),"width"),a.getDomElement().offsetWidth),a.setPartial(A_b),AdfPage.PAGE.queueEventToServer(a),a="left",AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(a="right"),b=A_dj(e,d).previousSibling,d.style[a]=parseInt(b.style[a])+parseInt((b.offsetWidth-d.offsetWidth)/
2)+"px",d.setAttribute("index",e-1))}}
function A_ej(a){var b=AdfAgent.AGENT,c=a.getComponent(),d=AdfRichUIPeer.CreateSubId(c.getClientId(),"zm"),d=b.getElementById(d);if(d!=A_){var e=b.getIntAttribute(d,"index");b.getIntAttribute(d.previousSibling,"index")!=e&&(a.te(),e+=1,a=new A_cj(c,1,b.getIntAttribute(a.getDomElement(),"width"),a.getDomElement().offsetWidth,a.w[0].Ka,a.w[0].Oa),a.setPartial(A_b),AdfPage.PAGE.queueEventToServer(a),a="left",AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(a="right"),b=A_dj(e,d),d.style[a]=parseInt(b.style[a])+
parseInt((b.offsetWidth-d.offsetWidth)/2)+"px",d.setAttribute("index",e))}}
AdfDhtmlTimelinePeer.prototype.ls=function(a,b){var c=AdfAgent.AGENT,d=this.getComponent().getClientId(),e=AdfRichUIPeer.CreateSubId(d,"zi"),f=AdfRichUIPeer.CreateSubId(d,"zo"),g=AdfRichUIPeer.CreateSubId(d,"zm"),h=AdfRichUIPeer.CreateSubId(d,"glass"),l=AdfRichUIPeer.CreateSubId(d,"navUp"),m=AdfRichUIPeer.CreateSubId(d,"navDown"),d=A_b;a.id==e?A_bj(this):a.id==f?A_ej(this):a.id==h?this.w[0].Zh(A_):a.id==l?A_fj(this.Pa):a.id==m?A_gj(this.Pa):c.getAttribute(a,"tick")!=A_?A_hj(this,a,g):a.parentNode&&
c.getAttribute(a.parentNode,"tick")!=A_?A_hj(this,a.parentNode,g):"block"==this.getGlassPane().style.display&&this.Pa!=A_&&this.Pa.Oe==A_b?(c=this.Pa,e=AdfAgent.AGENT.getEventTarget(b),f=A_5i(e,c.getDomElement()),f!=A_&&(e=f[0],f=f[1],e!=A_&&A_ij(c)&&(g=AdfAgent.AGENT.isSelectionToggle(b),A_6i(c,g,e,f)))):d=A_c;return d};
function A_hj(a,b,c){var d=AdfAgent.AGENT,e=d.getAttribute(b,"tick"),f=d.getIntAttribute(b,"index");c=d.getElementById(c);c.style.left=parseInt(b.style.left)+parseInt((b.offsetWidth-c.offsetWidth)/2)+"px";b=d.getIntAttribute(c,"index");c.setAttribute("index",f);c=a.getComponent();a=new A_cj(c,2,d.getIntAttribute(a.getDomElement(),"width"),a.getDomElement().offsetWidth,a.w[0].Ka,a.w[0].Oa);a.hk=e;a.oj=f<b;a.setPartial(A_b);AdfPage.PAGE.queueEventToServer(a)}
AdfDhtmlTimelinePeer.prototype.ComponentRemoved=function(a){this.w!=A_&&delete this.w;this.We!=A_&&delete this.We;AdfDhtmlTimelinePeer.superclass.ComponentRemoved.call(this,a)};A_h("AdfDhtmlTimelinePeer.prototype.ComponentRemoved",AdfDhtmlTimelinePeer.prototype.ComponentRemoved);AdfDhtmlTimelinePeer.prototype.DomReplaceNotify=function(a){return 0<a.id.indexOf(AdfDhtmlTimelinePeer.Be)?A_:a};A_h("AdfDhtmlTimelinePeer.prototype.DomReplaceNotify",AdfDhtmlTimelinePeer.prototype.DomReplaceNotify);
AdfDhtmlTimelinePeer.prototype.ReplaceDomElement=function(a,b){var c=a.id;if(0<c.indexOf(AdfDhtmlTimelinePeer.Be)){var d=AdfAgent.AGENT,c=d.getIntAttribute(a,"start"),e=d.getIntAttribute(a,"end"),f=d.getIntAttribute(a,"width");this.getDomElement().setAttribute("start",c);this.getDomElement().setAttribute("end",e);this.getDomElement().setAttribute("width",f);for(var g=0;g<this.w.length;g++){var h=this.w[g],l=f,m=A_jj(h);A_kj(h,h.getDomElement(),l);m!=A_&&A_kj(h,m,l)}this.fw=d.getIntAttribute(a,"focusPos",
0);d=d.getIntAttribute(a,"focus");g=this.Za();g!=A_&&A_1i(g,d,c,e,f)}else AdfDhtmlTimelinePeer.superclass.ReplaceDomElement.call(this,a,b),this.We==A_&&(this.We=[]),this.We.push(c)};A_h("AdfDhtmlTimelinePeer.prototype.ReplaceDomElement",AdfDhtmlTimelinePeer.prototype.ReplaceDomElement);
AdfDhtmlTimelinePeer.prototype.lJ=function(a){this.dm&&(a-=this.aa(),0<a?this.w[0].Bg({callback:this.createCallback(this.$y),increment:20,counter:Math.ceil(a/20),scrollOverview:A_c}):this.w[0].Bg({callback:this.createCallback(this.$y),increment:-20,counter:Math.ceil(Math.abs(a)/20),scrollOverview:A_c}));this.dm=A_};AdfDhtmlTimelinePeer.prototype.$y=function(){for(var a=0;a<this.w.length;a++)A_lj(this.w[a])};
function A_mj(a){a=a.getComponent().getClientId();return AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(a,"zp"))}function A_nj(a){var b=A_mj(a);return b!=A_?a.X()?b.parentNode.offsetHeight:b.offsetHeight+b.offsetTop:0}function A_oj(a){a.X()||(a=A_mj(a),a!=A_&&(a.style.visibility="visible"))}function A_pj(a){a.X()||(a=A_mj(a),a!=A_&&(a.style.visibility="hidden"))}AdfDhtmlTimelinePeer.prototype.needsResizeNotify=A_f(A_b);A_h("AdfDhtmlTimelinePeer.prototype.needsResizeNotify",AdfDhtmlTimelinePeer.prototype.needsResizeNotify);
AdfDhtmlTimelinePeer.prototype.ResizeNotify=function(a,b,c,d){var e=this.X(),f=this.Za(),g=A_c;if(e)b!=d&&(a==c&&(g=A_b),a=this.getGlassPane(),"block"==a.style.display&&(this.Pa!=A_&&this.Pa.Oe==A_b)&&A_qj(this.Pa,d)),d-=A_nj(this),f!=A_&&(c=c-f.getDomElement().offsetWidth-1),f=d;else{var h=A_c;a!=c&&b==d?g=A_b:b!=d&&(a=this.getGlassPane(),"block"==a.style.display&&(this.Pa!=A_&&this.Pa.Oe==A_b)&&(A_qj(this.Pa,d),h=A_b));c-=2;f!=A_&&(d=d-f.getDomElement().offsetHeight-1);f=c;h||(50>d?A_pj(this):A_oj(this))}h=
this.ya();h.style.width=c+"px";h.style.height=d+"px";c=AdfAgent.AGENT;c.getPlatform()==AdfAgent.IE_PLATFORM&&(9>c.getVersion()&&(h.parentNode.style.height=d+"px"),e&&this.Za()!=A_&&(this.Za().getDomElement().style.height=d+"px"));this.getComponent().setProperty("minimumWidth",f,A_b,AdfUIComponent.PROPAGATE_ALWAYS);if(g&&this.w!=A_)for(d=0;d<this.w.length;d++)A_lj(this.w[d]);A_7.Pb()&&A_$i()&&(this.ya().style.overflow="hidden")};A_h("AdfDhtmlTimelinePeer.prototype.ResizeNotify",AdfDhtmlTimelinePeer.prototype.ResizeNotify);
AdfDhtmlTimelinePeer.prototype.Zy=function(a){if(a!=A_){this.w==A_&&(this.w=[]);for(var b=A_c,c=0;c<this.w.length;c++)if(this.w[c].getComponent().getClientId()==a.getComponent().getClientId()){this.w[c]=a;b=A_b;break}b||this.w.push(a)}};A_h("AdfDhtmlTimelinePeer.prototype.registerTimelineSeriesPeer",AdfDhtmlTimelinePeer.prototype.Zy);
AdfDhtmlTimelinePeer.prototype.pz=function(a){if(!(a==A_||this.w==A_)){for(var b=-1,c=0;c<this.w.length;c++)if(this.w[c]==a){b=c;break}-1!=b&&this.w.splice(b,1);0==this.w.length&&delete this.w}};A_h("AdfDhtmlTimelinePeer.prototype.unregisterTimelineSeriesPeer",AdfDhtmlTimelinePeer.prototype.pz);AdfDhtmlTimelinePeer.prototype.od=function(a){return this.X()?A_b:"noOverlap"!=a.ry()};AdfDhtmlTimelinePeer.prototype.getScrollLeft=function(a){return parseInt(a.getScrollLeft())};
AdfDhtmlTimelinePeer.prototype.Za=function(){var a=A_rj(this);return a!=A_?a.getPeer():A_};A_h("AdfDhtmlTimelinePeer.prototype.getTimelineOverviewPeer",AdfDhtmlTimelinePeer.prototype.Za);function A_rj(a){if(a.Tm!=A_&&a.Tm.getPeer()!=A_)return a.Tm;var b=AdfAgent.AGENT.getAttribute(a.getDomElement(),"_ov");return b!=A_&&(b=AdfPage.PAGE.findComponent(b),b!=A_)?(a.Tm=b,a.Tm):A_}A_g=AdfDhtmlTimelinePeer.prototype;
A_g.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};A_g.getGlassPane=function(){var a=this.getComponent();return AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(a.getClientId(),"glass"))};
function A_sj(a){var b=a.getComponent(),b=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(b.getClientId(),"mask"));return b!=A_&&a.Ec()&&!A_8.Qd()&&!A_8.jf()?A_:b}A_g.ya=function(){var a=this.getComponent();return AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(a.getClientId(),"container"))};A_g.Mr=function(){return this.w[0].Mr()};A_g.Lr=function(){return this.w[0].Lr()};
function A_dj(a,b){for(var c=AdfAgent.AGENT,d=b.previousSibling;d;){var e=c.getAttribute(d,"index");if(e==A_)break;if(e==a)break;d=d.previousSibling}return d}
A_g.bb=function(a){if(this.xg(a)){a=a.getNativeEvent();var b=AdfAgent.AGENT;b.preventDefault(a);var c=b.getEventTarget(a);if(b.isLeftButton(a)&&c){var d=AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(),"zm");c.id==d?(c=b.getElementById(d),c.setAttribute("origIndex",b.getAttribute(c,"index")),AdfPage.PAGE.startDrag(a,this.createCallback(this.bL),this.createCallback(this.xJ))):A_7.Pb()||(d=this.ya(),AdfDhtmlTimelinePeer.Gk(d,c)&&(b.eatEvent(a),AdfPage.PAGE.startDrag(a,this.createCallback(this.Cy),
this.createCallback(this.hy))))}}};A_h("AdfDhtmlTimelinePeer.prototype.HandleComponentMouseDown",AdfDhtmlTimelinePeer.prototype.bb);A_g=AdfDhtmlTimelinePeer.prototype;A_g.on=function(a){for(var b=0;b<this.w.length;b++){var c=this.w[b];if(AdfDhtmlTimelinePeer.Gk(c.getDomElement(),a))return c}return A_};A_g.ta=function(a){return AdfPage.PAGE.getLocaleContext().isRightToLeft()?parseInt(a.style.right):parseInt(a.style.left)};
A_g.mc=function(a,b){AdfPage.PAGE.getLocaleContext().isRightToLeft()?a.style.right=b+"px":a.style.left=b+"px"};A_g.bL=function(a,b){AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(b=0-b);var c=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(),"zm")),d=this.ta(c)+b,e=d+c.offsetWidth/2,f=c.parentNode.firstChild.nextSibling,f=this.ta(f)+f.offsetWidth/2,g=c.previousSibling,g=this.ta(g)+g.offsetWidth/2;e<=g&&e>=f&&this.mc(c,d)};
A_g.xJ=function(){for(var a=AdfAgent.AGENT,b=a.getElementById(AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(),"zm")),c=b.offsetWidth,d=this.ta(b)+c/2,e=A_,f=A_,g=b.parentNode.childNodes,h=g[1],l=Math.abs(d-(parseInt(this.ta(h))+parseInt(h.offsetWidth)/2)),m=2;m<g.length-2;m++)a.getAttribute(g[m],"tick")!=A_&&(e=g[m],f=Math.abs(d-(parseInt(this.ta(e))+parseInt(e.offsetWidth)/2)),f<l&&(l=f,h=e));c=parseInt(this.ta(h))+parseInt((h.offsetWidth-c)/2);this.mc(b,c);e=this.getComponent();c=a.getIntAttribute(b,
"origIndex");d=a.getIntAttribute(h,"index");h!=A_&&c!=d&&(b.setAttribute("index",d),b=new A_cj(e,2,a.getIntAttribute(this.getDomElement(),"width"),this.getDomElement().offsetWidth,this.w[0].Ka,this.w[0].Oa),a=a.getAttribute(h,"tick"),b.hk=a,b.oj=d<c,b.setPartial(A_b),AdfPage.PAGE.queueEventToServer(b))};A_g.Cy=function(a,b,c){a=a==A_?A_:AdfAgent.AGENT.getEventTarget(a);A_tj(this,a,b,c)};
function A_tj(a,b,c,d){if(!a.xw){var e=a.X(),f=a.ya();if(e){var g=0-d;c=0-c}else g=0-c,c=0-d;if(0!=g){b!=A_&&a.Xj==A_&&(a.Xj=new Date);d=a.aa(f);if(e)var h=f.firstChild.offsetHeight,f=parseInt(f.style.height);else h=f.firstChild.offsetWidth,f=parseInt(f.style.width);0<g&&d<=h-f&&0<=d||0>g&&0<=d?(!e&&AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(g=-g),a.wf(g,A_b)):0<g&&(d>=h-f&&0<=d)&&(g=a.Za(),g!=A_&&g.Ug())}0!=c&&(!e&&b!=A_)&&(b=a.on(b),b!=A_&&(A_uj(b,c),A_vj(b,A_b),a.fq=b))}}
A_g.hy=function(a,b){this.Xj!=A_&&((new Date).getTime()-this.Xj.getTime()<AdfDhtmlTimelinePeer.Mz&&AdfPage.PAGE.scheduleTimer(this,this.By,{speed:Math.round(b/1),counter:0},100),delete this.Xj,this.Xj=A_);this.fq!=A_&&(A_vj(this.fq,A_c),this.fq=A_)};A_g.By=function(a){var b=a.speed;a=a.AS;this.Cy(A_,b,0);80>a&&(0==a%10&&(b=Math.ceil(b/2)),AdfPage.PAGE.scheduleTimer(this,this.By,{speed:b,counter:a+1},10))};
function A_7i(a,b){var c=a.getComponent();a.setScrollPos(Math.max(0,b));c.setProperty("scrollLeft",a.aa(),A_b,AdfUIComponent.PROPAGATE_ALWAYS)}A_g.xf=function(){A_7i(this,0)};A_g.Ug=function(){var a=AdfAgent.AGENT.getIntAttribute(this.getDomElement(),"width");A_7i(this,a)};A_g.wf=function(a,b){this.scrollToPos(this.aa()+a,A_c);if(b){var c=this.Za();c!=A_&&(0==this.aa()?c.xf():c.wf(a))}};
A_g.scrollToPos=function(a,b){this.dm&&(this.dm=A_c);var c=this.aa();c!=a&&(c=Math.max(0,a),this.setScrollPos(c),c=this.aa(),A_wj(this,c,b))};
function A_wj(a,b,c){var d=a.getComponent();c||d.setProperty("scrollLeft",parseInt(b),A_b,AdfUIComponent.PROPAGATE_ALWAYS);c=a.w[0].Ka;var d=a.w[0].Oa,e=a.Mr();if(b>d+e||b<c-e)A_xj(a,3,e*Math.floor(b/e));else{var f=a.ya(),e=AdfAgent.AGENT.getIntAttribute(a.getDomElement(),"width"),f=a.X()?parseInt(f.style.height):parseInt(f.style.width);f+b>d&&f+b<=e?A_xj(a,2,d):0<=b&&b<c&&A_xj(a,1,c)}}
function A_xj(a,b,c){if(!(b==a.Oj&&c==a.$F)){for(var d=A_c,e=0;e<a.w.length;e++)A_yj(a.w[e],b,c)==A_&&(d=A_b);d||(a.Oj=b,a.$F=c)}}A_g.mn=function(){this.Oj=A_a};A_g.zA=function(a,b,c){this.scrollToPos(c,A_b);return A_c};A_h("AdfDhtmlTimelinePeer.prototype.ComponentScrollLeftChanged",AdfDhtmlTimelinePeer.prototype.zA);AdfDhtmlTimelinePeer.prototype.AA=A_f(A_c);A_h("AdfDhtmlTimelinePeer.prototype.ComponentScrollTopChanged",AdfDhtmlTimelinePeer.prototype.AA);
AdfDhtmlTimelinePeer.prototype.gs=function(a,b,c){for(var d=0;d<this.w.length;d++)this.w[d].gs(a,b);if(!A_7.Pb()){var e=AdfAgent.AGENT,f=this.X(),g=this.getDomElement();b=e.getIntAttribute(g,"start");var d=e.getIntAttribute(g,"end"),g=e.getIntAttribute(g,"width"),h=this.ya(),e=e.getIntAttribute(h,"fd");c?(e==A_&&(f=this.aa(),e=A_7.dc(b,d,f,g),h.setAttribute("fd",e)),a=A_7.vb(b,d,e,a)):(c=f?this.getDomElement().offsetHeight:this.getDomElement().offsetWidth,e==A_&&(f=this.aa(),e=A_7.dc(b,d,f+c,g),h.setAttribute("fd",
e)),a=A_7.vb(b,d,e,a)-c);this.setScrollPos(a)}};function A_zj(a){for(var b=0;b<a.w.length;b++)a.w[b].cr();b=a.getGlassPane();if("block"==b.style.display)for(var b=b.childNodes[2].childNodes,c=0;c<b.length;c++){var d=a.Pa,e=b[c],f=AdfAgent.AGENT.getAttribute(e,A_8.W);f!=A_&&A_Aj(d,f,e)}}
function A_Bj(a,b,c,d){if(a.rb==A_)a.rb={};else{var e=a.rb.item.firstChild;A_k.S(e,A_8.Ge);var f=e.nextSibling;A_k.S(f,A_8.Ge);var g=f.nextSibling;A_k.S(g,A_8.Ge)}a.rb.P=b;a.rb.item=c;a.rb.SL=d;e=c.firstChild;f=e.nextSibling;g=f.nextSibling;A_k.sa(e,A_8.Ge);A_k.sa(f,A_8.Ge);A_k.sa(g,A_8.Ge)}
AdfDhtmlTimelinePeer.prototype.Sc=function(a){if(!a.isCanceled()&&this.xg(a)){var b=a.getNativeEvent(),c=AdfAgent.AGENT,d=b.keyCode;switch(d){case 107:case 187:(107==d||b.shiftKey)&&A_ej(this);break;case 109:case 189:A_bj(this)}var e=A_c,f=this.jd;if("none"!=this.getGlassPane().style.display){switch(d){case AdfKeyStroke.M_KEY:b.ctrlKey&&b.altKey&&f?this.Pa.zn(b,A_b):e=A_b;break;case AdfKeyStroke.ESC_KEY:this.Pa.Zh(A_);break;case AdfKeyStroke.ARROWUP_KEY:d=this.Pa;f=A_Cj(d);if(f!=A_&&(f=A_Dj(d,f),
f!=A_)){var f=f.previousSibling,g=AdfAgent.AGENT.getAttribute(f,A_8.W);if(g!=A_){var h=A_Ej(d);"none"==f.style.display&&A_fj(d);if(b.shiftKey&&h)d.getComponent().getSelectedRowKeys()[g]?A_Aj(d,g,f):A_Fj(d,g,f);else if(!b.ctrlKey||!h)A_zj(d.q()),A_Fj(d,g,f);A_Bj(d.q(),g,f,d.getComponent().getClientId())}}break;case AdfKeyStroke.ARROWDOWN_KEY:d=this.Pa;f=A_Cj(d);if(f!=A_&&(f=A_Dj(d,f),f!=A_&&(f=f.nextSibling,f!=A_&&(g=AdfAgent.AGENT.getAttribute(f,A_8.W),g!=A_)))){h=A_Ej(d);"none"==f.style.display&&
A_gj(d);if(b.shiftKey&&h)d.getComponent().getSelectedRowKeys()[g]?A_Aj(d,g,f):A_Fj(d,g,f);else if(!b.ctrlKey||!h)A_zj(d.q()),A_Fj(d,g,f);A_Bj(d.q(),g,f,d.getComponent().getClientId())}break;default:e=A_b}e||(a.stopBubbling(),c.eatEvent(b))}}};A_h("AdfDhtmlTimelinePeer.prototype.HandleComponentKeyDown",AdfDhtmlTimelinePeer.prototype.Sc);
AdfDhtmlTimelinePeer.prototype.HandleComponentMouseOver=function(a){this.Dq&&(this.mi(),this.Fk(A_c),this.Dq=A_c);var b=a.getNativeEvent(),c=AdfAgent.AGENT;a=c.getEventTarget(b);var d;if(a==A_)d=A_;else if(d=a.hotspot!=A_?a:A_,d==A_&&(a.parentNode!=A_&&a.parentNode.hotspot!=A_)&&(d=a.parentNode),d==A_)d=A_;else{var e={};e.name=d.hotspot;e.target=d;e.seriesId=d.seriesId;d=e}if(d!=A_){if(this.jd&&this.$b==A_){this.mi();var b=this.aa(),e=this.X()?this.getDomElement().offsetHeight:this.getDomElement().offsetWidth,
f=1;switch(d.name){case "leftMost":f=3;case "left":0<b?(d.target.style.visibility="visible",this.$b=AdfPage.PAGE.scheduleTimer(this,this.Dg,-1*f,10)):this.Na();break;case "rightMost":f=3;case "right":c.getIntAttribute(this.getDomElement(),"width")>b+e?(d.target.style.visibility="visible",this.$b=AdfPage.PAGE.scheduleTimer(this,this.Dg,1*f,10)):this.Na();break;case "top":for(c=0;c<this.w.length;c++)if(b=this.w[c],e=b.getDomElement().id,e==d.seriesId){d=b;d.jd&&d.$b==A_&&(0<d.getDomElement().scrollTop?
(a.style.visibility="visible",d.$b=AdfPage.PAGE.scheduleTimer(d,d.Dg,-1,100)):(d.Na(),a.style.visibility="hidden"));break}break;case "bottom":for(c=0;c<this.w.length;c++)if(b=this.w[c],e=b.getDomElement().id,e==d.seriesId){d=b;d.jd&&d.$b==A_&&(c=d.getDomElement(),parseInt(A_9(d).style.height)>c.scrollTop+d.getDomElement().offsetHeight?(a.style.visibility="visible",d.$b=AdfPage.PAGE.scheduleTimer(d,d.Dg,1,100)):(d.Na(),a.style.visibility="hidden"));break}}}}else"block"==this.getGlassPane().style.display&&
(this.Pa!=A_&&this.Pa.Oe==A_b)&&(a=this.Pa,A_7.Pb()?AdfAgent.AGENT.preventDefault(b):(d=AdfAgent.AGENT.getEventTarget(b),d=A_5i(d,a.getDomElement()),d!=A_&&(d=d[1],A_ij(a)&&a.$h(d))))};A_h("AdfDhtmlTimelinePeer.prototype.HandleComponentMouseOver",AdfDhtmlTimelinePeer.prototype.HandleComponentMouseOver);
AdfDhtmlTimelinePeer.prototype.Ab=function(a){var b=a.getNativeEvent(),c=AdfAgent.AGENT,d=c.getEventTarget(b),b=c.getEventToElement(b),c=d.hotspot;c==A_&&d.parentNode!=A_&&(d=d.parentNode,c=d.hotspot);if(c!=A_)if("left"==c||"right"==c||"leftMost"==c||"rightMost"==c)this.Na();else for(var e=d.TL,f=0;f<this.w.length;f++)if(series=this.w[f],e=series.getDomElement().id,e==d.TL){series.Na();break}b&&(AdfDhtmlTimelinePeer.Ly(this.getDomElement(),b)?c!=A_&&this.Fk(A_c):(this.Fk(A_b),this.Dq=A_b));"block"==
this.getGlassPane().style.display&&(this.Pa!=A_&&this.Pa.Oe==A_b)&&(d=this.Pa,A_7.Pb()||(a=a.getNativeEventTarget(),a=A_5i(a,d.getDomElement()),a!=A_&&d.Eg(a[1])))};A_h("AdfDhtmlTimelinePeer.prototype.HandleComponentMouseOut",AdfDhtmlTimelinePeer.prototype.Ab);A_g=AdfDhtmlTimelinePeer.prototype;A_g.mi=function(){if(this.w!=A_)for(var a=0;a<this.w.length;a++)this.w[a].mi()};A_g.Fk=function(a){if(this.w!=A_)for(var b=0;b<this.w.length;b++)this.w[b].Fk(a)};
A_g.Dg=function(a){this.mi();this.wf(a,A_b);this.$b=AdfPage.PAGE.scheduleTimer(this,this.Dg,a,10)};A_g.Na=function(){this.$b!=A_&&AdfPage.PAGE.cancelTimer(this.$b);this.$b=A_};function A_Gj(a,b){var c=A_rj(a);if(c==A_)return A_c;var c=c.getClientId(),d=b.id;return d!=A_&&0==d.indexOf(c)?A_b:b==a.getDomElement()||b.parentNode==A_?A_c:A_Gj(a,b.parentNode)}
A_g.GG=function(a){if(2!=a.touches.length)return A_c;a=a.touches[0];var b=a.target;if("BUTTON"==b.nodeName||"ANCHOR"==b.nodeName)return A_c;var c=this.getComponent().getClientId(),d=AdfRichUIPeer.CreateSubId(c,"zi"),c=AdfRichUIPeer.CreateSubId(c,"zo");if(b.id==d||b.id==c||A_Gj(this,b))return A_c;this.ek=a.pageX;this.fk=a.pageY};
A_g.FG=function(a){if(this.ek!=A_&&this.fk!=A_){AdfAgent.AGENT.preventDefault(a);a=a.targetTouches[0];var b=a.pageX-this.ek,c=a.pageY-this.fk;0!=b?A_tj(this,a.target,b,0):0!=c&&A_tj(this,a.target,0,c);this.bH=b;this.QR=c;this.ek=a.pageX;this.fk=a.pageY}};A_g.EG=function(){this.ek!=A_&&this.fk!=A_&&(this.hy(0,this.bH),this.fk=this.ek=A_)};A_g.zG=function(a){a.preventDefault()};
A_g.yG=function(){var a=this.Za();if(!(a!=A_&&a.Aq)){var b=this.aa();A_wj(this,b,A_c);var c;if(c=a!=A_)this.sw!=A_a?(this.sw=A_a,c=A_b):c=A_c,c=!c;c&&A_0i(a,b)}};A_g.vg=function(){AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(),"status")).style.display="none"};
A_g.te=function(){var a=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(),"status"));if("none"==a.style.display){a.style.zIndex=5E3;a.style.visibility="hidden";a.style.display="block";var b=this.Za();this.X()?(b=b!=A_?b.getDomElement().offsetWidth:0,a.style.top=Math.floor(this.getDomElement().offsetHeight/2-a.offsetHeight/2)+"px",a.style.left=Math.floor((this.getDomElement().offsetWidth-b-a.offsetWidth)/2)+"px"):(b=b!=A_?b.getDomElement().offsetHeight:0,a.style.top=
Math.floor((this.getDomElement().offsetHeight-b-a.offsetHeight)/2)+"px",offset=Math.floor(this.getDomElement().offsetWidth/2-a.offsetWidth/2)+"px",AdfPage.PAGE.getLocaleContext().isRightToLeft()?a.style.right=offset:a.style.left=offset);a.style.visibility="visible"}};AdfDhtmlTimelinePeer.Ly=function(a,b){for(var c=b.parentNode;c;){if(c==a)return A_b;c=c.parentNode}return A_c};AdfDhtmlTimelinePeer.Gk=function(a,b){return b==a?A_b:AdfDhtmlTimelinePeer.Ly(a,b)};