Index: /extensions/music_player/admin/admin.php
===================================================================
--- /extensions/music_player/admin/admin.php	(revision 3506)
+++ /extensions/music_player/admin/admin.php	(revision 3507)
@@ -6,13 +6,8 @@
 global $conf, $template, $lang, $page;
 global $prefixeTable;
-//include(get_language_filepath('plugin.lang.php', $m_p->plugin_path));
-	load_language('plugin.lang', $m_p->plugin_path);
+load_language('plugin.lang', $m_p->plugin_path);
 
 $page['infos'] = array();
 
-/*$template->assign_vars(
-  array(
-    'PLUGIN_PATH' => $m_p->plugin_path
-    )); */
 $template->assign(array(
 	'PLUGIN_PATH' 			=> $m_p->plugin_path, 
@@ -371,4 +366,5 @@
 
 ////envoi
+if (isset($_POST['envoi_config']) ){
 if ($_POST['envoi_config']=='lecteur')
 {
@@ -387,4 +383,6 @@
       $_POST['mp_autostart'],
       $_POST['mp_autoscroll'],
+      $_POST['style'],
+      $_POST['various_style'],
     );
   } 
@@ -402,4 +400,6 @@
       $_POST['mp_autostart'],
       $_POST['mp_autoscroll'],
+      $_POST['style'],
+      $_POST['various_style'],
     );
   }    
@@ -414,5 +414,5 @@
 //  $mp_msgs[] = $lang['mp_msg_admin_5'];
 array_push($page['infos'], l10n('mp_msg_admin_5'));
-}
+}}
 if (isset($_POST['envoi_config']) ){
 if ($_POST['envoi_config']=='plugin' or isset($_POST['foot']))
@@ -442,10 +442,11 @@
 if ($conf_lecteur[6]=='true') $repeat=$check;
 if ($conf_lecteur[8]=='true') $autoscroll=$check;
+if ($conf_lecteur[10]=='true') $various_style=$check;
 
 if ($conf_lecteur[7]!='0')
 {
-$rep = pwg_query('SELECT texte FROM '.MP_PLAYLIST.' WHERE id IN (\''.$conf_lecteur[7].'\') ;');
-$pl = mysql_fetch_array($rep);
-$txt=$pl['texte'];
+	$rep = pwg_query('SELECT texte FROM '.MP_PLAYLIST.' WHERE id IN (\''.$conf_lecteur[7].'\') ;');
+	$pl = mysql_fetch_array($rep);
+	$txt=$pl['texte'];
 }
 else {$txt="Defaut"; }
@@ -454,4 +455,55 @@
 if ($conf_plugin[1]=='true') $head=$check;
 if ($conf_plugin[2]=='true') $foot=$check;
+
+////////////////////////////////////////////////
+////////[ liste des styles globaux //////////
+////////////////////////////////////////////////
+	$fichier = array();
+	$dir = opendir('./plugins/music_player/template/style'); //ouvre le repertoire courant désigné par la variable
+     while(false!==($file = readdir($dir))){ //on lit tout et on récupere tout les dossiers dans $folder
+    
+     if(!in_array($file, array('.','..'))){ //on eleve le parent et le courant '. et ..'
+	  if(is_file($file)) { continue; }
+	  $page = $file; //sort l'extension du fichier
+      $page = explode('.', $page);
+      $nb = count($page);
+      $nom_fichier = $page[0];
+      for ($i = 1; $i < $nb-1; $i++){
+       $nom_fichier .= '.'.$page[$i];
+      }
+      if(isset($page[1])){
+       $ext_fichier = $page[$nb-1];
+      }
+      else {
+       $ext_fichier = '';
+      }
+    
+      if($ext_fichier == 'css') { //On ne prend que les css
+       array_push($fichier, $file);
+      }
+	 }//fin if in array
+     }//while
+    natcasesort($fichier); //la fonction natcasesort( ) est la fonction de tri standard sauf qu'elle ignore la casse
+    
+	
+	foreach($fichier as $file) {
+		if ($conf_lecteur[9]==$file)
+		{
+			
+			$template->append('list_style',
+				array('FILE' => $file,
+					  'TEXTE' => '->'.$file,
+					  ));
+		}
+		else
+		{
+			$template->append('list_style',
+			array('FILE' => $file,
+				  'TEXTE' => $file,
+				  ));
+		}
+	}
+
+
 ////assignement des valeurs
 $template->assign(
@@ -473,4 +525,5 @@
       'AUTOSTART_T' => $txt,
       'MP_AUTOSCROLL_ACTIVATED' => $autoscroll,
+      'MP_VARIOUS_STYLE' => $various_style,
     )
   );
