function montaFlash(destino, flavez, width, height, trans, scale){

	var myFlash =
	'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="'+flavez+'" align="middle">'+
	'<param name="allowScriptAccess" value="sameDomain" />'+
	'<param name="movie" value="'+flavez+'.swf" />'+
	'<param name="wmode" value="transparent" />'+
	'<param name="scale" value="noscale" />'+
	'<param name="quality" value="high" />'+
	'<param name="allowFullScreen" value="true" />'+
	'<embed src="'+flavez+'.swf" allowFullScreen="true" wmode="transparent" quality="high" width="'+width+'" height="'+height+'" name="empresas" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
	'</object>'
	;
	document.getElementById(destino).innerHTML = myFlash;
}

function redimensionaInternas() {
	var ie = /msie/i.test(navigator.userAgent);
	var ieBox = ie && (document.compatMode == null || document.compatMode == "BackCompat");

	var w, h; // Contem o width e o height da janela
	var canvasEl = ieBox ? document.body : document.documentElement;
	w = window.innerWidth || canvasEl.clientWidth;
	h = window.innerHeight || canvasEl.clientHeight;
	//alert("width: "+w+", height:"+h);
	if(h<610){
		montaFlash('global','swf/intro','100%','610');
	}else{
		montaFlash('global','swf/intro','100%','100%');
	}
}

function Abre(url, width, height, rola)	{						
	if (rola==""){rola="yes"}
	window.open(url,"_blank","resizable=no,toolbar=no,status=no,top=" + (window.screen.height - height)/2 + ",left=" + (window.screen.width - width)/2 + ",menubar=no,scrollbars=" + rola + ",width=" + width + ",height=" + height);
}