       $(this).fadeIn()
     ).attr src: src
   
+  # Generates the next URL for paginated record sets.
   next_page_url: (i) ->
     @options.pages[i]['pages_loaded'] = 0 unless @options.pages[i]['pages_loaded']
     @options.pages[i]['pages_loaded'] += 1
     "#{@options.pages[i]['url']}?page=#{@options.pages[i]['pages_loaded']}"
   
+  # By touching asset records, we update the timestamp value which ensures our recently
+  # viewed tab contains accurate results. Called from `modal_open()`
   touch: (el) ->
     @log "touch()"
     touch_url = Mustache.to_html @options.touch_url, { id: el.id }
     $.post "#{@options.base_url}#{touch_url}"
   
+  # Instantiate an amplePanels instance within page `i` if `@options.pages[i]['panels']` is true.
   panels: (i) ->
     ref = this
     if @options.pages[i]['panels']

      .addClass('draggable')
    link.addClass('document') if el.document == 'true'
    link.click ->
      ref.modal_open(el)
      false
    link
  
  modal_open: (data) ->
    @modal_active = true
    if data.document == 'true'
      html = Mustache.to_html(@tpl('pdf'),{ filename: data.uid, id: data.id })
      $.facebox("<div class=\"asset-detail\">#{html}</div>")
      myPDF = new PDFObject(

    @loading.hide()
    @controls()
  
  # Builds each asset instance with proper attributes. 
  build: (el) ->
    ref = this
    show_url = Mustache.to_html @options.show_url, { id: el.id }
