 delay_between_highlight_and_show_button_open = 325
 
 delay_before_mouseout_detected = 300
-
+delay_before_scroll_into_screen_detected = 200
 
 class Highlighter
   constructor: (@$elements, @class) ->


  switchToState: (to_state) =>
    return if to_state == @state
    console.info 'Switching', @fact.id, @state, to_state if @fact.id == '148'

    switch to_state
      when 'small_time_visible'

    @fact_load_promotion = new FactLoadPromotion(@elements)

  isInView: ->
    for element in $(@elements)
      return false unless $(element).data('inview') == 'both'
    true

  openFactlinkModal: (options={})=>
    Factlink.showInfo @id, => options.success?()
