     for alt in alternatives
       do(alt) ->
         if alt.uri
-          container.append($('<a>').attr('href', alt.uri).addClass(alt.type).attr('data-gricer-' + alt.type, true).append(alt.type))
+          container.append($('<a>').attr('href', alt.uri).addClass(alt.type).attr('data-gricer-' + alt.type, true).attr('data-label', alt.type).attr('data-type-selector', true).append(alt.type))
         else
           container.append($('<span>').addClass(alt.type).append(alt.type))
     

          graph = data.data.length < 4 or $.gricer.colors[i] and line[1]/data.total > 0.05 
          label = label_row = $('<td>')
          if data.detail_uri
            label = $('<a data-gricer-spread="true">').attr('href', data.detail_uri.replace('%25%7Bself%7D', encodeURI(line[0])))
            label_row.append(label)
          
          if graph

  updateBreadcrumb: (elem) ->
    $.gricer.last_called = $(elem)
    
    label = $(elem).text() || $(elem).attr('data-label')
    
    if $(elem).parents('#gricer-menu').length > 0
      $('#gricer-header .path').empty()
    else if $(elem).parents('#gricer-header .path').length > 0
      $(elem).nextAll().remove()
      return
    else if $(elem).attr('data-type-selector')
      label = $('#gricer-header .path a:last').attr('data-label')
      $('#gricer-header .path a:last').remove()
  
    $('#gricer-header .path').append( $(elem).clone().attr('data-label', label).html(label) )
  
$('a[data-gricer-process]').live 'click', ->
  $.gricer.loading()
