Index: getsatisfaction.module
===================================================================
--- getsatisfaction.module	(revision 899)
+++ getsatisfaction.module	(working copy)
@@ -42,22 +42,21 @@
 /**
  * Implementation of hook_footer() to insert Javascript at the end of the page.
  */
-function getsatisfaction_footer() {
+function getsatisfaction_init() {
   $company = check_plain(variable_get('getsatisfaction_name', ''));
   $type = check_plain(variable_get('getsatisfaction_type', 'idea'));
   $placement = check_plain(variable_get('getsatisfaction_placement', 'left'));
   $color = check_plain(variable_get('getsatisfaction_color', '#222'));
 
   if (!empty($company) && _getsatisfaction_visibility_pages()) {
-    drupal_add_css("http://s3.amazonaws.com/getsatisfaction.com/feedback/feedback.css");
-    $output .= "<style type='text/css'>@import url('http://s3.amazonaws.com/getsatisfaction.com/feedback/feedback.css');</style>
+    $head .= "<style type='text/css'>@import url('http://s3.amazonaws.com/getsatisfaction.com/feedback/feedback.css');</style>
 <script src='http://s3.amazonaws.com/getsatisfaction.com/feedback/feedback.js' type='text/javascript'></script>";
+    drupal_set_html_head($head);
     $script .= "var tab_options = {}\n";
     $script .= "tab_options.placement = \"$placement\";\n";
     $script .= "tab_options.color = \"$color\"\n";
     $script .= "GSFN.feedback('http://getsatisfaction.com/". $company ."/feedback/topics/new?display=overlay&style=$type', tab_options);";
     drupal_add_js($script, 'inline', 'footer');
-    return $output;
   }
 }
 
