function embed_direct(fichier_embed, type_embed, largeur_embed, hauteur_embed, post_args){
with (document){
write("<embed src=\""+fichier_embed+"\"");
switch (type_embed){
case "director":
site_embed="http://www.macromedia.com/shockwave/download/";
type_embed="application/x-director";
break;
case "flash":
write(" quality=\"high\"");
site_embed="http://www.macromedia.com/go/getflashplayer";
type_embed="application/x-shockwave-flash";
break;
case "video":
site_embed="http://www.microsoft.com/Windows/MediaPlayer";
type_embed="application/x-mplayer2";
break;
}
write(" pluginspage=\""+site_embed+"\" type=\""+type_embed+"\"");
if (largeur_embed!=""){ write(" width=\""+largeur_embed+"\""); }
if (hauteur_embed!=""){ write(" height=\""+hauteur_embed+"\""); }
write(" border=\"0\" autostart=\"true\"");
if (typeof(post_args)!="undefined"){ write(" "+post_args); }
write("></embed>");
}
}
function WMP_direct(fichier_WMP, nom_WMP, largeur_WMP, hauteur_WMP, AutoStart_WMP){
document.write("<object name=\""+nom_WMP+"\" id=\""+nom_WMP+"\" width=\""+largeur_WMP+"\" height=\""+hauteur_WMP+"\" classid=\"clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6\" type=\"application/x-oleobject\">\n<param name=\"URL\" value=\""+fichier_WMP+"\"/>\n<param name=\"AutoStart\" value=\""+AutoStart_WMP+"\"/>\n</object>");
}

