/*Versión: 0.1 Juan Pablo Mejias 18/12/2001 Adaptacion del codigo como en los otros Portales Versión: 0.2 Autor: Juan Pablo Mejias 15/01/2002 Generacion del menu de Solicitud de Banca On Line*/
var constante=14;var contenido=0;var control=20;var control2=0;var tamanyoCelda=138;var alturaCelda=14;var elementos=2;var constLeft=450;var ruta=dameRuta();
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="show" z-Index="10"><table border=0 cellspacing=0 cellpadding=0><tr><td bgcolor="#7A181D" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#7A181D" 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="javascript:void(null)" 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="#7A181D" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td></table></layer>';}else{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="show" z-Index="10"><table border=0 cellspacing=0 cellpadding=0><tr><td bgcolor="#7A181D" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#7A181D" 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="javascript:void(null)" 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="#7A181D" 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:visible;z-Index:10"><table border=0 cellspacing=0 cellpadding=0 width='+tamanyoCelda+'><tr><td bgcolor="#7A181D" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#7A181D" 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="javascript:void(null)" 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="#7A181D" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td></table></div>';
}else{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:visible;z-Index:10"><table border=0 cellspacing=0 cellpadding=0 width='+controlx+'><tr><td bgcolor="#7A181D" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#7A181D" 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="javascript:void(null)" 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="#7A181D" 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:visible;z-Index:10"><table border=0 cellspacing=0 cellpadding=0 width='+(tamanyoCelda)+'><tr><td bgcolor="#7A181D" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#7A181D" 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="javascript:void(null)" 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="#7A181D" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td></table></div>';
control2=constLeft+tamanyoCelda;}else{contenido='<div id="menupr'+(h+1)+'" style="position:absolute;left:'+(control2+constante)+'px;top:103px;width:'+tamanyoCelda+'px;height:21px;visibility:visible;z-Index:10"><table border=0 cellspacing=0 cellpadding=0><tr><td bgcolor="#7A181D" width=1 rowspan=3><img src="'+ruta+'img/sp.gif" width="1" height="1"></td><td bgcolor="#7A181D" 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="javascript:void(null)" 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="#7A181D" height=1><img src="'+ruta+'img/sp.gif" width="1" height="1"></td></tr></table></div>';control2 = control2 + tamanyoCelda + constante;}}}document.write(contenido);contenido=0;} 
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){control2=constLeft;}
else{control2 = control2+tamanyoCelda+constante;}eval ('var posx'+i+'='+control2);eval ('var posy'+i+'=-20');eval ('var topy'+i+'='+tamanyoCelda);}}}}var posx2=170;var posy2=0;var topy2=63;var posx3=34;var posy3=0;if(isNS4){var topy3=305;}else{var topy3=300;}var posx4=20;var posy4=0;if(isNS4){var topy4=412;}else{var topy4=405;}
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==2){colores = new Array('#00287A','#CAD1DF','#B8BDCD');auxCapa=auxCapaGrupo;up="up2.gif";down="down2.gif";flecha="edinflecha2.gif";}else{colores = new Array('#003333','#F5ECFF','#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(isNS4){document.write('<layer id="posicion" Left="5" Top="5" visibility="hide" z-Index="9"></layer>');
}else if(isIE4){document.write('<div id="posicion" style="position:absolute;left:5px;top:5px;visibility:hidden;z-Index:9"></div>');}else{document.write('<div id="posicion" style="position:absolute;left:5px;top:5px;visibility:hidden;z-Index:9;"></div>');}