       .enter()
       .append('g')
       .classed('node', true)
-      .on('dblclick', (nodeClicked) ->
-        new Node().setParent nodeClicked
+      .on('dblclick', (node) ->
+        new Node().setParent node
         refresh()
+      )
+      .on('click', (node) ->
+        $('#panel a').html node.link
       )
     node.append('circle')
     node.append('text')

      @y = 0
      @parent = null
      @children = []
      @link = null
      @text = 'asdfasdf'
      nodes.push @

    setParent: (parent) ->


  sx = null
  sy = null
  lastClicked = null
  cx = 0
  cy = 0

