,"left",k);VMM.Element.css($interval_date,"text-indent",-(VMM.Element.width($interval_date)/2));c&&(_major_first_pos=k);c=!1;g=k;_major_last_pos=k}VMM.Element.width(u,o.number*(r.interval_width/r.multiplier));_minor_pos_offset=50;varl=_major_last_pos-_major_first_pos+_minor_pos_offset*6,m=f+_minor_pos_offset*6;l<m?VMM.Element.width(C,m):VMM.Element.width(C,l);VMM.Element.css(C,"left",_major_first_pos-_minor_pos_offset);r.timeline_width=VMM.Element.width(x)},X=function(){j=U(e[e.length-1].enddate-e[0].startdate,!0);V();if(j.milleniums>e.length/r.density)o=q.millenium;elseif(j.centuries>e.length/r.density)o=Math.ceil(q.century);elseif(j.decades>e.length/r.density)o=q.decade;elseif(j.years>e.length/r.density)o=q.year;elseif(j.months>e.length/r.density)o=q.month;elseif(j.days>e.length/r.density)o=q.day;elseif(j.hours>e.length/r.density)o=q.hour;elseif(j.minutes>e.length/r.density)o=q.minute;elseif(j.seconds>e.length/r.density)o=q.second;else{trace("NO FUCKING IDEA WHAT THE TYPE SHOULD BE");o.type="unknown"}if(j.milleniums>=1)p=q.millenium;elseif(j.centuries>=1)p=q.century;elseif(j.decades>=1)p=q.decade;elseif(j.years>=1)p=q.year;elseif(j.months>1)p=q.month;elseif(j.weeks>1)p=q.month;elseif(j.days>1)p=q.day;elseif(j.hours>1)p=q.hour;elseif(j.minutes>1)p=q.minute;elseif(j.seconds>1)p=q.minute;else{trace("NO FUCKING IDEA WHAT THE TYPE SHOULD BE");p.type="unknown"}C=VMM.appendAndGetElement(w,"<div>","minor");W()},Y=function(a,b,c,d,e){k=a;varf=r.ease,g=r.duration,i=!1,j=!1;k==0&&(j=!0);k+1==h.length&&(i=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);varl=VMM.Element.position(h[k].marker);for(varm=0;m<h.length;m++)VMM.Element.removeClass(h[m].marker,"active");if(r.has_start_page&&h[k].type=="start"){VMM.Element.visible(h[k].marker,!1);VMM.Element.addClass(h[k].marker,"start")}VMM.Element.addClass(h[k].marker,"active");!j;!i;VMM.Element.stop(t);VMM.Element.animate(t,g,f,{left:r.width/2-l.left})},Z=function(){VMM.attachElement(H,"");t=VMM.appendAndGetElement(H,"<div>","timenav");u=VMM.appendAndGetElement(t,"<div>","content");v=VMM.appendAndGetElement(t,"<div>","time");w=VMM.appendAndGetElement(v,"<div>","time-interval-minor");y=VMM.appendAndGetElement(v,"<div>","time-interval-major");x=VMM.appendAndGetElement(v,"<div>","time-interval");z=VMM.appendAndGetElement(H,"<div>","timenav-background");B=VMM.appendAndGetElement(z,"<div>","timenav-line");A=VMM.appendAndGetElement(z,"<div>","timenav-interval-background","<div class='top-highlight'></div>");X();R();J(!0);VMM.fireEvent(H,"LOADED");D=VMM.appendAndGetElement(H,"<div>","toolbar");if(r.has_start_page){$backhome=VMM.appendAndGetElement(D,"<div>","back-home","<div class='icon'></div>");VMM.bindEvent(".back-home",N,"click");VMM.Element.css(D,"top",27)}E=VMM.appendAndGetElement(D,"<div>","zoom-in","<div class='icon'></div>");F=VMM.appendAndGetElement(D,"<div>","zoom-out","<div class='icon'></div>");VMM.Element.attribute($backhome,"title","Return to Title");VMM.Element.attribute($backhome,"rel","tooltip");VMM.Element.attribute(E,"title","Expand Timeline");VMM.Element.attribute(E,"rel","tooltip");VMM.Element.attribute(F,"title","Contract Timeline");VMM.Element.attribute(F,"rel","tooltip");VMM.bindEvent(".zoom-in",L,"click");VMM.bindEvent(".zoom-out",M,"click");D.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(z,t,r.width,r.spacing,!1);VMM.bindEvent(t,Q,"TOUCHUPDATE")}elseVMM.DragSlider.createPanel(H,t,r.width,r.spacing,!1);l=!0},$=function(){W();T(!0)}};VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)!="string"){trace("DATA SOURCE: NOT JSON");trace("TRYING HTML PARSE");VMM.Timeline.DataObj.parseHTML(a)}elseif(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}elseif(a.match("spreadsheet")){trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timelin