/*Versión: 0.1 Autor: Juan Antonio Duque Fecha: 03/12/2001*/
var constante=14;var contenido=0;var contenido2=0;var control=20;var tamanyoCelda=138;var alturaCelda=14;var control2=0;var elementos=3;var constLeft=319;var ruta=dameRuta();isNS4=(document.layers&&!document.getElementById)?true:false;isIE4=(document.all&&!document.getElementById)?true:false;isIE5=(document.all&&document.getElementById)?(navigator.appName!="Netscape"?true:false):false;isNM=(document.all&&document.getElementById)?(navigator.appName=="Netscape"?true:false):false;isNS6=(!document.all&&document.getElementById)?true:false;for(var h=0;h<elementos;h++){if(isNS4){if(h==0){contenido='<layer id="menupr'+(h+1)+'" Left="'+constLeft+'" Top="103" width="'+tamanyoCelda+'" visibility="hide" z-Index="1"><table border=0 cellspacing=0 cellpadding=0><tr><td bgcolor="#003333" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#003333" height=1 width='+(tamanyoCelda-21)+'><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td rowspan=3 width=4><img src="'+ruta+'img/edesvecombo.gif" width=4 height=16></td><td width=1 rowspan=3><a href="#" onmouseover="MostrarCapa('+h+')" onmouseout="" class="text1"><img src="'+ruta+'img/bodecombo.gif" width="18" height="16" border=0></a></td><tr><td bgcolor="#ffffff"><img src="'+ruta+'img/sp.gif" width="10" height="1"><img src="'+ruta+'img/sp.gif" width=1 height='+alturaCelda+' border=0><img src="'+ruta+'img/sp.gif" width="10" height="1"></td><tr><td bgcolor="#003333" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td></table></layer>';}else{if(h==1)v="hide";else v="show";	eval("var control2=document.menupr"+h+".left + document.menupr"+h+".document.width");eval("var controlx=document.menupr"+h+".document.width");
contenido='<layer id="menupr'+(h+1)+'" Left='+(control2+constante)+' Width="'+tamanyoCelda+'" Top="103" visibility="'+v+'" z-Index="1"><table border=0 cellspacing=0 cellpadding=0><tr><td bgcolor="#003333" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#003333" height=1 width='+(controlx-21)+'><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td rowspan=3 width=4><img src="'+ruta+'img/edesvecombo.gif" width=4 height=16></td><td width=1 rowspan=3><a href="#" onmouseover="MostrarCapa('+h+')"  onmouseout="" class="text1"><img src="'+ruta+'img/bodecombo.gif" width="18" height="16" border=0></a></td><tr><td bgcolor="#ffffff"><img src="'+ruta+'img/sp.gif" width="10" height="1"><img src="'+ruta+'img/sp.gif" width=1 height='+alturaCelda+' border=0><img src="'+ruta+'img/sp.gif" width="10" height="1"></td><tr><td bgcolor="#003333" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td></table></layer>';control2=0;}}else if(isIE4){if(h==0){contenido='<div id="menupr'+(h+1)+'" style="position:absolute;left:'+constLeft+'px;top:103px;width:'+tamanyoCelda+'px;visibility:hidden;z-Index:1"><table border=0 cellspacing=0 cellpadding=0 width='+tamanyoCelda+'><tr><td bgcolor="#003333" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#003333" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td rowspan=3 width=4><img src="'+ruta+'img/edesvecombo.gif" width=4 height=16></td><td width=1 rowspan=3><a href="#" onmouseover="MostrarCapa('+h+')"  onmouseout="" class="text1"><img src="'+ruta+'img/bodecombo.gif" width="18" height="16" border=0></a></td></tr><tr><td bgcolor="#ffffff"><img src="'+ruta+'img/sp.gif" width="10" height="1"><img src="'+ruta+'img/sp.gif" width=1 height='+alturaCelda+' border=0><img src="'+ruta+'img/sp.gif" width="10" height="1"></td></tr><tr><td bgcolor="#003333" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td></tr></table></div>';}else{if(h==1)v="hidden";else v="visible";
eval("var control2=document.all.menupr"+h+".style.pixelLeft + document.all.menupr"+h+".clientWidth");eval("var controlx=document.all.menupr"+h+".clientWidth");contenido='<div id="menupr'+(h+1)+'" style="position:absolute;left:'+(control2+constante)+'px;top:103px;width:'+tamanyoCelda+'px;visibility:'+v+';z-Index:1"><table border=0 cellspacing=0 cellpadding=0 width='+controlx+'><tr><td bgcolor="#003333" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#003333" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td rowspan=3 width=4><img src="'+ruta+'img/edesvecombo.gif" width=4 height=16></td><td width=1 rowspan=3><a href="#" onmouseover="MostrarCapa('+h+')"  onmouseout="" class="text1"><img src="'+ruta+'img/bodecombo.gif" width="18" height="16" border=0></a></td><tr><td bgcolor="#ffffff"><img src="'+ruta+'img/sp.gif" width="10" height="1"><img src="'+ruta+'img/sp.gif" width=1 height='+alturaCelda+' border=0><img src="'+ruta+'img/sp.gif" width="10" height="1"></td><tr><td bgcolor="#003333" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td></table></div>';control2=0;}}else{if(h==0){
contenido='<div id="menupr'+(h+1)+'" style="position:absolute;left:'+constLeft+'px;top:103px;width:'+tamanyoCelda+'px;height:21px;visibility:hidden;z-Index:1"><table border=0 cellspacing=0 cellpadding=0 width='+(tamanyoCelda)+'><tr><td bgcolor="#003333" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#003333" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td rowspan=3 width=4><img src="'+ruta+'img/edesvecombo.gif" width=4 height=16></td><td width=1 rowspan=3><a href="#" onmouseover="MostrarCapa('+h+');"  onmouseout="" class="text1"><img src="'+ruta+'img/bodecombo.gif" width="18" height="16" border=0></a></td></tr><tr><td bgcolor="#ffffff"><img src="'+ruta+'img/sp.gif" width="10" height="1"><img src="'+ruta+'img/sp.gif" width=1 height='+alturaCelda+' border=0><img src="'+ruta+'img/sp.gif" width="10" height="1"></td></tr><tr><td bgcolor="#003333" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td></tr></table></div>';control2=tamanyoCelda+constLeft;}else{if(h==1)v="hidden";else v="visible";
contenido='<div id="menupr'+(h+1)+'" style="position:absolute;left:'+(control2+constante)+'px;top:103px;width:'+tamanyoCelda+'px;height:21px;visibility:'+v+';z-Index:1"><table border=0 cellspacing=0 cellpadding=0><tr><td bgcolor="#003333" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#003333" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td rowspan=3 width=4><img src="'+ruta+'img/edesvecombo.gif" width=4 height=16></td><td width=1 rowspan=3><a href="#" onmouseover="MostrarCapa('+h+')"  onmouseout="" class="text1"><img src="'+ruta+'img/bodecombo.gif" width="18" height="16" border=0></a></td></tr><tr><td width=179 bgcolor="#ffffff"><img src="'+ruta+'img/sp.gif" width="10" height="1"><img src="'+ruta+'img/sp.gif" width=1 height='+alturaCelda+' border=0><img src="'+ruta+'img/sp.gif" width="10" height="1"></td></tr><tr><td bgcolor="#003333" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td></tr></table></div>';control2=control2+tamanyoCelda+14;}}document.write(contenido);contenido="";}for(var i=0;i<elementos;i++){if(isNS4){eval('var posx'+i+'=document.menupr'+(i+1)+'.left');eval('var posy'+i+'=document.menupr'+(i+1)+'.top');eval('var topy'+i+'=document.menupr'+(i+1)+'.document.height');}else{if(isIE4){eval('var posx'+i+'=document.all.menupr'+(i+1)+'.style.pixelLeft');eval('var posy'+i+'=document.all.menupr'+(i+1)+'.style.pixelTop');eval('var topy'+i+'=document.all.menupr'+(i+1)+'.clientHeight');}else{if(isIE5){eval('var posx'+i+'=parseInt(document.getElementById("menupr'+(i+1)+'").style.left)');eval('var posy'+i+'=parseInt(document.getElementById("menupr'+(i+1)+'").style.top)');eval('var topy'+i+'=parseInt(document.getElementById("menupr'+(i+1)+'").style.height)');eval('topy'+i+'=topy'+i+'-5');}else{if(i==0){auxposx=constLeft;}else{auxposx=tamanyoCelda+14+auxposx;}eval('var posy'+i+'=-20');eval('var posx'+i+'='+auxposx);eval('var topy'+i+'='+tamanyoCelda);}}}}
var posx4=512;var posy4=100;var topy4=77;var posx3=512;var posy3=100;var topy3=370;var posx5=170;var posy5=0;var topy5=63;if(isNM){var auxCapa="border-width:1;border-style:solid;border-color:#003333;";var auxCapaGrupo="border-width:1;border-style:solid;border-color:#00287A;";}else{var auxCapa="";var auxCapaGrupo="";}for(var i=0;i<nivel.length;i++){if(i==5){colores=new Array('#00287A','#CAD1DF','#B8BDCD');auxCapa=auxCapaGrupo;up="up2.gif";down="down2.gif";flecha="edinflecha2.gif";}else{colores=new Array('#003333','#D3E3E3','#8BA1CE');auxCapa=auxCapa;up="up.gif";down="down.gif";flecha="edinverflecha.gif";}if(isNS4){document.write('<layer id="idNivel'+i+'" Left="5" Top="5" visibility="hide" z-Index="9"></layer>');document.write('<layer id="idCuadro'+i+'" Left="5" Top="5" bgcolor="'+colores[2]+'" visibility="hide" z-Index="8"></layer>');document.write('<layer id="idTabla'+i+'" Left="5" Top="5" visibility="hide" z-Index="7"></layer>');
document.write('<layer id="idScroll'+i+'" Left="5" Top="5" visibility="hide" z-Index="7"><table border="0" cellspacing="0" cellpadding="1" bgcolor="'+colores[0]+'"><tr><td align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0" bgcolor="'+colores[1]+'"><tr><td align="center" valign="top"><img src="'+ruta+'img/sp.gif" width="1" height="5"></td></tr><tr><td><a href="#" onmouseout="mover=0;" onmouseover="mover=1;scrollArriba('+i+');"><img src="'+ruta+'img/'+up+'" width="10" border="0"></a></td></tr><tr><td align="center"><img src="'+ruta+'img/'+flecha+'" width="1" height="'+constHeight+'"></td></tr><tr><td><a href="#" onmouseout="mover=0;" onmouseover="mover=2;scrollAbajo('+i+');"><img src="'+ruta+'img/'+down+'" width="10" border="0"></a></td></tr><tr><td><img src="'+ruta+'img/sp.gif" width="1" height="5"></td></tr></table></td></tr></table></layer>');}else if(isIE4){document.write('<div id="idNivel'+i+'" style="position:absolute;left:5px;top:5px;visibility:hidden;z-Index:9"></div>');document.write('<div id="idCuadro'+i+'" style="position:absolute;left:5px;top:5px;visibility:hidden;z-Index:8;background-color:'+colores[2]+'"><img src="'+ruta+'img/sp.gif" width=1 height=1></div>');document.write('<div id="idTabla'+i+'" style="position:absolute;left:5px;top:5px;visibility:hidden;z-Index:7"></div>');
document.write('<div id="idScroll'+i+'" style="position:absolute;left:5px;top:5px;visibility:hidden;z-Index:7"><table border="0" cellspacing="0" cellpadding="1" bgcolor="'+colores[0]+'"><tr><td align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0" bgcolor="'+colores[1]+'"><tr><td align="center" valign="top"><img src="'+ruta+'img/sp.gif" width="1" height="5"></td></tr><tr><td><a href="javascript:scrollArriba('+i+');"><img src="'+ruta+'img/'+up+'" width="10" border="0" onmouseout="mover=0;" onmouseover="mover=1;scrollArriba('+i+');"></a></td></tr><tr><td align="center"><img src="'+ruta+'img/'+flecha+'" width="1" height="'+constHeight+'"></td></tr><tr><td><a href="javascript:scrollAbajo('+i+');"><img src="'+ruta+'img/'+down+'" width="10" border="0" onmouseout="mover=0;" onmouseover="mover=2;scrollAbajo('+i+');"></a></td></tr><tr><td><img src="'+ruta+'img/sp.gif" width="1" height="5"></td></tr></table></td></tr></table></div>');}else{document.write('<div id="idNivel'+i+'" style="position:absolute;left:5px;top:5px;visibility:hidden;z-Index:9"></div>');document.write('<div id="idCuadro'+i+'" style="position:absolute;left:5px;top:5px;visibility:hidden;z-Index:8;background-color:'+colores[2]+'"><img src="'+ruta+'img/sp.gif" width=1 height=1></div>');document.write('<div id="idTabla'+i+'" style="position:absolute;left:5px;top:5px;visibility:hidden;z-Index:7;'+auxCapa+'"></div>');
document.write('<div id="idScroll'+i+'" style="position:absolute;left:5px;top:5px;visibility:hidden;z-Index:7;'+auxCapa+'"><table border="0" cellspacing="0" cellpadding="1" bgcolor="'+colores[0]+'"><tr><td align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0" bgcolor="'+colores[1]+'"><tr><td align="center" valign="top"><img src="'+ruta+'img/sp.gif" width="1" height="5"></td></tr><tr><td><a href="javascript:scrollArriba('+i+');"><img src="'+ruta+'img/'+up+'" width="10" border="0"  onmouseout="mover=0;" onmouseover="mover=1;scrollArriba('+i+');"></a></td></tr><tr><td align="center"><img src="'+ruta+'img/'+flecha+'" width="1" height="'+constHeight+'"></td></tr><tr><td><a href="javascript:scrollAbajo('+i+');"><img src="'+ruta+'img/'+down+'" width="10" border="0" onmouseout="mover=0;" onmouseover="mover=2;scrollAbajo('+i+');"></a></td></tr><tr><td><img src="'+ruta+'img/sp.gif" width="1" height="5"></td></tr></table></td></tr></table></div>');}}if(!index){if(isNS4){document.write('<layer id="tabla10" Left="0" Top="0" visibility="hide"></layer>');document.write('<layer id="tabla11" Left="0" Top="0" visibility="hide"></layer>');document.write('<layer id="idDescrip0" Left="0" Top="0" visibility="hide"></layer>');document.write('<layer id="idDescrip1" Left="0" Top="0" visibility="hide"></layer>');}else{document.write('<div id="tabla10" style="position:absolute;left:0px;top:0px;visibility:hidden"></div>');document.write('<div id="tabla11" style="position:absolute;left:0px;top:0px;visibility:hidden"></div>');document.write('<div id="idDescrip0" style="position:absolute;left:0px;top:0px;visibility:hidden"></div>');document.write('<div id="idDescrip1" style="position:absolute;left:0px;top:0px;visibility:hidden"></div>');}}