title: Open a thickbox-style Lightbox from WP Admin Bar
body: <p>Folks,</p>
  
  <p>I'm currently setting up a WP install. In order for the client to access a custom help-document, I added an additional dropdown menu in the admin-bar as a WP plugin via the following php-file:</p>
  
  <pre><code>&lt;?php
  
  function pub_admin_bar_init() {
      if (!is_super_admin() || !is_admin_bar_showing() )
          return;
  
      add_action('admin_bar_menu', 'pub_admin_bar_links', 500);
  }
  
  add_action('admin_bar_init', 'pub_admin_bar_init');
  
  function pub_admin_bar_links() {
      global $wp_admin_bar;
  
      $links = array(
          'Chapter 1' =&gt; 'http://manual.domain.com/index1.html',
          'Chapter 2' =&gt; 'http://manual.domain.com/index2.html',
          'Chapter 3' =&gt; 'http://manual.domain.com/index3.html',
          'Chapter 4' =&gt; 'http://manual.domain.com/index4.html',
          'Chapter ...' =&gt; 'http://manual.domain.com/index5.html',
      );
  
      $wp_admin_bar-&gt;add_menu( array(
          'title' =&gt; 'Help-Document',
          'href' =&gt; false,
          'id' =&gt; 'pub_links',
          'href' =&gt; false
      ));
  
      foreach ($links as $label =&gt; $url) {
          $wp_admin_bar-&gt;add_menu( array(
              'title' =&gt; $label,
              'href' =&gt; $url,
              'parent' =&gt; 'pub_links',
              'meta' =&gt; array('target' =&gt; '_blank')
          ));
      }
  }
  
  ?&gt;
  </code></pre>
  
  <p>The dropdown works fine and the referenced html-files located in the subdomain of the same domain get called in a new tab.</p>
  
  <p>However, in order to have everything neatly arranged within the WP admin, I'd like to call the menu items in the new admin-bar dropdown via an iframe Lightbox.</p>
  
  <p>I managed to set this up in the Dashboard intro section using the built-in thickbox with the following syntax:</p>
  
  <pre><code>&lt;a style="text-decoration:none;" 
  href="http://codex.wordpress.org/First_Steps_With_WordPress?
  keepThis=true&amp;TB_iframe=true&amp;height=800&amp;width=1200" class="thickbox" 
  title="sometitle"&gt;First Steps with WordPress&lt;/a&gt;
  </code></pre>
  
  <p>This lets me call the html help-files (or any other url for that matter) as an iframe in a thickbox-style overlay.</p>
  
  <p><strong>Now my actual question</strong>:</p>
  
  <p>Could someone point me to how I could make the links in the admin-bar dropdown ('Chapter 1' => 'http://manual.domain.com/index1.html', ...) as thickbox-style overlays instead of target=_blank?</p>
  
  <p>Help very much appreciated. Thanks a lot!</p>