Index: /extensions/music_player/class.inc.php
===================================================================
--- /extensions/music_player/class.inc.php	(revision 3506)
+++ /extensions/music_player/class.inc.php	(revision 3507)
@@ -37,5 +37,5 @@
  	 if (isset($conf_plugin)) {
 		$template->concat( 'PLUGIN_INDEX_ACTIONS',
-		  '<li><a href="javascript:void(0)" onClick="window.open(\''.get_root_url().'plugins/'.$this->plugin_name.'/lecteur.php\',\'musique\',\'width='.$conf_plugin[4].',height='.$conf_plugin[3].',top=400,left=400,menubar=no,resizable=yes,toolbar=no,status=no,alwaysRaised=yes\')" ><img src="'.get_root_url().'plugins/'.$this->plugin_name.'/template/icon/icon32.png" alt="Music Player" title="Play Music" class="button" /></a></li>');
+		  '<li><a href="javascript:void(0)" onClick="window.open(\''.get_root_url().'plugins/'.$this->plugin_name.'/lecteur.php\',\'musique\',\'width='.$conf_plugin[4].',height='.$conf_plugin[3].',top=400,left=400,toolbar=no,location=no,menubar=no,resizable=yes,status=no,alwaysRaised=yes\')" ><img src="'.get_root_url().'plugins/'.$this->plugin_name.'/template/icon/icon32.png" alt="Music Player" title="Play Music" class="button" /></a></li>');
 	  }
   }
