docs: function (data, authenticated) {
        if (authenticated) {
          data.authenticated = true
        }
        $('body').html(mpl(data))
        document.title = $('body h1').html()
        if (data.picos && data.picos[0]) {
          $('#user-logout span').html(data.picos[0].dname)
        }
        $('div.pico')
          .resizable({
            maxHeight: 200,
            maxWidth: 200,
            minHeight: 50,
            minWidth: 50,
            resize: dragmove,
            stop: function (event, ui) {
              if (!renderDemo) {
                var nodeId = ui.helper[0].getAttribute('id')
                var width = Math.round(ui.size.width)
                var height = Math.round(ui.size.height)
                $.getJSON('/sky/event/' + findEciById(nodeId) + '/25/visual/config', {
                  width: width,
                  height: height
                })
              }
            }
          })
          .draggable({ containment: 'parent', drag: dragmove, stop: dragstop })
          .click(function () {
            var fadeOutOptions = {
              width: $(this).css('width'),
              height: $(this).css('height'),
              top: $(this).css('top'),
              left: $(this).css('left')
            }
            var $pediv = $(this).next('.pico-edit')
            var fadeAway = function (ev) {
              $pediv.find('button.x').remove()
              $pediv.animate(fadeOutOptions, 200)
              $pediv.fadeOut(200)
              ev.stopPropagation()
              location.hash = ''
            }
            $pediv.fadeIn(200)
            $pediv.animate({
              width: '95%',
              height: '85%',
              top: 0,
              left: 0
            }, 200, function () {
              $pediv.prepend('<button class="x">&ndash;</button>')
              $pediv.find('button.x').click(fadeAway)
            })
            var $horizMenu = $pediv.find('ul.horiz-menu')
            if ($horizMenu.find('li.active').length === 0) {
              $horizMenu.find('li:first').trigger('click')
            }
          })
          .each(function () {
            updateEdges($(this).attr('id'))
          })
          .parent()
          .find('ul.horiz-menu li')
          .click({ authenticated: authenticated }, renderTab)
        var whereSpec = location.hash.substring(1).split('-')
        if (whereSpec.length > 0 && whereSpec[0]) {
          $('div#' + whereSpec[0]).trigger('click')
        }
        if (whereSpec.length > 1) {
          $('div#' + whereSpec[0])
            .next('.pico-edit')
            .find('ul li:contains(' + whereSpec[1] + ')')
            .trigger('click')
        }
      }