diff --git a/sites/default/modules/contrib/cloud_zoom/cloud_zoom.module b/sites/default/modules/contrib/cloud_zoom/cloud_zoom.module
index 767f472..b565d4a 100644
--- a/sites/default/modules/contrib/cloud_zoom/cloud_zoom.module
+++ b/sites/default/modules/contrib/cloud_zoom/cloud_zoom.module
@@ -111,6 +111,7 @@ function theme_cloud_zoom_image($variables) {
   // Add the cloud zoom JS and CSS
   drupal_add_js(drupal_get_path('module', 'cloud_zoom') . '/cloud-zoom/cloud-zoom.1.0.2.js');
   drupal_add_css(drupal_get_path('module', 'cloud_zoom') . '/cloud-zoom/cloud-zoom.css');
+  drupal_add_js(drupal_get_path('module', 'cloud_zoom') . '/js/cloud-zoom.js');
 
   $item = $variables['item'];
   $count = $variables['count'];
diff --git a/sites/default/modules/contrib/cloud_zoom/js/cloud-zoom.js b/sites/default/modules/contrib/cloud_zoom/js/cloud-zoom.js
new file mode 100644
index 0000000..ca21dbc
--- /dev/null
+++ b/sites/default/modules/contrib/cloud_zoom/js/cloud-zoom.js
@@ -0,0 +1,10 @@
+(function ($) {
+  Drupal.behaviors.productImages = {
+    attach: function(context) {
+      // Check if we are on a product detail page.
+      if ($('.cloud-zoom').size() > 0) {
+        $('.cloud-zoom, .cloud-zoom-gallery').CloudZoom();
+      }
+    }
+  };
+})(jQuery);
\ No newline at end of file
