AdfDhtmlTimelineOverviewPeer.NAMING_SEPARATOR=":";AdfDhtmlTimelineOverviewPeer.prototype.getClientImageFormat=function(a){a||(a=this.getComponent());a=a.getProperty("clientImageFormat");return"ATTACHMENT"==a?AdfDhtmlCommonFlashUtils.isHTML5Supported()?"HTML5":"ATTACHMENT":a};AdfDhtmlTimelineOverviewPeer.uncommentFlashTag=function(a,b){var c=AdfAgent.AGENT.getElementById(a);if(c){var d=c.innerHTML,e=d.indexOf("\x3c!--"),f=d.lastIndexOf("--\x3e");0<=e&&f>e&&(d=d.substring(e+4,f));c.innerHTML=d}};
AdfDhtmlTimelineOverviewPeer.prototype.showFlashPlayerDownloadMessage=function(a){a=AdfRichUIPeer.CreateSubId(a.getClientId(),this.getFlashPlayerUnavailableDivId());(a=AdfAgent.AGENT.getElementById(a))&&(a.style.display="block")};AdfDhtmlTimelineOverviewPeer.prototype.getFlashPlayerUnavailableDivId=function(){return"getflashplayer"};
AdfDhtmlTimelineOverviewPeer.prototype.addFlashPlayerToDom=function(a){if(AdfDhtmlCommonFlashUtils.isMinFlashVersion()){var b=a.getClientId(),b=AdfRichUIPeer.CreateSubId(b,this.getFlashPlayerDivId());AdfDhtmlTimelineOverviewPeer.uncommentFlashTag(b,a)}else this.showFlashPlayerDownloadMessage(a)};
AdfDhtmlTimelineOverviewPeer.prototype.isFlashPlayerAddedToDom=function(a){a=a.getClientId();a=AdfRichUIPeer.CreateSubId(a,this.getFlashPlayerDivId());var b=AdfAgent.AGENT.getElementById(a).innerHTML;a=b.indexOf("\x3c!--");b=b.lastIndexOf("--\x3e");return-1<a&&-1<b?!1:!0};AdfDhtmlTimelineOverviewPeer.prototype.IsImageFormatFlash=function(a){return(a=a.getProperty("clientImageFormat"))&&"FLASH"==a?!0:!1};
AdfDhtmlTimelineOverviewPeer.prototype.getFlashMovieObj=function(a){null==a&&(a=this.getComponent());var b=AdfDhtmlTimelineOverviewPeer.GetSwfId(a.getClientId());(b=-1!=navigator.appName.indexOf("Microsoft")?window[b]?window[b]:document[b]:document[b])&&!b.loadXML&&0==this._reloadEventSent&&1!=this._inBusyStateListener&&(a=new AdfCommonFlashReloadEvent(a),a.setPartial(!0),AdfPage.PAGE.queueEventToServer(a),this._reloadEventSent=!0);return b};AdfDhtmlTimelineOverviewPeer.prototype.getMovieObject=function(a){return this.getFlashMovieObj(a)};
AdfDhtmlTimelineOverviewPeer.GetSwfId=function(a){a=AdfDhtmlTimelineOverviewPeer.replaceString(a+"_swf",AdfDhtmlTimelineOverviewPeer.NAMING_SEPARATOR,"_");return a=AdfDhtmlTimelineOverviewPeer.replaceString(a,AdfRichUIPeer.CreateSubId("",""),"_")};AdfDhtmlTimelineOverviewPeer.replaceString=function(a,b,c){a=new String(a);return a=a.replace(new RegExp(b,"g"),c)};
AdfDhtmlTimelineOverviewPeer.prototype.DisplayDataUri=function(a){var b=a.getClientId();a=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(b,"mainDiv"));var c=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(b,"img")),d=Number(a.getAttribute("_urisize")),e=a.firstChild.innerHTML,f=e.indexOf("\x3c!--"),g=e.lastIndexOf("--\x3e"),e=e.substring(f+4,g);if(AdfDhtmlCommonFlashUtils.isDataURISupported(d))c.src=e;else{e=AdfDhtmlCommonFlashUtils.stripPNGDataURI(e);e=e.replace(/\+/g,"~;");d=a.getAttribute("_servlet");
c.style.display="none";var h=b+"_"+Math.floor(1E6*Math.random()),c="attachmentUri\x3d"+e+"\x26id\x3d"+h,e=document,f=e.createElement("iframe");f.name=c;e.body.appendChild(f);f.width=1;f.height=1;f.style.visibility="hidden";f.src=d+"?attachmentServlet\x3dtrue\x26retry\x3d"+Math.floor(1E4*Math.random());this._attachmentFetchCounter=0;window.setTimeout(function(){AdfDhtmlTimelineOverviewPeer._displayImageFromAttachmentServlet(b,h)},200)}a.style.display="inline"};
AdfDhtmlTimelineOverviewPeer._displayImageFromAttachmentServlet=function(a,b){var c=AdfPage.PAGE.findComponent(a);if(c){var d=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(a,"mainDiv")),e=c.getPeer();if(15<e._attachmentFetchCounter)e=d.getAttribute("_errorMessage"),d.innerHTML=e;else{var d=d.getAttribute("_servlet"),d=d+("?id\x3d"+b+"\x26timestamp\x3d"+(new Date).getTime()),f=AdfAgent.AGENT.getElementById(AdfRichUIPeer.CreateSubId(a,"img"));f.src=d;f.onerror=function(){window.setTimeout("AdfDhtmlTimelineOverviewPeer._displayImageFromAttachmentServlet('"+
c.getClientId()+"','"+b+"')",300)};f.style.display="inline";e._attachmentFetchCounter++}}};