Index: voting.module
===================================================================
--- voting.module	(revision 64)
+++ voting.module	(working copy)
@@ -321,11 +321,15 @@
 function theme_voting_control_flash($content_type, $content_id, $attributes = array()) {
   global $user;
   
-  // optional user_access() dependent variables
-  if (user_access('vote on content') && user_access('show average without voting')) {
-    $mode = 'show_avg_first';
-  } elseif (user_access('show average without voting')) {
-    $mode = 'show_avg_only';
+  if (isset($attributes['mode'])) $mode = $attributes['mode']; 
+  
+  if (!$mode) {
+      // optional user_access() dependent variables
+      if (user_access('vote on content') && user_access('show average without voting')) {
+        $mode = 'show_avg_first';
+      } elseif (user_access('show average without voting')) {
+        $mode = 'show_avg_only';
+      }
   }
 	
 	// optional variables set from administer/settings/voting
@@ -589,4 +593,4 @@
 		}
 	}
 }
-?>
+?>
\ No newline at end of file
