var timeline = {
  TODAY:Date.today(),
  CONTAINER:null,
  init:function(){
    var current = jQuery("#current");
    timeline.CONTAINER = jQuery("#main");    
    current
      .css({
        width:"100%",
        height:jQuery(window).height() + "px"});
    setTimeout(function(){
      jQuery("#main").show();
      timeline.scrollToCurrent();},500);
    jQuery(".image_holder").each(function(){
      jQuery(this).css({
        height:
          (jQuery(window).width()-920)/jQuery(this).css("width").match(/[0-9]+/)*
          jQuery(this).css("height").match(/[0-9]+/),
        width:jQuery(window).width()-920});
    });
    jQuery(".current_event:first-child").addClass("active");
    jQuery(".current_event>img:first-child").addClass("active");
    jQuery(".info_link").click(function(e){
      e.preventDefault();
    });
    jQuery(".il_informations").click(function(){
      jQuery(".column.first>.current_event").removeClass("active");
      jQuery("#Informations").addClass("active");
    });
    jQuery(".lks>a").click(function(e){
      e.preventDefault();
      jQuery(".current_event").removeClass("active");
      jQuery(".current_event:nth-child("+(jQuery(this).index()+1)+")").addClass("active");
    });
  },
  scrollToCurrent:function(){
    jQuery("html,body").animate({scrollTop:jQuery("#current").position().top+60},
      2500);
  },
  scrollTo:function(postID){
    jQuery("html,body").animate({
      scrollTop:jQuery("#post-"+postID).position().top,});
  }
}
