﻿function RunSwf(chemin,width,height,transparence,boucle,img,id,variable)
{
	document.write('<div style="display: none;" id="preload_' + id + '">');
    document.write('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="0" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="'+width+'" height="'+height+'"> \n');
    document.write('<param name="movie" value="'+chemin+'" />\n');
    document.write('<param name="allowScriptAccess" value="always" />\n');
    document.write('<param name="quality" value="High" />\n');
    document.write('<param name="flashvars" value="'+variable+'" />');
    document.write('<param name="wmode" value="'+transparence+'" />\n');
    document.write('<param name="loop" value="'+boucle+'" />\n');
    document.write('<embed src="'+chemin+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" wmode="'+transparence+'" width="'+width+'" height="'+height+'" flashvars="'+variable+'" quality="High" />\n');
    document.write('</object>\n');
    document.write('</div>');
    document.write('<div id="loading_' + id + '">');
    document.write('<img src="' + img +'" height="' + height + '" width="' + width + '" alt="Chargement de l\'animation"/>');
    document.write('</div>');
}
