diff -urN glossary/glossary.module glossary-hovertip/glossary.module
--- glossary/glossary.module	2007-12-19 17:01:57.000000000 -0600
+++ glossary-hovertip/glossary.module	2008-01-28 11:02:59.000000000 -0600
@@ -348,6 +348,9 @@
     '#description' => t('Display terms using either a superscript formatted link, an icon, or an &lt;acronym&gt; tag.'),
     '#validate' => array('glossary_indicator_intercept' => array()),
     );
+  if( module_exists('hovertip') ) {
+    $form['indicator']["glossary_replace_$format"]['#options']['hovertip'] = t('Hover tip');
+  }
 
   $form['indicator']["glossary_superscript_$format"] = array(
     '#type' => 'textfield',
@@ -492,6 +495,13 @@
         $linkto = 'glossary/term/'. $term->tid;
       }
       $ins_before = $ins_after = '';
+
+      // optional, you may want to remove this safegaurd
+      // basically a incase hovertip is disabled
+      if (!module_exists('hovertip'))
+      {
+        $replace_mode = 'superscript';
+      }
       
       switch ($replace_mode) {
         case 'superscript':
@@ -504,6 +514,17 @@
           $ins_before .= '<acronym title="'. check_plain($term_title) .'">';
           $ins_after = '</acronym></a>';
           break;
+          
+        case 'hovertip':
+          $term_name = check_plain($term->name);
+          $term_description = check_plain($term->description); // Don't strip tags!
+          $ins_before = '<a class="glossary-term" href="'. url($linkto, null, null, $absolute_link) .'">';
+          $ins_before .= '<span id="'.$term_name.'">';
+          $ins_after = '</span></a>';
+	  $ins_after .= '<div target="'. $term_name .'" class="hovertip">';
+          $ins_after .= '<h1>'. $term_name .'</h1>' . $term_description . '</div>';
+          break;
+          
         default:
           $img = "<img src=\"". variable_get("glossary_icon_$format", "glossary.gif") ."\" />";
           $ins_after = l($img, $linkto, array('title' => $term_title, 'class' => 'glossary-icon'),
