var inited = false;

function initMag()
{
	if(!inited)
	{
		var flashvars = {};
		var params = {};
		params.scale = "exactfit";
		params.wmode = "window";
		params.bgcolor = "#eeeeee";
		params.allowfullscreen = "true";
		params.allowscriptaccess = "sameDomain";
		var attributes = {};
		attributes.id = "revista";
		swfobject.embedSWF("fullinteractive.swf", "main", "100%", "100%", "9.0.0", "other/expressInstall.swf", flashvars, params, attributes);

		document.body.className = "jsfied";
		inited = true;
	}
}

window.onload = function()
{
	initMag();
}

var w = screen.availWidth;
var h = screen.availHeight -50;

var newW = (w <= 1200) ? w : 1200;
var newH = (h <= 1000) ? h : 1000;

window.resizeTo(newW, newH);

var xPos    = 0;
var yPos    = 0;
var wWidth  = 0;
var wHeight = 0;

if (window.innerWidth)
{
  wWidth = window.innerWidth;
  wHeight = window.innerHeight;
}
else if (document.documentElement && document.documentElement.clientWidth)
{
  wWidth = document.documentElement.clientWidth;
  wHeight = document.documentElement.clientHeight;
}
else if (document.body)
{
  wWidth = document.body.clientWidth;
  wHeight = document.body.clientHeight;
}
if( (wWidth != 0) || (wHeight != 0) )
{
	window.moveTo( ( (screen.availWidth - wWidth) / 2 ), ( (screen.availHeight - wHeight) /2 ) );
}