var a="";

a='<td width=110 align=left class=TB rowspan=2><a href="http://www.invertia.com/pb/" class=enlace2><img src=/img/nfinanzb.gif border=0 width=110 height=25 alt="Mis finanzas"></a></td>';
a=a+'<td width=63 align=left class=TB rowspan=2><a href="http://servicios.invertia.com/foros/default.asp" class=enlace2><img src=/img/nforosb.gif border=0 width=63 height=25 alt="Foros"></a></td>';
a=a+'<td width=88 align=left class=TB rowspan=2><a href="http://www.invertia.com/mercados/default.asp" class=enlace2><img src=/img/nmercb.gif width=88 height=25 border=0 alt="Mercados"></a></td>';
a=a+'<td width=82 align=left class=TB rowspan=2><a href="http://www.invertia.com/empresas/default.asp" class=enlace2><img src=/img/nempreb.gif border=0 width=82 height=25 alt="Empresas"></a></td>';
a=a+'<td width=84 align=left class=TB rowspan=2><a href="http://ad.doubleclick.net/clk;210481964;6259296;r?http://www.invertia.com/freeqprest/portada.asp" class=enlace2><img src=/img/pest_serv.gif border=0 alt="Freequence" width=98 height=25></a></td>';
//a=a+'<td width=84 align=left class=TB rowspan=2><a href="http://www.invertia.com/especiales/r4/eurdolar/default.asp" class=enlace2><img src=/img/pest_serv.gif border=0 alt="Especial petróleo"></a></td>';
if (ident==2 && mensaje==1)
{
	a=a+'<td valign=bottom align=right width=50 rowspan=2><img src=/img/lin1.gif height=25 width=100></td>';
	a=a+'<td rowspan=2 width=6 valign=bottom><img height=9 width=6 border=0 src=/img/lin_sup.gif></td>';
	a=a+'<td valign=middle align=right colspan=2  class=TABLA>';
}
else
{
    a=a+'<td valign=bottom align=right width=50 rowspan=2><img src=/img/lin1.gif  width=100 height=25></td>';
    a=a+'<td rowspan=2 width=6 valign=bottom><img width=6 height=9 border=0 src=/img/lin_sup.gif></td>';
    a=a+'<td valign=middle align=right colspan=2  class=TABLA>';
}

