--- visitorinfo.module	2010-07-24 12:50:48.000000000 -0500
+++ visitorinfo/visitorinfo.module	2010-09-16 09:09:31.000000000 -0500
@@ -1,5 +1,5 @@
 <?php
-// $Id: visitorinfo.module,v 1.6 2010/07/24 17:50:48 twooten Exp $
+// $Id: visitorinfo.module,v 1.7 2010/09/16 14:09:31 twooten Exp $
 
 /**
  * @file
@@ -86,9 +86,12 @@ function visitorinfo_initialize () {
   $start_zoom = variable_get('visitorinfo_start_zoom', '2'); // 2 will show whole map
   $start_lat = variable_get('visitorinfo_start_lat', '39.467864');
   $start_long = variable_get('visitorinfo_start_long', '-99.843750');
+  $disable_scroll_wheel = variable_get('visitorinfo_disable_zoom', '0');
   drupal_add_js(array('startZoom' => $start_zoom), 'setting'); 
   drupal_add_js(array('centerLatitude' => $start_lat), 'setting');
   drupal_add_js(array('centerLongitude' => $start_long), 'setting');
+  drupal_add_js(array('disableScrollZoom' => $disable_scroll_wheel), 'setting');
+  
   // include js for map functions
   drupal_add_js(drupal_get_path('module','visitorinfo') . '/visitorinfo.js');
   // include the .css file
@@ -359,6 +362,13 @@ function visitorinfo_settings() {
       '#options' => drupal_map_assoc(range(0, 17)),
       '#default_value' => variable_get('visitorinfo_start_zoom', '2'),
     );
+
+    $form['visitorinfo_markers']['visitorinfo_disable_zoom'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Disable Scroll wheel Zoom'),
+      '#description' => t('Check the box to disable scroll wheel zoom'),
+      '#default_value' => variable_get('visitorinfo_disable_zoom', '0'),
+    );
     
     $form['visitorinfo_markers']['visitorinfo_start_lat'] = array(
       '#type' => 'textfield',
