function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck()


function showdiv(pass) { 
	var divs = document.getElementsByTagName('div'); 
	for(i=0;i<divs.length;i++){ 
		if(divs[i].id.match(pass)){//if they are 'see' divs 
			if (document.layers) // Netscape 4 
				document.layers[divs[i]].display = 'visible'; 
			else 
				if (document.getElementById) // DOM3 = IE5, NS6 
					divs[i].style.visibility='visible';// show/hide 
				else // IE 4 
					document.all.divs[i].visibility = 'visible'; 
		} else { 
			if (document.layers) // Netscape 4 
				document.divs[i].visibility = 'hidden'; 
			else 
				if (document.getElementById) 
					divs[i].style.visibility='hidden'; 
			else // IE 4 
				document.all.divs[i].visibility = 'hidden'; 
		} 
	} 
} 
function showdiv2(pass) { 
	var divs = document.getElementsByTagName('div'); 
	for(i=0;i<divs.length;i++){ 
		if(divs[i].id.match(pass)){//if they are 'see' divs 
			if (document.getElementById) // DOM3 = IE5, NS6 
				divs[i].style.visibility='visible';// show/hide 
			else 
				if (document.layers) // Netscape 4 
					document.layers[divs[i]].display = 'visible'; 
				else // IE 4 
					document.all.divs[i].visibility = 'visible'; 
		} else { 
			if (document.getElementById) 
				divs[i].style.visibility='hidden'; 

			else 
				if (document.layers) // Netscape 4 
					document.divs[i].visibility = 'hidden'; 
			else // IE 4 
				document.all.divs[i].visibility = 'hidden'; 
		} 
	} 
} 
		
function menuclick(a,b,c)
{
	if (a) eval('showdiv(\'Div'+a+'\')')
	//if (a) eval('writit(\'menuDiv\',null,menu'+a+')')
	if (b) {
		if (c) window.frames.c.document.location.href=b
		else window.open (b,"Chart", "width=800,height=600,scrollbars=yes,resizable=yes,left = 0,top = 0");
	}
}
	

b0='<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 width=145><tr><td><img src="imagen/sp.gif" width=1 height=1></td></tr></table>';
b1='<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=0>';
b2='</TABLE>';
b3='<TR><TD><img src="imagen/sp.gif" width=1 height=1></TD><TD><TABLE BORDER=0 CELLSPACING=2 CELLPADDING=0>';
b4='</TABLE></TD></TR>';

m1='<TR><TD colspan=2><table width=140 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=24>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=autores\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chart.gif WIDTH=24 HEIGHT=22 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=autores\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+autores+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m2='<TR><TD colspan=2><table width=140 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=24>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=empresas\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chart.gif WIDTH=24 HEIGHT=22 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=empresas\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+empresas+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';


m3='<TR><TD colspan=2><table width=140 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=24>'+
'<A HREF=javascript:menuclick(2) onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartmas.gif WIDTH=24 HEIGHT=22 BORDER=0></A></TD>'+
'<TD width=119><A HREF=javascript:menuclick(2) CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;Top 100</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m3x='<TR><TD colspan=2><table width=140 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=24>'+
'<A HREF=javascript:menuclick(1) onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartmenos.gif WIDTH=24 HEIGHT=22 BORDER=0></A></TD>'+
'<TD width=119><A HREF=javascript:menuclick(1) CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;Top 100</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m30='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topcien1&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartmnd.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topcien1&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+autores+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m31='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topcien4&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartgal.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topcien4&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+obrart+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m32='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topcien3&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartlit.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topcien3&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+obrlit+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m33='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topcien5&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartm.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topcien5&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+obrmus+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m4='<TR><TD colspan=2><table width=140 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=24>'+
'<A HREF=javascript:menuclick(3) onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartmas.gif WIDTH=24 HEIGHT=22 BORDER=0></A></TD>'+
'<TD width=119><A HREF=javascript:menuclick(3) CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;Top 7</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m4x='<TR><TD colspan=2><table width=140 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=24>'+
'<A HREF=javascript:menuclick(1) onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartmenos.gif WIDTH=24 HEIGHT=22 BORDER=0></A></TD>'+
'<TD width=119><A HREF=javascript:menuclick(1) CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;Top 7</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m40='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topsiete1&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartmnd.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topsiete1&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+autores+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m41='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topsiete4&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartgal.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topsiete4&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+obrart+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m42='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topsiete3&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartlit.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topsiete3&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+obrlit+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m43='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topsiete5&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartm.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=topsiete5&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+obrmus+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m5='<TR><TD colspan=2><table width=140 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=24>'+
'<A HREF=javascript:menuclick(4) onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartmas.gif WIDTH=24 HEIGHT=22 BORDER=0></A></TD>'+
'<TD width=119><A HREF=javascript:menuclick(4) CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;Top %</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m5x='<TR><TD colspan=2><table width=140 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=24>'+
'<A HREF=javascript:menuclick(1) onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartmenos.gif WIDTH=24 HEIGHT=22 BORDER=0></A></TD>'+
'<TD width=119><A HREF=javascript:menuclick(1) CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;Top %</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m50='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=toppc1&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartmnd.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=toppc1&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+autores+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m51='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=toppc4&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartgal.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=toppc4&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+obrart+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m52='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=toppc3&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartlit.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=toppc3&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+obrlit+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

m53='<TR><TD colspan=2><table width=135 border=0 CELLSPACING=1 CELLPADDING=1 bgcolor='+fondo1+'><tr><td bgcolor='+fondo3+'><table border=0 CELLSPACING=0 CELLPADDING=0><tr><td width=14>'+
'<A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=toppc5&id='+id+'\') onMouseOver="window.status=\' \';return true;"><IMG SRC=img/chartm.gif WIDTH=14 HEIGHT=14 BORDER=0></A></TD>'+
'<TD bgcolor='+fondo2+' width=119><A HREF=javascript:menuclick(0,\'chart.php?idioma='+idioma+'&opc=toppc5&id='+id+'\') CLASS=txtverdebig2 onMouseOver="window.status=\' \';return true;"><b>&nbsp;'+obrmus+'</b></A></TD></TR>'+
'</table></td></tr></table></td></tr>';

menu1=b1+m1+m2+m3+m4+m5+b2;
menu2=b1+m1+m2+m3x+b3+m30+m31+m32+m33+b4+m4+m5+b2;
menu3=b1+m1+m2+m3+m4x+b3+m40+m41+m42+m43+b4+m5+b2;
menu4=b1+m1+m2+m3+m4+m5x+b3+m50+m51+m52+m53+b4+b2;

document.write ('<div id=\"Div1\" class=capas>'+menu1+'</div>');
document.write ('<div id=\"Div2\" class=capas>'+menu2+'</div>');
document.write ('<div id=\"Div3\" class=capas>'+menu3+'</div>');
document.write ('<div id=\"Div4\" class=capas>'+menu4+'</div>');

showdiv('Div1');