private function themedCSSPath($name, $module = null)
 {
     // try to include from a loaded theme
     foreach (Themes::loaded_themes() as $theme) {
         $path = THEMEPATH . "{$theme}/css/{$name}";
         if (file_exists($path)) {
             return "themes/{$theme}/css/{$name}";
         }
     }
     // Try to include from fall back module
     if ($module and file_exists(DOCROOT . "{$module}/css/{$name}")) {
         return "{$module}/css/{$name}";
     }
     // Try to include from global media
     if (file_exists(DOCROOT . "media/css/{$name}")) {
         return "media/css/{$name}";
     }
 }