--- includes/media_brightcove.admin.inc	Thu Jan 15 01:13:00 1970
+++ includes/media_brightcove.admin.inc	Thu Jan 15 01:13:00 1970
@@ -65,6 +65,20 @@
     '#maxlength' => 13,
     '#suffix' => '<div id="media-brightcove-preview-player-id-preview"></div>',
   );
+  $form['player'][media_brightcove_variable_name('wmode')] = array(
+    '#type' => 'select',
+    '#title' => t('wmode Options'),
+    '#description' => t("Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser."),
+    '#default_value' => media_brightcove_variable_get('wmode'),
+    '#options' => array('window' => 'window', 'opaque'=> 'opaque', 'transparent' => 'transparent'),
+  );
+  $form['player'][media_brightcove_variable_name('allow_script_access')] = array(
+    '#type' => 'select',
+    '#title' => t('AllowScriptAccess Otions'),
+    '#description' => t("Controls the ability to perform outbound URL access from within the SWF file."),
+    '#default_value' => media_brightcove_variable_get('allow_script_access'),
+    '#options' => array('always' => 'always', 'sameDomain'=> 'sameDomain', 'never' => 'never'),
+  );
 
   $form['api'] = array(
     '#type' => 'fieldset',
--- themes/media_brightcove.theme.inc	Thu Jan 15 01:13:00 1970
+++ themes/media_brightcove.theme.inc	Thu Jan 15 01:13:00 1970
@@ -54,6 +54,8 @@
     $variables['div_id'] = 'media-brightcove-'. ($count++);
     $variables['classes'] = array('media-brightcove');
     $variables['availability'] = TRUE;
+    $variables['wmode'] = variable_get(media_brightcove_variable_name('wmode'), 'opaque');
+    $variables['allow_script_access'] = variable_get(media_brightcove_variable_name('allow_script_access'), 'always');
 
     // Display a message if a video is currently unavailable.
     if (media_brightcove_variable_get('check_for_unavailable') && media_brightcove_echove_path() && !media_brightcove_video_available($variables['video_id']) && ($unavailable_message = media_brightcove_variable_get('status_display_unavailable'))) {
@@ -84,7 +86,7 @@
         // @TODO: Tie this in.
         $autostart = $variables['options']['autoplay'] ? 'autoStart=true' : 'autoStart=false';
         $variables['output'] = <<<OUTPUT
-<object id="{$variables['object_id']}" width="{$variables['width']}" height="{$variables['height']}" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0"><param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/{$variables['player_id']}?isVid=1&isUI=1&publisherID={$variables['publisher_id']}" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="videoId={$variables['video_id']}&playerID={$variables['player_id']}&domain=embed&" /><param name="base" value="http://admin.brightcove.com" /><param name="seamlesstabbing" value="false" /><param name="allowFullScreen" value="true" /><param name="swLiveConnect" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://c.brightcove.com/services/viewer/federated_f9/{$variables['player_id']}?isVid=1&isUI=1&publisherID={$variables['publisher_id']}" bgcolor="#FFFFFF" flashVars="videoId={$variables['video_id']}&playerID={$variables['player_id']}&domain=embed&" base="http://admin.brightcove.com" name="flashObj" width="{$variables['width']}" height="{$variables['height']}" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>
+<object id="{$variables['object_id']}" width="{$variables['width']}" height="{$variables['height']}" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0"><param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/{$variables['player_id']}?isVid=1&isUI=1&publisherID={$variables['publisher_id']}" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="videoId={$variables['video_id']}&playerID={$variables['player_id']}&domain=embed&" /><param name="base" value="http://admin.brightcove.com" /><param name="seamlesstabbing" value="false" /><param name="allowFullScreen" value="true" /><param name="swLiveConnect" value="true" /><param name="allowScriptAccess" value="{$variables['allow_script_access']}" /><param name="wmode" value="{$variables['wmode']}" /><embed src="http://c.brightcove.com/services/viewer/federated_f9/{$variables['player_id']}?isVid=1&isUI=1&publisherID={$variables['publisher_id']}" bgcolor="#FFFFFF" flashVars="videoId={$variables['video_id']}&playerID={$variables['player_id']}&domain=embed&" base="http://admin.brightcove.com" name="flashObj" width="{$variables['width']}" height="{$variables['height']}" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>
 OUTPUT;
       }
     }
