/* Timeline API * Copyright Massachusetts Institute of Technology * and Contributors 2006-2009 ~ Some rights reserved * Timeline is open source software and is licensed * under the BSD license. * http://www.simile-widgets.org/timeline/ */ var Timeline=new Object();Timeline.Platform=new Object();(function(){try{(function(){if(typeof Timeline_urlPrefix=="string"){Timeline.urlPrefix=Timeline_urlPrefix}else{var l=document.documentElement.getElementsByTagName("head");for(var k=0;k=0){Timeline.urlPrefix=f.substr(0,g);return}}}throw new Error("Failed to derive URL prefix for Timeline API code files")}})();var b;var d=function(){return document.getElementsByTagName("head")[0]};var a=function(f){if(document.body==null){try{document.write("");return}catch(h){}}var g=document.createElement("link");g.setAttribute("rel","stylesheet");g.setAttribute("type","text/css");g.setAttribute("href",f);d().appendChild(g)};b=function(e,g){for(var f=0;f Loading...";this.showLoadingMessage=function(){c.containerDiv.style.display="block"};this.hideLoadingMessage=function(){c.containerDiv.style.display="none"}};Timeline._Impl.prototype._distributeWidths=function(){var b=this.getPixelLength();var a=this.getPixelWidth();var d=0;for(var e=0;e0){var g=parseInt(f.substr(0,h));var c=g*a/100}else{var c=parseInt(f)}j.setBandShiftAndWidth(d,c);j.setViewLength(b);d+=c}};Timeline._Band=function(f,g,c){this._timeline=f;this._bandInfo=g;this._index=c;this._locale=("locale" in g)?g.locale:Timeline.Platform.getDefaultLocale();this._timeZone=("timeZone" in g)?g.timeZone:0;this._labeller=("labeller" in g)?g.labeller:f.getUnit().createLabeller(this._locale,this._timeZone);this._dragging=false;this._changing=false;this._originalScrollSpeed=5;this._scrollSpeed=this._originalScrollSpeed;this._onScrollListeners=[];var a=this;this._syncWithBand=null;this._syncWithBandHandler=function(b){a._onHighlightBandScroll()};this._selectorListener=function(b){a._onHighlightBandScroll()};var e=this._timeline.getDocument().createElement("div");e.className="timeline-band-input";this._timeline.addDiv(e);this._keyboardInput=document.createElement("input");this._keyboardInput.type="text";e.appendChild(this._keyboardInput);Timeline.DOM.registerEventWithObject(this._keyboardInput,"keydown",this,this._onKeyDown);Timeline.DOM.registerEventWithObject(this._keyboardInput,"keyup",this,this._onKeyUp);this._div=this._timeline.getDocument().createElement("div");this._div.className="timeline-band";this._timeline.addDiv(this._div);Timeline.DOM.registerEventWithObject(this._div,"mousedown",this,this._onMouseDown);Timeline.DOM.registerEventWithObject(this._div,"mousemove",this,this._onMouseMove);Timeline.DOM.registerEventWithObject(this._div,"mouseup",this,this._onMouseUp);Timeline.DOM.registerEventWithObject(this._div,"mouseout",this,this._onMouseOut);Timeline.DOM.registerEventWithObject(this._div,"dblclick",this,this._onDblClick);this._innerDiv=this._timeline.getDocument().createElement("div");this._innerDiv.className="timeline-band-inner";this._div.appendChild(this._innerDiv);this._ether=g.ether;g.ether.initialize(f);this._etherPainter=g.etherPainter;g.etherPainter.initialize(this,f);this._eventSource=g.eventSource;if(this._eventSource){this._eventListener={onAddMany:function(){a._onAddMany()},onClear:function(){a._onClear()}};this._eventSource.addListener(this._eventListener)}this._eventPainter=g.eventPainter;g.eventPainter.initialize(this,f);this._decorators=("decorators" in g)?g.decorators:[];for(var d=0;d3*this._viewLength/2){this.setCenterVisibleDate(this.pixelOffsetToDate(a-this._viewLength))}}this._autoScroll(Math.round(this._viewLength/2-this._ether.dateToPixelOffset(b)))};Timeline._Band.prototype._onMouseDown=function(b,a,c){this.closeBubble();this._dragging=true;this._dragX=a.clientX;this._dragY=a.clientY};Timeline._Band.prototype._onMouseMove=function(d,a,e){if(this._dragging){var c=a.clientX-this._dragX;var b=a.clientY-this._dragY;this._dragX=a.clientX;this._dragY=a.clientY;this._moveEther(this._timeline.isHorizontal()?c:b);this._positionHighlight()}};Timeline._Band.prototype._onMouseUp=function(b,a,c){this._dragging=false;this._keyboardInput.focus()};Timeline._Band.prototype._onMouseOut=function(b,a,d){var c=Timeline.DOM.getEventRelativeCoordinates(a,b);c.x+=this._viewOffset;if(c.x<0||c.x>b.offsetWidth||c.y<0||c.y>b.offsetHeight){this._dragging=false}};Timeline._Band.prototype._onDblClick=function(b,a,d){var c=Timeline.DOM.getEventRelativeCoordinates(a,b);var e=c.x-(this._viewLength/2-this._viewOffset);this._autoScroll(-e)};Timeline._Band.prototype._onKeyDown=function(b,a,c){if(!this._dragging){switch(a.keyCode){case 27:break;case 37:case 38:this._scrollSpeed=Math.min(50,Math.abs(this._scrollSpeed*1.05));this._moveEther(this._scrollSpeed);break;case 39:case 40:this._scrollSpeed=-Math.min(50,Math.abs(this._scrollSpeed*1.05));this._moveEther(this._scrollSpeed);break;default:return true}this.closeBubble();Timeline.DOM.cancelEvent(a);return false}return true};Timeline._Band.prototype._onKeyUp=function(b,a,c){if(!this._dragging){this._scrollSpeed=this._originalScrollSpeed;switch(a.keyCode){case 35:this.setCenterVisibleDate(this._eventSource.getLatestDate());break;case 36:this.setCenterVisibleDate(this._eventSource.getEarliestDate());break;case 33:this._autoScroll(this._timeline.getPixelLength());break;case 34:this._autoScroll(-this._timeline.getPixelLength());break;default:return true}this.closeBubble();Timeline.DOM.cancelEvent(a);return false}return true};Timeline._Band.prototype._autoScroll=function(e){var c=this;var d=Timeline.Graphics.createAnimation(function(a,b){c._moveEther(b)},0,e,1000);d.run()};Timeline._Band.prototype._moveEther=function(a){this.closeBubble();this._viewOffset+=a;this._ether.shiftPixels(-a);if(this._timeline.isHorizontal()){this._div.style.left=this._viewOffset+"px"}else{this._div.style.top=this._viewOffset+"px"}if(this._viewOffset>-this._viewLength*0.5||this._viewOffset<-this._viewLength*(Timeline._Band.SCROLL_MULTIPLES-1.5)){this._recenterDiv()}else{this.softLayout()}this._onChanging()};Timeline._Band.prototype._onChanging=function(){this._changing=true;this._fireOnScroll();this._setSyncWithBandDate();this._changing=false};Timeline._Band.prototype._fireOnScroll=function(){for(var a=0;a=0?f:h.length};if(Timeline.Platform.browser.isMozilla){var d=a.indexOf("mozilla/");if(d>=0){e(a.substring(d+8,b(a," ",d)))}}if(Timeline.Platform.browser.isIE){var d=a.indexOf("msie ");if(d>=0){e(a.substring(d+5,b(a,";",d)))}}if(Timeline.Platform.browser.isNetscape){var d=a.indexOf("rv:");if(d>=0){e(a.substring(d+3,b(a,")",d)))}}if(Timeline.Platform.browser.isFirefox){var d=a.indexOf("firefox/");if(d>=0){e(a.substring(d+8,b(a," ",d)))}}})();Timeline.Platform.getDefaultLocale=function(){return Timeline.Platform.clientLocale};Timeline.SortedArray=function(b,a){this._a=(a instanceof Array)?a:[];this._compare=b};Timeline.SortedArray.prototype.add=function(c){var a=this;var b=this.find(function(d){return a._compare(d,c)});if(b0)?this._a[0]:null};Timeline.SortedArray.prototype.getLast=function(){return(this._a.length>0)?this._a[this._a.length-1]:null};Timeline.EventIndex=function(b){var a=this;this._unit=(b!=null)?b:Timeline.NativeDateUnit;this._events=new Timeline.SortedArray(function(d,c){return a._unit.compare(d.getStart(),c.getStart())});this._indexed=true};Timeline.EventIndex.prototype.getUnit=function(){return this._unit};Timeline.EventIndex.prototype.add=function(a){this._events.add(a);this._indexed=false};Timeline.EventIndex.prototype.removeAll=function(){this._events.removeAll();this._indexed=false};Timeline.EventIndex.prototype.getCount=function(){return this._events.length()};Timeline.EventIndex.prototype.getIterator=function(a,b){if(!this._indexed){this._index()}return new Timeline.EventIndex._Iterator(this._events,a,b,this._unit)};Timeline.EventIndex.prototype.getAllIterator=function(){return new Timeline.EventIndex._AllIterator(this._events)};Timeline.EventIndex.prototype.getEarliestDate=function(){var a=this._events.getFirst();return(a==null)?null:a.getStart()};Timeline.EventIndex.prototype.getLatestDate=function(){var a=this._events.getLast();if(a==null){return null}if(!this._indexed){this._index()}var c=a._earliestOverlapIndex;var b=this._events.elementAt(c).getEnd();for(var d=c+1;d=0){this._currentIndex=this._events.elementAt(this._currentIndex-1)._earliestOverlapIndex}this._currentIndex--;this._maxIndex=b.find(function(e){return c.compare(e.getStart(),d)});this._hasNext=false;this._next=null;this._findNext()};Timeline.EventIndex._Iterator.prototype={hasNext:function(){return this._hasNext},next:function(){if(this._hasNext){var a=this._next;this._findNext();return a}else{return null}},_findNext:function(){var b=this._unit;while((++this._currentIndex)0){this._next=a;this._hasNext=true;return}}this._next=null;this._hasNext=false}};Timeline.EventIndex._AllIterator=function(a){this._events=a;this._index=0};Timeline.EventIndex._AllIterator.prototype={hasNext:function(){return this._index0&&b.length<8){var c=b.indexOf(" ");if(c>0){var a=parseInt(b.substr(0,c));var g=b.substr(c+1);if(g.toLowerCase()=="bc"){a=1-a}}else{var a=parseInt(b)}var h=new Date(0);h.setUTCFullYear(a);return h}try{return new Date(Date.parse(b))}catch(f){return null}};Timeline.DateTime._iso8601DateRegExp="^(-?)([0-9]{4})("+["(-?([0-9]{2})(-?([0-9]{2}))?)","(-?([0-9]{3}))","(-?W([0-9]{2})(-?([1-7]))?)"].join("|")+")?$";Timeline.DateTime.setIso8601Date=function(i,g){var k=Timeline.DateTime._iso8601DateRegExp;var j=g.match(new RegExp(k));if(!j){throw new Error("Invalid date string: "+g)}var b=(j[1]=="-")?-1:1;var l=b*j[2];var h=j[5];var c=j[7];var f=j[9];var a=j[11];var o=(j[13])?j[13]:1;i.setUTCFullYear(l);if(f){i.setUTCMonth(0);i.setUTCDate(Number(f))}else{if(a){i.setUTCMonth(0);i.setUTCDate(1);var n=i.getUTCDay();var m=(n)?n:7;var e=Number(o)+(7*Number(a));if(m<=4){i.setUTCDate(e+1-m)}else{i.setUTCDate(e+8-m)}}else{if(h){i.setUTCDate(1);i.setUTCMonth(h-1)}if(c){i.setUTCDate(c)}}}return i};Timeline.DateTime.setIso8601Time=function(h,f){var g="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$";var i=f.match(new RegExp(g));var c=0;if(i){if(i[0]!="Z"){c=(Number(i[3])*60)+Number(i[5]);c*=((i[2]=="-")?1:-1)}f=f.substr(0,f.length-i[0].length)}var j="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$";var i=f.match(new RegExp(j));if(!i){dojo.debug("invalid time string: "+f);return false}var k=i[1];var b=Number((i[3])?i[3]:0);var e=(i[5])?i[5]:0;var a=i[7]?(Number("0."+i[7])*1000):0;h.setUTCHours(k);h.setUTCMinutes(b);h.setUTCSeconds(e);h.setUTCMilliseconds(a);return h};Timeline.DateTime.setIso8601=function(b,a){var c=(a.indexOf("T")==-1)?a.split(" "):a.split("T");Timeline.DateTime.setIso8601Date(b,c[0]);if(c.length==2){Timeline.DateTime.setIso8601Time(b,c[1])}return b};Timeline.DateTime.parseIso8601DateTime=function(a){try{return Timeline.DateTime.setIso8601(new Date(0),a)}catch(b){return null}};Timeline.DateTime.roundDownToInterval=function(b,h,k,l,a){var e=k*Timeline.DateTime.gregorianUnitLengths[Timeline.DateTime.HOUR];var j=new Date(b.getTime()+e);var f=function(m){m.setUTCMilliseconds(0);m.setUTCSeconds(0);m.setUTCMinutes(0);m.setUTCHours(0)};var c=function(m){f(m);m.setUTCDate(1);m.setUTCMonth(0)};switch(h){case Timeline.DateTime.MILLISECOND:var i=j.getUTCMilliseconds();j.setUTCMilliseconds(i-(i%l));break;case Timeline.DateTime.SECOND:j.setUTCMilliseconds(0);var i=j.getUTCSeconds();j.setUTCSeconds(i-(i%l));break;case Timeline.DateTime.MINUTE:j.setUTCMilliseconds(0);j.setUTCSeconds(0);var i=j.getUTCMinutes();j.setTime(j.getTime()-(i%l)*Timeline.DateTime.gregorianUnitLengths[Timeline.DateTime.MINUTE]);break;case Timeline.DateTime.HOUR:j.setUTCMilliseconds(0);j.setUTCSeconds(0);j.setUTCMinutes(0);var i=j.getUTCHours();j.setUTCHours(i-(i%l));break;case Timeline.DateTime.DAY:f(j);break;case Timeline.DateTime.WEEK:f(j);var g=(j.getUTCDay()+7-a)%7;j.setTime(j.getTime()-g*Timeline.DateTime.gregorianUnitLengths[Timeline.DateTime.DAY]);break;case Timeline.DateTime.MONTH:f(j);j.setUTCDate(1);var i=j.getUTCMonth();j.setUTCMonth(i-(i%l));break;case Timeline.DateTime.YEAR:c(j);var i=j.getUTCFullYear();j.setUTCFullYear(i-(i%l));break;case Timeline.DateTime.DECADE:c(j);j.setUTCFullYear(Math.floor(j.getUTCFullYear()/10)*10);break;case Timeline.DateTime.CENTURY:c(j);j.setUTCFullYear(Math.floor(j.getUTCFullYear()/100)*100);break;case Timeline.DateTime.MILLENNIUM:c(j);j.setUTCFullYear(Math.floor(j.getUTCFullYear()/1000)*1000);break}b.setTime(j.getTime()-e)};Timeline.DateTime.roundUpToInterval=function(d,f,c,a,b){var e=d.getTime();Timeline.DateTime.roundDownToInterval(d,f,c,a,b);if(d.getTime()6);Timeline.Graphics.createTranslucentImage=function(c,a,d){var b;if(Timeline.Graphics.pngIsTranslucent){b=c.createElement("img");b.setAttribute("src",a)}else{b=c.createElement("img");b.style.display="inline";b.style.width="1px";b.style.height="1px";b.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a+"', sizingMethod='image')"}b.style.verticalAlign=(d!=null)?d:"middle";return b};Timeline.Graphics.setOpacity=function(b,a){if(Timeline.Platform.browser.isIE){b.style.filter="progid:DXImageTransform.Microsoft.Alpha(Style=0,Opacity="+a+")"}else{var c=(a/100).toString();b.style.opacity=c;b.style.MozOpacity=c}};Timeline.Graphics._bubbleMargins={top:33,bottom:42,left:33,right:40};Timeline.Graphics._arrowOffsets={top:0,bottom:9,left:1,right:8};Timeline.Graphics._bubblePadding=15;Timeline.Graphics._bubblePointOffset=6;Timeline.Graphics._halfArrowWidth=18;Timeline.Graphics.createBubbleForPoint=function(u,c,b,l,p){function r(){if(typeof window.innerWidth=="number"){return{w:window.innerWidth,h:window.innerHeight}}else{if(document.documentElement&&document.documentElement.clientWidth){return{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight}}else{if(document.body&&document.body.clientWidth){return{w:document.body.clientWidth,h:document.body.clientHeight}}}}}var k={_closed:false,_doc:u,close:function(){if(!this._closed){this._doc.body.removeChild(this._div);this._doc=null;this._div=null;this._content=null;this._closed=true}}};var m=r();var g=m.w;var f=m.h;var d=Timeline.Graphics._bubbleMargins;l=parseInt(l,10);p=parseInt(p,10);var n=d.left+l+d.right;var s=d.top+p+d.bottom;var o=Timeline.Graphics.pngIsTranslucent;var i=Timeline.urlPrefix;var a=function(x,w,y,v){x.style.position="absolute";x.style.width=y+"px";x.style.height=v+"px";if(o){x.style.background="url("+w+")"}else{x.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+w+"', sizingMethod='crop')"}};var j=u.createElement("div");j.style.width=n+"px";j.style.height=s+"px";j.style.position="absolute";j.style.zIndex=1000;k._div=j;var h=u.createElement("div");h.style.width="100%";h.style.height="100%";h.style.position="relative";j.appendChild(h);var q=function(x,A,z,y,w){var v=u.createElement("div");v.style.left=A+"px";v.style.top=z+"px";a(v,x,y,w);h.appendChild(v)};q(i+"images/bubble-top-left.png",0,0,d.left,d.top);q(i+"images/bubble-top.png",d.left,0,l,d.top);q(i+"images/bubble-top-right.png",d.left+l,0,d.right,d.top);q(i+"images/bubble-left.png",0,d.top,d.left,p);q(i+"images/bubble-right.png",d.left+l,d.top,d.right,p);q(i+"images/bubble-bottom-left.png",0,d.top+p,d.left,d.bottom);q(i+"images/bubble-bottom.png",d.left,d.top+p,l,d.bottom);q(i+"images/bubble-bottom-right.png",d.left+l,d.top+p,d.right,d.bottom);var t=u.createElement("div");t.style.left=(n-d.right+Timeline.Graphics._bubblePadding-16-2)+"px";t.style.top=(d.top-Timeline.Graphics._bubblePadding+1)+"px";t.style.cursor="pointer";a(t,i+"images/close-button.png",16,16);Timeline.DOM.registerEventWithObject(t,"click",k,k.close);h.appendChild(t);var e=u.createElement("div");e.style.position="absolute";e.style.left=d.left+"px";e.style.top=d.top+"px";e.style.width=l+"px";e.style.height=p+"px";e.style.overflow="auto";e.style.background="white";h.appendChild(e);k.content=e;(function(){if(c-Timeline.Graphics._halfArrowWidth-Timeline.Graphics._bubblePadding>0&&c+Timeline.Graphics._halfArrowWidth+Timeline.Graphics._bubblePadding0){var v=u.createElement("div");v.style.left=(c-Timeline.Graphics._halfArrowWidth-x)+"px";v.style.top=(d.top+p)+"px";a(v,i+"images/bubble-bottom-arrow.png",37,d.bottom);h.appendChild(v);j.style.left=x+"px";j.style.top=(b-Timeline.Graphics._bubblePointOffset-s+Timeline.Graphics._arrowOffsets.bottom)+"px";return}else{if(b+Timeline.Graphics._bubblePointOffset+s0){var v=u.createElement("div");v.style.left=(d.left+l)+"px";v.style.top=(b-Timeline.Graphics._halfArrowWidth-w)+"px";a(v,i+"images/bubble-right-arrow.png",d.right,37);h.appendChild(v);j.style.left=(c-Timeline.Graphics._bubblePointOffset-n+Timeline.Graphics._arrowOffsets.right)+"px";j.style.top=w+"px"}else{var v=u.createElement("div");v.style.left="0px";v.style.top=(b-Timeline.Graphics._halfArrowWidth-w)+"px";a(v,i+"images/bubble-left-arrow.png",d.left,37);h.appendChild(v);j.style.left=(c+Timeline.Graphics._bubblePointOffset-Timeline.Graphics._arrowOffsets.left)+"px";j.style.top=w+"px"}})();u.body.appendChild(j);return k};Timeline.Graphics.createMessageBubble=function(h){var g=h.createElement("div");if(Timeline.Graphics.pngIsTranslucent){var i=h.createElement("div");i.style.height="33px";i.style.background="url("+Timeline.urlPrefix+"images/message-top-left.png) top left no-repeat";i.style.paddingLeft="44px";g.appendChild(i);var c=h.createElement("div");c.style.height="33px";c.style.background="url("+Timeline.urlPrefix+"images/message-top-right.png) top right no-repeat";i.appendChild(c);var f=h.createElement("div");f.style.background="url("+Timeline.urlPrefix+"images/message-left.png) top left repeat-y";f.style.paddingLeft="44px";g.appendChild(f);var a=h.createElement("div");a.style.background="url("+Timeline.urlPrefix+"images/message-right.png) top right repeat-y";a.style.paddingRight="44px";f.appendChild(a);var d=h.createElement("div");a.appendChild(d);var b=h.createElement("div");b.style.height="55px";b.style.background="url("+Timeline.urlPrefix+"images/message-bottom-left.png) bottom left no-repeat";b.style.paddingLeft="44px";g.appendChild(b);var e=h.createElement("div");e.style.height="55px";e.style.background="url("+Timeline.urlPrefix+"images/message-bottom-right.png) bottom right no-repeat";b.appendChild(e)}else{g.style.border="2px solid #7777AA";g.style.padding="20px";g.style.background="white";Timeline.Graphics.setOpacity(g,90);var d=h.createElement("div");g.appendChild(d)}return{containerDiv:g,contentDiv:d}};Timeline.Graphics.createAnimation=function(a,d,c,b){return new Timeline.Graphics._Animation(a,d,c,b)};Timeline.Graphics._Animation=function(a,d,c,b){this.f=a;this.from=d;this.to=c;this.current=d;this.duration=b;this.start=new Date().getTime();this.timePassed=0};Timeline.Graphics._Animation.prototype.run=function(){var b=this;window.setTimeout(function(){b.step()},100)};Timeline.Graphics._Animation.prototype.step=function(){this.timePassed+=100;var b=this.timePassed/this.duration;var a=-Math.cos(b*Math.PI)/2+0.5;var d=a*(this.to-this.from)+this.from;try{this.f(d,d-this.current)}catch(c){}this.current=d;if(this.timePassed0){e=this._unit.later(e,this._startDate);c=this._unit.earlier(c,this._endDate);var d=this._band.dateToPixelOffset(e);var i=this._band.dateToPixelOffset(c);var g=this._timeline.getDocument();var f=function(){var j=g.createElement("table");j.insertRow(0).insertCell(0);return j};var b=g.createElement("div");b.style.position="absolute";b.style.overflow="hidden";b.style.background=this._color;if(this._opacity<100){Timeline.Graphics.setOpacity(b,this._opacity)}this._layerDiv.appendChild(b);var h=f();h.style.position="absolute";h.style.overflow="hidden";h.style.fontSize="300%";h.style.fontWeight="bold";h.style.color=this._color;h.rows[0].cells[0].innerHTML=this._startLabel;this._layerDiv.appendChild(h);var a=f();a.style.position="absolute";a.style.overflow="hidden";a.style.fontSize="300%";a.style.fontWeight="bold";a.style.color=this._color;a.rows[0].cells[0].innerHTML=this._endLabel;this._layerDiv.appendChild(a);if(this._timeline.isHorizontal()){b.style.left=d+"px";b.style.width=(i-d)+"px";b.style.top="0px";b.style.height="100%";h.style.right=(this._band.getTotalViewLength()-d)+"px";h.style.width=(this._startLabel.length)+"em";h.style.top="0px";h.style.height="100%";h.style.textAlign="right";a.style.left=i+"px";a.style.width=(this._endLabel.length)+"em";a.style.top="0px";a.style.height="100%"}else{b.style.top=d+"px";b.style.height=(i-d)+"px";b.style.left="0px";b.style.width="100%";h.style.bottom=d+"px";h.style.height="1.5px";h.style.left="0px";h.style.width="100%";a.style.top=i+"px";a.style.height="1.5px";a.style.left="0px";a.style.width="100%"}}this._layerDiv.style.display="block"};Timeline.SpanHighlightDecorator.prototype.softPaint=function(){};Timeline.PointHighlightDecorator=function(a){this._unit=("unit" in a)?a.unit:Timeline.NativeDateUnit;this._date=(typeof a.date=="string")?this._unit.parseFromObject(a.date):a.date;this._width=("width" in a)?a.width:10;this._color=a.color;this._opacity=("opacity" in a)?a.opacity:100};Timeline.PointHighlightDecorator.prototype.initialize=function(b,a){this._band=b;this._timeline=a;this._layerDiv=null};Timeline.PointHighlightDecorator.prototype.paint=function(){if(this._layerDiv!=null){this._band.removeLayerDiv(this._layerDiv)}this._layerDiv=this._band.createLayerDiv(10);this._layerDiv.setAttribute("name","span-highlight-decorator");this._layerDiv.style.display="none";var c=this._band.getMinDate();var e=this._band.getMaxDate();if(this._unit.compare(this._date,e)<0&&this._unit.compare(this._date,c)>0){var b=this._band.dateToPixelOffset(this._date);var a=b-Math.round(this._width/2);var d=this._timeline.getDocument();var f=d.createElement("div");f.style.position="absolute";f.style.overflow="hidden";f.style.background=this._color;if(this._opacity<100){Timeline.Graphics.setOpacity(f,this._opacity)}this._layerDiv.appendChild(f);if(this._timeline.isHorizontal()){f.style.left=a+"px";f.style.width=this._width+"px";f.style.top="0px";f.style.height="100%"}else{f.style.top=a+"px";f.style.height=this._width+"px";f.style.left="0px";f.style.width="100%"}}this._layerDiv.style.display="block"};Timeline.PointHighlightDecorator.prototype.softPaint=function(){};Timeline.GregorianEtherPainter=function(a){this._params=a;this._theme=a.theme;this._unit=a.unit;this._multiple=("multiple" in a)?a.multiple:1};Timeline.GregorianEtherPainter.prototype.initialize=function(c,b){this._band=c;this._timeline=b;this._backgroundLayer=c.createLayerDiv(0);this._backgroundLayer.setAttribute("name","ether-background");this._backgroundLayer.style.background=this._theme.ether.backgroundColors[c.getIndex()];this._markerLayer=null;this._lineLayer=null;var d=("align" in this._params&&this._params.align!=undefined)?this._params.align:this._theme.ether.interval.marker[b.isHorizontal()?"hAlign":"vAlign"];var a=("showLine" in this._params)?this._params.showLine:this._theme.ether.interval.line.show;this._intervalMarkerLayout=new Timeline.EtherIntervalMarkerLayout(this._timeline,this._band,this._theme,d,a);this._highlight=new Timeline.EtherHighlight(this._timeline,this._band,this._theme,this._backgroundLayer)};Timeline.GregorianEtherPainter.prototype.setHighlight=function(a,b){this._highlight.position(a,b)};Timeline.GregorianEtherPainter.prototype.paint=function(){if(this._markerLayer){this._band.removeLayerDiv(this._markerLayer)}this._markerLayer=this._band.createLayerDiv(100);this._markerLayer.setAttribute("name","ether-markers");this._markerLayer.style.display="none";if(this._lineLayer){this._band.removeLayerDiv(this._lineLayer)}this._lineLayer=this._band.createLayerDiv(1);this._lineLayer.setAttribute("name","ether-lines");this._lineLayer.style.display="none";var c=this._band.getMinDate();var f=this._band.getMaxDate();var b=this._band.getTimeZone();var e=this._band.getLabeller();Timeline.DateTime.roundDownToInterval(c,this._unit,b,this._multiple,this._theme.firstDayOfWeek);var d=this;var a=function(g){for(var h=0;hd;c++){var a=this._zones[c];if(da.startTime){this._zones.splice(c,0,{startTime:a.startTime,endTime:d,unit:a.unit,multiple:a.multiple});c++;a.startTime=d}if(f=0){if(a.getTime()>this._zones[e].startTime){break}e--}for(var h=c;h<=e;h++){var g=this._zones[h];var j=new Date(Math.max(d.getTime(),g.startTime));var f=new Date(Math.min(a.getTime(),g.endTime));Timeline.DateTime.roundDownToInterval(j,g.unit,k,g.multiple,this._theme.firstDayOfWeek);Timeline.DateTime.roundUpToInterval(f,g.unit,k,g.multiple,this._theme.firstDayOfWeek);while(j.getTime()0;c++){var a=this._zones[c];if(this._unit.compare(d,a.endTime)<0){if(this._unit.compare(d,a.startTime)>0){this._zones.splice(c,0,{startTime:a.startTime,endTime:d,magnify:a.magnify});c++;a.startTime=d}if(this._unit.compare(f,a.endTime)<0){this._zones.splice(c,0,{startTime:d,endTime:f,magnify:b.magnify*a.magnify});c++;a.startTime=f;d=f}else{a.magnify*=b.magnify;d=a.endTime}}}}if("startsOn" in this._params){this._start=this._unit.parseFromObject(this._params.startsOn)}else{if("endsOn" in this._params){this._start=this._unit.parseFromObject(this._params.endsOn);this.shiftPixels(-this._timeline.getPixelLength())}else{if("centersOn" in this._params){this._start=this._unit.parseFromObject(this._params.centersOn);this.shiftPixels(-this._timeline.getPixelLength()/2)}else{this._start=this._unit.makeDefaultValue();this.shiftPixels(-this._timeline.getPixelLength()/2)}}}};Timeline.HotZoneEther.prototype.setDate=function(a){this._start=this._unit.cloneValue(a)};Timeline.HotZoneEther.prototype.shiftPixels=function(a){this._start=this.pixelOffsetToDate(a)};Timeline.HotZoneEther.prototype.dateToPixelOffset=function(a){return this._dateDiffToPixelOffset(this._start,a)};Timeline.HotZoneEther.prototype.pixelOffsetToDate=function(a){return this._pixelOffsetToDate(a,this._start)};Timeline.HotZoneEther.prototype._dateDiffToPixelOffset=function(i,d){var b=this._getScale();var h=i;var c=d;var a=0;if(this._unit.compare(h,c)<0){var g=0;while(g=0){if(this._unit.compare(h,this._zones[g].startTime)>0){break}g--}while(this._unit.compare(h,c)>0){var e=this._zones[g];var f=this._unit.later(c,e.startTime);a+=(this._unit.compare(f,h)/(b/e.magnify));h=f;g--}}return a};Timeline.HotZoneEther.prototype._pixelOffsetToDate=function(h,c){var g=this._getScale();var e=c;if(h>0){var f=0;while(f0){var a=this._zones[f];var d=g/a.magnify;if(a.endTime==Number.POSITIVE_INFINITY){e=this._unit.change(e,h*d);h=0}else{var b=this._unit.compare(a.endTime,e)/d;if(b>h){e=this._unit.change(e,h*d);h=0}else{e=a.endTime;h-=b}}f++}}else{var f=this._zones.length-1;while(f>=0){if(this._unit.compare(e,this._zones[f].startTime)>0){break}f--}h=-h;while(h>0){var a=this._zones[f];var d=g/a.magnify;if(a.startTime==Number.NEGATIVE_INFINITY){e=this._unit.change(e,-h*d);h=0}else{var b=this._unit.compare(e,a.startTime)/d;if(b>h){e=this._unit.change(e,-h*d);h=0}else{e=a.startTime;h-=b}}f--}}return e};Timeline.HotZoneEther.prototype._getScale=function(){return this._interval/this._pixelsPerInterval};Timeline.GregorianDateLabeller=function(a,b){this._locale=a;this._timeZone=b};Timeline.GregorianDateLabeller.monthNames=[];Timeline.GregorianDateLabeller.dayNames=[];Timeline.GregorianDateLabeller.labelIntervalFunctions=[];Timeline.GregorianDateLabeller.monthNames.en=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Timeline.GregorianDateLabeller.getMonthName=function(b,a){return Timeline.GregorianDateLabeller.monthNames[a][b]};Timeline.GregorianDateLabeller.prototype.labelInterval=function(a,c){var b=Timeline.GregorianDateLabeller.labelIntervalFunctions[this._locale];if(b==null){b=Timeline.GregorianDateLabeller.prototype.defaultLabelInterval}return b.call(this,a,c)};Timeline.GregorianDateLabeller.prototype.labelPrecise=function(a){return Timeline.DateTime.removeTimeZoneOffset(a,this._timeZone).toUTCString()};Timeline.GregorianDateLabeller.prototype.defaultLabelInterval=function(b,f){var c;var e=false;b=Timeline.DateTime.removeTimeZoneOffset(b,this._timeZone);switch(f){case Timeline.DateTime.MILLISECOND:c=b.getUTCMilliseconds();break;case Timeline.DateTime.SECOND:c=b.getUTCSeconds();break;case Timeline.DateTime.MINUTE:var a=b.getUTCMinutes();if(a==0){c=b.getUTCHours()+":00";e=true}else{c=a}break;case Timeline.DateTime.HOUR:c=b.getUTCHours()+"hr";break;case Timeline.DateTime.DAY:c=Timeline.GregorianDateLabeller.getMonthName(b.getUTCMonth(),this._locale)+" "+b.getUTCDate();break;case Timeline.DateTime.WEEK:c=Timeline.GregorianDateLabeller.getMonthName(b.getUTCMonth(),this._locale)+" "+b.getUTCDate();break;case Timeline.DateTime.MONTH:var a=b.getUTCMonth();if(a!=0){c=Timeline.GregorianDateLabeller.getMonthName(a,this._locale);break}case Timeline.DateTime.YEAR:case Timeline.DateTime.DECADE:case Timeline.DateTime.CENTURY:case Timeline.DateTime.MILLENNIUM:var d=b.getUTCFullYear();if(d>0){c=b.getUTCFullYear()}else{c=(1-d)+"BC"}e=(f==Timeline.DateTime.MONTH)||(f==Timeline.DateTime.DECADE&&d%100==0)||(f==Timeline.DateTime.CENTURY&&d%1000==0);break;default:c=b.toUTCString()}return{text:c,emphasized:e}};Timeline.StaticTrackBasedLayout=function(b){this._eventSource=b.eventSource;this._ether=b.ether;this._theme=b.theme;this._showText=("showText" in b)?b.showText:true;this._laidout=false;var a=this;if(this._eventSource!=null){this._eventSource.addListener({onAddMany:function(){a._laidout=false}})}};Timeline.StaticTrackBasedLayout.prototype.initialize=function(a){this._timeline=a};Timeline.StaticTrackBasedLayout.prototype.getTrack=function(a){if(!this._laidout){this._tracks=[];this._layout();this._laidout=true}return this._tracks[a.getID()]};Timeline.StaticTrackBasedLayout.prototype.getTrackCount=function(){if(!this._laidout){this._tracks=[];this._layout();this._laidout=true}return this._trackCount};Timeline.StaticTrackBasedLayout.prototype._layout=function(){if(this._eventSource==null){return}var j=[Number.NEGATIVE_INFINITY];var e=this;var f=this._showText;var c=this._theme;var i=c.event;var b=function(k,o,m,n){var l=o-1;if(k.isImprecise()){l=m}if(f){l=Math.max(l,o+i.label.width)}return l};var a=function(t,q,k,n){if(t.isImprecise()){var m=t.getStart();var s=t.getEnd();var p=Math.round(e._ether.dateToPixelOffset(m));var r=Math.round(e._ether.dateToPixelOffset(s))}else{var p=q;var r=k}var o=r;var l=Math.max(r-p,1);if(f){if(l=j.length){j.push(Number.NEGATIVE_INFINITY)}var n=(i.track.offset+p*(i.track.height+i.track.gap))+"em";e._tracks[l.getID()]=p;if(l.isInstant()){j[p]=b(l,q,m,n)}else{j[p]=a(l,q,m,n)}};var d=this._eventSource.getAllEventIterator();while(d.hasNext()){var h=d.next();g(h)}this._trackCount=j.length};Timeline.DurationEventPainter=function(a){this._params=a;this._theme=a.theme;this._layout=a.layout;this._showText=a.showText;this._showLineForNoText=("showLineForNoText" in a)?a.showLineForNoText:a.theme.event.instant.showLineForNoText;this._filterMatcher=null;this._highlightMatcher=null};Timeline.DurationEventPainter.prototype.initialize=function(b,a){this._band=b;this._timeline=a;this._layout.initialize(b,a);this._eventLayer=null;this._highlightLayer=null};Timeline.DurationEventPainter.prototype.getLayout=function(){return this._layout};Timeline.DurationEventPainter.prototype.setLayout=function(a){this._layout=a};Timeline.DurationEventPainter.prototype.getFilterMatcher=function(){return this._filterMatcher};Timeline.DurationEventPainter.prototype.setFilterMatcher=function(a){this._filterMatcher=a};Timeline.DurationEventPainter.prototype.getHighlightMatcher=function(){return this._highlightMatcher};Timeline.DurationEventPainter.prototype.setHighlightMatcher=function(a){this._highlightMatcher=a};Timeline.DurationEventPainter.prototype.paint=function(){var q=this._band.getEventSource();if(q==null){return}if(this._highlightLayer!=null){this._band.removeLayerDiv(this._highlightLayer)}this._highlightLayer=this._band.createLayerDiv(105);this._highlightLayer.setAttribute("name","event-highlights");this._highlightLayer.style.display="none";if(this._eventLayer!=null){this._band.removeLayerDiv(this._eventLayer)}this._eventLayer=this._band.createLayerDiv(110);this._eventLayer.setAttribute("name","events");this._eventLayer.style.display="none";var d=this._band.getMinDate();var f=this._band.getMaxDate();var w=this._timeline.getDocument();var k=this;var t=this._eventLayer;var e=this._highlightLayer;var a=this._showText;var u=this._params.theme;var o=u.event;var n=o.track.offset;var b=("trackHeight" in this._params)?this._params.trackHeight:o.track.height;var s=("trackGap" in this._params)?this._params.trackGap:o.track.gap;var c=function(p,z){var y=p.getIcon();var x=Timeline.Graphics.createTranslucentImage(w,y!=null?y:o.instant.icon);z.appendChild(x);z.style.cursor="pointer";Timeline.DOM.registerEvent(z,"mousedown",function(A,B,C){k._onClickInstantEvent(x,B,p)})};var r=function(p,B,A,z,y){if(p>=0){var x=o.highlightColors[Math.min(p,o.highlightColors.length-1)];var C=w.createElement("div");C.style.position="absolute";C.style.overflow="hidden";C.style.left=(B-3)+"px";C.style.width=(A+6)+"px";C.style.top=z+"em";C.style.height=y+"em";C.style.background=x;e.appendChild(C)}};var l=function(I,E,p,C,B,H,G){if(I.isImprecise()){var A=Math.max(p-E,1);var z=w.createElement("div");z.style.position="absolute";z.style.overflow="hidden";z.style.top=C;z.style.height=b+"em";z.style.left=E+"px";z.style.width=A+"px";z.style.background=o.instant.impreciseColor;if(o.instant.impreciseOpacity<100){Timeline.Graphics.setOpacity(z,o.instant.impreciseOpacity)}t.appendChild(z)}var y=w.createElement("div");y.style.position="absolute";y.style.overflow="hidden";t.appendChild(y);var F=I.getTextColor();var x=I.getColor();var D=-8;var A=16;if(a){y.style.width=o.label.width+"px";y.style.color=F!=null?F:o.label.outsideColor;c(I,y);y.appendChild(w.createTextNode(I.getText()))}else{if(k._showLineForNoText){y.style.width="1px";y.style.borderLeft="1px solid "+(x!=null?x:o.instant.lineColor);D=0;A=1}else{c(I,y)}}y.style.top=C;y.style.height=b+"em";y.style.left=(E+D)+"px";r(B,(E+D),A,H,G)};var g=function(F,z,p,C,G,K,y){var M=function(P){P.style.cursor="pointer";Timeline.DOM.registerEvent(P,"mousedown",function(Q,R,S){k._onClickDurationEvent(R,F,S)})};var B=Math.max(p-z,1);if(F.isImprecise()){var E=w.createElement("div");E.style.position="absolute";E.style.overflow="hidden";E.style.top=C;E.style.height=b+"em";E.style.left=z+"px";E.style.width=B+"px";E.style.background=o.duration.impreciseColor;if(o.duration.impreciseOpacity<100){Timeline.Graphics.setOpacity(E,o.duration.impreciseOpacity)}t.appendChild(E);var A=F.getLatestStart();var I=F.getEarliestEnd();var D=Math.round(k._band.dateToPixelOffset(A));var O=Math.round(k._band.dateToPixelOffset(I))}else{var D=z;var O=p}var x=F.getTextColor();var N=true;if(D<=O){B=Math.max(O-D,1);N=!(B>o.label.width);E=w.createElement("div");E.style.position="absolute";E.style.overflow="hidden";E.style.top=C;E.style.height=b+"em";E.style.left=D+"px";E.style.width=B+"px";var J=F.getColor();E.style.background=J!=null?J:o.duration.color;if(o.duration.opacity<100){Timeline.Graphics.setOpacity(E,o.duration.opacity)}t.appendChild(E)}else{var L=D;D=O;O=L}if(E==null){console.log(F)}M(E);if(a){var H=w.createElement("div");H.style.position="absolute";H.style.top=C;H.style.height=b+"em";H.style.left=((B>o.label.width)?D:O)+"px";H.style.width=o.label.width+"px";H.style.color=x!=null?x:(N?o.label.outsideColor:o.label.insideColor);H.style.overflow="hidden";H.appendChild(w.createTextNode(F.getText()));t.appendChild(H);M(H)}r(G,z,p-z,K,y)};var m=function(y,x){var p=y.getStart();var B=y.getEnd();var C=Math.round(k._band.dateToPixelOffset(p));var z=Math.round(k._band.dateToPixelOffset(B));var A=(n+k._layout.getTrack(y)*(b+s));if(y.isInstant()){l(y,C,z,A+"em",x,A-s,b+2*s)}else{g(y,C,z,A+"em",x,A-s,b+2*s)}};var v=(this._filterMatcher!=null)?this._filterMatcher:function(p){return true};var i=(this._highlightMatcher!=null)?this._highlightMatcher:function(p){return -1};var j=q.getEventIterator(d,f);while(j.hasNext()){var h=j.next();if(v(h)){m(h,i(h))}}this._highlightLayer.style.display="block";this._eventLayer.style.display="block"};Timeline.DurationEventPainter.prototype.softPaint=function(){};Timeline.DurationEventPainter.prototype._onClickInstantEvent=function(b,d,a){d.cancelBubble=true;var e=Timeline.DOM.getPageCoordinates(b);this._showBubble(e.left+Math.ceil(b.offsetWidth/2),e.top+Math.ceil(b.offsetHeight/2),a)};Timeline.DurationEventPainter.prototype._onClickDurationEvent=function(d,b,e){d.cancelBubble=true;if("pageX" in d){var a=d.pageX;var g=d.pageY}else{var f=Timeline.DOM.getPageCoordinates(e);var a=d.offsetX+f.left;var g=d.offsetY+f.top}this._showBubble(a,g,b)};Timeline.DurationEventPainter.prototype._showBubble=function(a,d,b){var c=this._band.openBubbleForPoint(a,d,this._theme.event.bubble.width,this._theme.event.bubble.height);b.fillInfoBubble(c,this._theme,this._band.getLabeller())};Timeline.DefaultEventSource=function(a){this._events=(a instanceof Object)?a:new Timeline.EventIndex();this._listeners=[]};Timeline.DefaultEventSource.prototype.addListener=function(a){this._listeners.push(a)};Timeline.DefaultEventSource.prototype.removeListener=function(b){for(var a=0;a0){return a}else{if(a.substr(0,1)=="/"){return b.substr(0,b.indexOf("/",b.indexOf("://")+3))+a}else{return b+a}}}};Timeline.DefaultEventSource.Event=function(a,e,g,f,b,l,k,c,i,h,d,j){this._id="e"+Math.floor(Math.random()*1000000);this._instant=b||(e==null);this._start=a;this._end=(e!=null)?e:a;this._latestStart=(g!=null)?g:(b?this._end:this._start);this._earliestEnd=(f!=null)?f:(b?this._start:this._end);this._text=Timeline.HTML.deEntify(l);this._description=Timeline.HTML.deEntify(k);this._image=(c!=null&&c!="")?c:null;this._link=(i!=null&&i!="")?i:null;this._icon=(h!=null&&h!="")?h:null;this._color=(d!=null&&d!="")?d:null;this._textColor=(j!=null&&j!="")?j:null;this._wikiURL=null;this._wikiSection=null};Timeline.DefaultEventSource.Event.prototype={getID:function(){return this._id},isInstant:function(){return this._instant},isImprecise:function(){return this._start!=this._latestStart||this._end!=this._earliestEnd},getStart:function(){return this._start},getEnd:function(){return this._end},getLatestStart:function(){return this._latestStart},getEarliestEnd:function(){return this._earliestEnd},getText:function(){return this._text},getDescription:function(){return this._description},getImage:function(){return this._image},getLink:function(){return this._link},getIcon:function(){return this._icon},getColor:function(){return this._color},getTextColor:function(){return this._textColor},getProperty:function(a){return null},getWikiURL:function(){return this._wikiURL},getWikiSection:function(){return this._wikiSection},setWikiInfo:function(b,a){this._wikiURL=b;this._wikiSection=a},fillDescription:function(a){a.innerHTML=this._description},fillWikiInfo:function(e){if(this._wikiURL!=null&&this._wikiSection!=null){var d=this.getProperty("wikiID");if(d==null||d.length==0){d=this.getText()}d=d.replace(/\s/g,"_");var c=this._wikiURL+this._wikiSection.replace(/\s/g,"_")+"/"+d;var b=document.createElement("a");b.href=c;b.target="new";b.innerHTML=Timeline.strings[Timeline.Platform.clientLocale].wikiLinkLabel;e.appendChild(document.createTextNode("["));e.appendChild(b);e.appendChild(document.createTextNode("]"))}else{e.style.display="none"}},fillTime:function(a,b){if(this._instant){if(this.isImprecise()){a.appendChild(a.ownerDocument.createTextNode(b.labelPrecise(this._start)));a.appendChild(a.ownerDocument.createElement("br"));a.appendChild(a.ownerDocument.createTextNode(b.labelPrecise(this._end)))}else{a.appendChild(a.ownerDocument.createTextNode(b.labelPrecise(this._start)))}}else{if(this.isImprecise()){a.appendChild(a.ownerDocument.createTextNode(b.labelPrecise(this._start)+" ~ "+b.labelPrecise(this._latestStart)));a.appendChild(a.ownerDocument.createElement("br"));a.appendChild(a.ownerDocument.createTextNode(b.labelPrecise(this._earliestEnd)+" ~ "+b.labelPrecise(this._end)))}else{a.appendChild(a.ownerDocument.createTextNode(b.labelPrecise(this._start)));a.appendChild(a.ownerDocument.createElement("br"));a.appendChild(a.ownerDocument.createTextNode(b.labelPrecise(this._end)))}}},fillInfoBubble:function(b,e,l){var m=b.ownerDocument;var k=this.getText();var i=this.getLink();var d=this.getImage();if(d!=null){var f=m.createElement("img");f.src=d;e.event.bubble.imageStyler(f);b.appendChild(f)}var n=m.createElement("div");var c=m.createTextNode(k);if(i!=null){var j=m.createElement("a");j.href=i;j.appendChild(c);n.appendChild(j)}else{n.appendChild(c)}e.event.bubble.titleStyler(n);b.appendChild(n);var o=m.createElement("div");this.fillDescription(o);e.event.bubble.bodyStyler(o);b.appendChild(o);var h=m.createElement("div");this.fillTime(h,l);e.event.bubble.timeStyler(h);b.appendChild(h);var g=m.createElement("div");this.fillWikiInfo(g);e.event.bubble.wikiStyler(g);b.appendChild(g)}};Timeline.ClassicTheme=new Object();Timeline.ClassicTheme.implementations=[];Timeline.ClassicTheme.create=function(a){if(a==null){a=Timeline.Platform.getDefaultLocale()}var b=Timeline.ClassicTheme.implementations[a];if(b==null){b=Timeline.ClassicTheme._Impl}return new b()};Timeline.ClassicTheme._Impl=function(){this.firstDayOfWeek=0;this.ether={backgroundColors:["#EEE","#DDD","#CCC","#AAA"],highlightColor:"white",highlightOpacity:50,interval:{line:{show:true,color:"#aaa",opacity:25},weekend:{color:"#FFFFE0",opacity:30},marker:{hAlign:"Bottom",hBottomStyler:function(a){a.className="timeline-ether-marker-bottom"},hBottomEmphasizedStyler:function(a){a.className="timeline-ether-marker-bottom-emphasized"},hTopStyler:function(a){a.className="timeline-ether-marker-top"},hTopEmphasizedStyler:function(a){a.className="timeline-ether-marker-top-emphasized"},vAlign:"Right",vRightStyler:function(a){a.className="timeline-ether-marker-right"},vRightEmphasizedStyler:function(a){a.className="timeline-ether-marker-right-emphasized"},vLeftStyler:function(a){a.className="timeline-ether-marker-left"},vLeftEmphasizedStyler:function(a){a.className="timeline-ether-marker-left-emphasized"}}}};this.event={track:{offset:0.5,height:1.5,gap:0.5},instant:{icon:Timeline.urlPrefix+"images/dull-blue-circle.png",lineColor:"#58A0DC",impreciseColor:"#58A0DC",impreciseOpacity:20,showLineForNoText:true},duration:{color:"#58A0DC",opacity:100,impreciseColor:"#58A0DC",impreciseOpacity:20},label:{insideColor:"white",outsideColor:"black",width:200},highlightColors:["#FFFF00","#FFC000","#FF0000","#0000FF"],bubble:{width:250,height:125,titleStyler:function(a){a.className="timeline-event-bubble-title"},bodyStyler:function(a){a.className="timeline-event-bubble-body"},imageStyler:function(a){a.className="timeline-event-bubble-image"},wikiStyler:function(a){a.className="timeline-event-bubble-wiki"},timeStyler:function(a){a.className="timeline-event-bubble-time"}}}};Timeline.NativeDateUnit=new Object();Timeline.NativeDateUnit.createLabeller=function(a,b){return new Timeline.GregorianDateLabeller(a,b)};Timeline.NativeDateUnit.makeDefaultValue=function(){return new Date()};Timeline.NativeDateUnit.cloneValue=function(a){return new Date(a.getTime())};Timeline.NativeDateUnit.getParser=function(a){if(typeof a=="string"){a=a.toLowerCase()}return(a=="iso8601"||a=="iso 8601")?Timeline.DateTime.parseIso8601DateTime:Timeline.DateTime.parseGregorianDateTime};Timeline.NativeDateUnit.parseFromObject=function(a){return Timeline.DateTime.parseGregorianDateTime(a)};Timeline.NativeDateUnit.toNumber=function(a){return a.getTime()};Timeline.NativeDateUnit.fromNumber=function(a){return new Date(a)};Timeline.NativeDateUnit.compare=function(d,c){var b,a;if(typeof d=="object"){b=d.getTime()}else{b=Number(d)}if(typeof c=="object"){a=c.getTime()}else{a=Number(c)}return b-a};Timeline.NativeDateUnit.earlier=function(b,a){return Timeline.NativeDateUnit.compare(b,a)<0?b:a};Timeline.NativeDateUnit.later=function(b,a){return Timeline.NativeDateUnit.compare(b,a)>0?b:a};Timeline.NativeDateUnit.change=function(a,b){return new Date(a.getTime()+b)};