
var flechadelao='img/pic_des.gif';
var flechabaja='img/pic_act.gif';
var cadenaSecciones=new Array();

function plegar(which,message,nimg){
  if (document.all||document.getElementById){
	 if (document.images) {
		document[nimg].src=flechadelao;
	 }
   if (document.getElementById) {document.getElementById(message).innerHTML ='';}
   else {message.innerHTML ='';}
  }
}

function expandir(which,message,nimg){
   if (document.all||document.getElementById){
	if (document.images) {
		document[nimg].src=flechabaja;
	}
     if (document.getElementById) {document.getElementById(message).innerHTML = Secciones(message)}
         else {message.innerHTML = Secciones(message);
	 }
   }
}


function Secciones(msg) {

switch (msg) {
	case 'tabla1':
		return cadenaSecciones[0];
		break;
	case 'tabla2':
		return cadenaSecciones[1];
		break;
	case 'tabla3':
		return cadenaSecciones[2];
		break;
	case 'tabla4':
		return cadenaSecciones[3];
		break;
	case 'tabla5':
		return cadenaSecciones[4];
		break;
	case 'tabla6':
		return cadenaSecciones[5];
		break;
	case 'tabla7':
		return cadenaSecciones[6];
		break;
	case 'tabla8':
		return cadenaSecciones[7];
		break;
	case 'tabla9':
		return cadenaSecciones[8];
		break;
	case 'tabla10':
		return cadenaSecciones[9];
		break;
	case 'tabla11':
		return cadenaSecciones[10];
		break;
		
}

}


function plegarSeccion() {

	var args=plegarSeccion.arguments;
	
	for (i=0;i<(args.length-1);i++) {
		var aux=args[i];
		var imagen='desplegableimg'+aux;
		plegar(aux,aux,'desplegableimg'+aux);
	}
}

function expandirSeccion() {

	var args=expandirSeccion.arguments;
	
	for (i=0;i<(args.length-1);i++) {
		var aux=args[i];
		expandir(aux,aux,'desplegableimg'+aux);
	}
}

function idioma(idiom) {
	var cadena1=document.URL;
	var cadena2="";
	var tamtotal=0;
	var tamsinarg=0;
	var urlBUENA="";
	var param="";
	var param1="";

	tamtotal=cadena1.length;  // Obtengo el tamaño maximo de la la URL
  
  while (cadena1.charAt(tamsinarg)!='?'){    // Obtengo el tamaño de la URL 
			tamsinarg ++                             // menos el parametro 
  }
  tamsinarg=tamsinarg+1;  
  
  param=cadena1.substring(tamsinarg, tamtotal); 
  param=param.substring(5,param.length);
  cadena2=cadena1.substring(0,tamsinarg);
	
	window.location=cadena2+"idi="+idiom+param;
}


