);VMM.master_config.googledocs.que=[]}},flickr:{get:function(a,b){varc;VMM.master_config.Timeline.api_keys.flickr!=""?c=VMM.master_config.Timeline.api_keys.flickr:c=Aes.Ctr.decrypt(VMM.master_config.api_keys_master.flickr,VMM.master_config.vp,256);vard="http://api.flickr.com/services/rest/?method=flickr.photos.getSizes&api_key="+c+"&photo_id="+a+"&format=json&jsoncallback=?";VMM.getJSON(d,VMM.ExternalAPI.flickr.create)},create:function(a){varb=a.sizes.size[0].url.split("photos/")[1].split("/")[1],c="flickr_"+b,d=c+"_large",e=c+"_thumb",f,g,h=!1,i="Large";i=VMM.ExternalAPI.flickr.sizes(VMM.master_config.sizes.api.height);for(varj=0;j<a.sizes.size.length;j++)if(a.sizes.size[j].label==i){h=!0;f=a.sizes.size[j].source}h||(f=a.sizes.size[a.sizes.size.length-1].source);g=a.sizes.size[0].source;VMM.Lib.attr("#"+d,"src",f);VMM.attachElement("#"+e,"<img src='"+g+"'>")},sizes:function(a){varb="";a<=75?b="Thumbnail":a<=180?b="Small":a<=240?b="Small 320":a<=375?b="Medium":a<=480?b="Medium 640":a<=600?b="Medium 800":b="Large";returnb}},soundcloud:{get:function(a,b){varc={url:a,id:b};VMM.master_config.soundcloud.que.push(c);VMM.master_config.soundcloud.active=!0},create:function(a){varb="http://soundcloud.com/oembed?url="+a.url+"&format=js&callback=?";VMM.getJSON(b,function(b){VMM.attachElement("#"+a.id,b.html)})},pushQue:function(){for(vara=0;a<VMM.master_config.soundcloud.que.length;a++)VMM.ExternalAPI.soundcloud.create(VMM.master_config.soundcloud.que[a]);VMM.master_config.soundcloud.que=[]}},wikipedia:{get:function(a,b){varc={url:a,id:b};VMM.master_config.wikipedia.que.push(c);VMM.master_config.wikipedia.active=!0},create:function(a){varb="http://en.wikipedia.org/w/api.php?action=query&prop=extracts&redirects=&titles="+a.url+"&exintro=1&format=json&callback=?";if(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest){varc="<h4><a href='http://en.wikipedia.org/wiki/"+a.url+"' target='_blank'>"+a.url+"</a></h4>";c+="<div class='wiki-source'>From Wikipedia, the free encyclopedia</span>";c+="<p>Wikipedia entry unable to load using Internet Explorer 8 or below.</p>";VMM.attachElement("#"+a.id,c)}VMM.getJSON(b,function(b){if(b.query){varc=VMM.Util.getObjectAttributeByIndex(b.query.pages,0).extract,d=VMM.Util.getObjectAttributeByIndex(b.query.pages,0).title,e="",f="",g=c.split("<p>"),h=1;for(vari=0;i<g.length;i++)i+1<=h&&i+1<g.length&&(f+="<p>"+g[i+1]);e="<h4><a href='http://"+VMM.master_config.language.api.wikipedia+".wikipedia.org/wiki/"+d+"' target='_blank'>"+d+"</a></h4>";e+="<div class='wiki-source'>"+VMM.master_config.language.messages.wikipedia+"</span>";e+=VMM.Util.linkify_wikipedia(f);c.match("REDIRECT")||VMM.attachElement("#"+a.id,e)}})},pushQue:function(){trace("WIKIPEDIA PUSH QUE");for(vara=0;a<VMM.master_config.wikipedia.que.length;a++)VMM.ExternalAPI.wikipedia.create(VMM.master_config.wikipedia.que[a]);VMM.master_config.wikipedia.que=[]}},youtube:{get:function(a){varb="http://gdata.youtube.com/feeds/api/videos/"+a+"?v=2&alt=jsonc&callback=?";if(VMM.master_config.youtube.active)VMM.master_config.youtube.que.push(a);else{VMM.master_config.youtube.que.push(a);VMM.master_config.youtube.api_loaded||VMM.LoadLib.js("http://www.youtube.com/player_api",function(){trace("YouTube API Library Loaded")})}VMM.getJSON(b,VMM.ExternalAPI.youtube.createThumb)},create:function(a){varb={active:!1,player:{},name:"youtube_"+a,playing:!1};b.player["youtube_"+a]=newYT.Player("youtube_"+a,{height:"390",width:"640",playerVars:{enablejsapi:1,color:"white",showinfo:0,theme:"light",rel:0},videoId:a,events:{onReady:VMM.ExternalAPI.youtube.onPlayerReady,onStateChange:VMM.ExternalAPI.youtube.onStateChange}});VMM.master_config.youtube.array.push(b)},createThumb:function(a){trace(a.data.id);trace(a.data.thumbnail.sqDefault);varb="youtube_"+a.data.id+"_thumb";VMM.attachElement("#"+b,"<img src='"+a.data.thumbnail.sqDefault+"'>")},pushQue:function(){for(vara=0;a<VMM.master_config.youtube.que.length;a++)VMM.ExternalAPI.youtube.create(VMM.master_config.youtube.que[a]);VMM.master_config.youtube.que=[]},on
);v.century.last=b.centuries;v.century.number=e.centuries;v.century.multiplier=q.century;v.century.minor=q.century;v.decade.type="decade";v.decade.first=a.decades;v.decade.base=Math.floor(a.decades);v.decade.last=b.decades;v.decade.number=e.decades;v.decade.multiplier=q.decade;v.decade.minor=q.decade;v.year.type="year";v.year.first=a.years;v.year.base=Math.floor(a.years);v.year.last=b.years;v.year.number=e.years;v.year.multiplier=1;v.year.minor=q.month;v.month.type="month";v.month.first=a.months;v.month.base=Math.floor(a.months);v.month.last=b.months;v.month.number=e.months;v.month.multiplier=1;v.month.minor=Math.round(q.week);v.week.type="week";v.week.first=a.weeks;v.week.base=Math.floor(a.weeks);v.week.last=b.weeks;v.week.number=e.weeks;v.week.multiplier=1;v.week.minor=7;v.day.type="day";v.day.first=a.days;v.day.base=Math.floor(a.days);v.day.last=b.days;v.day.number=e.days;v.day.multiplier=1;v.day.minor=24;v.hour.type="hour";v.hour.first=a.hours;v.hour.base=Math.floor(a.hours);v.hour.last=b.hours;v.hour.number=e.hours;v.hour.multiplier=1;v.hour.minor=60;v.minute.type="minute";v.minute.first=a.minutes;v.minute.base=Math.floor(a.minutes);v.minute.last=b.minutes;v.minute.number=e.minutes;v.minute.multiplier=1;v.minute.minor=60;v.second.type="decade";v.second.first=a.seconds;v.second.base=Math.floor(a.seconds);v.second.last=b.seconds;v.second.number=e.seconds;v.second.multiplier=1;v.second.minor=10},$=function(a,b){varc={};c.days=a/r.day;c.weeks=c.days/r.week;c.months=c.days/r.month;c.years=c.months/r.year;c.hours=c.days*r.hour;c.minutes=c.days*r.minute;c.seconds=c.days*r.second;c.decades=c.years/r.decade;c.centuries=c.years/r.century;c.milleniums=c.years/r.millenium;c.ages=c.years/r.age;c.epochs=c.years/r.epoch;c.eras=c.years/r.era;c.eons=c.years/r.eon;returnc},_=function(a,b,c){vard=a.type,e=a.multiplier,f=$(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=$(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}elseif(d=="era"){h=f.eras;i=g.eras}elseif(d=="epoch"){h=f.epochs;i=g.epochs}elseif(d=="age"){h=f.ages;i=g.ages}elseif(d=="millenium"){h=b.milleniums;i=c.milleniums}elseif(d=="century"){h=f.centuries;i=g.centuries}elseif(d=="decade"){h=f.decades;i=g.decades}elseif(d=="year"){h=f.years;i=g.years}elseif(d=="month"){h=f.months;i=g.months}elseif(d=="week"){h=f.weeks;i=g.weeks}elseif(d=="day"){h=f.days;i=g.days}elseif(d=="hour"){h=f.hours;i=g.hours}elseif(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-s.base)*(K.nav.interval_width/K.nav.multiplier.current);_pos_end=(i-s.base)*(K.nav.interval_width/K.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}elseif(d=="era"){h=f.eras;i=f.eras}elseif(d=="epoch"){h=f.epochs;i=f.epochs}elseif(d=="age"){h=f.ages;i=f.ages}elseif(d=="millenium"){h=b.milleniums;i=b.milleniums}elseif(d=="century"){h=f.centuries;i=f.centuries}elseif(d=="decade"){h=f.decades;i=f.decades}elseif(d=="year"){h=f.years;i=f.years}elseif(d=="month"){h=f.months;i=f.months}elseif(d=="week"){h=f.weeks;i=f.weeks}elseif(d=="day"){h=f.days;i=f.days}elseif(d=="hour"){h=f.hours;i=f.hours}elseif(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-s.base)*(K.nav.interval_width/K.nav.multiplier.current);_pos_end=_pos}returnpos={begin:_pos,end:_pos_end}},ab=function(a){varb=s.type,c=s.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(varm=0;m<i.length;m++){varp,q=i[m].marker,r=i[m].flag,t=i[m].lineevent,u=_(s,g[m].startdate,g[m].enddate),v=-2;B=u.begin;_pos_end=u.end;B=Math.round(B+v);_pos_end=Math.round(_pos_end+v);p=Math.round(_pos_end-B);if(a){VMM.Lib.stop(q);VMM.Lib.animate(q,K.duration/2,K.ease,{left:B})}elseVMM.Lib.css(q,"left",B);m==o&&(l=B);if(p>5){VMM.Lib.css(t,"height",k);VMM.Lib.css(t,"width",p);VMM.Lib.css(t,"top",j)}if(n.length>0)for(varx=0;x<n.length;x++){trace("TAGS: "+n[x]);if(x<K.nav.rows.length&&i[m].tag==n[x]){trace("tag match "+x);d=x}}elseif(B-e<K.nav.marker.width+K.spacing)if(d<K.nav.rows.length-1)d++;else{d=0;f++}else{f=0;d=0}e=B;if(a){VMM.Lib.stop(r);VMM.Lib.animate(r,K.duration,K.