668a669,670
>  * @param tag
>  *   Multi-axis tag to allow multiple votes per node. 'vote' is the most common.
679c681
< function fivestar_vote($type, $cid, $value, $tag = 'vote') {
---
> function fivestar_vote($tag, $type, $cid, $value) {
715a718
>   $output .= '<tag>'. $tag .'</tag>';
730d732
< 
883c885
<               '#value' => fivestar_static('node', $node->nid, $node->type),
---
>               '#value' => fivestar_static('node', $node->nid, $tag, $node->type),
940,941c942,944
< function fivestar_widget_form($node) {
<   return drupal_get_form('fivestar_form_node_'. $node->nid, 'node', $node->nid);
---
> function fivestar_widget_form($node, $tag = 'vote') {
> /*hork*/
>   return drupal_get_form('fivestar_form', 'fivestar_form_node_'. $node->nid .'_'. $tag, 'node', $node->nid, $tag);
951c954
<     if ($form_id == 'fivestar_form_'. $args[0] .'_'. $args[1]) {
---
>     if ($args[0][0] == 'fivestar_form_'. $args[0][1] .'_'. $args[0][2] .'_'. $args[0][3]) {
961a965,966
>  * Added a $unknown to this, as the correct $tag arg is being passed after the $unknown arg, and
>  * I suck ass at PHP so badly that I don't know why.
963c968
< function fivestar_form(&$form_state, $content_type, $content_id) {
---
> function fivestar_form(&$form_state, $content_type, $content_id, $unknown, $tag) {
976c981
<   $votes = fivestar_get_votes($content_type, $content_id);
---
>   $votes = fivestar_get_votes($content_type, $content_id, $tag);
988a994
>     'tag' => $tag,
992c998,999
<     'title' => variable_get('fivestar_title_'. $node->type, 1) ? NULL : FALSE,
---
>     /*hork2*/
>     'title' => $tag,
998c1005
<   return fivestar_custom_widget($form_state, $values, $settings);  
---
>   return fivestar_custom_widget($form_state, $values, $settings, $tag);  
1001c1008
< function fivestar_static($content_type, $content_id, $node_type = NULL) {
---
> function fivestar_static($content_type, $content_id, $tag = 'vote', $node_type = NULL) {
1011c1018
<   $votes = fivestar_get_votes($content_type, $content_id);
---
>   $votes = fivestar_get_votes($content_type, $content_id, $tag);
1077c1084
< function fivestar_custom_widget(&$form_state, $values, $settings) {
---
> function fivestar_custom_widget(&$form_state, $values, $settings, $tag) {
1107c1114
<     '#auto_submit_path' => (!isset($settings['autosubmit']) || $settings['autosubmit']) ? 'fivestar/vote/'. $settings['content_type'] .'/'. $settings['content_id'] : NULL,
---
>     '#auto_submit_path' => (!isset($settings['autosubmit']) || $settings['autosubmit']) ? 'fivestar/vote/'. $settings['tag'] .'/'. $settings['content_type'] .'/'. $settings['content_id'] : NULL,
1113a1121
>     '#tag' => isset($settings['tag']) ? $settings['tag'] : 'vote',
1171c1179
<       $static_average = theme('fivestar_static', $values['average'], $settings['stars']);
---
>       $static_average = theme('fivestar_static', $values['average'], $settings['stars'], $settings['tag']);
1209c1217
<   if ($form_state['values']['form_id'] == 'fivestar_form_'. $form_state['values']['content_type'] .'_'. $form_state['values']['content_id']) {
---
>   if ($form_state['values']['form_id'] == 'fivestar_form_'. $form_state['values']['content_type'] .'_'. $form_state['values']['content_id'] .'_'. $form_values['vote']['#tag']) {
1211c1219
<     _fivestar_cast_vote($form_state['values']['content_type'], $form_state['values']['content_id'], $form_state['values']['vote']);
---
>     _fivestar_cast_vote($form_state['values']['content_type'], $form_state['values']['content_id'], $form_state['values']['vote'], $form_values['vote']['#tag']);
1291a1300,1303
>   $class = 'fivestar-form';
>   $class .= '-'. (isset($form['vote']['#tag']) ? $form['tag']['#tag'] : 'vote');
>   $class .= '-'. (isset($form['content_id']['#value']) ? $form['content_id']['#value'] : 0);
> 
1293c1305
<   $output .= '<div class="fivestar-form-'. (isset($form['content_id']['#value']) ? $form['content_id']['#value'] : 0) .' clear-block">';
---
>   $output .= '<div class="'. $class .' clear-block">';
1306a1319,1320
>  * @param $tag
>  *   Allows multiple ratings per node
1311c1325
< function theme_fivestar_static($rating, $stars = 5) {
---
> function theme_fivestar_static($rating, $stars = 5, $tag = 'vote') {
1316c1330
<   $output .= '<div class="fivestar-widget-static fivestar-widget-static-'. $stars .' clear-block">';
---
>   $output .= '<div class="fivestar-widget-static fivestar-widget-static-'. $stars .'-'. $tag .' clear-block">';
1422c1436
<       'titleAverage' => t('Average') .': ',
---
>       'titleAverage' => t('Averagebob') .': ',
1553c1567,1569
<   return theme('fivestar_static', $value, $stars);
---
> 
>   // TODO: Find a reliable way of determining the tag.
>   return theme('fivestar_static', $value, $stars, 'vote');
1569c1585
<   $votes = fivestar_get_votes($content_type, $content_id);
---
>   $votes = fivestar_get_votes($content_type, $content_id, $tag = 'vote');
