Index: theme/views_slideshow.theme.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/theme/Attic/views_slideshow.theme.inc,v retrieving revision 1.1.2.5.2.5 diff -u -p -r1.1.2.5.2.5 views_slideshow.theme.inc --- theme/views_slideshow.theme.inc 30 Jan 2011 06:59:06 -0000 1.1.2.5.2.5 +++ theme/views_slideshow.theme.inc 18 Feb 2011 18:09:20 -0000 @@ -9,6 +9,7 @@ */ function template_preprocess_views_slideshow(&$vars) { + static $instances = array(); $options = $vars['options']; $main_frame_module = $options['slideshow_type']; $settings = $options[$main_frame_module]; @@ -16,6 +17,10 @@ function template_preprocess_views_slide $rows = $vars['rows']; $num_divs = count($rows); $vss_id = $view->name . '-' . $view->current_display; + $instances[$vss_id]++; + if ($instances[$vss_id] > 1) { + $vss_id .= "_" . $instances[$vss_id]; + } $methods = module_invoke_all('views_slideshow_js_method_register'); drupal_add_js(array('viewsSlideshow' => array($vss_id => array('methods' => $methods, 'paused' => 0))), 'setting');