     col_heights[add_state] += article_height
 
   
-widthIsUnder850 = () ->
+reset_timeline = () ->
   $(".tlelm").css({
     position:"relative",
     top:"",left:"",

    url = $(this).attr("src")
    $(this).attr("src",url+"?wmode=transparent")

  if $(window).width() > 1250
    timeline_algorithm([30,30,30])
  else if $(window).width() > 850
    timeline_algorithm([30,30])
  else
    timeline_algorithm([30])

hidePostFormElms = (fadebool) ->
  if(typeof fadebool == 'undefined') then fadebool = true

    if arr[i] < arr[tmp] then tmp = i
    i++
  return tmp
  

timeline_algorithm = (width) ->
  col_heights = []
  i = 0
  n = Math.round(width/400)
  while(i < n)
    col_heights.push(30)
    i++
  
  add_state = 0

  $(".tlelm").each ->
