var A_o=AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlTimelineOverviewPeer",A_c);A_h("AdfDhtmlTimelineOverviewPeer",A_o);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.timeline.TimelineOverview","AdfDhtmlTimelineOverviewPeer");A_o.InitSubclass=function(){AdfObject.ensureClassInitialization(A_o);this.Vn=0;this.Tn=1;this.Un=2;this.Be="dataW";this.Aq=A_c};A_h("AdfDhtmlTimelineOverviewPeer.InitSubclass",A_o.InitSubclass);
A_o.prototype.InitDomElement=function(a,b){A_o.superclass.InitDomElement.call(this,a,b);"ATTACHMENT"==this.I(a)&&this.kl(a)};A_h("AdfDhtmlTimelineOverviewPeer.prototype.InitDomElement",A_o.prototype.InitDomElement);A_o.prototype.BindToComponent=function(a,b){A_o.superclass.BindToComponent.call(this,a,b);a.getParent().getPeer().xo(a)};A_h("AdfDhtmlTimelineOverviewPeer.prototype.BindToComponent",A_o.prototype.BindToComponent);
A_o.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 AdfRichTimelineOverview||a instanceof AdfUIPopup)break;a=a.getParent()}return c};A_o.prototype.q=function(){if(this.ir!=A_)return this.ir;var a=AdfAgent.AGENT.getAttribute(this.getDomElement(),"_tl");if(a!=A_&&(a=AdfPage.PAGE.findComponent(a),a!=A_))return this.ir=a.getPeer()};A_o.prototype.DomReplaceNotify=function(a){return 0<a.id.indexOf(A_o.Be)?A_:a};
A_h("AdfDhtmlTimelineOverviewPeer.prototype.DomReplaceNotify",A_o.prototype.DomReplaceNotify);
A_o.prototype.ReplaceDomElement=function(a,b){if(0<a.id.indexOf(A_o.Be))for(var c=AdfAgent.AGENT,d=a.childNodes,e=this.getComponent(),f=0;f<d.length;f++)switch(c.getIntAttribute(d[f],"_autopprBlock",-1)){case A_o.Tn:var g=d[f].innerHTML;if(this.za(e)){var h=this.Ya(e);h.handleAutoPPRInsert(g)}else A_Yi(this.c,g);break;case A_o.Vn:var l=c.getAttribute(d[f],"_rk"),g=d[f].innerHTML;this.za(e)?(h=this.Ya(e),h.handleAutoPPRUpdate(l,g)):A_Zi(this.c,l,g);break;case A_o.Un:l=c.getAttribute(d[f],"_rk"),this.za(e)?
(h=this.Ya(e),h.handleAutoPPRDelete(l)):this.c.KT(l)}else A_o.superclass.ReplaceDomElement.call(this,a,b)};A_h("AdfDhtmlTimelineOverviewPeer.prototype.ReplaceDomElement",A_o.prototype.ReplaceDomElement);A_o.prototype.needsResizeNotify=A_f(A_b);A_h("AdfDhtmlTimelineOverviewPeer.prototype.needsResizeNotify",A_o.prototype.needsResizeNotify);
A_o.prototype.ResizeNotify=function(a,b,c,d){var e=this.getComponent(),f=this.getDomElement();this.La=c;this.eb=d;if(this.za(e))this.bi(e)||("false"==e.getProperty("isFlashDefault")&&!A_E.Ik()?(f={event:"dvt_evt"},f.width=c,f.height=d,f.imageFormat="PNG",c=new A_Db(e,f),c.setPartial(A_b),AdfPage.PAGE.queueEventToServer(c)):this.Px(e));else if("ATTACHMENT"==this.I(e)){if(f=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(e.getClientId(),"sWin")),f!=A_){f.JL=this;f.onmousedown=this.aL;var g=
AdfAgent.AGENT;b=g.getIntAttribute(f,"renstart");var h=this.q().getDomElement(),e=g.getIntAttribute(h,"start");a=g.getIntAttribute(h,"end");var g=g.getIntAttribute(h,"width"),l=A_7.dc(e,a,c,g),h=Math.max(0,A_7.vb(e,a,A_7.dc(e,a,0,g),c)),l=Math.min(c,A_7.vb(e,a,l,c));b=Math.max(0,A_7.vb(e,a,b,c));f.style.left=b+"px";f.style.width=l-h+"px";f.style.height=d-2+"px";this.hb=f;this.xq=A_7.vb(e,a,A_7.dc(e,a,2,c),g)-A_7.vb(e,a,A_7.dc(e,a,1,c),g)}}else AdfAgent.AGENT.disableUserSelect(f),this.c?(c!=a||d!=
b)&&this.gd(A_):(c=e.getClientId(),d=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(c,"imgDiv")),d!=A_&&(d.style.display="none"),d=new dvt.dt(f,c),this.c=new dvt.NQ(d,this.HandleEvent,this),d.getStage().addChild(this.c),c=A_o.kw(c),this.gd(c))};A_h("AdfDhtmlTimelineOverviewPeer.prototype.ResizeNotify",A_o.prototype.ResizeNotify);A_o.prototype.gd=function(a){var b=this.getComponent();this.za(b)?this.Ya(b).updateXML(a):this.c.render(a,this.La,this.eb)};
A_o.kw=function(a){if(a=document.getElementById(a+"_xmlDiv")){a=a.innerHTML;var b=a.indexOf("\x3c!--"),c=a.lastIndexOf("--\x3e");-1!=b&&-1!=c&&(a=a.substring(b+4,c));return a}return A_};A_g=A_o.prototype;
A_g.xf=function(){var a=this.getComponent();if(this.za(a)){if(a=this.Ya(a),a!=A_)try{a.ScrollToStart()}catch(b){}}else this.c==A_?this.hb!=A_&&(a=this.La,AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.hb.style.left=a-parseInt(this.hb.style.width)+"px":this.hb.style.left="0px",this.hb.left=parseInt(this.hb.style.left)):this.c.xf()};
A_g.Ug=function(){var a=this.getComponent();this.za(a)?(a=this.Ya(a),a!=A_&&a.ScrollToEnd()):this.c==A_?this.hb!=A_&&(a=this.La,AdfPage.PAGE.getLocaleContext().isRightToLeft()?this.hb.style.left="0px":this.hb.style.left=a-parseInt(this.hb.style.width)+"px",this.hb.left=parseInt(this.hb.style.left)):this.c.Ug()};function A__i(a,b){var c=a.getComponent();a.za(c)?(c=a.Ya(c),c!=A_&&c.ScrollToPos(b)):a.c!=A_&&A__i(a.c,b)}
function A_0i(a,b){var c=a.getComponent();a.za(c)?a.Ya(c).longScrollToPos(b):a.c!=A_&&A_0i(a.c,b)}A_g.wf=function(a){var b=this.getComponent();this.za(b)?this.Ya(b).ScrollByAmount(a):this.c==A_?this.hb!=A_&&(a/=this.xq,AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(a=0-a),b=this.La-parseFloat(this.hb.style.width),this.hb.left==A_a&&(this.hb.left=0),this.hb.left=Math.min(b,this.hb.left+a),this.hb.style.left=this.hb.left+"px"):this.c.wf(a)};
function A_1i(a,b,c,d,e){var f=a.getComponent();a.za(f)?a.Ya(f).updateSlidingWindowForZoom(b,c,d,e):A_1i(a.c,b,c,d,e)}A_g.$h=function(a){var b=this.getComponent();this.za(b)?this.Ya(b).highlightItem(a):this.c!=A_&&this.c.$h(a)};A_g.Eg=function(a){var b=this.getComponent();this.za(b)?this.Ya(b).unhighlightItem(a):this.c!=A_&&this.c.Eg(a)};function A_2i(a,b){var c=a.getComponent();a.za(c)?a.Ya(c).selSelectItem(b):a.c!=A_&&A_2i(a.c,b)}
function A_3i(a,b){var c=a.getComponent();a.za(c)?a.Ya(c).selUnselectItem(b):a.c!=A_&&A_3i(a.c,b)}function A_4i(a){var b=a.getComponent();a.za(b)?a.Ya(b).removeAllSelectedMarkers():a.c!=A_&&A_4i(a.c)}
A_g.HandleEvent=function(a){var b=a.ds();if(b==DvtTimelineOverviewEvent.RC||b==DvtTimelineOverviewEvent.yQ){var c=a.cK(),d=this.on(c);if(d!=A_){var e=document.getElementById(c);e!=A_&&(b==DvtTimelineOverviewEvent.RC?d.$h(e,A_b):d.Eg(e,A_b))}}else if(b==DvtTimelineOverviewEvent.wQ){var d=a.getTime(),c=this.q(),f=AdfAgent.AGENT;a=c.getDomElement();b=f.getIntAttribute(a,"width");e=f.getIntAttribute(a,"start");f=f.getIntAttribute(a,"end");d=A_7.vb(e,f,d,b)-c.getDomElement().offsetWidth/2;c.scrollToPos(d,
A_c)}else if(b==DvtTimelineOverviewEvent.vQ)c=a.getPosition(),c==DvtTimelineOverviewEvent.qQ?this.q().xf():c==DvtTimelineOverviewEvent.cO?this.q().Ug():this.q().scrollToPos(c,A_c);else if(b==DvtTimelineOverviewEvent.xQ)c=a.cK(),b=a.VT(),d=this.on(c),d!=A_&&(e=document.getElementById(c),e!=A_?(e=A_5i(e,d.getDomElement()),c=e[0],e=e[1],A_6i(d,b,c,e,A_b)):(d.Rq=c,d.vw=b));else if(b==DvtTimelineOverviewEvent.uQ)dvt.cC.Pb()||(c=a.lK(),d=a.TT(),b=a.ST(),this.q().gs(c,d,b));else if(b==DvtTimelineOverviewEvent.tQ){f=
a.xT();c=a.lK();d=a.yT();b=a.sT();e=a.vT();a=a.qT();var g=this.q(),h=c,l=g.ya();l.removeAttribute("fd");if(A_7.Pb()){var m=AdfAgent.AGENT,n=g.getDomElement(),l=m.getIntAttribute(n,"start"),m=m.getIntAttribute(n,"end"),h=A_7.vb(l,m,b,h);g.sw=A_b;g.getComponent().setProperty("scrollLeft",h,A_b,AdfUIComponent.PROPAGATE_ALWAYS)}else h=g.aa(l),l=g.getScrollLeft(g.getComponent()),h!=l&&A_7i(g,h);g.Ec()||(h=g.Lr(),dvt.cC.Pb()&&(l=AdfAgent.AGENT,n=g.getDomElement(),m=l.getIntAttribute(n,"start"),l=l.getIntAttribute(n,
"end"),h.end=A_7.vb(m,l,A_7.dc(m,l,h.end,f),c)),l=this.getComponent().getParent(),c=new A_8i(l,f,c,h.start,h.end),c.Lw=d,c.Kw=e,c.Iw=b,c.Hw=a,c.setPartial(A_b),g.te(),AdfPage.PAGE.queueEventToServer(c))}else b==DvtTimelineOverviewEvent.sQ&&(l=AdfAgent.AGENT,l.getPlatform()!=AdfAgent.IE_PLATFORM&&(this.nm==A_&&(c=this.createCallback(this.UF),d=this.createCallback(this.TF),l.getCapabilities()[AdfAgent.CAP_TOUCH_SCREEN]!=AdfAgent.CAP_TOUCH_SCREEN_NONE?this.nm={touchend:c,touchcancel:c}:this.nm={mouseup:c,
keydown:d}),l.startMouseEventCapture(this.nm),this.Aq=A_b))};A_g.UF=function(a){this.$k(a)};A_g.TF=function(a){a.keyCode==AdfKeyStroke.ESC_KEY&&this.$k(a)};A_g.$k=function(a){var b=AdfAgent.AGENT;b.stopMouseEventCapture(this.nm);this.Aq=A_c;a=b.getEventTarget(a);AdfDhtmlTimelinePeer.Gk(this.getDomElement(),a)||(a=this.getComponent(),this.za(a)?this.Ya(a).stopDragAction():this.c.zM())};
A_g.on=function(a){if(a==A_)return A_;for(var b=this.q().w,c=0;c<b.length;c++){var d=b[c].getComponent().getClientId();if(0==a.indexOf(d))return b[c]}return A_};function A_9i(a){return a.c?A_9i(a.c):A_}A_o.BJ=function(a){var b=AdfPage.PAGE.findComponent(a);b&&(b.getPeer().xh=A_c);return A_o.kw(a)};A_h("AdfDhtmlTimelineOverviewPeer.fpInitNotifyTree",A_o.BJ);A_g=A_o.prototype;
A_g.aL=function(){if(window.event)var a=window.event,b=a.srcElement;else a=event,b=a.target;b=b.JL;AdfPage.PAGE.startDrag(a,b.createCallback(b.$K),b.createCallback(b.wJ))};
A_g.$K=function(a,b){var c=this.hb;if(c!=A_){var d=parseInt(c.style.left),e=parseInt(c.style.width),f=this.La,g=AdfPage.PAGE.getLocaleContext().isRightToLeft();0>=d+b?(c.style.left="0px",g?this.q().Ug():this.q().xf()):d+e+b>=f?(c.style.left=f-e+"px",g?this.q().xf():this.q().Ug()):(c.style.left=d+b+"px",d=g?(f-e-d)*this.xq:d*this.xq,this.q().scrollToPos(d,A_c));c.left=parseInt(c.style.left)}};A_g.wJ=A_d();A_g.GetSubIdDomElement=function(a){var b=this.s();return b==A_?A_:b.WJ(a)};A_g.s=function(){return this.c.Mb()};