create tabs inside nody body
Drupal has jQuery UI tabs built right in so you'd be better off leveraging that if possible. This is a standard theme function I chuck into most projects to help with this sort of thing:

function theme_tabs($vars) {
  if (empty($vars['items'])) {
    return '';
  }

  $js_added = &amp;drupal_static(__FUNCTION__, FALSE);
  static $delta = 0;

  if (!$js_added) {
    drupal_add_library('system', 'ui.tabs');
    drupal_add_js("jQuery(document).ready(function(){ jQuery('.tabs-container').tabs(); });", 'inline');
    $js_added = TRUE;
  }

  $tabs = $content = '';
  foreach ($vars['items'] as $key =&gt; $item) {
    if (isset($item['#access']) &amp;&amp; !$item['#access']) {
      continue;
    }

    $tabs .= '&lt;li&gt;&lt;a href="#' . $key . '-tab-' . $delta . '"&gt;' . $item['title'] . '&lt;/a&gt;&lt;/li&gt;';
    $content .= '&lt;div id="' . $key . '-tab-' . $delta . '"&gt;' . render($item['content']) . '&lt;/div&gt;';
  }

  $delta++;

  return '&lt;div class="tabs-container"&gt;' ."&lt;ul&gt;$tabs&lt;/ul&gt;$content&lt;/div&gt;";
}


You would call it like this:

$tabs = array(
  'tab1' =&gt; array(
    'title' =&gt; 'Title for tab 1',
    'content' =&gt; 'Content for tab 1' // Note this can be a string or standard Drupal render array
  ),
  'tab2' =&gt; array(
    'title' =&gt; 'Title for tab 2',
    'content' =&gt; 'Content for tab 2' 
  ),
  // etc.
);

$args = array('items' =&gt; $tabs);
print theme_tabs($args);


Of course if you're doing this 'properly' you would register the theme function in a module like so:

function MYMODULE_theme() {
  return array(
    'tabs' =&gt; array(
      'variables' =&gt; array('items' =&gt; array())
    )
  );
}


and call it like this instead:

print theme('tabs', array('items' =&gt; $tabs));


Hope that points you in the right direction.