   init: ->
     @imageCookie = new Dreamcatcher.Classes.CookieHelper "imagebank"
     $("#searchOptions").hide()
+    
+    @showIcons ".browseHeader, .searchWrap"
+    # @updateScreen null,null,"#browse","browse",html
+    
     $("#type").replaceWith @view('types',{types: @model.types})
     $("#type li:first").click()
     

    @artist = $("h2:first",el).text()
    $.get "/albums?artist=#{@artist}&section=#{@section}&category=#{@category}",(html) =>
      @displayScreen "#albumList",html
      
  '#albumList .add click': (el) ->
    img = el.parent()

    $.get "/artists?category=#{@category}&section=#{@section}",(html) =>
      @displayScreen "#artistList",html
      
  showIcons: (icons) ->
    $(".top,.footerButtons").children().hide()
    $(icons,".top,.footerButtons").show()

  displayScreen: (type, html) ->
    switch type
      when "#artistList"
        @showIcons ".browseWrap, h1, .searchWrap"
        @updateScreen "#type,#categories","Genres","#artistList",@genre,html
      when "#albumList"
        @showIcons ".browseWrap, .backArrow, h1, .play, .manage, .searchWrap, .drag"
        @updateScreen "#artistList",@genre,"#albumList",@artist,html

  updateScreen: (previousType, previousName, currentType, currentName, currentHtml) ->
    $("#browse,#artistList,#albumList").hide()
    $(".backArrow .content").text(previousName)
    $(".backArrow").attr("name",previousType)
    #if previousType? then $(".backArrow").show() else $(".backArrow").hide()
    $("h1").text(currentName)
    $(currentType).replaceWith(currentHtml) if currentHtml?
    $(currentType).show()
