
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

// Gestionar todos los mensajes de FSCommand de una película Flash
function PORTADA_swf_DoFSCommand(command, args) {
	var PORTADA_swfObj = isInternetExplorer ? document.all.PORTADA_swf : document.PORTADA_swf;
	//
	// Introduzca su código aquí.
	//
}

// 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 PORTADA_swf_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call PORTADA_swf_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

function animacionFlash(direccion,ancho,alto)
{
	document.write('<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="'+ancho+'" height="'+alto+'" id="PORTADA_swf" align="middle">');
	document.write('	<param name="wmode" value="transparent"/>');
	document.write('	<param name="movie" value="'+direccion+'" />');
	document.write('	<param name="quality" value="high"/>');
	document.write('	<param name="menu" value="false">');
	document.write('	<embed src="'+direccion+'" allowScriptAccess="always" swliveconnect="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ancho+'" height="'+alto+'"></embed>');
	document.write('</object>');
}



var flashinstalled = 0;
var flashversion = 0;

MSDetect = "false";
if (navigator.plugins && navigator.plugins.length)
{
	x = navigator.plugins["Shockwave Flash"];
	if (x)
	{
		flashinstalled = 2;
		if (x.description
)
		{
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
	}
	else
		flashinstalled = 1;
	if (navigator.plugins["Shockwave Flash 2.0"])
	{
		flashinstalled = 2;

		flashversion = 2;
	}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)

		flashinstalled = 2;
	else
		flashinstalled = 1;
}
else
	MSDetect = "true";

