       $("#asset-results ul").amplePanels('append', li)
       @load_img(link, el.sizes.tn)
     @active_panel = $("#asset-results ul")
-    
+    @show(@options.pages.length-1)
+    @controls()
 
   build: (el) ->
     ref = this

      @active_panel = el
      @options.pages[i][''] = $(el).attr('id',"#{@options.pages[i]['id']}-panel")
      $(el).parent().addClass('panels')
      $('nav.controls').show()
      $(el).amplePanels(@options.pages_options)
        .bind 'slide_horizontal', (e,d,dir) ->
          console.log 'slide_horizontal'
          ref.load(i) if dir == 'next'

  disable_panels: ->
    @log "disable_panels()"
    ref = this
    $.each @options.pages, (i,el) ->
      $(ref.options.pages[i]['panel_selector']).amplePanels('disable') if ref.options.pages[i]['panel_selector']


      $("#asset-results ul").amplePanels('empty')
      $.post search_url, $(this).serialize(), (response) ->
        ref.load_results(response)
      , 'json'

  key_down: ->