function carga(){

 	cadenaSecciones[0]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'index.php\';"><a href="index.php">Nuestra Empresa</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'index.php\';"><a href="index.php">Nuestra Historia</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'index.php\';"><a href="index.php">Nuestras Oficinas</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'index.php\';"><a href="index.php">Servicios Gr&aacute;ficos<br>ServiGRAF</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'index.php\';"><a href="index.php">Atención al Cliente</a></td></tr>'+
	'</table>';
	
 	cadenaSecciones[1]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'index.php\';"><a href="index.php">Descripción</a></td></tr>'+
//	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'nl-ajur_caratula.php\';"><a href="nl-ajur_caratula.php">Carátulas Mes a Mes</a></td></tr>'+
//	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'nl-ajur_contenido.php\';"><a href="nl-ajur_contenido.php">Contenido en PDF</a></td></tr>'+
	//-'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'comprar-pdf.php\';"><a href="comprar-pdf.php">COMPRAR<br>Versión Digital en PDF</a></td></tr>'+
//	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/product_info.php?cPath=1&products_id=35\';"><a href="http://www.normaslegales.com/tiendaonline/product_info.php?cPath=1&products_id=35">COMPRAR<br>Tomo Impreso</a></td></tr>'+
//	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/product_info.php?products_id=91\';"><a href="http://www.normaslegales.com/tiendaonline/product_info.php?products_id=91"><b>COMPRAR<br>Suscripción 2006</b></a></td></tr>'+
	'</table>';
	
 	cadenaSecciones[2]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'nl-leg_index.php\';"><a href="nl-leg_index.php">Descripción</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'nl-leg_caratula.php\';"><a href="nl-leg_caratula.php">Carátulas Mes a Mes</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'nl-leg_contenido.php\';"><a href="nl-leg_contenido.php">Contenido en PDF</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'nl-leg_pnormas.php\';"><a href="nl-leg_pnormas.php">Principales Normas<br>Mes a Mes</a></td></tr>'+
	//'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'comprar-pdf.php\';"><a href="comprar-pdf.php">COMPRAR<br>Versión Digital en PDF</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/product_info.php?cPath=26&products_id=36\';"><a href="http://www.normaslegales.com/tiendaonline/product_info.php?cPath=26&products_id=36"><b>COMPRAR<br>Suscripción 2006</b></a></td></tr>'+
	'</table>';
	
 	cadenaSecciones[3]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/rpj2006\';"><a href="http://www.normaslegales.com/rpj2006"><b>Suscripción 2006-2007</b></a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'rp-juris_tomo1.php\';"><a href="rp-juris_tomo2.php">Tomo Principal</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'rp-juris_compendio1.php\';"><a href="rp-juris_compendio2.php">Compendio Especializado</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'rp-juris_consulta1.php\';"><a href="rp-juris_consulta2.php">Consulta Jurisprudencial</a></td></tr>'+
	//'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'rp-juris_compujuris1.php\';"><a href="rp-juris_compujuris1.php">CD Compujuris</a></td></tr>'+
	//'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'comprar-pdf.php\';"><a href="comprar-pdf.php">COMPRAR<br>Versión Digital en PDF</a></td></tr>'+
	//'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/product_info.php?cPath=1&products_id=40\';"><a href="http://www.normaslegales.com/tiendaonline/product_info.php?cPath=1&products_id=40">COMPRAR<br>Tomo Impreso</a></td></tr>'+
	'</table>';
	
 	cadenaSecciones[4]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'rj-peru_index.php\';"><a href="rj-peru_index.php">Descripción</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'rj-peru_caratula.php\';"><a href="rj-peru_caratula.php">Carátulas Mes a Mes</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'rj-peru_contenido.php\';"><a href="rj-peru_contenido.php">Contenido en PDF</a></td></tr>'+
	//'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'comprar-pdf.php\';"><a href="comprar-pdf.php">COMPRAR<br>Versión Digital en PDF</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/product_info.php?cPath=1&products_id=38\';"><a href="http://www.normaslegales.com/tiendaonline/product_info.php?cPath=1&products_id=38">COMPRAR<br>Tomo Impreso</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/product_info.php?cPath=26&products_id=39\';"><a href="http://www.normaslegales.com/tiendaonline/product_info.php?cPath=26&products_id=39">COMPRAR<br>Suscripción 2006</a></td></tr>'+
	'</table>';

 	cadenaSecciones[5]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'hechos_index.php\';"><a href="hechos_index.php">Descripción</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'hechos_caratula.php\';"><a href="hechos_caratula.php">Carátulas Mes a Mes</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'hechos_contenido.php\';"><a href="hechos_contenido.php">Contenido en PDF</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'hechos_publicidad.php\';"><a href="hechos_publicidad.php"><b>Anuncie en H&D</b></a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'hechos_obtener.php\';"><a href="hechos_obtener.php">OBTENER un ejemplar</a></td></tr>'+
	'</table>';

 	cadenaSecciones[6]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
	//'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'.htm\';"><a href="">Obras Autorales</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/boletinweb/mobiliaria/mobiliaria_web.htm\';"><a href="http://www.normaslegales.com/boletinweb/mobiliaria/mobiliaria_web.htm">Legislación Garantía Mobiliaria</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/boletinweb/npdcivil/nociones_web.htm\';"><a href="http://www.normaslegales.com/boletinweb/npdcivil/nociones_web.htm">Nociones Preliminares de Derecho Civil</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/boletinweb/aduanero/aduanero_web.htm\';"><a href="http://www.normaslegales.com/boletinweb/aduanero/aduanero_web.htm">Derecho Tributario Aduanero</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/index.php?cPath=1_24\';"><a href="http://www.normaslegales.com/tiendaonline/index.php?cPath=1_31">Compendios de Jurisprudencia</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/index.php?cPath=1_23\';"><a href="http://www.normaslegales.com/tiendaonline/index.php?cPath=1_36">Compendios Doctrinarios</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/index.php?cPath=1_33\';"><a href="http://www.normaslegales.com/tiendaonline/index.php?cPath=1_24">Compendios Legislativos</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/index.php?cPath=1_34\';"><a href="http://www.normaslegales.com/tiendaonline/index.php?cPath=1_37">Ediciones Autorales</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/index.php?cPath=1_7\';"><a href="http://www.normaslegales.com/tiendaonline/index.php?cPath=1_7">Códigos</a></td></tr>'+
	'</table>';

 	cadenaSecciones[7]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'compuleg5_index.php\';"><a href="compuleg5_index.php">Compuleg 5.2</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/index.php?cPath=27_28\';"><a href="http://www.normaslegales.com/tiendaonline/index.php?cPath=27_28">COMPRAR<br>Compuleg 5.2</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'compuleg6_index.php\';"><a href="compuleg6_index.php">Compuleg 6.1</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/index.php?cPath=27_29\';"><a href="http://www.normaslegales.com/tiendaonline/index.php?cPath=27_29">COMPRAR<br>Compuleg 6.1</a></td></tr>'+
	'</table>';

 	cadenaSecciones[8]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'normasdata_index.php\';"><a href="normasdata_index.php">Descripción</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'normasdata_ventajas.php\';"><a href="normasdata_ventajas.php">Ventajas</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'normasdata_busqueda.php\';"><a href="normasdata_busqueda.php">Tipos de Búsqueda</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'normasdata_modulos.php\';"><a href="normasdata_modulos.php">Módulos</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'normasdata_manual.php\';"><a href="normasdata_manual.php">Manual de Usuario</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/index.php?cPath=27_30\';"><a href="http://www.normaslegales.com/tiendaonline/index.php?cPath=27_30">COMPRAR</a></td></tr>'+
	'</table>';

 	cadenaSecciones[9]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/consultor/index.htm\';"><a href="http://www.normaslegales.com/consultor/index.htm" target="consultor">Ver DEMO CONSULTOR Municipal</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'luna.php\';"><a href="luna.php">ACTIVA Licencia<br>(Sistema LUNA)</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline/product_info.php?products_id=63\';"><a href="http://www.normaslegales.com/tiendaonline/product_info.php?products_id=63">COMPRAR CONSULTOR</a></td></tr>'+
	'</table>';

 	cadenaSecciones[10]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'boletinweb/calendar.htm\';"><a href="boletinweb/calendar.htm">Boletín Legal Diario</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'online_directorio1.php\';"><a href="online_directorio1.php">DIRECTORIO Institucional</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'luna.php\';"><a href="luna.php">ACTIVA Licencia (Sistema LUNA)</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'leyesenlared.php\';"><a href="leyesenlared.php">Actualización de Servicios Informáticos</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'atencion_index.php\';"><a href="atencion_index.php">Atención al Cliente</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'atencion_sol.php\';"><a href="atencion_sol.php">Soporte OnLine</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'online_orientacion.php\';"><a href="online_orientacion.php">Orientación Jurídica</a></td></tr>'+
	'<tr><td class="menusub" onMouseOver="this.className = \'menusubover\';"  onMouseOut="this.className = \'menusub\';" onclick="location.href=\'http://www.normaslegales.com/tiendaonline\';"><a href="http://www.normaslegales.com/tiendaonline"><b>Tienda OnLine</b></a></td></tr>'+
	'</table>';
}

carga();


