<!--

function incluirFlashExterno(string)
{

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	// con  esto solo saco los parametros
	//this.sq = document.location.search.split("?")[1] || "";


	// ver la URL para saber si quiero saltar validacion de version en flash
	var stringlocation   = location.search.substring(1);

	var stringArray = stringlocation.split('&');
	var valFicha = replace(stringArray[stringArray.length-1],'detectarflash=',"");

	if (stringArray[stringArray.length-1]) {
		stringlocation = location + "&detectarflash=false";
	} else {
		stringlocation = location + "?detectarflash=false";
	}

	if (valFicha == 'false') {
		var laVersionMinima = 1;
	} else {
		var laVersionMinima = 7;

		var TemasDiscos = '';

		// ver si son temas
		var stringArrayFlash = string.split('airadapedra_disco');
		if (!stringArrayFlash[0]) {

			var laVersionMinima = 7;
			var TemasDiscos = 'airadapedra_disco';
		}
	}

	//alert (laVersionMinima);
	//alert (TemasDiscos);

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

if ((navigator.userAgent.toLowerCase().indexOf('opera')==-1) && 
    (navigator.userAgent.toLowerCase().indexOf('netscape')==-1) && 
    (getFlashVersion() >= laVersionMinima) || (getFlashVersion() == 0) || (getFlashVersion() == 'A'))
{

      //habemus flash
      //document.write('<br>');
      incluirFlash(string); 

}
else
{
      //no habemus flash

      document.write('<CENTER>');
	// elegir el flash a mostrar
	switch(string) {
		case "musicaairadapedra": 
		      document.write('<BR><BR>');
		      document.write('<FONT SIZE="2" FACE="Verdana, Arial, Helvetica, sans-serif " COLOR="#C0C0C0" CLASS="TextoBlancoP">To see this page, you need to have <B>Flash Player  ' + laVersionMinima + '</B> or superior<BR>installed. <B>For free download</B> <A HREF="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=Spanish&P5_Language=Spanish" TARGET="verflash" CLASS="LinkVerde" TITLE="Download Adobe Flash Player">Click here</A>.</FONT>');
		      document.write('<BR><BR>');
		      document.write('<FONT SIZE="2" FACE="Verdana, Arial, Helvetica, sans-serif " COLOR="#C0C0C0" CLASS="TextoBlancoP">&nbsp;&#183;&nbsp;<A HREF="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=Spanish&P5_Language=Spanish" TARGET="verflash" CLASS="LinkVerde" TITLE="Download Adobe Flash Player">Download Adobe Flash Player</A>&nbsp;&#183;&nbsp;</FONT>');
		      document.write('<BR><BR>');
		      document.write('<FONT SIZE="2" FACE="Verdana, Arial, Helvetica, sans-serif " COLOR="#C0C0C0" CLASS="TextoBlancoP">Have you got <B>Flash Player</B>? <a href="' + stringlocation +'" CLASS="LinkVerde">Click here if  you have <B>Flash Player  ' + laVersionMinima + '</B> installed</a></FONT>');
	        	break; 
		case "portada": 
		      document.write('<BR><BR>');
		      document.write('<FONT SIZE="2" FACE="Verdana, Arial, Helvetica, sans-serif " COLOR="#C0C0C0" CLASS="TextoBlancoP">To see this page, you need to have <B>Flash Player  ' + laVersionMinima + '</B> or superior<BR>installed. <B>For free download</B> <A HREF="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=Spanish&P5_Language=Spanish" TARGET="verflash" CLASS="LinkVerde" TITLE="Download Adobe Flash Player">Click here</A>.</FONT>');
		      document.write('<BR><BR>');
		      document.write('<FONT SIZE="2" FACE="Verdana, Arial, Helvetica, sans-serif " COLOR="#C0C0C0" CLASS="TextoBlancoP">&nbsp;&#183;&nbsp;<A HREF="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=Spanish&P5_Language=Spanish" TARGET="verflash" CLASS="LinkVerde" TITLE="Download Adobe Flash Player">Download Adobe Flash Player</A>&nbsp;&#183;&nbsp;</FONT>');
		      document.write('<BR><BR>');
		      document.write('<FONT SIZE="2" FACE="Verdana, Arial, Helvetica, sans-serif " COLOR="#C0C0C0" CLASS="TextoBlancoP">Have you got <B>Flash Player</B>? <a href="' + stringlocation +'" CLASS="LinkVerde">Click here if  you have <B>Flash Player  ' + laVersionMinima + '</B> installed</a></FONT>');
	        	break; 
		default: 	
			// por defecto ver si saco mapas o videos, para poner el mismo texto de fondo
			if ((TemasDiscos) && (stringArrayFlash[1]!=2)){

			      document.write('<BR>');
			      document.write('<B><FONT SIZE="1" CLASS="Titulo" COLOR="#FFFFFF" FACE="arial, verdana">ATTENTION:</FONT></B>');
			      document.write('<BR>');
			      document.write('<FONT SIZE="2" FACE="Verdana, Arial, Helvetica, sans-serif " COLOR="#C0C0C0" CLASS="TextoBlancoP">To see this page, you need to have <B>Flash Player  ' + laVersionMinima + '</B> or superior<BR>installed. Click here <B>for free download</B>.</FONT>');
			      document.write('<BR><BR>');
			      document.write('<FONT SIZE="2" FACE="Verdana, Arial, Helvetica, sans-serif " COLOR="#C0C0C0" CLASS="TextoBlancoP">&nbsp;&#183;&nbsp;<A HREF="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=Spanish&P5_Language=Spanish" TARGET="verflash" CLASS="LinkVerde" TITLE="Download Adobe Flash Player">Download Adobe Flash Player</A>&nbsp;&#183;&nbsp;</FONT>');
			      document.write('<BR><BR>');
			      document.write('<FONT SIZE="2" FACE="Verdana, Arial, Helvetica, sans-serif " COLOR="#C0C0C0" CLASS="TextoBlancoP">Have you got <B>Flash Player</B>? <br><a href="' + stringlocation +'" CLASS="LinkVerde">Click here if  you have <B>Flash Player  ' + laVersionMinima + '</B> installed</a></FONT>');
			      document.write('<BR><BR>');

			      // incluir temas
			      // ver si es para los discos
			      var stringArrayFlash = string.split('airadapedra_disco');
			      //alert(stringArrayFlash);
	
			// elegir el texto de no hay flash segun el disco
			switch(stringArrayFlash[1] ) {
				case "1": 
			      document.write('<TABLE WIDTH="280" BORDER="0" CELLPADDING="0" CELLSPACING="0" ALIGN="CENTER">');
			      document.write('<TR><TD><B><FONT SIZE="1" CLASS="Titulo" COLOR="#FFFFFF" FACE="arial, verdana">Songs:</FONT></B></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Rosa dos catro ventos </FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Facendo casas</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">An Dro</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Dragona</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Rumba de Vergara</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Entroido</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Devilish Folk</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Lembranzas</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Danza del Oso </FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Music for a found armonium</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR>');
			      document.write('</TABLE>');
				break; 
				case "3": 
			      document.write('<TABLE WIDTH="280" BORDER="0" CELLPADDING="0" CELLSPACING="0" ALIGN="CENTER">');
			      document.write('<TR><TD><B><FONT SIZE="1" CLASS="Titulo" COLOR="#FFFFFF" FACE="arial, verdana">Songs:</FONT></B></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Traieito</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Porrusalda-Monta&ntilde;esa</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Filand&oacute;n</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Mirandelo </FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Arantigua</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Mu&ntilde;eira de Oencia</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">A Escaderna</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Calderero</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Boreal</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Asturianas</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">O Luns</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Naraia Tremens</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Top Level</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR>');
			      document.write('</TABLE>');
				break; 
				case "4": 
			      document.write('<TABLE WIDTH="280" BORDER="0" CELLPADDING="0" CELLSPACING="0" ALIGN="CENTER">');
			      document.write('<TR><TD><B><FONT SIZE="1" CLASS="Titulo" COLOR="#FFFFFF" FACE="arial, verdana">Songs:</FONT></B></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD> <FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Mu&ntilde;eira de Baillo</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Jota de la Monta&ntilde;a </FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Ancares-Leitariegos</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Si vas </FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Corrido del Bierzo Alto</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Al Sol en Sol </FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Ramo Verde</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Run dum</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">&Eacute; d&iacute;a Chao</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Boleras de Noceda</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR><TR><TD><FONT SIZE="1" CLASS="TextoTemas" COLOR="#FFFFFF" FACE="arial, verdana">Arre Michel</FONT></TD>');
			      document.write('</TR><TR><TD><IMG SRC="../imagenes/port_linea.gif" WIDTH="280" HEIGHT="5" BORDER="0"></TD>');
			      document.write('</TR>');
			      document.write('</TABLE>');
			break; 
		        }
			}
	        	break; 
	}
      document.write('</CENTER>');
}

}
//-->
// escribir flash ---
function incluirFlash(string)
{

      // ver si es para los discos
      var stringArrayFlash = string.split('airadapedra_disco');
      //alert(stringArrayFlash);

      // ver si son discos
      if (!stringArrayFlash[0]) {

	// elegir el flash a mostrar 
                cargarFlash = "airadapedra_disco" + stringArrayFlash[1] + ".swf";
	anchoFlash  = '340';
	altoFlash     = '380';
	alinear         = "center";
	colorfondoFlash     = "#000000";

	elWMode_Mexp = '<PARAM NAME="wmode" VALUE="transparent">';
	elWMode_Fire   = 'WMODE="transparent"';


      } else {

	// elegir el flash a mostrar
	switch(string) {
		case "musicaairadapedra": 
		              cargarFlash = "airadapedra_musica.swf";
			anchoFlash  = '500';
			altoFlash     = '300';
			alinear         = "middle";
			colorfondoFlash     = "#000000";

			elWMode_Mexp = '<PARAM NAME="wmode" VALUE="transparent">';
			elWMode_Fire   = 'WMODE="transparent"';
		break; 
		case "portada": 
		              cargarFlash = "../imagenes/foto_portada.swf";
			anchoFlash  = '640';
			altoFlash     = '165';
			alinear         = "middle";
			colorfondoFlash     = "#000000";

			elWMode_Mexp = '<PARAM NAME="wmode" VALUE="transparent">';
			elWMode_Fire   = 'WMODE="transparent"';
		break; 
		case "sonido_entrada": 
		              cargarFlash = "sonido_entrada0.swf";
//		              cargarFlash = "sonido_entrada1.swf";
//		              cargarFlash = "sonido_entrada2.swf";
//		              cargarFlash = "sonido_entrada3.swf";
			anchoFlash  = '1';
			altoFlash     = '1';
			alinear         = "middle";
			colorfondoFlash     = "#000000";
			elWMode_Mexp = '<PARAM NAME="wmode" VALUE="transparent">';
			elWMode_Fire   = 'WMODE="transparent"';
		break; 
		case "sonido_reproductor": 
		              cargarFlash = "imagenes/emisor.swf";
			anchoFlash  = '82';
			altoFlash     = '28';
			alinear         = "left";
			colorfondoFlash     = "#000000";
			elWMode_Mexp = '<PARAM NAME="wmode" VALUE="transparent">';
			elWMode_Fire   = 'WMODE="transparent"';
		break; 
		default: 
		break; 
        }
}
      cadena= '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="' + anchoFlash + '" HEIGHT="' + altoFlash + '" ID="' + string + '" ALIGN="' + alinear + '">\n'; 

		cadena = cadena + '<PARAM NAME="allowFlashAutoInstall" VALUE="true">\n'; 
		cadena = cadena + '<PARAM NAME="movie" VALUE="' + cargarFlash + '">\n'; 
		cadena = cadena + '<PARAM NAME="quality" VALUE="high">\n'; 
		cadena = cadena + '<PARAM NAME="bgcolor" VALUE="' + colorfondoFlash + '">\n'; 
		cadena = cadena + '<PARAM NAME="menu" VALUE="false">\n'; 
		cadena = cadena + '<PARAM NAME="allowScriptAccess" VALUE="always">\n'; 
		cadena = cadena + elWMode_Mexp + '\n'; 
		cadena = cadena + '<EMBED SRC="' + cargarFlash + '" BGCOLOR="' + colorfondoFlash + '" QUALITY="high" WIDTH="' + anchoFlash + '" HEIGHT="' + altoFlash + '"   NAME="' + string + '" ALIGN="' + alinear + '"' + elWMode_Fire + ' SWLIVECONNECT="true" ALLOWSCRIPTACCESS="sameDomain" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">\n'; 
		cadena = cadena + '</OBJECT>\n'; 

     document.write(cadena);

}


