// JavaScript Document

function ieupdate(){
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}}

// When the page loads: 
//o código agora está no player, para não esperar o swf carregar.
// When the page unloads: 
window.onunload = function() { 
if (document.getElementsByTagName) { 
//Get all the tags of type object in the page. 
var objs = document.getElementsByTagName("object"); 
for (i=0; i<objs.length; i++) { 
// Clear out the HTML content of each object tag 
// to prevent an IE memory leak issue. 
objs[i].outerHTML = ""; 
}
}
}

var vjan='';
function popupjogos(url,nome){
	if (!vjan.closed && vjan.location) {
		vjan.location.href=url;
	}else{
		vjan=window.open(url,nome,'width='+window.screen.width+',height='+window.screen.width+',top=0,left=0,scrollbars=yes,fullscreen=no'); 
		if (!vjan.opener) vjan.opener = self;
	}
	if (window.focus){vjan.focus()}
}

function reiniciar()
{
	var v1;
	var v2;
	v1=document.getElementById('FP');
	v2=v1.innerHTML;
	v1.innerHTML='';
	if(v2!='')
	{
		v1.innerHTML=v2;
	}else{
		v1.innerHTML=fechado;
	}
}
var fechado;
function fechar()
{
	var v1;
	v1=document.getElementById('FP');
	if (v1.innerHTML!='')
	{
		fechado=v1.innerHTML;
		v1.innerHTML='';
	}
}
function ZoomIn()
{
	if (document.getElementById('FP').innerHTML==''){return;}
	var v1;
	v1=document.getElementById('sw1');
	v1.width=parseInt(v1.width)*1.1;
	v1.height=parseInt(v1.height)*1.1;
}
function ZoomOut()
{
	if (document.getElementById('FP').innerHTML==''){return;}
	var v1;
	v1=document.getElementById('sw1');
	v1.width=parseInt(v1.width)*0.9;
	v1.height=parseInt(v1.height)*0.9;
}
