var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Gestionar todos los mensajes de FSCommand de una pel&iacute;cula Flash
function cabecera_DoFSCommand(command, args) {
	var cabeceraObj = isInternetExplorer ? document.all.cabecera : document.cabecera;
	//
	// Introduzca su c&oacute;digo aqu&iacute;.
	//
	//swf2img();
}
// Ancla para Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub cabecera_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call cabecera_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}


function swf2img(){
	var elm = document.getElementById('flashPortada');
	
	var img = document.createElement('IMG');
	img.src = '../swf/fundacionabertis.jpg';
	img.style.width = '100%';
	
	var total = elm.childNodes.length;
	for(i = 0; i < total; i++){
		tag = elm.childNodes[i].nodeName;
		
		if(tag.toUpperCase() == 'OBJECT'){
			var tmp = elm.childNodes[i];
			elm.childNodes[i].style.display = 'none';
		}
		
	}

	elm.appendChild(img);
	elm.removeChild(tmp);
}

function abrirVentana(URLampliacion,nombreventana,propiedades) {
	window.open(URLampliacion, nombreventana, propiedades);
}
