function genobj_version(){var ver="$Revision: 1.11 $";document.write(ver.replace(/[\$|:]/g,""));};function checkInt(val){return val.replace(/(\D)+/g,"");};function ShowSource(str){var el2=document.getElementById("srccode");str=str.replace(/[<]+/g,"<");str=str.replace(/[>]+/g,">");str=str.replace(/[\n]+/g,"
");el2.innerHTML=str;};function swfGenCode(){var objStr="";var strEmbed="\n";strEmbed+=" wmode=\""+el.options[el.selectedIndex].value+"\"";for(var i=0;i-1)u=u.substring(0,u.indexOf("?"));if(u.indexOf("/")>-1){u=u.substring(0,u.lastIndexOf("/")+1);paramStr+="\n";strEmbed+=" base=\""+u+"\"";};default:paramStr+="\n";break;}}}el=document.getElementById("objcode");objStr=objStr+">"+paramStr+strEmbed+">\n";ShowSource(objStr);el.innerHTML=objStr;};function pdfGenCode(){var objStr="\n";break;}}}el=document.getElementById("objcode");objStr=objStr+">"+paramStr+"Ouvrir le fichier PDF";ShowSource(objStr);el.innerHTML=objStr;}function qtGenCode(){var objStr="\n";break;}}}el=document.getElementById("objcode");objStr=objStr+">"+paramStr+strEmbed+">\n";ShowSource(objStr);el.innerHTML=objStr;}function XHTMLGenCode(){var el=document.getElementById("type");var otype=el.options[el.selectedIndex].value;var objStr="-1)objStr+="codetype=\"anything\" ";var paramStr="";var styleStr="";var valEl=Array("src","width","height","controller","autoplay");for(var i=0;i-1)u=u.substring(0,u.indexOf("?"));if(u.indexOf("/")>-1){u=u.substring(0,u.lastIndexOf("/")+1);paramStr+="\n";}paramStr+="\n";}else{paramStr+="\n";};objStr+="data=\""+el.value+"\"";break;case "width":case "height":styleStr+=el.id+":"+el.value+"px;";break;case "autoplay":switch(otype){case "application/x-mplayer2":paramStr+="\n";break;case "video/quicktime":case "audio/quicktime":paramStr+="\n";break;case "audio/x-pn-realaudio-plugin":paramStr+="\n";break;};break;case "controller":switch(otype){case "application/x-mplayer2":paramStr+="\n";break;case "video/quicktime":case "audio/quicktime":paramStr+="\n";break;case "audio/x-pn-realaudio-plugin":paramStr+="\n";break;default:break;};break;default:paramStr+="\n";break;}}}el=document.getElementById("objcode");objStr=objStr+(styleStr?" style=\""+styleStr+"\"":"")+">\n"+paramStr+"";ShowSource(objStr);el.innerHTML=objStr;};function wmpGenCode(){var objStr="\n";break;}}}el=document.getElementById("objcode");objStr=objStr+">\n"+paramStr+strEmbed+">\n";ShowSource(objStr);el.innerHTML=objStr;};function ropGenCode(){var objStr="\n";break;}}}el=document.getElementById("objcode");objStr=objStr+">\n"+paramStr+strEmbed+">\n";ShowSource(objStr);el.innerHTML=objStr;};function CreateQuickTimeParam(){return ""+""+"
"+""+""+"
"+""+""+"
"+""+""+"
"+""+""+"
"+""+""+"
";};function CreateWMPParam(){return ""+""+"
"+""+""+"
"+""+""+"
"+""+""+"
"+""+""+"
";};function CreateXHTMLParam(){var note="*Pour les vidéos, la hauteur et la largeur doivent au moins être celles de la vidéo.";return ""+""+"
"+""+""+"
"+""+""+"
"+""+""+"
"+""+""+"
"+""+""+"
";}function CreatePDFParam(){return ""+""+"
"+""+""+"
"+""+""+"
";}function CreateSWFParam(){return ""+""+"
"+""+""+"
"+""+""+"
"+""+""+"
";}function CreateropParam(){return ""+""+"
"+""+""+"
"+""+""+"
"+""+""+"
"+""+""+"
";}function CreateFormObjParam(item){var str="";var warnXHTML="Le code généré "+"est conforme avec le standard HTML4"+" mais pas avec XHTML.
";var optXHTML="Utilisez l'option Générique XHTML pour respecter le XHTML.
";var dst=document.getElementById("objform");switch(item.options[item.selectedIndex].value){case "qt":str=CreateQuickTimeParam()+'
'+warnXHTML+optXHTML+'
';break;case "swf":str=CreateSWFParam()+'
'+warnXHTML+'
';break;case "pdf":str=CreatePDFParam()+'
'+warnXHTML+'
';break;case 'wmp':str=CreateWMPParam()+'
'+warnXHTML+optXHTML+'
';break;case 'rop':str=CreateropParam()+'
'+warnXHTML+'Pour RealPlayer, les tailles minimales recommandées selon les contrôles choisis sont:
'+''+''+''+''+'
ContrôlesWidthHeight
Toutes commandes375100
Lecture/Pause4426
Lecture/Pause/Stop et infos300100
';break;case 'XHTML':str=CreateXHTMLParam();break;default:dst.innerHTML="";return;};dst.innerHTML=str+"
";}