$(document).ready(function(){
	$(".weeblocks a").each(function(i){
	  var strPlayer = '';
	  if (this.href.indexOf('.mp3') != -1){  	
		$(this).css('display','none');
		strPlayer = '<object width="200" height="32" data="/img/audio.swf?son='+this.href+'" type="application/x-shockwave-flash">';
		strPlayer += '<param value="/img/audio.swf?son='+this.href+'" name="movie" />';
		strPlayer += '<param value="transparent" name="wmode" />';
		strPlayer += '</object>';
		$(this).after(strPlayer);
	  }else if (this.href.indexOf('.flv') != -1){
		$(this).css('display','none');
		strPlayer = '<object type="application/x-shockwave-flash" data="/gfx/img/player_flv_maxi.swf" width="320" height="240">';
		strPlayer += '<param name="movie" value="/gfx/img/player_flv_maxi.swf" />';
		strPlayer += '<param name="FlashVars" value="flv='+this.href+'&width=320&height=240&showstop=1&showvolume=1&showtime=1&startimage='+$('img',this).attr('src')+'&showfullscreen=1&bgcolor1=6FA9D9&bgcolor2=26679B&playercolor=27689C" />';
		strPlayer += '<param value="true" name="allowFullScreen" />';
		strPlayer += '</object>';		
		$(this).after(strPlayer);
	  }else if (this.href.indexOf('.divx') != -1){
	    $(this).css('display','none');
	    strPlayer = '<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="320" height="260" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">';
		strPlayer += '<param name="minVersion" value="1.3.0" />';
		strPlayer += '<param name="autoPlay" value="false" />'; 
		strPlayer += '<param name="src" value="'+this.href+'" />'; 
		strPlayer += '<embed type="video/divx" minVersion="1.3.0" src="'+this.href+'" width="320" height="260" autoPlay="false"  pluginspage="http://go.divx.com/plugin/download/"></embed></object>';
		strPlayer += '<br>Pas de vid&eacute;o ? -> <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayerInstaller.exe">Windows</a> or <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayer.dmg">Mac</a>';
	  	$(this).after(strPlayer);
	  }
	});
});


 
  




