/*	É imprecindível que o WMODE, tanto do OBJECT PARAM quanto do EMBED estejam setados para WINDOW.
//	Caso não esteja, jogos que usam as SETAS do teclado não irão funcionar no INTERNET EXPLORER
//	O menu seta o jogo como HIDDEN automaticamente, para que não haja conflito de camadas no mesmo
*/	

if(typeof cor == 'undefined') var cor = 'FFFFFF';

var baseFlash = swf_arq.substring(0, swf_arq.lastIndexOf('/')+1);

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="'+swf_width+'" HEIGHT="'+swf_height+'" id="21">');
document.write('<PARAM NAME=movie VALUE="'+swf_arq+'">');                                                                                                         
document.write('<PARAM NAME=menu VALUE=false>');
document.write('<PARAM NAME=quality VALUE=high>');
document.write('<PARAM NAME=allowScriptAccess VALUE=always>');
document.write('<PARAM NAME=wmode VALUE=window>');
document.write('<PARAM NAME=bgcolor VALUE=#'+cor+'>');

if(baseFlash != '')
{
    document.write('<PARAM NAME="base" VALUE="'+baseFlash+'">');    
}

document.write('<EMBED src="'+swf_arq+'" base="'+baseFlash+'" menu=false wmode=window allowscriptaccess="always" quality=high bgcolor=#'+cor+' WIDTH="'+swf_width+'" HEIGHT="'+swf_height+'" NAME="21" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
document.write('</OBJECT>');
