Index: chrome_frame.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/chrome_frame/chrome_frame.module,v
retrieving revision 1.3
diff -u -r1.3 chrome_frame.module
--- chrome_frame.module	23 Sep 2009 19:08:59 -0000	1.3
+++ chrome_frame.module	5 Oct 2009 18:44:25 -0000
@@ -37,6 +37,16 @@
     ),
     '#default_value' => variable_get('chrome_frame_prompt', 0),
   );
+  $form['chrome_frame_mode'] = array(
+    '#title' => t('Mode'),
+    '#type' => 'select',
+    '#options' => array(
+      'inline' => t('Inline'),
+      'popup' => t('Popup'),
+    ),
+    '#description' => t('How the user should be prompted when Google Chrome Frame is missing. Using a Popup will result in creating a new window for the prompt.'),
+    '#default_value' => variable_get('chrome_frame_mode', 'inline'),
+  );
   return system_settings_form($form);
 }
 
@@ -53,26 +63,28 @@
  * Implements hook_footer().
  */
 function chrome_frame_footer($main = 0) {
+  // Construct the options passed to the CFInstall check function.
+  $options = drupal_to_js(array(
+    'node' => 'chrome-frame',
+    'mode' => variable_get('chrome_frame_mode', 'inline'),
+  ));
+
   switch (variable_get('chrome_frame_prompt', 0)) {
     case 2:
       // always prompt
-      return '<div id="chrome_frame"></div>
+      return '<div id="chrome-frame"></div>
 <script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js" type="text/javascript"></script>
 <script type="text/javascript">
-    CFInstall.check({
-      node: "chrome_frame"
-    });
+    CFInstall.check('. $options .');
 </script>';
       break;
     case 1:
       // prompt only for IE 6
-      return '<div id="chrome_frame"></div>
+      return '<div id="chrome-frame"></div>
 <!--[if lte IE 6]>
 <script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js" type="text/javascript"></script>
 <script type="text/javascript">
-    CFInstall.check({
-      node: "chrome_frame"
-    });
+    CFInstall.check('. $options .');
 </script>
 <![endif]-->';
       break;
