// FUNÇÃO PARA ESCREVER O FLASH

function  makeflash(nome,porc,width,height) {
   if (!height) { height = "100"; }
   if (!width) { width = "100"; }
   i = Math.random(99999);

//   document.write('<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 width=' + width + porc + ' height=' + height + porc + '>');
   document.write('<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0  width=' + width + porc + ' height=' + height + porc + '>');
   document.write('  <param name=SRC value=' + nome + '?randidnum=' + i + '>');
   document.write('  <param name=QUALITY value=high>');
   document.write('  <param name=LOOP value=false>');
//   document.write('  <embed src=' + nome + '?randidnum=' + i + ' width=' + width + porc + ' height=' + height + porc + ' pluginspage=http://www.macromedia.com/shockwave/download/ type=application/x-shockwave-flash quality=high loop=false>');
   document.write('  <embed src=' + nome + '?randidnum=' + i + ' width=' + width + porc + ' height=' + height + porc + ' TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer quality=high loop=false>');
   document.write('  </embed>'); 
   document.write('</object> ');
}

