function flashAleatorio(donde)
{
	var numFlashIndex = 6;
	var numFlashPortada = 5;

	if (donde == "portada") {
		numFlashPortada = numFlashPortada - 1;
		numAleatorio = Math.round(Math.random()*numFlashPortada) + 1;
		width="780";
		height="520";	
		flashAleatorio = "fijos/portada/portada"+numAleatorio+".swf";
	}

	if (donde == "index") {
		numFlashIndex = numFlashIndex - 1;
		numAleatorio = Math.round(Math.random()*numFlashIndex) + 1;
		width="500";
		height="333";	
		flashAleatorio = "fijos/index/index"+numAleatorio+".swf";
	}
	
	document.write('<OBJECT CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=' + width + ' height=' + height + ' CODEBASE=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\">');
	document.write('<param name=\"movie\" value=\"' + flashAleatorio + '\">');
	document.write('<param name=\"quality\" value=\"high\">');
	document.write('<param name=\"menu\" value=\"false\">');	
	document.write('<param name=\"bgcolor\" value=\"#000000\">');
	document.write('<EMBED SRC=' + flashAleatorio + ' width=' + width + ' height=' + height + ' quality=\"high\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer" bgcolor="#000000" menu=false wmode="transparent">');
	document.write('</EMBED>');
	document.write('</OBJECT>');


}