

function video(url_film, lecteur)
{
var repertoire_lecteur = "/artpublic/outils/videos/";
var repertoire_video = "/artpublic/bibliotheque/videos/";
var nom_lecteur1 = "lecteur_video.swf";
var nom_lecteur2 = "player.swf";
var w1 = "400";
var h1 = "326";
var w2 = "180";
var h2 = "160";
var w3 = "220";
var h3 = "150";

  if (lecteur == 1)
  {
   nom_lecteur = nom_lecteur1;
   largeur = w1;
   hauteur = h1;
   variable = 'flv='+repertoire_video+url_film+'&title=chargement en cours ...&width='+largeur+'&height='+hauteur+'&loop=1&autoplay=0&autoload=0&volume=25&margin=1&bgcolor1=330000&showvolume=1&showtime=1&showfullscreen=1&buffershowbg=0&titlesize=14&ondoubleclick=fullscreen&showmouse=autohide&playertimeout=3000';
  }
  else if (lecteur == 3)
  {
   nom_lecteur = nom_lecteur2;
   largeur = w3;
   hauteur = h3;
   variable = 'image='+repertoire_lecteur+'vdo.png&stretching=fill&file='+repertoire_video+url_film+'&width='+largeur+'&height='+hauteur+'&loop=1&autoplay=0&autoload=0&volume=0&margin=1&bgcolor1=330000&showplayer=never&buffershowbg=0&titlesize=8&ondoubleclick=none&showmouse=autohide&playertimeout=3000';
 }
  else
  {
   nom_lecteur = nom_lecteur2;
   largeur = w2;
   hauteur = h2;
   variable = 'image='+repertoire_lecteur+'vdo.png&stretching=fill&file='+repertoire_video+url_film+'&width='+largeur+'&height='+hauteur+'&loop=1&autoplay=0&autoload=0&volume=0&margin=1&bgcolor1=330000&showplayer=never&buffershowbg=0&titlesize=8&ondoubleclick=none&showmouse=autohide&playertimeout=3000';
 }


 var insertion = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+largeur+'" height="'+hauteur+'" id="lecteur-flash" align="middle">'
+ '<param name="allowScriptAccess" value="sameDomain" />'
+ '<param name="movie" value="'+repertoire_lecteur+nom_lecteur+'" />'
+ '<param name="flashvars" value="'+variable+'" />'
+ '<param name="quality" value="high" />'
+ '<param name="volume" value="10" />  '
+ '<embed src="'+repertoire_lecteur+nom_lecteur+'" flashvars="'+variable+'" quality="high" allowFullScreen="true" width="'+largeur+'" height="'+hauteur+'" name="lecteur_flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';

 document.write(insertion);   // intégrer le clip Flash

}



