--- themedev.module.orig	2006-04-12 11:20:49.000000000 -0400
+++ themedev.module	2006-04-12 13:38:44.000000000 -0400
@@ -18,38 +18,47 @@ function themedev_html_head() {
   else {
     $themedev_enable_css = 0;
   }
+  
   // if user has permission output css
+  $output = '';
+  
   if ($themedev_enable_css == 1) {
-    // if no diagnostic stylesheets are enabled, don't output empty style tags
-      $output .= ('<style type="text/css" media="all">');
-      // determine location of stylesheets
-      $path = drupal_get_path('module', 'themedev') .'/stylesheets/';
-      // if a stylesheet is enabled in settings @import it
-      if (variable_get("themedev_skeletal_css", "0") == 1) {
-        $output .=  ('  @import url(/' . $path .'skeletal.css);');
-      }
-			if (variable_get("themedev_form_css", "0") == 1) {
-        $output .=  ('  @import url(/' . $path .'form.css);');
-      }
-      if (variable_get("themedev_lists_css", "0") == 1) {
-        $output .=  ('  @import url(/' . $path .'lists.css);');
-      }
-      if (variable_get("themedev_table_css", "0") == 1) {
-        $output .=  ('  @import url(/' . $path .'table.css);');
-      }
-      if (variable_get("themedev_deprecated1_css", "0") == 1) {
-        $output .=  ('  @import url(/' . $path .'deprecated-xhtml1strict.css);');
-      }
-      if (variable_get("themedev_abused_css", "0") == 1) {
-        $output .=  ('  @import url(/' . $path .'abused.css);');
-      }
-      if (variable_get("themedev_usability_css", "0") == 1) {
-        $output .=  ('  @import url(/' . $path .'usability.css);');
-      }
-			// style the themedev block
-			$output .=  ('  @import url(/' . $path .'themedevblock.css);');
-      $output .=  ('</style>');
+    // determine location of stylesheets
+    $path = base_path() . drupal_get_path('module', 'themedev') .'/stylesheets/';
+    
+    // if a stylesheet is enabled in settings @import it
+    if (variable_get("themedev_skeletal_css", "0") == 1) {
+      $output .= theme('stylesheet_import', $path . 'skeletal.css');
+    }
+    
+	if (variable_get("themedev_form_css", "0") == 1) {
+      $output .= theme('stylesheet_import', $path . 'form.css');
+    }
+    
+    if (variable_get("themedev_lists_css", "0") == 1) {
+      $output .= theme('stylesheet_import', $path . 'lists.css');
+    }
+    
+    if (variable_get("themedev_table_css", "0") == 1) {
+      $output .= theme('stylesheet_import', $path . 'table.css');
+    }
+    
+    if (variable_get("themedev_deprecated1_css", "0") == 1) {
+      $output .= theme('stylesheet_import', $path . 'deprecated-xhtml1strict.css');
+    }
+    
+    if (variable_get("themedev_abused_css", "0") == 1) {
+      $output .= theme('stylesheet_import', $path . 'abused.css');
+    }
+    
+    if (variable_get("themedev_usability_css", "0") == 1) {
+      $output .= theme('stylesheet_import', $path . 'usability.css');
+    }
+    
+    // style the themedev block
+    $output .= theme('stylesheet_import', $path . 'themedevblock.css');
   }
+  
   return $output;
 }
 /**
