function lireSWFPopup(urlSwf, largeur, hauteur, titre){
	var codeHtml = '<div class="fermer">';
	codeHtml = codeHtml + '<a href="#" onclick="gestionPopupGetOnClickClose(true, \'popupSWF\');return false;"></a>';
	codeHtml = codeHtml + '</div>';
	codeHtml = codeHtml + '<div style="width: '+largeur+'px;height: '+hauteur+'px;">';
	codeHtml = codeHtml + '<object type="application/x-shockwave-flash" data="'+urlSwf+'" width="'+largeur+'" height="'+hauteur+'">';
	codeHtml = codeHtml + '<param name="movie" value="'+urlSwf+'" />';
	codeHtml = codeHtml + '<param name="wmode" value="transparent" />';
	codeHtml = codeHtml + '</object>';
	codeHtml = codeHtml + '</div>';
	codeHtml = codeHtml + '<span class="legendeSWF">'+titre+'</span>';
	gestionPopupCreate(codeHtml, "popupSWF");

}

function lireFLVPopup(urlFlv, largeur, hauteur, titre, urlBase){
	var codeHtml = '<div class="fermer">';
	codeHtml = codeHtml + '<a href="#" onclick="gestionPopupGetOnClickClose(true, \'popupFLV\');return false;"></a>';
	codeHtml = codeHtml + '</div>';
	codeHtml = codeHtml + '<div id=\"videoFLV\" style="width: '+largeur+'px;height: '+hauteur+'px;">';
	/*
	codeHtml = codeHtml + '<script language="javascript">';
	codeHtml = codeHtml + 'if (AC_FL_RunContent == 0) {';
	codeHtml = codeHtml + '	alert("Cette page nécessite le fichier AC_RunActiveContent.js.");';
	codeHtml = codeHtml + '} else {';
	codeHtml = codeHtml + 'AC_FL_RunContentIsys(document.getElementById("videoFLV"),';
	codeHtml = codeHtml + "'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',";
	codeHtml = codeHtml + "'width', '"+largeur+"',";
	codeHtml = codeHtml + "'height', '"+hauteur+"',";
	codeHtml = codeHtml + "'src', 'lecteurVideo',";
	codeHtml = codeHtml + "'quality', 'high',";
	codeHtml = codeHtml + "'pluginspage', 'http://www.macromedia.com/go/getflashplayer',";
	codeHtml = codeHtml + "'align', 'middle',";
	codeHtml = codeHtml + "'play', 'true',";
	codeHtml = codeHtml + "'loop', 'true',";
	codeHtml = codeHtml + "'scale', 'showall',";
	codeHtml = codeHtml + "'wmode', 'window',";
	codeHtml = codeHtml + "'devicefont', 'false',";
	codeHtml = codeHtml + "'id', 'lecteurVideo',";
	codeHtml = codeHtml + "'flashVars', 'url_video="+urlFlv+"',";
	codeHtml = codeHtml + "'bgcolor', '#FFFFFF',";
	codeHtml = codeHtml + "'name', 'lecteurVideo',";
	codeHtml = codeHtml + "'menu', 'true',";
	codeHtml = codeHtml + "'allowFullScreen', 'false',";
	codeHtml = codeHtml + "'allowScriptAccess','sameDomain',";
	codeHtml = codeHtml + "'movie', '"+urlBase+"lecteurVideo',";
	codeHtml = codeHtml + "'salign', ''";
	codeHtml = codeHtml + ');\n //end AC code\n';
	codeHtml = codeHtml + '}\n';
	codeHtml = codeHtml + '</script>\n';
	*/
	//codeHtml = codeHtml + '<noscript>';
	codeHtml = codeHtml + '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+largeur+'" height="'+hauteur+'" id="lecteurVideo" align="middle">';
	codeHtml = codeHtml + '<param name="allowScriptAccess" value="sameDomain" />';
	codeHtml = codeHtml + '<param name=flashVars value="url_video='+urlFlv+'">';
	codeHtml = codeHtml + '<param name="allowFullScreen" value="false" />';
	codeHtml = codeHtml + '<param name="movie" value="'+urlBase+'lecteurVideo.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" />';	
	codeHtml = codeHtml + '<embed src="'+urlBase+'lecteurVideo.swf"   flashVars="url_video='+urlFlv+'" quality="high" width="'+largeur+'" height="'+hauteur+'" name="lecteurVideo" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="#FFFFFF"/>';
	codeHtml = codeHtml + '</object>';
	//codeHtml = codeHtml + '</noscript>';
	codeHtml = codeHtml + '</div>';
	codeHtml = codeHtml + '<span class="legendeFLV">'+titre+'</span>';
	gestionPopupCreate(codeHtml, "popupFLV");
}
