if(typeof cor == 'undefined') var cor = '000000';

var baseFlash = swf_arq.substring(0, swf_arq.lastIndexOf('/')+1);

document.write('<div style="clear:both;">&nbsp;</div>');
document.write('<div style="width:'+swf_width+'px; height:auto; margin-left:auto; margin-right:auto; background-color:#FF0000;">');
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=#000000>');

if(baseFlash != '')
{
	document.write('<PARAM NAME="base" VALUE="'+baseFlash+'">');    
}

document.write('<div id="tela_jogo" style="width:'+swf_width+'px;">');
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>');
document.write('</div>');	


function COMPARTILHAR_JOGO () 
{
document.write('<input type="text" name="path" value="&lt;div style=&quot;height:auto; widht:'+(swf_width*0.75)+'px;&quot;&gt;&lt;OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&quot; WIDTH=&quot;'+(swf_width*0.75)+'&quot; HEIGHT=&quot;'+(swf_height*0.75)+'&quot; id=&quot;21&quot;&gt;&lt;PARAM NAME=movie VALUE=&quot;'+swf_arq+'&quot;&gt;&lt;EMBED src=&quot;'+swf_arq+'&quot; menu=false wmode=window allowscriptaccess=&quot;always&quot; quality=high bgcolor=#'+cor+' WIDTH=&quot;'+(swf_width*0.75)+'&quot; HEIGHT=&quot;'+(swf_height*0.75)+'&quot; NAME=&quot;21&quot; ALIGN=&quot;&quot; TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;http://www.macromedia.com/go/getflashplayer&quot;&gt;&lt;/EMBED&gt;&lt;/OBJECT&gt;&lt;/div&gt;&lt;div style=&quot;clear:both;&quot;&gt;&nbsp;&lt;/div&gt;<p>Este jogo foi disponibilizado por <b>&lt;a href=&quot;http://jogosonline.lynko.com.br/&quot;>Lynko Jogos Online&lt;/a&gt;.</b></p>" size="80" maxlength="200" onmouseover="this.focus();this.select()" onclick="this.focus();this.select()" onfocus="this.focus();this.select()">');
}

function ADICIONA_FAVORITOS(url, title) 
{

    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if(window.opera && window.print)
	{
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();
    }
    else if(document.all)
	{
		window.external.AddFavorite(url, title);
	}
}
