Index: flashvideo_objects.inc
===================================================================
--- flashvideo_objects.inc	(revision 333)
+++ flashvideo_objects.inc	(revision 335)
@@ -507,4 +507,164 @@
   return $output;
 }
 
-?>
+/**
+ * Play videos from an MP3 audio (audio/mpeg) format using button.swf.
+ * The optimal width x height is 17x17.
+ *
+ * @param $audio 
+ *   object with audio information
+ *
+ * @return
+ *   string of content to display
+ */
+function theme_flashvideo_play_button($audio) {
+
+  // Get the output directory.
+  $output_dir = variable_get('flashvideo_'.$audio['nodetype'].'_outputdir', '');
+  $output_dir = ($output_dir == '') ? $output_dir : ($output_dir . '/');
+  
+  // Creates an absolute path for the player.  
+  $loader_path = check_url(file_create_url(
+    $output_dir .
+    variable_get('flashvideo_'. $audio['nodetype']. '_player', 'Player.swf')
+  ));
+  
+  // Get the window mode.
+  $wmode = '';
+  $wmode_param = '';
+  switch(variable_get('flashvideo_' . $audio['nodetype'] . '_mode', 'window')) {
+    case 'transparent':
+      $wmode = ' wmode="transparent"';
+      $wmode_param = '<param name="wmode" value="transparent" />';
+      break;
+    case 'window':
+      $wmode = ' wmode="window" allowfullscreen="true"';
+      $wmode_param = '<param name="wmode" value="window" />'.
+                     '<param name="allowfullscreen" value="true" />'; 
+      break; 
+  }
+
+  // Set some Flash variables.
+  $flashvars = 'song_url=' . $audio['file'];
+
+  // Create a URL from the loader & the Flash variables.
+  $url = $loader_path . '?' . $flashvars;
+
+  // Put the HTML block together.
+  $output .= '<object '.
+               'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '.
+               'width="'.$audio['width'].'" '.
+               'height="'.$audio['height'].'" '.
+               'codebase="http://download.macromedia.com'.
+                         '/pub/shockwave/cabs/flash/swflash.cab" '.
+               'data="'.$url.'"'.
+             '>';
+  $output .=   '<param name="movie" value="'. $url .'" />'.
+               $wmode_param .
+               '<param name="FlashVars" value="'.$flashvars.'" />'.
+               '<param name="quality" value="high" />';
+  $output .=   '<embed allowScriptAccess="always" '.
+                 'src="'. $loader_path .'" '.
+                 'width="'.$audio['width'].'" '.
+                 'height="'.$audio['height'].'" '.
+                 'border="0" '.
+                 'type="application/x-shockwave-flash" '.
+                 'pluginspage="http://www.macromedia.com/go/getflashplayer"'.
+                 $wmode . ' '.
+                 'quality="high" '.
+                 'flashvars="'.$flashvars.'" '.
+               '/>';
+  $output .= '</object>';
+
+  // Theme the output & return it.
+  $output = _theme_flashvideo_format_play(
+    $audio['nodetype'],
+    $output,
+    t('http://www.macromedia.com/go/getflashplayer'),
+    t('Link to Macromedia Flash Player Download Page'),
+    t('Download latest Flash Player')
+  );
+  return $output;
+}
+
+/**
+ * Play videos from an MP3 audio (audio/mpeg) format using 1pixelout.swf.
+ * The optimal width x height is 290x24.
+ *
+ * @param $audio 
+ *   object with audio information
+ *
+ * @return
+ *   string of content to display
+ */
+function theme_flashvideo_play_1pixelout($audio) {
+
+  // Get the output directory.
+  $output_dir = variable_get('flashvideo_'.$audio['nodetype'].'_outputdir', '');
+  $output_dir = ($output_dir == '') ? $output_dir : ($output_dir . '/');
+  
+  // Creates an absolute path for the player.  
+  $loader_path = check_url(file_create_url(
+    $output_dir .
+    variable_get('flashvideo_'. $audio['nodetype']. '_player', 'Player.swf')
+  ));
+  
+  // Get the window mode.
+  $wmode = '';
+  $wmode_param = '';
+  switch(variable_get('flashvideo_' . $audio['nodetype'] . '_mode', 'window')) {
+    case 'transparent':
+      $wmode = ' wmode="transparent"';
+      $wmode_param = '<param name="wmode" value="transparent" />';
+      break;
+    case 'window':
+      $wmode = ' wmode="window" allowfullscreen="true"';
+      $wmode_param = '<param name="wmode" value="window" />'.
+                     '<param name="allowfullscreen" value="true" />'; 
+      break; 
+  }
+
+  // Set some Flash variables.
+  $flashvars = 'soundFile=' . $audio['file'];
+
+  // Create a URL from the loader & the Flash variables.
+  $url = $loader_path . '?' . $flashvars;
+
+  // Put the HTML block together.
+  $output .= '<object '.
+               'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '.
+               'width="'.$audio['width'].'" '.
+               'height="'.$audio['height'].'" '.
+               'codebase="http://download.macromedia.com'.
+                         '/pub/shockwave/cabs/flash/swflash.cab" '.
+               'data="'.$url.'"'.
+             '>';
+  $output .=   '<param name="movie" value="'. $url .'" />'.
+               $wmode_param .
+               '<param name="FlashVars" value="'.$flashvars.'" />'.
+               '<param name="quality" value="high" />'.
+               '<param name="menu" value="false" />';
+  $output .=   '<embed allowScriptAccess="always" '.
+                 'src="'. $loader_path .'" '.
+                 'width="'.$audio['width'].'" '.
+                 'height="'.$audio['height'].'" '.
+                 'border="0" '.
+                 'menu="false" '.
+                 'type="application/x-shockwave-flash" '.
+                 'pluginspage="http://www.macromedia.com/go/getflashplayer"'.
+                 $wmode . ' '.
+                 'quality="high" '.
+                 'flashvars="'.$flashvars.'" '.
+               '/>';
+  $output .= '</object>';
+
+  // Theme the output & return it.
+  $output = _theme_flashvideo_format_play(
+    $audio['nodetype'],
+    $output,
+    t('http://www.macromedia.com/go/getflashplayer'),
+    t('Link to Macromedia Flash Player Download Page'),
+    t('Download latest Flash Player')
+  );
+  return $output;
+}
