function get_flash(arquivo, largura, altura, bgcolor, id, qualidade, alinhamento,transparente) {
	obj = '<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="'+largura+'" height="'+altura+'" id="'+id+'" align="'+alinhamento+'">';
	obj+= '<param name="allowScriptAccess" value="sameDomain" />';
	obj+= '<param name="movie" value="'+arquivo+'" />';
	obj+= '<param name="quality" value="'+qualidade+'" />';
	if(transparente == true) {
		obj+= '<param name="wmode" value="transparent" />';
	}
	obj+= '<param name="bgcolor" value="'+bgcolor+'" />';
	obj+= '<embed src="'+arquivo+'" '+((transparente==true)?'wmode="transparent"':'')+'" quality="'+qualidade+'" bgcolor="'+bgcolor+'" width="'+largura+'" height="'+altura+'" name="'+id+'" align="'+alinhamento+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	obj+= '</object>';
	document.write(obj);
}

function AbrePagina(perfil, tamx, tamy, yn) {
	lf = Math.floor(screen.width/2) - Math.floor(tamx/2);
	tp = Math.floor(screen.height/2) - Math.floor(tamy/2);
	popup = open(perfil,"popup","resizable=no,toolbar=no,status=no,menubar=no,scrollbars=" + yn + ",width=" + tamx + ",height=" + tamy + ", left = " + lf + ", top = " + tp)
	popup.focus();
}

function mostra(info) {
	if(document.getElementById(info)) {
		if(document.getElementById(info).style.display == 'block') {
			document.getElementById(info).style.display = 'none';
		} else {
			document.getElementById(info).style.display = 'block';
		}
	}
}

function evento(id,st) {
	if(document.getElementById('evento_'+id+'_'+st)) {
		switch(st) {
			case 'on' :
				document.getElementById('evento_'+id+'_on').style.display = 'block';
				document.getElementById('evento_'+id+'_off').style.display = 'none';
				break;
			case 'off' :
				document.getElementById('evento_'+id+'_on').style.display = 'none';
				document.getElementById('evento_'+id+'_off').style.display = 'block';
				break; 
		}
	}
}