function GerarSWF($arquivo,$altura,$largura,$id){
    document.writeln('    <object id="globalnav-object" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + $largura + '" height="' + $altura + '" id="' + $id + '" name="' + $id + '">');
    document.writeln('        <param name="movie" value="' + $arquivo + '" />');
    document.writeln('        <param name="FlashVars" value="loc=en_US&htmlApp=false&gatewayURL=gwurl" />');
    document.writeln('        <param name="bgcolor" value="#ffffff" />');
    document.writeln('        <param name="menu" value="false" />');
    document.writeln('        <param name="quality" value="high" />');
    document.writeln('        <param name="salign" value="tl" />');
    document.writeln('        <param name="scale" value="noscale" />');
    document.writeln('        <param name="wmode" value="transparent" />');
    document.writeln('        <embed id="globalnav-embed" src="' + $arquivo + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" flashvars="loc=en_US&htmlApp=false&gatewayURL=gwurl" bgcolor="#ffffff" menu="false" quality="high" salign="tl" scale="noscale" id="' + $id + '" width="' + $largura + '" height="' + $altura + '"></embed>');
    document.writeln('    </object>');
    if($arquivo=="swf/topo.swf" || $arquivo=="swf/topox.swf"){
      document.writeln('<table border="0" cellpadding="0" cellspacing="0" style="position: absolute; z-index: 1; top: 45px; left: '+((document.body.clientWidth/2)+238)+'px;">');
      document.writeln('  <tr>');
      document.writeln('    <td width="115"><a href="http://www.bmpproar.com.br/blog/" style="text-decoration: none;"><font face="Verdana" size="2" color="#666666"><b>Blog do RH</b></font><font face="Verdana" size="1" color="#000000"><br>Confira os eventos do nosso setor</font></a></td>');
      document.writeln('    <td><img src="imgs/miniMigo.gif" border="0" alt=""></td>');
      document.writeln('  </tr>');
      document.writeln('</table>');
		}
}
