var clientes = new Array('sony','bimbo','lays','knorr','fontvella','frigo','danone','lanjaron','magnum','martini','oraldine','repsol','salto','eagle','laredoute','lindt','pannini','smoking','tulipan','calve','werthers','marionnaud','sluz','frico');

function eskeleto(elflash)
{
	document.write('<tr>');
	document.write('	<td width="7">&nbsp;</td>');
	document.write('	<td width="220"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="Clientes" width="220" height="80">');
	document.write('  		<param name="movie" value="../img/Clientes.swf">');
	document.write('  		<param name="quality" value="high">');
	document.write('  		<param name="bgcolor" value="#FFFFFF">');
	document.write('  		<embed name="Clientes" src="../img/Clientes.swf" quality="high" bgcolor="#FFFFFF" width="220" height="80" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.write('		</embed>');
	document.write('		</object></td>');
	document.write('	<td width="295" align="center"><a href="../home/home.asp"><img src="../img/LogoDuplex-proyectos.gif" width="183" height="80" border="0" alt=""></a></td>');
	document.write('	<td width="220"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="Flashproyectos" width="220" height="80">');
	document.write('  		<param name="movie" value="../img/Flashproyectos.swf">');
	document.write('  		<param name="quality" value="high">');
	document.write('  		<param name="bgcolor" value="#FFFFFF">');
	document.write('  		<embed name="Clientes" src="../img/Flashproyectos.swf" quality="high" bgcolor="#FFFFFF" width="220" height="80" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.write('		</embed>');
	document.write('		</object></td>');
	document.write('	<td width="28">&nbsp;</td>');
	document.write('</tr>');
	document.write('</table>');
	if (elflash!='')
	{
		if (elflash=='IntroDuplex')
		{
			document.write('<table border="0" width="770" cellpadding="0" cellspacing="0">');
			document.write('<tr>');
			document.write('	<td width="770" valign="top" align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="'+elflash+'" width="760" height="349">');
			document.write('		<param name="movie" value="../img/'+elflash+'.swf">');
			document.write('		<param name="quality" value="high">');
			document.write('		<param name="bgcolor" value="#FFFFFF">');
			document.write('		<embed name="gota4" src="../img/'+elflash+'.swf" quality="high" bgcolor="#FFFFFF" width="760" height="349" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
			document.write('		</embed>');
			document.write('		</object></td>');
			document.write('</tr>');
		}
		else
		{
			document.write('<br><table border="0" width="770" cellpadding="0" cellspacing="0">');
			document.write('<tr>');
			document.write('	<td width="380" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="'+elflash+'" width="367" height="250">');
			document.write('		<param name="movie" value="../img/'+elflash+'.swf">');
			document.write('		<param name="quality" value="high">');
			document.write('		<param name="bgcolor" value="#FFFFFF">');
			document.write('		<embed name="gota4" src="../img/'+elflash+'.swf" quality="high" bgcolor="#FFFFFF" width="367" height="250" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
			document.write('		</embed>');
			document.write('		</object></td>');
			if (elflash=='tecnologia')
			{
				document.write('	<td class="gris" height="720" rowspan="2">&nbsp;</td>');
				document.write('</tr>');
				document.write('<tr>');
				document.write('	<td height="450" align="center"><img src="../img/empty.gif" name="foto1" border="0" alt=""><br><br><img src="../img/empty.gif" name="foto2" border="0" alt=""></td>');
			}
			else
			{
				document.write('	<td class="gris" height="400">&nbsp;</td>');
			}
			document.write('</tr>');
			document.write('</table>');
		}
	}
}

function pie(popup)
{
	document.write('<br><table border="0" width="770" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('	<td width="9">&nbsp;</td>');
	document.write('	<td align="center"><a href="../marketing/marketing.asp?seccion=4">¿Quieres recibir nuestra newsletter?</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://bajolalinea.duplexmarketing.com" target="_blank">Lee nuestro Blog: Bajo la línea</a><br><br></td>');
	document.write('</tr>');
	if (popup)
	{
		//document.write('<tr><td width="9">&nbsp;</td><td align="center">Duplex Marketing incluida en <a href="javascript:abre_ventanuko(600,550,0,0,\'popup.htm\',\'elpopup\')">el último libro de Seth Godin</a>, uno de los mayores expertos en marketing del mundo<br><br></td></tr>');
		document.write('<tr><td width="9">&nbsp;</td><td align="center"><a href="javascript:abre_ventanuko(600,550,0,0,\'popup2.htm\',\'elpopup\')">Marketing promocional y marketing en tiempos de crisis</a>: Disponible la edición 2009 de nuestro <b>estudio anual</b>.<br><br></td></tr>');
	}
	document.write('<tr>');
	document.write('	<td width="9">&nbsp;</td>');
	document.write('	<td><img src="../img/pie.gif" border="0" alt=""></td>');
	document.write('</tr>');
}


function mostrar_capa(nom_capa)
{
	if (document.all)
	{
		document.all[nom_capa].style.visibility="visible";
	}
	else
	{
		document.getElementById(nom_capa).style.visibility = "visible";
	}
	
}

function ocultar_capa(nom_capa)
{
	if (document.all)
	{
		document.all[nom_capa].style.visibility="hidden";
	}
	else
	{
		document.getElementById(nom_capa).style.visibility = "hidden"; 
	}
}

function muestraktiva(nombre,total,indice)
{
	var x1;
	if (en_news)
	{
		window.location.href='marketing.asp?seccion='+indice;
	}
	else
	{
		for (x1=1;x1<=total;x1++)
		{
			ocultar_capa(nombre+x1);
		}
		mostrar_capa(nombre+indice);
	}
}

function cambiafoto(nombre,foto)
{
	eval('document.getElementById("'+nombre+'").src="../img/'+foto+'"');
}

function abre_ventanuko(w,h,t,l,urle,nomventana)
{
	window.open(urle,nomventana,"toolbar=no,resizable=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,top="+t+",left="+l+",innerWidth="+w+",width="+w+",height="+h);
}

