Index: yui.module
===================================================================
--- yui.module	(revision 1202)
+++ yui.module	(working copy)
@@ -28,10 +28,6 @@
  * implementation of hook_init().
  */
 function yui_init() {
-  require_once './includes/common.inc';
-  $skin = variable_get('yui_skin', 'yui-skin-sam');
-
-  drupal_add_js("if (Drupal.jsEnabled) { $(document).ready(function() { $('body').addClass('$skin'); } ); };", "inline");
 }
 
 /*
@@ -68,6 +64,10 @@
       'type' => MENU_NORMAL_ITEM,
 		);
 	}
+  else {
+    $skin = variable_get('yui_skin', 'yui-skin-sam');
+    drupal_add_js("if (Drupal.jsEnabled) { $(document).ready(function() { $('body').addClass('$skin'); } ); };", "inline");
+  }
 	return $items;
 }
 
