       if d3.event.which == 13
         jsonp(d3.event.target.value, create)
         d3.event.target.value = ''
-        
+
   svg = body.append('svg')
   test = "ocean"
   test && jsonp(test, create)

urls =
  search: (q) ->
    "http://en.wikipedia.org/w/api.php?" +
    "action=query&" + 
    "list=search&" + 
    "srprop=links&" +
    "format=json&" + 
    "callback=__cb__&" +
    "srsearch=" + q
  relevance: (q) ->
    "action=query&" +
    "prop=categories&" + 
    "format=json&" +
    "callback=__cb__&" + 
    "titles=" + query 
                  
jsonp =  (query, callback) ->
  window.__cb__ = callback or -> log(arguments)
  d3.select('head').append('script').attr('src', urls.search(query))
  
mirror = (f) ->
  if "function" != typeof f then f = d3.ease.apply(d3, arguments) 
  (t) -> if t < .5 then f(2 * t) else f(2 - 2 * t) 

rand_c = ->
  '#' + (0x1000000+(Math.random())*0xffffff).toString(16).substr(1,6)

        links.push
          from: a
          to: b

  d3.select('svg').selectAll('line').data(links)
    .enter().insert('line', '*')
    .attr
