var AdfDhtmlTimelinePeer=AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlTimelinePeer",!1);A_a("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.Oe="dataW";this.CA=200;this.FC=1500;this.El="default";this.Fl="pop";this.mA="slide";this.Gl="flip"};A_a("AdfDhtmlTimelinePeer.InitSubclass",AdfDhtmlTimelinePeer.InitSubclass);
AdfDhtmlTimelinePeer.prototype.InitDomElement=function(a,b){AdfDhtmlTimelinePeer.superclass.InitDomElement.call(this,a,b);this.Qw=0;this.pr=!1;this.zg=null;this.mr=!0;A_6.Yb()&&(b.addEventListener("gesturechange",this.createCallback(this.tH),!1),A_5i()?(b.addEventListener("touchstart",this.createCallback(this.AH),!1),b.addEventListener("touchmove",this.createCallback(this.zH),!1),b.addEventListener("touchend",this.createCallback(this.yH),!1)):b.addEventListener("scroll",this.createCallback(this.sH),
!0))};AdfDhtmlTimelinePeer.prototype.InitDomElement=AdfDhtmlTimelinePeer.prototype.InitDomElement;AdfDhtmlTimelinePeer.prototype.cp=function(a){if(null!=this.jf){for(var b=a.getClientId(),c=-1,d=0;d<this.jf.length;d++)if(this.jf[d]==b){c=d;break}-1!=c&&(this.jf.splice(c,1),AdfPage.PAGE.registerResizeNotifyComponent(a),AdfPage.PAGE.doResizeNotify(a))}};AdfDhtmlTimelinePeer.prototype.HandleChildrenInitialized=AdfDhtmlTimelinePeer.prototype.cp;
function A_5i(){var a=navigator.userAgent.toLowerCase();return-1!=a.indexOf("applewebkit")&&-1!=a.indexOf("mobile")&&-1!=a.indexOf("os 4_")}A_=AdfDhtmlTimelinePeer.prototype;A_.Mc=function(){return null!=this.getDomElement().getAttribute("_offline")};A_.ea=function(){null==this.zg&&(this.zg="horizontal"!=AdfAgent.AGENT.getAttribute(this.getDomElement(),"_orn"));return this.zg};
A_.Fb=function(){if(null==AdfAgent.AGENT.getAttribute(this.getDomElement(),"_ov")||1<this.Ia().childNodes.length)return!1;null==this.hk&&(this.hk="below"!=AdfAgent.AGENT.getAttribute(this.getDomElement(),"_ovp"));return this.hk};
A_.ki=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_6i(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_.ha=function(a){void 0==a&&(a=this.Ia());return this.ea()?a.scrollTop:this.ki(a)};
A_.setScrollPos=function(a,b){void 0==b&&(b=this.Ia());this.ea()?b.scrollTop=a:A_6i(this,b,a);for(var c=a+this.getDomElement().offsetWidth>=AdfAgent.AGENT.getIntAttribute(this.getDomElement(),"width"),d=0;d<this.G.length;d++){var e=this.G[d];null!=e.xa&&null!=e.Aa&&(0==a?(e.xa.style.visibility="hidden",e.Aa.style.visibility="visible"):c?(e.xa.style.visibility="visible",e.Aa.style.visibility="hidden"):(e.xa.style.visibility="visible",e.Aa.style.visibility="visible"))}};
A_.ra=function(a){if(this.Mg(a)&&a.isLeftButtonPressed()){a=a.getNativeEvent();var b=AdfAgent.AGENT.getEventTarget(a);b&&this.Ys(b,a)}};A_a("AdfDhtmlTimelinePeer.prototype.HandleComponentClick",AdfDhtmlTimelinePeer.prototype.ra);
function A_7i(a){var b=AdfAgent.AGENT,c=a.getComponent(),d=AdfRichUIPeer.CreateSubId(c.getClientId(),"zm"),d=b.getElementById(d);if(null!=d){var e=b.getIntAttribute(d,"index");0!=e&&(a.Ge(),a=new A_8i(c,0,b.getIntAttribute(a.getDomElement(),"width"),a.getDomElement().offsetWidth),a.setPartial(!0),AdfPage.PAGE.queueEventToServer(a),a="left",AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(a="right"),b=A_9i(e,d).previousSibling,d.style[a]=parseInt(b.style[a])+parseInt((b.offsetWidth-d.offsetWidth)/
2)+"px",d.setAttribute("index",e-1))}}
function A_$i(a){var b=AdfAgent.AGENT,c=a.getComponent(),d=AdfRichUIPeer.CreateSubId(c.getClientId(),"zm"),d=b.getElementById(d);if(null!=d){var e=b.getIntAttribute(d,"index");b.getIntAttribute(d.previousSibling,"index")!=e&&(a.Ge(),e+=1,a=new A_8i(c,1,b.getIntAttribute(a.getDomElement(),"width"),a.getDomElement().offsetWidth,a.G[0].Ta,a.G[0].Wa),a.setPartial(!0),AdfPage.PAGE.queueEventToServer(a),a="left",AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(a="right"),b=A_9i(e,d),d.style[a]=parseInt(b.style[a])+
parseInt((b.offsetWidth-d.offsetWidth)/2)+"px",d.setAttribute("index",e))}}
AdfDhtmlTimelinePeer.prototype.Ys=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=!0;a.id==e?A_7i(this):a.id==f?A_$i(this):a.id==h?this.G[0].pi(null):a.id==l?A_aj(this.Xa):a.id==m?A_bj(this.Xa):null!=c.getAttribute(a,"tick")?A_cj(this,a,g):a.parentNode&&
null!=c.getAttribute(a.parentNode,"tick")?A_cj(this,a.parentNode,g):"block"==this.getGlassPane().style.display&&null!=this.Xa&&1==this.Xa.af?(c=this.Xa,e=AdfAgent.AGENT.getEventTarget(b),f=A_0i(e,c.getDomElement()),null!=f&&(e=f[0],f=f[1],null!=e&&A_dj(c)&&(g=AdfAgent.AGENT.isSelectionToggle(b),A_1i(c,g,e,f)))):d=!1;return d};
function A_cj(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_8i(c,2,d.getIntAttribute(a.getDomElement(),"width"),a.getDomElement().offsetWidth,a.G[0].Ta,a.G[0].Wa);a.Hk=e;a.Jj=f<b;a.setPartial(!0);AdfPage.PAGE.queueEventToServer(a)}
AdfDhtmlTimelinePeer.prototype.ComponentRemoved=function(a){null!=this.G&&delete this.G;null!=this.jf&&delete this.jf;AdfDhtmlTimelinePeer.superclass.ComponentRemoved.call(this,a)};AdfDhtmlTimelinePeer.prototype.ComponentRemoved=AdfDhtmlTimelinePeer.prototype.ComponentRemoved;AdfDhtmlTimelinePeer.prototype.DomReplaceNotify=function(a){return 0<a.id.indexOf(AdfDhtmlTimelinePeer.Oe)?null:a};AdfDhtmlTimelinePeer.prototype.DomReplaceNotify=AdfDhtmlTimelinePeer.prototype.DomReplaceNotify;
AdfDhtmlTimelinePeer.prototype.ReplaceDomElement=function(a,b){var c=a.id;if(0<c.indexOf(AdfDhtmlTimelinePeer.Oe)){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.G.length;g++){var h=this.G[g],l=f,m=A_ej(h);A_fj(h,h.getDomElement(),l);null!=m&&A_fj(h,m,l)}this.Uw=d.getIntAttribute(a,"focusPos",
0);d=d.getIntAttribute(a,"focus");g=this.hb();null!=g&&A_Xi(g,d,c,e,f)}else AdfDhtmlTimelinePeer.superclass.ReplaceDomElement.call(this,a,b),null==this.jf&&(this.jf=[]),this.jf.push(c)};AdfDhtmlTimelinePeer.prototype.ReplaceDomElement=AdfDhtmlTimelinePeer.prototype.ReplaceDomElement;
AdfDhtmlTimelinePeer.prototype.aK=function(a){this.Gm&&(a-=this.ha(),0<a?this.G[0].Rg({callback:this.createCallback(this.Nz),increment:20,counter:Math.ceil(a/20),scrollOverview:!1}):this.G[0].Rg({callback:this.createCallback(this.Nz),increment:-20,counter:Math.ceil(Math.abs(a)/20),scrollOverview:!1}));this.Gm=null};AdfDhtmlTimelinePeer.prototype.Nz=function(){for(var a=0;a<this.G.length;a++)A_gj(this.G[a])};
function A_hj(a){a=a.getComponent().getClientId();return AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(a,"zp"))}function A_ij(a){var b=A_hj(a);return null!=b?a.ea()?b.parentNode.offsetHeight:b.offsetHeight+b.offsetTop:0}function A_jj(a){a.ea()||(a=A_hj(a),null!=a&&(a.style.visibility="visible"))}function A_kj(a){a.ea()||(a=A_hj(a),null!=a&&(a.style.visibility="hidden"))}AdfDhtmlTimelinePeer.prototype.needsResizeNotify=function(){return!0};
AdfDhtmlTimelinePeer.prototype.needsResizeNotify=AdfDhtmlTimelinePeer.prototype.needsResizeNotify;
AdfDhtmlTimelinePeer.prototype.ResizeNotify=function(a,b,c,d){var e=this.ea(),f=this.hb(),g=!1;if(e)b!=d&&(a==c&&(g=!0),a=this.getGlassPane(),"block"==a.style.display&&null!=this.Xa&&1==this.Xa.af&&A_lj(this.Xa,d)),d-=A_ij(this),null!=f&&(c=c-f.getDomElement().offsetWidth-1),f=d;else{var h=!1;a!=c&&b==d?g=!0:b!=d&&(a=this.getGlassPane(),"block"==a.style.display&&null!=this.Xa&&1==this.Xa.af&&(A_lj(this.Xa,d),h=!0));c-=2;null!=f&&(d=d-f.getDomElement().offsetHeight-1);f=c;h||(50>d?A_kj(this):A_jj(this))}h=
this.Ia();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&&null!=this.hb()&&(this.hb().getDomElement().style.height=d+"px"));this.getComponent().setProperty("minimumWidth",f,!0,AdfUIComponent.PROPAGATE_ALWAYS);if(g&&null!=this.G)for(d=0;d<this.G.length;d++)A_gj(this.G[d]);A_6.Yb()&&A_5i()&&(this.Ia().style.overflow="hidden")};AdfDhtmlTimelinePeer.prototype.ResizeNotify=AdfDhtmlTimelinePeer.prototype.ResizeNotify;
AdfDhtmlTimelinePeer.prototype.Mz=function(a){if(null!=a){null==this.G&&(this.G=[]);for(var b=!1,c=0;c<this.G.length;c++)if(this.G[c].getComponent().getClientId()==a.getComponent().getClientId()){this.G[c]=a;b=!0;break}b||this.G.push(a)}};AdfDhtmlTimelinePeer.prototype.registerTimelineSeriesPeer=AdfDhtmlTimelinePeer.prototype.Mz;
AdfDhtmlTimelinePeer.prototype.eA=function(a){if(null!=a&&null!=this.G){for(var b=-1,c=0;c<this.G.length;c++)if(this.G[c]==a){b=c;break}-1!=b&&this.G.splice(b,1);0==this.G.length&&delete this.G}};AdfDhtmlTimelinePeer.prototype.unregisterTimelineSeriesPeer=AdfDhtmlTimelinePeer.prototype.eA;AdfDhtmlTimelinePeer.prototype.vd=function(a){return this.ea()?!0:"noOverlap"!=a.gz()};AdfDhtmlTimelinePeer.prototype.getScrollLeft=function(a){return parseInt(a.getScrollLeft())};
AdfDhtmlTimelinePeer.prototype.hb=function(){var a=A_mj(this);return null!=a?a.getPeer():null};AdfDhtmlTimelinePeer.prototype.getTimelineOverviewPeer=AdfDhtmlTimelinePeer.prototype.hb;function A_mj(a){if(null!=a.un&&null!=a.un.getPeer())return a.un;var b=AdfAgent.AGENT.getAttribute(a.getDomElement(),"_ov");return null!=b&&(b=AdfPage.PAGE.findComponent(b),null!=b)?(a.un=b,a.un):null}A_=AdfDhtmlTimelinePeer.prototype;
A_.Mg=function(a){a=a.getSource();for(var b=this.getComponent(),c=!1;!c&&a;)if(a==b)c=!0;else{if(a instanceof AdfRichTimeline||a instanceof AdfUIPopup)break;a=a.getParent()}return c};A_.getGlassPane=function(){var a=this.getComponent();return AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(a.getClientId(),"glass"))};function A_nj(a){var b=a.getComponent(),b=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(b.getClientId(),"mask"));return null==b||!a.Mc()||A_7.Zd()||A_7.xf()?b:null}
A_.Ia=function(){var a=this.getComponent();return AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(a.getClientId(),"container"))};A_.ys=function(){return this.G[0].ys()};A_.xs=function(){return this.G[0].xs()};function A_9i(a,b){for(var c=AdfAgent.AGENT,d=b.previousSibling;d;){var e=c.getAttribute(d,"index");if(null==e)break;if(e==a)break;d=d.previousSibling}return d}
A_.kb=function(a){if(this.Mg(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.SL),this.createCallback(this.mK))):A_6.Yb()||(d=this.Ia(),AdfDhtmlTimelinePeer.gl(d,c)&&(b.eatEvent(a),AdfPage.PAGE.startDrag(a,this.createCallback(this.qz),
this.createCallback(this.Xy))))}}};A_a("AdfDhtmlTimelinePeer.prototype.HandleComponentMouseDown",AdfDhtmlTimelinePeer.prototype.kb);A_=AdfDhtmlTimelinePeer.prototype;A_.Un=function(a){for(var b=0;b<this.G.length;b++){var c=this.G[b];if(AdfDhtmlTimelinePeer.gl(c.getDomElement(),a))return c}return null};A_.Ba=function(a){return AdfPage.PAGE.getLocaleContext().isRightToLeft()?parseInt(a.style.right):parseInt(a.style.left)};
A_.uc=function(a,b){AdfPage.PAGE.getLocaleContext().isRightToLeft()?a.style.right=b+"px":a.style.left=b+"px"};A_.SL=function(a,b){AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(b=0-b);var c=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(),"zm")),d=this.Ba(c)+b,e=d+c.offsetWidth/2,f=c.parentNode.firstChild.nextSibling,f=this.Ba(f)+f.offsetWidth/2,g=c.previousSibling,g=this.Ba(g)+g.offsetWidth/2;e<=g&&e>=f&&this.uc(c,d)};
A_.mK=function(){for(var a=AdfAgent.AGENT,b=a.getElementById(AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(),"zm")),c=b.offsetWidth,d=this.Ba(b)+c/2,e=null,f=null,g=b.parentNode.childNodes,h=g[1],l=Math.abs(d-(parseInt(this.Ba(h))+parseInt(h.offsetWidth)/2)),m=2;m<g.length-2;m++)null!=a.getAttribute(g[m],"tick")&&(e=g[m],f=Math.abs(d-(parseInt(this.Ba(e))+parseInt(e.offsetWidth)/2)),f<l&&(l=f,h=e));c=parseInt(this.Ba(h))+parseInt((h.offsetWidth-c)/2);this.uc(b,c);e=this.getComponent();
c=a.getIntAttribute(b,"origIndex");d=a.getIntAttribute(h,"index");null!=h&&c!=d&&(b.setAttribute("index",d),b=new A_8i(e,2,a.getIntAttribute(this.getDomElement(),"width"),this.getDomElement().offsetWidth,this.G[0].Ta,this.G[0].Wa),a=a.getAttribute(h,"tick"),b.Hk=a,b.Jj=d<c,b.setPartial(!0),AdfPage.PAGE.queueEventToServer(b))};A_.qz=function(a,b,c){a=null==a?null:AdfAgent.AGENT.getEventTarget(a);A_oj(this,a,b,c)};
function A_oj(a,b,c,d){if(!a.pr){var e=a.ea(),f=a.Ia();if(e){var g=0-d;c=0-c}else g=0-c,c=0-d;if(0!=g){null!=b&&null==a.vk&&(a.vk=new Date);d=a.ha(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.Lf(g,!0)):0<g&&d>=h-f&&0<=d&&(g=a.hb(),null!=g&&g.kh())}0==c||e||null==b||(b=a.Un(b),null!=b&&(A_pj(b,c),A_qj(b,!0),a.Mq=b))}}
A_.Xy=function(a,b){null!=this.vk&&((new Date).getTime()-this.vk.getTime()<AdfDhtmlTimelinePeer.CA&&AdfPage.PAGE.scheduleTimer(this,this.pz,{speed:Math.round(b/1),counter:0},100),delete this.vk,this.vk=null);null!=this.Mq&&(A_qj(this.Mq,!1),this.Mq=null)};A_.pz=function(a){var b=a.speed;a=a.SS;this.qz(null,b,0);80>a&&(0==a%10&&(b=Math.ceil(b/2)),AdfPage.PAGE.scheduleTimer(this,this.pz,{speed:b,counter:a+1},10))};
function A_2i(a,b){var c=a.getComponent();a.setScrollPos(Math.max(0,b));c.setProperty("scrollLeft",a.ha(),!0,AdfUIComponent.PROPAGATE_ALWAYS)}A_.Mf=function(){A_2i(this,0)};A_.kh=function(){var a=AdfAgent.AGENT.getIntAttribute(this.getDomElement(),"width");A_2i(this,a)};A_.Lf=function(a,b){this.scrollToPos(this.ha()+a,!1);if(b){var c=this.hb();null!=c&&(0==this.ha()?c.Mf():c.Lf(a))}};
A_.scrollToPos=function(a,b){this.Gm&&(this.Gm=!1);var c=this.ha();c!=a&&(c=Math.max(0,a),this.setScrollPos(c),c=this.ha(),A_rj(this,c,b))};
function A_rj(a,b,c){var d=a.getComponent();c||d.setProperty("scrollLeft",parseInt(b),!0,AdfUIComponent.PROPAGATE_ALWAYS);c=a.G[0].Ta;var d=a.G[0].Wa,e=a.ys();if(b>d+e||b<c-e)A_sj(a,3,e*Math.floor(b/e));else{var f=a.Ia(),e=AdfAgent.AGENT.getIntAttribute(a.getDomElement(),"width"),f=a.ea()?parseInt(f.style.height):parseInt(f.style.width);f+b>d&&f+b<=e?A_sj(a,2,d):0<=b&&b<c&&A_sj(a,1,c)}}
function A_sj(a,b,c){if(b!=a.lk||c!=a.UG){for(var d=!1,e=0;e<a.G.length;e++)null==A_tj(a.G[e],b,c)&&(d=!0);d||(a.lk=b,a.UG=c)}}A_.Sn=function(){this.lk=void 0};A_.pB=function(a,b,c){this.scrollToPos(c,!0);return!1};A_a("AdfDhtmlTimelinePeer.prototype.ComponentScrollLeftChanged",AdfDhtmlTimelinePeer.prototype.pB);AdfDhtmlTimelinePeer.prototype.qB=function(){return!1};A_a("AdfDhtmlTimelinePeer.prototype.ComponentScrollTopChanged",AdfDhtmlTimelinePeer.prototype.qB);
AdfDhtmlTimelinePeer.prototype.Ts=function(a,b,c){for(var d=0;d<this.G.length;d++)this.G[d].Ts(a,b);if(!A_6.Yb()){var e=AdfAgent.AGENT,f=this.ea(),g=this.getDomElement();b=e.getIntAttribute(g,"start");var d=e.getIntAttribute(g,"end"),g=e.getIntAttribute(g,"width"),h=this.Ia(),e=e.getIntAttribute(h,"fd");c?(null==e&&(f=this.ha(),e=A_6.kc(b,d,f,g),h.setAttribute("fd",e)),a=A_6.Db(b,d,e,a)):(c=f?this.getDomElement().offsetHeight:this.getDomElement().offsetWidth,null==e&&(f=this.ha(),e=A_6.kc(b,d,f+c,
g),h.setAttribute("fd",e)),a=A_6.Db(b,d,e,a)-c);this.setScrollPos(a)}};function A_uj(a){for(var b=0;b<a.G.length;b++)a.G[b].Pr();b=a.getGlassPane();if("block"==b.style.display)for(var b=b.childNodes[2].childNodes,c=0;c<b.length;c++){var d=a.Xa,e=b[c],f=AdfAgent.AGENT.getAttribute(e,A_7.ca);null!=f&&A_vj(d,f,e)}}
function A_wj(a,b,c,d){if(null==a.Ab)a.Ab={};else{var e=a.Ab.item.firstChild;A_d.X(e,A_7.Te);var f=e.nextSibling;A_d.X(f,A_7.Te);var g=f.nextSibling;A_d.X(g,A_7.Te)}a.Ab.Y=b;a.Ab.item=c;a.Ab.JM=d;e=c.firstChild;f=e.nextSibling;g=f.nextSibling;A_d.ya(e,A_7.Te);A_d.ya(f,A_7.Te);A_d.ya(g,A_7.Te)}
AdfDhtmlTimelinePeer.prototype.$c=function(a){if(!a.isCanceled()&&this.Mg(a)){var b=a.getNativeEvent(),c=AdfAgent.AGENT,d=b.keyCode;switch(d){case 107:case 187:(107==d||b.shiftKey)&&A_$i(this);break;case 109:case 189:A_7i(this)}var e=!1,f=this.Sd;if("none"!=this.getGlassPane().style.display){switch(d){case AdfKeyStroke.M_KEY:b.ctrlKey&&b.altKey&&f?this.Xa.ho(b,!0):e=!0;break;case AdfKeyStroke.ESC_KEY:this.Xa.pi(null);break;case AdfKeyStroke.ARROWUP_KEY:d=this.Xa;f=A_xj(d);if(null!=f&&(f=A_yj(d,f),
null!=f)){var f=f.previousSibling,g=AdfAgent.AGENT.getAttribute(f,A_7.ca);if(null!=g){var h=A_zj(d);"none"==f.style.display&&A_aj(d);b.shiftKey&&h?A_Aj(d,g)?A_vj(d,g,f):A_Bj(d,g,f):b.ctrlKey&&h||(A_uj(d.w()),A_Bj(d,g,f));A_wj(d.w(),g,f,d.getComponent().getClientId())}}break;case AdfKeyStroke.ARROWDOWN_KEY:d=this.Xa;f=A_xj(d);null!=f&&(f=A_yj(d,f),null!=f&&(f=f.nextSibling,null!=f&&(g=AdfAgent.AGENT.getAttribute(f,A_7.ca),null!=g&&(h=A_zj(d),"none"==f.style.display&&A_bj(d),b.shiftKey&&h?A_Aj(d,g)?
A_vj(d,g,f):A_Bj(d,g,f):b.ctrlKey&&h||(A_uj(d.w()),A_Bj(d,g,f)),A_wj(d.w(),g,f,d.getComponent().getClientId())))));break;default:e=!0}e||(a.stopBubbling(),c.eatEvent(b))}}};A_a("AdfDhtmlTimelinePeer.prototype.HandleComponentKeyDown",AdfDhtmlTimelinePeer.prototype.$c);
AdfDhtmlTimelinePeer.prototype.HandleComponentMouseOver=function(a){this.mr&&(this.Ei(),this.dl(!1),this.mr=!1);var b=a.getNativeEvent(),c=AdfAgent.AGENT;a=c.getEventTarget(b);var d;if(null==a)d=null;else if(d=null!=a.hotspot?a:null,null==d&&null!=a.parentNode&&null!=a.parentNode.hotspot&&(d=a.parentNode),null==d)d=null;else{var e={};e.name=d.hotspot;e.target=d;e.seriesId=d.seriesId;d=e}if(null!=d){if(this.Sd&&null==this.gc){this.Ei();var b=this.ha(),e=this.ea()?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.gc=AdfPage.PAGE.scheduleTimer(this,this.Tg,-1*f,10)):this.Va();break;case "rightMost":f=3;case "right":c.getIntAttribute(this.getDomElement(),"width")>b+e?(d.target.style.visibility="visible",this.gc=AdfPage.PAGE.scheduleTimer(this,this.Tg,1*f,10)):this.Va();break;case "top":for(c=0;c<this.G.length;c++)if(b=this.G[c],e=b.getDomElement().id,e==d.seriesId){d=b;d.Sd&&null==
d.gc&&(0<d.getDomElement().scrollTop?(a.style.visibility="visible",d.gc=AdfPage.PAGE.scheduleTimer(d,d.Tg,-1,100)):(d.Va(),a.style.visibility="hidden"));break}break;case "bottom":for(c=0;c<this.G.length;c++)if(b=this.G[c],e=b.getDomElement().id,e==d.seriesId){d=b;d.Sd&&null==d.gc&&(c=d.getDomElement(),parseInt(A_8(d).style.height)>c.scrollTop+d.getDomElement().offsetHeight?(a.style.visibility="visible",d.gc=AdfPage.PAGE.scheduleTimer(d,d.Tg,1,100)):(d.Va(),a.style.visibility="hidden"));break}}}}else"block"==
this.getGlassPane().style.display&&null!=this.Xa&&1==this.Xa.af&&(a=this.Xa,A_6.Yb()?AdfAgent.AGENT.preventDefault(b):(d=AdfAgent.AGENT.getEventTarget(b),d=A_0i(d,a.getDomElement()),null!=d&&(d=d[1],A_dj(a)&&a.ri(d))))};A_a("AdfDhtmlTimelinePeer.prototype.HandleComponentMouseOver",AdfDhtmlTimelinePeer.prototype.HandleComponentMouseOver);
AdfDhtmlTimelinePeer.prototype.Ib=function(a){var b=a.getNativeEvent(),c=AdfAgent.AGENT,d=c.getEventTarget(b),b=c.getEventToElement(b),c=d.hotspot;null==c&&null!=d.parentNode&&(d=d.parentNode,c=d.hotspot);if(null!=c)if("left"==c||"right"==c||"leftMost"==c||"rightMost"==c)this.Va();else for(var e=d.KM,f=0;f<this.G.length;f++)if(series=this.G[f],e=series.getDomElement().id,e==d.KM){series.Va();break}b&&(AdfDhtmlTimelinePeer.yz(this.getDomElement(),b)?null!=c&&this.dl(!1):(this.dl(!0),this.mr=!0));"block"==
this.getGlassPane().style.display&&null!=this.Xa&&1==this.Xa.af&&(d=this.Xa,A_6.Yb()||(a=a.getNativeEventTarget(),a=A_0i(a,d.getDomElement()),null!=a&&d.Ug(a[1])))};A_a("AdfDhtmlTimelinePeer.prototype.HandleComponentMouseOut",AdfDhtmlTimelinePeer.prototype.Ib);A_=AdfDhtmlTimelinePeer.prototype;A_.Ei=function(){if(null!=this.G)for(var a=0;a<this.G.length;a++)this.G[a].Ei()};A_.dl=function(a){if(null!=this.G)for(var b=0;b<this.G.length;b++)this.G[b].dl(a)};
A_.Tg=function(a){this.Ei();this.Lf(a,!0);this.gc=AdfPage.PAGE.scheduleTimer(this,this.Tg,a,10)};A_.Va=function(){null!=this.gc&&AdfPage.PAGE.cancelTimer(this.gc);this.gc=null};function A_Cj(a,b){var c=A_mj(a);if(null==c)return!1;var c=c.getClientId(),d=b.id;return null!=d&&0==d.indexOf(c)?!0:b==a.getDomElement()||null==b.parentNode?!1:A_Cj(a,b.parentNode)}
A_.AH=function(a){if(2!=a.touches.length)return!1;a=a.touches[0];var b=a.target;if("BUTTON"==b.nodeName||"ANCHOR"==b.nodeName)return!1;var c=this.getComponent().getClientId(),d=AdfRichUIPeer.CreateSubId(c,"zi"),c=AdfRichUIPeer.CreateSubId(c,"zo");if(b.id==d||b.id==c||A_Cj(this,b))return!1;this.Ek=a.pageX;this.Fk=a.pageY};
A_.zH=function(a){if(null!=this.Ek&&null!=this.Fk){AdfAgent.AGENT.preventDefault(a);a=a.targetTouches[0];var b=a.pageX-this.Ek,c=a.pageY-this.Fk;0!=b?A_oj(this,a.target,b,0):0!=c&&A_oj(this,a.target,0,c);this.WH=b;this.Ek=a.pageX;this.Fk=a.pageY}};A_.yH=function(){null!=this.Ek&&null!=this.Fk&&(this.Xy(0,this.WH),this.Fk=this.Ek=null)};A_.tH=function(a){a.preventDefault()};
A_.sH=function(){var a=this.hb();if(null==a||!a.ir){var b=this.ha();A_rj(this,b,!1);var c;(c=null==a)||(void 0!=this.gx?(this.gx=void 0,c=!0):c=!1);c||A_Wi(a,b)}};A_.fl=function(){AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(),"status")).style.display="none"};
A_.Ge=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.hb();this.ea()?(b=null!=b?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=null!=b?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.yz=function(a,b){for(var c=b.parentNode;c;){if(c==a)return!0;c=c.parentNode}return!1};AdfDhtmlTimelinePeer.gl=function(a,b){return b==a?!0:AdfDhtmlTimelinePeer.yz(a,b)};