function insertFlash(width,height,name,bgcolor,align,id,flashvars) 
{ 
    path = "/swf/";
    ext = ".swf";
    name = name+ext;
    document.write('<div align="center">');
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="middle">'); 
    document.write('<param name="allowScriptAccess" value="sameDomain" />'); 
    document.write('<param name="movie" value="'+path+name+'" />'); 
    document.write('<param name="quality" value="high" />'); 
    document.write('<param name="bgcolor" value="'+bgcolor+'" />'); 
    document.write('<param name="FlashVars" value="'+flashvars+'" />'); 
    document.write('<embed src="'+path+name+'" quality="high" bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+id+'" FlashVars="'+flashvars+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); 
    document.write('</object>'); 
    document.write('</div>');
}