@@ -59,5 +59,5 @@
 	    array_splice($block->data, $position-1, 0, array('mp' =>
 	      array(
-	        'URL' => 'javascript:void(0)'.'onClick="window.open(\''.get_root_url().'plugins/'.$this->plugin_name.'/lecteur.php\',\'musique\',\'width='.$conf_plugin[4].',height='.$conf_plugin[3].',top=400,left=400,menubar=no,resizable=yes,toolbar=no,status=no,alwaysRaised=yes\')" ',
+	        'URL' => 'javascript:void(0)'.'onClick="window.open(\''.get_root_url().'plugins/'.$this->plugin_name.'/lecteur.php\',\'musique\',\'width='.$conf_plugin[4].',height='.$conf_plugin[3].',top=400,left=400,toolbar=no,location=no,menubar=no,resizable=yes,status=no,alwaysRaised=yes\')" ',
 	        'TITLE' => l10n('lien_expl'),
 	        'NAME' => l10n('lien_titre')
Index: /extensions/music_player/lecteur.php
===================================================================
--- /extensions/music_player/lecteur.php	(revision 3506)
+++ /extensions/music_player/lecteur.php	(revision 3507)
@@ -76,5 +76,5 @@
 */
 include(PHPWG_ROOT_PATH.'include/page_header.php');
-	load_language('plugin.lang', $m_p->plugin_path);
+load_language('plugin.lang', $m_p->plugin_path);
 
 $template->assign(
@@ -118,8 +118,66 @@
 }
 // +-----------------------------------------------------------------------+
+// |                         Configuration du style                        |
+// +-----------------------------------------------------------------------+
+$conf_lecteur = explode("," , $conf['mp_lecteur']);
+
+if ($conf_lecteur[10]=='true')
+{
+	$file = 'lecteur.css';
+	$dir = LOCALEDIT_PATH.'template/style/';
+	$theme_file = $dir.$user['template'].'/'.$user['theme'].'/'.$file;
+	$template_file = $dir.$user['template'].'/'.$file;
+	
+	if (file_exists($theme_file))
+	{
+		$template->assign(array( 'STYLE_FILE' => $theme_file ) );
+	}
+	elseif (file_exists($template_file))
+	{
+		$template->assign(array( 'STYLE_FILE' => $template_file ) );
+	}
+	else
+	{
+		$template->assign(array( 'STYLE_FILE' => $dir.$conf_lecteur[9] ) );
+	}
+}
+else
+{
+	$template->assign(array( 'STYLE_FILE' => $dir.$conf_lecteur[9] ) );
+}
+if ($conf_lecteur[10]=='true')
+{
+
+	$file = 'lecteur.conf.php';
+	$dir = LOCALEDIT_PATH.'template/style/';
+	$theme_file = $dir.$user['template'].'/'.$user['theme'].'/'.$file;
+	$template_file = $dir.$user['template'].'/'.$file;
+	
+	if (file_exists($theme_file))
+	{
+		include($theme_file);
+	}
+	elseif (file_exists($template_file))
+	{
+		include($template_file) ;
+	}
+	else
+	{
+		$name = explode('.', $conf_lecteur[9]);
+		include_once($dir.$name[0].'.conf.php');
+	}
+}
+else
+{
+	$name = explode('.', $conf_lecteur[9]);
+	include_once($dir.$name[0].'.conf.php');
+}
+
+
+
+// +-----------------------------------------------------------------------+
 // |                         Configuration du lecteur                      |
 // +-----------------------------------------------------------------------+
 
-$conf_lecteur = explode("," , $conf['mp_lecteur']);
 
 if ($conf_lecteur[5]=='true') $shuffle=$conf_lecteur[5]; else $shuffle="false";
@@ -152,4 +210,7 @@
       'URL' => $url,
       'AUTOSCROLL' => $autoscroll,
+      'BACK_COLOR' => $BACK_COLOR,
+      'FRONT_COLOR' => $FRONT_COLOR,
+      'LIGHT_COLOR' => $LIGHT_COLOR,
     )
   );
Index: /extensions/music_player/maintain.inc.php
===================================================================
--- /extensions/music_player/maintain.inc.php	(revision 3506)
+++ /extensions/music_player/maintain.inc.php	(revision 3507)
@@ -45,5 +45,5 @@
 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
 	VALUES
-	("mp_lecteur" , "148,300,128,true,128,false,list,0,true" , "Lecteur config : haut tt, larg tt, haut pl, miniature, larg min, shuffle, repeat, autostart, autoscroll");';
+	("mp_lecteur" , "148,300,128,true,128,false,list,0,true,lecteur.css,true" , "Lecteur config : haut tt, larg tt, haut pl, miniature, larg min, shuffle, repeat, autostart, autoscroll, style, style pour chaque thème");';
     pwg_query($q);
 
@@ -109,5 +109,5 @@
 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
 	VALUES
-	("mp_lecteur" , "148,300,128,true,128,false,list,0,true" , "Lecteur config : haut tt, larg tt, haut pl, miniature, larg min, shuffle, repeat, autostart, autoscroll");';
+	("mp_lecteur" , "148,300,128,true,128,false,list,0,true,lecteur.css,true" , "Lecteur config : haut tt, larg tt, haut pl, miniature, larg min, shuffle, repeat, autostart, autoscroll, style, style pour chaque thème");';
     pwg_query($q);
    } 
@@ -121,5 +121,5 @@
    $nbr=count($conf);
    
-     if ($nbr!=9)
+     if ($nbr!=11)
      {
       pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param IN (\'mp_lecteur\')');
@@ -128,5 +128,5 @@
 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
 	VALUES
-	("mp_lecteur" , "148,300,128,true,128,false,list,0,true" , "Lecteur config : haut tt, larg tt, haut pl, miniature, larg min, shuffle, repeat, autostart, autoscroll");';
+	("mp_lecteur" , "148,300,128,true,128,false,list,0,true,lecteur.css,true" , "Lecteur config : haut tt, larg tt, haut pl, miniature, larg min, shuffle, repeat, autostart, autoscroll, style, style pour chaque thème");';
       pwg_query($q);
      }