if (ident==2)
{
	a = a + '<div id="pers">';
	a = a + '<ul>';
	
	if (mensaje==1)
	{
		   	if (numero == 1)
		{
				a=a + '<li><a class="a2" href="http://servicios.invertia.com/mensajes/default.asp" title="Tienes ' + numero + ' mensaje nuevo"><img src="/img/mensaje_animado.gif" align=center width=18 height=14 border =0></a></li>';		
		}
		else
		{
				a=a + '<li><a class="a2" href="http://servicios.invertia.com/mensajes/default.asp" title="Tienes ' + numero + ' mensajes nuevos"><img src="/img/mensaje_animado.gif" align=center width=18 height=14 border =0></a></li>';		
		}
	}
	if (TR==1)  
	{
		a=a + '<li><a class="a2" href="http://www.invertia.com/mercados/acciones/default.asp?idtel=IB011IBEX35" title="Dispones de tiempo real"><img border=0 src=/js/i/rlj.gif border=0 width=11 height=11></a></li>';
	}
	
		//a = a + '<font color=black style={font-size:.9em}>Hola</font>&nbsp;<b><font style={font-size:.9em} color=#99000><a href=https://login.invertia.com/global/ title=Datos personales style={text-decoration:none}>' + nick + '</a></font></b>&nbsp;';
		//a = a + '<img border=0 src=/img/bulletnaranja.gif align=center valign=center></img>&nbsp;';
		//a = a + '<font color=black style={font-size:.9em}><a href=' + actionlogouttid + ' style={color:black}>Cerrar Sesión</a></font>&nbsp;<img border=0 align=center valign=center src=/img/bulletnaranja.gif></img>&nbsp;<font color=black style={font-size:.9em}><a href=' + MiCuenta + ' style={color:black}>Mi Cuenta</a></font>';
		
		a = a + '<li><font color="black">&nbsp;Hola</font> <b><a class="a22" href="https://login.invertia.com/global/" title="Datos personales">' + nick + '</a></b></li>';
		a = a + '<li><a href="' + actionlogouttid + '">Cerrar Sesi&oacute;n</a></li>';
		a = a + '<li><a href="' + MiCuenta + '">Mi cuenta</a></li>';

		a = a + '</ul>';
		a = a + '</div>';

		
	
	a=a+'</td>';
}
else if (ident==0)
{
	if (ltidr>0)
	{
			
		//a = a + '&nbsp;<font color="black" style="{font-size:.9em}">Hola</font>&nbsp;<b><font color="#cccccc" style="{font-size:.9em}">' + tidr + '</font></b>&nbsp;';
		//a = a + '<a href=' + actionlogouttid + '><img border="0" valign="bottom" width="10" height="10" src="/img/cerrar_p.gif" alt ="Desidentificarse" width="15" height="12"></a>&nbsp;';
		//a = a + '<img border="0" src="/img/bulletnaranja.gif" align="center" valign="center"></img>&nbsp;';
		//a = a + '<font color="black" style="{font-size:.9em}"><a href="https://login.invertia.com/login/default.aspx?idsec=1&url_origen=' + url_origen + '" style="{color:black}">Iniciar Sesión</a></font>&nbsp;<img border="0" align="center" valign="center" src="/img/bulletnaranja.gif"></img>&nbsp;<font color="black" style="{font-size:.9em}"><a href="' + MiCuenta + '" style="{color:black}">Mi Cuenta</a></font>';
		
		a = a + '<div id="pers">';
		a = a + '<ul>';
		a = a + '<li><font color="black">Hola</font> <strong class="gr2">' + tidr + '</strong>&nbsp;<a class="a2" href="' + actionlogouttid + '"><img src="/img/cerrar_p.gif" alt="Desidentificarse" width="10" height="10" border="0"></a></li>';
		a = a + '<li><a href="https://login.invertia.com/login/default.aspx?idsec=1&url_origen=' + url_origen + '">Iniciar Sesi&oacute;n</a></li>';
		a = a + '<li><a href="' + MiCuenta + '>">Mi cuenta</a></li>';
		a = a + '</ul>';
		a = a + '</div>';		
	}
	else	
	{
	
		//a = a + '<font color="black" style="{font-size:.9em}"><a href="javascript:document.desconectar.submit()" style="{color:black}">Iniciar Sesión</a></font>';
		//a = a + '&nbsp;<img border="0" src="/img/bulletnaranja.gif" align="center" valign="center"></img>&nbsp;';
		//a = a + '<font color="black" style="{font-size:.9em}"><a href="' + RegistrateTerra + '" style="{color:black}">Regístrate</a></font>';
		//a = a + '&nbsp;<img border="0" src="/img/bulletnaranja.gif" align="center" valign="center"></img>&nbsp;';
		//a = a + '<span style="{cursor:hand;color:black;font-size:.9em;text-decoration:underline}" onclick="tid_MostrarVentana()">Terra ID</span>&nbsp;<img src="/img/ic_ayuda.gif" border="0" style="{DISPLAY: inline;}" alt="¿Conoces tu Terra ID?"></img>';
		
		a = a + '<div id="pers">';
		a = a + '<ul>';
		a = a + '<li><a class="a2" href="javascript:document.desconectar.submit()">Iniciar Sesi&oacute;n</a></strong></li>';
		a = a + '<li><a href="' + RegistrateTerra + '">Regístrate</a></li>';
		a = a + '<li><a href="javascript:tid_MostrarVentana()">[Terra ID <img border="0" width="7" heigth="9" src="/img/ic_ayuda.gif" alt="¿Conoces tu Terra ID?"> ]</a></li>';
		a = a + '</ul>';
		a = a + '</div>';
	}

	//a = a + '<table border="0" cellpadding="0" cellspacing="0"><tr>';
	//a = a + '<td valign="bottom">&nbsp;&nbsp;<a href="javascript:document.desconectar.submit()"><img  src=/img/cab_ident.gif width="72" height="12" border="0"></a></td>';
	//a = a + '<td valign="top">&nbsp;<span style="{cursor:hand;color:black;font-face:Verdana;font-size:12px}" onclick="tid_MostrarVentana()">|&nbsp;Nuevo Terra ID&nbsp;<img src="/img/id_flow3.gif" border="0" alt="Ver mi identificador en Terra."></img></span></td></tr></table></td>'	
}
else
{	
	if (cabecera_useruid_recnorec.length>0)
	{
		//a = a + '<font style="{font-size:.9em}" color="gray">' + nick + '</font></b>';
		//a = a + '<img border="0" src="/img/bulletnaranja.gif" align="center" valign="center"></img>';
		//a = a + '<font color="black" style="{font-size:.9em}"><a href="' + actionlogouttid + '" style="{color:black}">Cerrar Sesión</a></font>&nbsp;<img border="0" align="center" valign="center" src="/img/bulletnaranja.gif"></img>&nbsp;<font color="black" style="{font-size:.9em}"><a href="' + MiCuenta + '" style="{color:black}">Mi Cuenta</a></font>';
		
		a = a + '<div id="pers">';
		a = a + '<ul>';
		a = a + '<li><font color="black">&nbsp;Hola&nbsp;</font><strong class="gr">' + nick + '</strong></li>';
		a = a + '<li><a href="' + actionlogouttid + '">Cerrar Sesi&oacute;n</a></li>';
		a = a + '<li><a href="' + MiCuenta + '">Mi cuenta</a></li>';
		a = a + '</ul>';
		a = a + '</div>'									
	}
	else
	{
		//a = a + '&nbsp;<font color="black" style="{font-size:.9em}">Hola</font>&nbsp;<b><font color="#cccccc" style="{font-size:.9em}">' + nick + '</font></b>&nbsp;';
		//a = a + '<a href=' + actionlogouttid + '><img border="0" width="10" height="10" valign="bottom" src="/img/cerrar_p.gif" alt ="Desidentificarse" width="15" height="12"></a>&nbsp;';
		//a = a + '<img border="0" src="/img/bulletnaranja.gif" align="center" valign="center"></img>&nbsp;';
		//a = a + '<font color="black" style="{font-size:.9em}"><a href="https://login.invertia.com/login/default.aspx?idsec=1&url_origen=' + url_origen + '" style="{color:black}">Iniciar Sesión</a></font>&nbsp;<img border="0" align="center" valign="center" src="/img/bulletnaranja.gif"></img>&nbsp;<font color="black" style="{font-size:.9em}"><a href="' + MiCuenta + '" style="{color:black}">Mi Cuenta</a></font>';
		
		a = a + '<div id="pers">';
		a = a + '<ul>';
		a = a + '<li><font color="black">Hola</font> <strong class="gr2">' + nick + '</strong>&nbsp;<a class="a2" href="' + actionlogouttid + '"><img src="/img/cerrar_p.gif" alt="Desidentificarse" width="10" height="10" border="0"></a></li>';
		a = a + '<li><a href="https://login.invertia.com/login/default.aspx?idsec=1&url_origen=' + url_origen + '">Iniciar Sesi&oacute;n</a></li>';
		a = a + '<li><a href="' + MiCuenta + '">Mi cuenta</a></li>';
		a = a + '</ul>';
		a = a + '</div>';
		
	}
	a=a+'</td>';
}
if ((ident)||(ltidr>0))
{
	//a=a+'<td valign=middle width=14><a href="' + actionlogouttid + '"><img border 0 src="/img/cerrar.gif" alt ="Desconexión" width=15 height=12></a></td>';
	a=a+'<td valign=middle width=14><img src=/img/1_1_pixel.gif width=1 height=1 rowspan=2></td>';
}
else
{
	a=a+'<td valign=middle width=14><img src=/img/1_1_pixel.gif width=1 height=1 rowspan=2></td>';
}
a=a+'</TR>';
a=a+'<TR>';
if(window.screen.width >= 1024)
{
a=a+'<td colspan=2 valign=bottom><img src="/img/lin_inf.gif" width=100% height=5 border=0></td>';
a=a+'<td valign=bottom align=left><img src=/img/lin_fin.gif width=5 height=5><img src=/img/1_1_pixel.gif width=1 height=2 border=0></td></tr>';
//	a=a+'<td colspan=2 valign=bottom><img src="/img/lin_inf.gif" border=0 width=255 height=5><img src="/img/lin_fin.gif" border=0 width=5 height=5></td>';
}
else
{
a=a+'<td colspan=2 valign=bottom><img src="/img/lin_inf.gif" width=100% height=5 border=0></td>';
a=a+'<td valign=bottom align=left><img src=/img/lin_fin.gif width=5 height=5><img src=/img/1_1_pixel.gif width=1 height=2 border=0></td></tr>';
//	a=a+'<td colspan=2 valign=bottom><img src="/img/lin_inf.gif" border=0 width=32 height=5><img src="/img/lin_fin.gif" border=0 width=5 height=5></td>';
}
a=a+'</tr></form></TABLE>';
a = a + '<TABLE  border=0 bordercolor=red cellpadding=0 cellspacing=0 height=12 width=100% >';
a = a + '<TR><TD bgcolor=#B4B4B4 width=150 NOWRAP align=center><a href=/foros/list_carpetas3.asp class=TABLA><b>Carpetas</b></a></td>';
a = a + '<TD bgcolor=#B4B4B4 width=20 ><img src=/img/1_white.gif width=1 height=10 border=0><img src=/img/1_black.gif width=1 height=10></td>';
a = a + '<TD bgcolor=#B4B4B4 width=150 NOWRAP align=center><a href=/foros/mensajes_rec.asp class=TABLA><b>Foros Destacados</b></a></td>';
a = a + '<TD bgcolor=#B4B4B4 width=20 ><img src=/img/1_white.gif width=1 height=10 border=0><img src=/img/1_black.gif width=1 height=10></td>';
a = a + '<TD bgcolor=#B4B4B4 width=150 NOWRAP align=center><a href=/foros/mensa_fav.asp class=TABLA><b>Mis Foros</b></a></td>';
a = a + '<TD bgcolor=#B4B4B4 width=20 ><img src=/img/1_white.gif width=1 height=10 border=0><img src=/img/1_black.gif width=1 height=10></td>';
a = a + '<TD bgcolor=#B4B4B4 width=150 NOWRAP align=center><img src="/img/star_on.gif" border="0"><img src=../img/1_1_pixel.gif height=1 width="5" border=0></img><a href=/foros/masforeros_calculodiario.asp class=TABLA><b>Los + foreros</b></a></td>';
a = a + '<TD bgcolor=#B4B4B4 width=20 ><img src=/img/1_white.gif width=1 height=10 border=0><img src=/img/1_black.gif width=1 height=10></td>';