// ver version del flash

var JSflashVersion = 0;
var JSflashVersion_DONTKNOW = -1;

function getFlashVersion() {

   var agent = navigator.userAgent.toLowerCase(); 

   // NS3 needs JSflashVersion to be a local variable
   if (agent.indexOf("mozilla/3") != -1 && agent.indexOf("msie") == -1) {
      JSflashVersion = 0;
   }
   
	// NS3+, Opera3+, IE5+ Mac (support plugin array):  check for Flash plugin in plugin array
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		var flashPlugin = navigator.plugins['Shockwave Flash'];
		if (typeof flashPlugin == 'object') { 
			if (flashPlugin.description.indexOf('9.') != -1) JSflashVersion = 9;
			else if (flashPlugin.description.indexOf('8.') != -1) JSflashVersion = 8;
			else if (flashPlugin.description.indexOf('7.') != -1) JSflashVersion = 7;
			else if (flashPlugin.description.indexOf('6.') != -1) JSflashVersion = 6;
			else if (flashPlugin.description.indexOf('5.') != -1) JSflashVersion = 5;
			else if (flashPlugin.description.indexOf('4.') != -1) JSflashVersion = 4;
			else if (flashPlugin.description.indexOf('3.') != -1) JSflashVersion = 3;
		}
	}

	// IE4+ Win32:  attempt to create an ActiveX object using VBScript
	else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
	   document.write('<scr' + 'ipt language="VBScript"\> \n');
		document.write('on error resume next \n');
		document.write('dim obFlash \n');
		document.write('set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.9") \n');
		document.write('if IsObject(obFlash) then \n');
		document.write('JSflashVersion = 9 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.8") end if \n');
		document.write('if JSflashVersion < 9 and IsObject(obFlash) then \n');
		document.write('JSflashVersion = 8 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.7") end if \n');
		document.write('if JSflashVersion < 8 and IsObject(obFlash) then \n');
		document.write('JSflashVersion = 7 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.6") end if \n');
		document.write('if JSflashVersion < 7 and IsObject(obFlash) then \n');
		document.write('JSflashVersion = 6 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.5") end if \n');
		document.write('if JSflashVersion < 6 and IsObject(obFlash) then \n');
		document.write('JSflashVersion = 5 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.4") end if \n');
		document.write('if JSflashVersion < 5 and IsObject(obFlash) then \n');
		document.write('JSflashVersion = 4 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.3") end if \n');
		document.write('if JSflashVersion < 4 and IsObject(obFlash) then \n');
		document.write('JSflashVersion = 3 \n');
		document.write('end if \n');
		document.write('if JSFlashVersion > 4 then \n');
		document.write('Set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash") \n');
		document.write('JSFlashVersion = Left(Hex(obFlash.FlashVersion),1) \n');
		document.write('end if \n');
		document.write('</scr' + 'ipt\> \n');
  }
		
	// WebTV 2.5 supports flash 3
	else if (agent.indexOf("webtv/2.5") != -1) JSflashVersion = 3;

	// older WebTV supports flash 2
	else if (agent.indexOf("webtv") != -1) JSflashVersion = 2;

	// Can't detect in all other cases
	else {
		JSflashVersion = JSflashVersion_DONTKNOW;
	}

	return JSflashVersion;
}



function replace(string,text,by) {
 // Replaces text with by in string
     var strLength = string.length, txtLength = text.length;
     if ((strLength == 0) || (txtLength == 0)) return string;

     var i = string.indexOf(text);
     if ((!i) && (text != string.substring(0,txtLength))) return string;
     if (i == -1) return string;

     var newstr = string.substring(0,i) + by;

     if (i+txtLength < strLength)
         newstr += replace(string.substring(i+txtLength,strLength),text,by);

     return newstr;
 }
