     # infinite scrolling
     $(window).scroll =>
       if ($(window).scrollTop() > $(document).height() - $(window).height() - 200)
-        # $(window).scrollTop($(document).height() - $(window).height() - 300)
         @loadNextPage()
   clear: ->
     $('#noMoreEntries, .noEntrys, #nextPageLoading').hide()
-    
+  activateLightBox: ->
+    # Setup lightbox for stream
+    $('a.lightbox').each((i, el) ->
+      $(this).lightBox({containerResizeSpeed: 0});
+    )
   loadNextPage: ->
     return if @currentlyLoading
     @currentlyLoading = true

    $('.followFilter.trigger').removeClass('loading')

    @$container.html(html)
    



    @page = 1
    @stream = streamModel
    @$container = $('#entryField .matrix')
    @activateLightBox()
    # adds the loading wheel
    $('.filterList').click( (event) =>
      $(event.currentTarget).parent().find('.trigger').addClass('loading')