a = a + '<TD bgcolor=#B4B4B4 width=100 NOWRAP align=center><a href=/foros/ayudaforo.asp class=TABLA><b>Ayuda</b></a></td>';
a = a + '<TD align=middle bgColor=#B4B4B4 class=TABLA>&nbsp;</td>';
a = a + '<td rowspan=2 valign=bottom align=right width=38><img src=../img/bnend2.gif width=38 height=16></td></TR>';
a = a + '<tr><td bgcolor=#000000 colspan=11><img src=../img/1_1_pixel.gif width=100% height=1 border=0></td></tr>';

//a = a + '<TD align=middle width=100% bgColor=#B4B4B4 class=TABLA>&nbsp;</td>';
//a = a + '<td rowspan=2 valign=bottom align=right width=38><img src=../img/patrocinio_capital.gif width=199 height=21 border=0></td></TR>';

//a = a + '<tr><td bgcolor=#000000 colspan=10><img src=../img/1_1_pixel.gif width=100% height=1 border=0></td></tr>';
a = a + '</table>';




document.write (a);

function abrir(pagina,tamano){
window.open(pagina,'Invertia','resizable=no,toolbar=yes,scrollbars=yes,alwaysRaised=yes,width=700,height=500,screenX=50,screenY=0,alwaysRaised=yes,status=yes');
}

function abrir_glo(pagina,cadena){
window.open(pagina,'Invertia',cadena);
}



function usu(pagina,tamano){
window.open(pagina,'Invertia','resizable=no,toolbar=no,scrollbars=no,alwaysRaised=no,width=400,height=270creenX=50,screenY=0,alwaysRaised=no,status=no');
}
