                 if rest is 0
                     last -= 1
                 
-                linkdepth = @data.linkdepth
+                linkdepth = @data.linkdepth || 1
                 href = location.pathname.split('/')
                 href[linkdepth + 1] = ''
                 
                 href[linkdepth] = 0
-                @__root.append $('<a>').attr('href', href.join '/')
-                    .attr('class', 'link first')
-                    .append($('<img class="icon" alt="|&lt;">').attr 'src', '/img/arrow-'+@data.color+'-first.png')
+                @__root.append @_createLink href.join('/'), 'first', @data.text.first, 'first', @data.imageLinks
                 
                 href[linkdepth] = if curr > 0 then curr - 1 else last 
-                @__root.append $('<a>').attr('href', href.join '/')
-                    .attr('class', 'link prev')
-                    .append($('<img class="icon" alt="&lt;">').attr 'src', '/img/arrow-'+@data.color+'-left.png')
+                @__root.append @_createLink href.join('/'), 'left', @data.text.left, 'prev', @data.imageLinks
                 
                 @_process [0..last],
     
                     each: (i, next)=>
                         href[linkdepth] = i
-                        link = $('<a>').attr('href', href.join '/')
-                            .attr('class', 'link page')
-                            .text(i + 1)
+                        
+                        link = @_createLink href.join('/'), 'page', i + 1, 'page'
                     
                         if i is curr
                             link.addClass 'actual'

        ##
        ##
        _wireLinks: (data, done)->
            _emit = (i)=>
                @_emit 'browse',
                    offset: i*data.limit
                    limit: data.limit
                return false
                        
            @find('a').each (i, link)=>
                link = $(link).click ()=>
                
                    _emit parseInt link.attr('href').match(/([0-9]+)\/$/)[1]        
            
            done?()
            
        ##
        ##
        ##

                
                data:
                    color: 'white'
                    
                    text:
                        first: '|&lt;'
                        left: '&lt;'
                        right: '&gt;'
                        last: '&gt;|'
                
                template: ->
                    div class:'browse'
