I am trying to puzzle out how you can add add terms for pages to my body system class instantly. I am very close with a few code I have been piecing together. At this time this works, only returns one term. How do i have it to come back a range of terms each like a class that get's put into your body tag? This is what I have got to date. fyi "topbar" is my taxonomy title.

<?php $class='';
  if(is_page()) {
  $terms = get_terms("topbar");
  $class .= $terms[0]->slug;
}?>
<body id="top" <?php if (function_exists('body_class')) body_class($class ); ?>>
<?php
if(is_page()) {
    global $post;
    $terms = wp_get_post_terms($post->ID, "topbar", array("fields" => "names"));
    $class = ($terms) ? implode(" ", $terms) : '';
}
?>

<body id="top" <?php if (function_exists('body_class')) body_class($class ); ?>>

Cheers )