Index: diaporama.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/diaporama/diaporama.module,v
retrieving revision 1.1.2.8
diff -u -p -r1.1.2.8 diaporama.module
--- diaporama.module	27 Dec 2008 19:51:53 -0000	1.1.2.8
+++ diaporama.module	9 Jan 2009 18:08:30 -0000
@@ -735,11 +735,19 @@ function diaporama_view($node, $teaser =
 function theme_diaporama_order_info($node) {
 	global $base_url;
 	
+	(eregi('msie', $HTTP_USER_AGENT) && !eregi('opera', $HTTP_USER_AGENT))?$ie=1:$ie=0;
+	
   $output = '<div class="diaporama_order_info" style="text-align: center;">';
-  $output .= '<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' . $node->width . '" height="' . $node->height . '">
-<param name="movie" value="' . $base_url . "/" . variable_get('diaporama_default_path',file_directory_path() . '/diaporamas') . '/dewslider.swf?xml=' . $base_url . "/" . variable_get('diaporama_default_path',file_directory_path() . '/diaporamas') . '/diaporama_' . $node->nid . '.xml" />
-<param name="wmode" value="transparent" />
-<embed src="' . $base_url . "/" . variable_get('diaporama_default_path',file_directory_path() . '/diaporamas') . '/dewslider.swf?xml=' . $base_url . "/" . variable_get('diaporama_default_path',file_directory_path() . '/diaporamas') . '/diaporama_' . $node->nid . '.xml" wmode="transparent" width="' . $node->width . '" height="' . $node->height . '" name="diaporama' . $node->nid . '" TYPE="application/x-shockwave-flash" PLUGINSPACE="http://www.macromedia.com/go/getflashplayer"></embed>
+  $output .= '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' . $node->width . '" height="' . $node->height . '">
+<param name="movie" value="' . $base_url . "/" . variable_get('diaporama_default_path',file_directory_path() . '/diaporamas') . '/dewslider.swf?xml=' . $base_url . "/" . variable_get('diaporama_default_path',file_directory_path() . '/diaporamas') . '/diaporama_' . $node->nid . '.xml" />';
+  if(!$ie){
+	$output .= '<param name="wmode" value="transparent" />';
+  }
+  $output .= '<embed src="' . $base_url . "/" . variable_get('diaporama_default_path',file_directory_path() . '/diaporamas') . '/dewslider.swf?xml=' . $base_url . "/" . variable_get('diaporama_default_path',file_directory_path() . '/diaporamas') . '/diaporama_' . $node->nid . '.xml"';
+  if(!$ie){
+	$output .= ' wmode="transparent"';
+  }
+  $output .= ' width="' . $node->width . '" height="' . $node->height . '" name="diaporama' . $node->nid . '" TYPE="application/x-shockwave-flash" PLUGINSPACE="http://www.macromedia.com/go/getflashplayer"></embed>
 </object>';
   $output .= '</div>';
   return $output;
