function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}

function putVideo(videoURL, videoWidth, videoHeight, videoTitre, PageURL, PageDate, IdVideo){
	if (videoHeight == 180 && videoWidth == 320){
		var LecteurVideo = "LecteurVideo320x180";
		var videoHeight = 230;
		var videoWidth = 340;
	}
	else if (videoHeight == 240 && videoWidth == 320){
		var LecteurVideo = "LecteurVideo320x240";
		var videoHeight = 290;
		var videoWidth = 340;
	}
	else if(videoHeight == 300 && videoWidth == 400) {
		var LecteurVideo = "LecteurVideo400x300";
		var videoHeight = 350;
		var videoWidth = 418;
		}
	else{
		var LecteurVideo = "LecteurVideo428x240";
		var videoHeight = 290;
		var videoWidth = 450;
		}
	var videoWidthModifDiv = videoWidth - 15;
	var videoWidthModif = videoWidth - 25;
	
 with(navigator)
 {
  var isIexplore  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);

  if (isIexplore)
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+videoWidth+'" height="'+videoHeight+'" id="FLVPlayer" type="application/x-shockwave-flash">');
  else
   document.write('<object data="/players/'+LecteurVideo+'.swf" width="'+videoWidth+'" height="'+videoHeight+'" id="FLVPlayer" type="application/x-shockwave-flash">');
 }	
 document.write('<param name="movie" value="/players/'+LecteurVideo+'.swf" />');
 document.write('<param name="salign" value="lt" />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="scale" value="noscale" />');
 document.write('<param name="FlashVars" value="streamName='+videoURL+'" />');
 document.write('</object>');
 document.write('<p class="videoblog"><a href="" onclick="javascript:showElement(\''+IdVideo+'\');return false;" >Publiez cette vidéo sur votre blog</a></p>');
 document.write('<div class="videoblog" id="'+IdVideo+'" style="display:none;"><ul><li><label for="embededcode">Copiez-collez le code ci-dessous et intégrez-le sur votre blog</label><li><input id="embededcode" type="text" value="&lt;div&gt;&lt;object data=&quot;http://www.awt.be/players/'+LecteurVideo+'Externe.swf&quot; id=&quot;FLVPlayer&quot; height=&quot;'+videoHeight+'&quot; width=&quot;'+videoWidth+'&quot; type=&quot;application/x-shockwave-flash&quot;&gt; &lt;param name=&quot;movie&quot; value=&quot;http://www.awt.be/players/'+LecteurVideo+'Externe.swf&quot; /&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;&lt;param name=&quot;FlashVars&quot; value=&quot;streamName=http://www.awt.be'+videoURL+'&quot; /&gt;&lt;embed src=&quot;http://www.awt.be/players/'+LecteurVideo+'Externe.swf&quot; flashvars=&quot;streamName=http://www.awt.be'+videoURL+'&quot; width=&quot;'+videoWidth+'&quot; height=&quot;'+videoHeight+'&quot; name=&quot;FLVPlayer&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot;&gt;&lt;/embed&gt;&lt;/object&gt; &lt;br /&gt; &lt;a href=&quot;http://www.awt.be/web/'+PageURL+'&quot;&gt;'+videoTitre+'&lt;/a&gt;&lt;br/&gt;Post&eacute;&nbsp;le&nbsp;'+PageDate+'&nbsp;sur&nbsp;&lt;a&nbsp;href=&quot;http://www.awt.be&quot;&gt;www.awt.be&lt;/a&gt;&lt;/div&gt;" onclick="this.focus();this.select();" readonly /></li></ul></div>');
}

function putVideoUne(LecteurVideo, videoURL, videoWidth, videoHeight){
	if (videoHeight == 210 && videoWidth == 320){
		var LecteurVideo = "/players/LecteurVideoUne320x180.swf";
		//var videoHeight = 210;
		//var videoWidth = 320;
	}
	else if (videoHeight == 270 && videoWidth == 320){
		var LecteurVideo = "/players/LecteurVideoUne320x240.swf";
		//var videoHeight = 270;
		//var videoWidth = 320;
	}
	else {
		var LecteurVideo = "/players/LecteurVideoUne428x240.swf";
		//var videoHeight = 270;
		//var videoWidth = 428;
		}
	
 with(navigator)
 {
  var isIexplore  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);

  if (isIexplore)
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+videoWidth+'" height="'+videoHeight+'" id="FLVPlayer">');
  else
   document.write('<object data="'+LecteurVideo+'" width="'+videoWidth+'" height="'+videoHeight+'" id="FLVPlayer">');
 }	
 document.write('<param name="movie" value="'+LecteurVideo+'" />');
 document.write('<param name="salign" value="lt" />');
 document.write('<param name="wmode" value="transparent">');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="scale" value="noscale" />');
 document.write('<param name="FlashVars" value="streamName='+videoURL+'" />');
 document.write('</object>');

}
MM_CheckFlashVersion('8,0,0,0','Le contenu de cette page ncessite une version plus rcente de Macromedia Flash Player. Voulez-vous le tlcharger maintenant ?');