--- event.module.orig	2009-12-04 01:58:02.630196745 -0600
+++ event.module	2009-12-04 01:55:26.316199447 -0600
@@ -8,16 +8,17 @@
  * Includes files needed for this module
  * @ingroup event_support
  */
-function event_include_files() {
+function event_include_files($load_css=TRUE) {
   include_once(EVENT_PATH .'/event.theme');
   global $db_type;
   include_once(EVENT_PATH ."/event_database.$db_type.inc");
 
-  if (file_exists($file = path_to_theme() .'/event.css')) {
-    drupal_add_css($file);
-  }
-  else {
-    $css = drupal_add_css(EVENT_PATH .'/event.css');
+  if ($load_css) {
+      if (file_exists($file = path_to_theme() .'/event.css')) {
+          drupal_add_css($file);
+      } else {
+          $css = drupal_add_css(EVENT_PATH .'/event.css');
+      }
   }
   
 }
@@ -31,7 +32,7 @@
  * @ingroup event_core
  */
 function event_theme() {
-  event_include_files();
+  event_include_files(FALSE);
   return array(
     'event' => array(
       'arguments' => array('element' => NULL),
@@ -394,7 +395,7 @@
  * @return the content for the event page.
  */
 function event_page($year = NULL, $month = NULL, $day = NULL, $view = NULL, $types = NULL, $tids = NULL, $duration = NULL) {
-  event_include_files();
+    event_include_files();
 
   // get local date value
   $now = _event_user_date();
@@ -1247,7 +1248,7 @@
  * @return a database resource
  */
 function event_get_events($first, $last, $order = 'ASC', $rewrite_parameter = array()) {
-  event_include_files();
+    event_include_files(FALSE);
   switch (variable_get('event_timezone_display', 'event')) {
     case 'user':
       $result = event_get_events_user($first, $last, $order, $rewrite_parameter);
@@ -1274,7 +1275,7 @@
  * @param $type either 'start' or 'end'
  */
 function event_select($type = 'start') {
-  event_include_files();
+    event_include_files(FALSE);
   switch (variable_get('event_timezone_display', 'event')) {
     case 'user':
       $result = event_where_user($type) .' AS event_'. $type;
@@ -1300,7 +1301,7 @@
  * @param $type either 'start' or 'end'
  */
 function event_where($type = 'start') {
-  event_include_files();
+  event_include_files(FALSE);
   switch (variable_get('event_timezone_display', 'event')) {
     case 'user':
       $result = event_where_user($type);
@@ -2281,7 +2282,7 @@
     switch ($op) {
       case 'load':
         global $user;
-        event_include_files();
+        event_include_files(FALSE);
         $object = event_get_event_load($node->nid);
 
         return array('event' => array(