Index: /extensions/music_player/player/v4/_notes/dwsync.xml
===================================================================
--- /extensions/music_player/player/v4/_notes/dwsync.xml	(revision 3507)
+++ /extensions/music_player/player/v4/_notes/dwsync.xml	(revision 3507)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<dwsync>
+<file name="readme.html" server="F:/Program Files/EasyPHP1-8/www/SITE/" local="128910844314062500" remote="128910844310000000" />
+</dwsync>
Index: /extensions/music_player/player/v4/readme.html
===================================================================
--- /extensions/music_player/player/v4/readme.html	(revision 3506)
+++ /extensions/music_player/player/v4/readme.html	(revision 3507)
@@ -25,5 +25,5 @@
 	<script type="text/javascript" src="swfobject.js"></script>
 	<script type="text/javascript">
-		var s1 = new SWFObject("player.swf","ply","328","200","9","#FFFFFF");
+		var s1 = new SWFObject("player.swf","playlist","328","200","9","#FFFFFF");
 		s1.addParam("allowfullscreen","true");
 		s1.addParam("allowscriptaccess","always");
Index: /extensions/music_player/player/v45/readme.html
===================================================================
--- /extensions/music_player/player/v45/readme.html	(revision 3507)
+++ /extensions/music_player/player/v45/readme.html	(revision 3507)
@@ -0,0 +1,85 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+
+	<title>JW Player for Flash</title>
+
+	<style type="text/css">
+		body { background-color: #fff; padding: 0 20px; color:#000; font: 13px/18px Arial, sans-serif; }
+		a { color: #360; }
+		h3 { padding-top: 20px; }
+		ol { margin:5px 0 15px 16px; padding:0; list-style-type:square; }
+	</style>
+
+</head>
+<body>
+
+	<h1>Welcome to the World of LongTail Video</h1>
+	<p>Thanks for downloading the JW FLV Player, just one of many products created by Jeroen "JW" Wijering and his company, <a href="http://www.longtailvideo.com">LongTail Video</a>.  Before you get started, let us tell you about a few other products that might interest you:</p>
+
+<ul>
+<li><a href="http://www.longtailvideo.com/players/jw-desktop-player/">Desktop Player</a> - Our sleek new desktop player is the best way to watch all your music and video files.  Plus, you can even search the web for videos without ever opening your browser.  <a href="http://www.longtailvideo.com/players/jw-desktop-player/">Download it now</a>.</li>
+<li><a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=oryixfvlxlptwph">AdSolution</a> - Monetize your videos with LongTail's AdSolution.  Integrate pre-roll, overlay mid-roll and post-roll ads into your site and starting making money today.  <a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=oryixfvlxlptwph">Sign up now</a>.</li>
+<li><a href="http://www.bitsontherun.com/via/longtailvideo">Bits on the Run</a> - Upload, encode, store, manage and stream your videos with Bits on the Run, LongTail's end-to-end video content management system.  <a href="http://www.bitsontherun.com/via/longtailvideo">Sign up now</a>.</li>
+<li><a href="http://www.longtailvideo.com/addons/plugins">Plugins</a> - Add functionality to your player, like analytics tracking, embed links, sharing and more.  <a href="http://www.longtailvideo.com/addons/plugins">Find one for you</a>.</li>
+<li><a href="http://www.longtailvideo.com/addons/skins">Skins</a> - Change the look of your player to match your site.  <a href="http://www.longtailvideo.com/addons/skins">View our library</a>.</li>
+</ul>
+
+
+	<h3>Licensing</h3>
+	<p>The player is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/">Creative Commons License</a>. It allows you to use, modify and redistribute the script, but only for <b>noncommercial</b> purposes. Examples of <b>commercial use</b> include: 
+	
+	<ul>
+	<li>websites with any advertisements; </li>
+	<li>websites owned or operated by corporations; </li>
+	<li>websites designed to promote other products, such as a band or artist;</li>
+	<li>products (e.g. a CMS) that bundle LongTail products into its offering. </li>
+	</ul>
+	
+	If any of the above conditions apply to you, <a href="http://www.longtailvideo.com/players/order" title="Order commercial licenses">please apply for a commercial license</a> now.  If you are still unsure whether you need to purchase a license, please <a href="http://www.longtailvideo.com/forum/">post your question</a> in the forum. </p>
+
+	<h3>Player Example</h3>
+	<p>Below you see a simple embedded example of the JW Player.  Copy and paste the source code and put the SWF, JS and FLV file on your site to get started.</p>
+
+	<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
+
+	<script type="text/javascript" src="swfobject.js"></script>
+	<script type="text/javascript">
+		swfobject.registerObject("player","9.0.98","expressInstall.swf");
+	</script>
+
+	<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="328" height="200">
+		<param name="movie" value="player.swf" />
+		<param name="allowfullscreen" value="true" />
+		<param name="allowscriptaccess" value="always" />
+		<param name="flashvars" value="file=video.flv&image=preview.jpg" />
+		<object type="application/x-shockwave-flash" data="player.swf" width="328" height="200">
+			<param name="movie" value="player.swf" />
+			<param name="allowfullscreen" value="true" />
+			<param name="allowscriptaccess" value="always" />
+			<param name="flashvars" value="file=video.flv&image=preview.jpg" />
+			<p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to see this player.</p>
+		</object>
+	</object>
+
+	<!-- END OF THE PLAYER EMBEDDING -->
+
+
+	<h3>Quickstart</h3>
+	<p>The easiest way to get to know the player is by using our <a href="http://www.longtailvideo.com/support/jw-player-setup-wizard">setup wizard</a>. Select an example, set the file or playlist you want to play and copy-paste the embed code to your site. If you want to play Youtube content in the player, you also have to copy the <b>yt.swf</b> file along with the player.swf or player-viral.swf.</p>
+
+	<p>If you need any help, please visit our extensive support section, including <a href="http://www.longtailvideo.com/support/faq">FAQs</a>, a string of <a href="http://www.longtailvideo.com/support/tutorials">tutorials</a> and a very active <a href="http://www.longtailvideo.com/support/forum">support forum</a>.</p>
+
+	<h3>Wiki and Source Code</h3>
+	<p>The <a href="http://developer.longtailvideo.com">Developer Wiki</a> contains a wealth of info about the player, including:</p>
+	<ol>
+		<li><a href="http://developer.longtailvideo.com/trac/wiki/FlashFormats">Supported file formats</a> (and playlists).</li>
+		<li><a href="http://developer.longtailvideo.com/trac/wiki/FlashVars">Supported flashvars</a> (for customizing the player).</li>
+		<li><a href="http://developer.longtailvideo.com/trac/wiki/FlashAPI">Supported API calls</a> (for actionscript / javascript interaction).</li>
+		<li><a href="http://developer.longtailvideo.com/trac/wiki/FlashSkinning">Supported skinning elements</a> (for creating your own graphics).</li>
+		<li><a href="http://developer.longtailvideo.com/trac/roadmap/">Roadmap with full changelogs</a> for each version.</li>
+	</ol>
+	<p>The source code of all different versions of the player can <a href="http://developer.longtailvideo.com/trac/browser/tags">be found here</a>. You can click a version and download the ZIP files (the links are at the bottom).</p>
+
+</body>
+</html>
Index: /extensions/music_player/player/v45/swfobject.js
===================================================================
--- /extensions/music_player/player/v45/swfobject.js	(revision 3507)
+++ /extensions/music_player/player/v45/swfobject.js	(revision 3507)
@@ -0,0 +1,5 @@
+/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
+	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
+	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
+*/
+var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();
Index: /extensions/music_player/template/admin.tpl
===================================================================
--- /extensions/music_player/template/admin.tpl	(revision 3506)
+++ /extensions/music_player/template/admin.tpl	(revision 3507)
@@ -80,4 +80,15 @@
       px <br />
       {'mp_admin_3_opt2_2'|@translate}</li>
+	<li>
+       {'mp_admin_3_opt9'|@translate}<br />
+       <select name="style">
+        {foreach from=$list_style item=ls}
+        <option value="{$ls.FILE}">{$ls.TEXTE}</option>
+        {/foreach}
+      </select>
+      <br />
+      <input type="checkbox" name="various_style" value="true" {$MP_VARIOUS_STYLE} />
+      {'mp_admin_3_opt10'|@translate}<br />
+    </li>
     <li>
       <input type="checkbox" name="mp_miniature" value="true" {$MP_MINIATURE_ACTIVATED} />
Index: tensions/music_player/template/lecteur.css
===================================================================
--- /extensions/music_player/template/lecteur.css	(revision 3506)
+++ 	(revision )
@@ -1,25 +1,0 @@
-#autre_content
-{
-width:100%;
-padding:0;
-margin:0;
-  }
-#content
-{
-margin-left: auto;
-margin-bottom:1em;
-width:100%;
-border:none;
-  }
-#the_page
-{
-width:100%;
-border:none;
-  }
-body {
-min-width: inherit;
-width:100%;
-}
-#cache
-{
-padding:5px}
Index: /extensions/music_player/template/lecteur.tpl
===================================================================
--- /extensions/music_player/template/lecteur.tpl	(revision 3506)
+++ /extensions/music_player/template/lecteur.tpl	(revision 3507)
@@ -1,3 +1,3 @@
-{html_head}<link rel="stylesheet" type="text/css" href="./template/lecteur.css">{/html_head}
+{html_head}<link rel="stylesheet" type="text/css" href="{$STYLE_FILE}">{/html_head}
 {html_head}<script type="text/javascript" src="./player/swfobject.js"></script>{/html_head}
 {html_head}<script type="text/javascript">
@@ -35,17 +35,28 @@
 {/if}
 
-<div id="content">
+<div id="content" class="content">
 <div id="autre_content">
-<div id="montre" style="display:block" align="center">
-  <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='none';document.getElementById('cache').style.display ='block'">{'mp_montre'|@translate}</a>
-</div>
-<div id="cache" style="display:none" align="center">
-  <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='block';document.getElementById('cache').style.display ='none'">{'mp_cache'|@translate}</a><br />
-  <ul>
-  {foreach from=$playlist item=playlist}<!-- BEGIN playlist -->
-    <li><a href="javascript:void(0)" onclick="javascript:loadFile({literal}{{/literal}file:'{$playlist.URL}'{literal}}{/literal})" >{$playlist.TEXTE}</a></li>
-  {/foreach}<!-- END playlist -->
-  </ul>
-</div>
+  <table id="table_content" border="0" cellspacing="0" cellpadding="0">
+    <tr>
+      <td id="section_up_left">&nbsp;</td>
+      <td id="section_up"><a href="#" id="close_button" onclick="window.close();" title="{'Close this window'|@translate}"><img src="template/icon/exit.png" class="button" alt="close"></a></li></ul></td>
+      <td id="section_up_right">&nbsp;</td>
+    </tr>
+    <tr>
+      <td id="section_left">&nbsp;</td>
+      <td id="section_in">
+	<div class="titrePage">
+        <div id="montre" style="display:block" align="center">
+          <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='none';document.getElementById('cache').style.display ='block'">{'mp_montre'|@translate}</a>
+        </div>
+        <div id="cache" style="display:none" align="center">
+          <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='block';document.getElementById('cache').style.display ='none'">{'mp_cache'|@translate}</a><br />
+          <ul>
+          {foreach from=$playlist item=playlist}<!-- BEGIN playlist -->
+            <li><a href="javascript:void(0)" onclick="javascript:loadFile({literal}{{/literal}file:'{$playlist.URL}'{literal}}{/literal})" >{$playlist.TEXTE}</a></li>
+          {/foreach}<!-- END playlist -->
+          </ul>
+        </div>
+  </div>
 <p align="center" id="player">
 <script type="text/javascript">
@@ -56,7 +67,7 @@
 	so.addVariable("enablejs","true");
 	so.addVariable("javascriptid","playlist");
-	so.addVariable('backcolor','0x000000');
-	so.addVariable('frontcolor','0xffffff');
-	so.addVariable('lightcolor','0x0099CC');
+	so.addVariable('backcolor','{$BACK_COLOR}');
+	so.addVariable('frontcolor','{$FRONT_COLOR}');
+	so.addVariable('lightcolor','{$LIGHT_COLOR}');
 	so.addVariable('linktarget','_blank');
     so.addParam("allowfullscreen","true");
@@ -74,5 +85,13 @@
 	so.write("player");
 </script></p>
-<p id="pageBottomActions"><a href="#" onclick="window.close();" title="{'Close this window'|@translate}"><img src="template/icon/exit.png" class="button" alt="close"></a></p>
+</td>
+	  <td id="section_right">&nbsp;</td>
+    </tr>
+    <tr>
+      <td id="section_bottom_left">&nbsp;</td>
+      <td id="section_bottom" >&nbsp;</td>
+      <td id="section_bottom_right" >&nbsp;</td>
+    </tr>
+  </table>
 </div>
 </div> <!-- the_page -->
Index: /extensions/music_player/template/lecteur_v4_5.tpl
===================================================================
--- /extensions/music_player/template/lecteur_v4_5.tpl	(revision 3507)
+++ /extensions/music_player/template/lecteur_v4_5.tpl	(revision 3507)
@@ -0,0 +1,81 @@
+{html_head}<link rel="stylesheet" type="text/css" href="./template/lecteur.css">{/html_head}
+{html_head}
+{literal}
+<style>#wrapper { position:absolute; left:50px; top:75px; width:300; height:196; }</style>
+<script type='text/javascript' src='./player/v45/swfobject.js'></script>
+<script type="text/javascript" defer="defer">
+
+
+function deletePlayer(theWrapper, thePlaceholder, thePlayerId) { 
+    swfobject.removeSWF(thePlayerId);
+    var tmp=document.getElementById(theWrapper);
+    if (tmp) { tmp.innerHTML = "<div id=" + thePlaceholder + "></div>"; }
+}
+
+
+function createPlayer(theWrapper, thePlaceholder, thePlayerId, theFile) { 
+	deletePlayer(theWrapper, thePlaceholder, thePlayerId);
+
+	var flashvars = {
+		file:theFile, 
+		autostart:"{/literal}{$AUTOSTART}{literal}",
+		playlist:"right",
+		playlistsize:"{/literal}{$H}{literal}"
+	}
+
+	var params = {
+		allowfullscreen:"true", 
+		allowscriptaccess:"always"
+	}
+
+	var attributes = {
+		id:thePlayerId,  
+		name:thePlayerId
+	}
+
+	swfobject.embedSWF("player/v45/player.swf", thePlaceholder, "{/literal}{$L_TT}{literal}", "{/literal}{$H_TT}{literal}", "9.0.115", false, flashvars, params, attributes);
+}
+{/literal}
+
+</script>{/html_head}
+
+{if $conf_plugin_1!='true' }
+{html_head}<style type="text/css">{literal}
+#theHeader
+{
+display:none;
+}
+{/literal}</style>{/html_head}
+{/if}
+{if $conf_plugin_2!='true' }
+{html_head}<style type="text/css">{literal}
+
+#copyright
+{
+display:none;
+}	
+	  </style>{/literal}{/html_head}
+{/if}
+
+<div id="content">
+
+<script language="javascript">
+createPlayer('wrapper1', 'placeholder1', 'player1', '{$URL}')
+</script>
+
+<div id="autre_content">
+<div id="montre" style="display:block" align="center">
+  <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='none';document.getElementById('cache').style.display ='block'">{'mp_montre'|@translate}</a>
+</div>
+<div id="cache" style="display:none" align="center">
+  <a href="javascript:void(0)" onclick="document.getElementById('montre').style.display ='block';document.getElementById('cache').style.display ='none'">{'mp_cache'|@translate}</a><br />
+  <ul>
+  {foreach from=$playlist item=playlist}<!-- BEGIN playlist -->
+    <li><a href="javascript:void(0)" onclick="javascript:createPlayer('wrapper1', 'placeholder1', 'player1', '{$playlist.URL}')" >{$playlist.TEXTE}</a></li>
+  {/foreach}<!-- END playlist -->
+  </ul>
+</div>
+<div id="wrapper1"><div id="placeholder1"></div></div>
+<p id="pageBottomActions"><a href="#" onclick="window.close();" title="{'Close this window'|@translate}"><img src="template/icon/exit.png" class="button" alt="close"></a></p>
+</div>
+</div> <!-- the_page -->
Index: /extensions/music_player/template/style/floPure/autumn/lecteur.conf.php
===================================================================
--- /extensions/music_player/template/style/floPure/autumn/lecteur.conf.php	(revision 3507)
+++ /extensions/music_player/template/style/floPure/autumn/lecteur.conf.php	(revision 3507)
@@ -0,0 +1,5 @@
+<?php
+$BACK_COLOR='0x3f540f';
+$FRONT_COLOR='0xffffff';
+$LIGHT_COLOR='0xedf2f2';
+?>
Index: /extensions/music_player/template/style/floPure/autumn/lecteur.css
===================================================================
--- /extensions/music_player/template/style/floPure/autumn/lecteur.css	(revision 3507)
+++ /extensions/music_player/template/style/floPure/autumn/lecteur.css	(revision 3507)
@@ -0,0 +1,45 @@
+#autre_content
+{
+width:100%;
+padding:0;
+margin:0;
+  }
+#content
+{
+margin-left: auto;
+margin-bottom:1em;
+width:100%;
+border:none;
+  }
+#the_page
+{
+width:100%;
+border:none;
+  }
+body {
+min-width: inherit;
+width:100%;
+}
+#cache
+{
+padding:5px
+}
+#close_button
+{
+	margin-right:10px;
+	margin-left:90%;
+}
+#table_content
+{
+	padding:15px;
+}
+#section_up
+{
+	padding-top:5px;
+	text-align:right;
+}
+#section_up A
+{
+	text-decoration:none;
+	border:none;
+}
Index: /extensions/music_player/template/style/lecteur.conf.php
===================================================================
--- /extensions/music_player/template/style/lecteur.conf.php	(revision 3507)
+++ /extensions/music_player/template/style/lecteur.conf.php	(revision 3507)
@@ -0,0 +1,5 @@
+<?php
+$BACK_COLOR='0x000000';
+$FRONT_COLOR='0xffffff';
+$LIGHT_COLOR='0x0099CC';
+?>
Index: /extensions/music_player/template/style/lecteur.css
===================================================================
--- /extensions/music_player/template/style/lecteur.css	(revision 3507)
+++ /extensions/music_player/template/style/lecteur.css	(revision 3507)
@@ -0,0 +1,45 @@
+#autre_content
+{
+width:100%;
+padding:0;
+margin:0;
+  }
+#content
+{
+margin-left: auto;
+margin-bottom:1em;
+width:100%;
+border:none;
+  }
+#the_page
+{
+width:100%;
+border:none;
+  }
+body {
+min-width: inherit;
+width:100%;
+}
+#cache
+{
+padding:5px
+}
+#close_button
+{
+	margin-right:10px;
+	margin-left:90%;
+}
+#table_content
+{
+	padding:15px;
+}
+#section_up
+{
+	padding-top:5px;
+	text-align:right;
+}
+#section_up A
+{
+	text-decoration:none;
+	border:none;
+}
