var estados = ['out', 'over', 'down'];

var MENU_ELEM = [
	[envolverNivel0('Inicio'), 'index.php', [null, null, 58, null]],
	[envolverNivel0('Productos y servicios'), 'productos.htm', [58, null, 160, null],
		[envolverSubnivelSubmenu('Registro de dominios'), 'registro-dominios.htm', null,
//			[envolverSubnivel('.com, .net, .org, .info, .biz'), 'com_org_net.htm', null],
			[envolverSubnivel('Buscador de dominios'), 'whois.php', [null, null, 146, null]],
			[envolverSubnivel('.com, .net, .org, .info'), 'com_org_net.htm', [null, null, 146, null]],
			[envolverSubnivel('.es'), 'es.htm', [null, null, 146, null]],
			[envolverSubnivel('Otros dominios'), 'otros_dominios.htm', [null, null, 146, null]],
		],
		[envolverSubnivelSubmenu('Alojamiento web'), 'alojamiento-web.htm', null,
			[envolverSubnivel('Plan igluK Mini'), 'plan_mini.htm' , null],
			[envolverSubnivel('Plan igluK Personal'), 'plan_personal.htm', null],
			[envolverSubnivel('Plan igluK Profesional'), 'plan_profesional.htm', null],
			[envolverSubnivel('Plan igluK Avanzado'), 'plan_avanzado.htm', null],
			[envolverSubnivel('Plan igluK Empresarial'), 'plan_empresarial.htm', null],
			[envolverSubnivel('Planes a medida'), 'plan_a_medida.htm', null],
			[envolverSubnivel('Backup de correo'), 'backup_correo.htm', null],
			[envolverSubnivel('Servidores dedicados'), 'dedicado.htm', null],
		],
		[envolverSubnivel('Dise&ntilde;o web'), 'diseno_web.htm', null],
		[envolverSubnivel('Programaci&oacute;n web'), 'programacion_web.htm', null],
		[envolverSubnivel('Desarrollo de aplicaciones'), 'aplicaciones.htm', null],
		[envolverSubnivel('Otros servicios'), 'otros_servicios.htm', null],
	],
	[envolverNivel0('Sobre igluK'), 'igluk.htm', [160, null, 97, null],
		[envolverSubnivel('Qui&eacute;nes somos'), 'quienes_somos.htm', [null, null, 120, null]],
		[envolverSubnivel('Nuestros clientes'), 'clientes.htm', [null, null, 120, null]],
	],
	[envolverNivel0('Contrataci&oacute;n'), 'contratar.php', [97, null, 104, null]],
	[envolverNivel0('Contacto'), 'contacto.php', [104, null, 75, null]],
	[envolverNivel0('Soporte'), 'soporte.htm', [75, null, 70, null],
		[envolverSubnivel('Preguntas frecuentes'), 'faqs.htm', [null, null, 146, null]],
		[envolverSubnivel('Documentaci&oacute;n'), 'documentacion.htm', [null, null, 146, null]],
	]
//	],
//	[envolverNivel0('Mapa web'), 'mapa_web.htm', [176, null, 82, null]]
];

function envolverNivel0(texto) {
	var res = new Array;
	for (var i=0; i<estados.length; i++)
		res[i] =  '<table cellpadding="3" cellspacing="0" class="m0l0m' + estados[i] + 'o" width="100%" height="100%"><tr><td class="m0l0m' + estados[i] + 'i">' + texto + '</td></tr></table>';
	return res;
}

function envolverNivel0Selec(texto) {
	return '<table cellpadding="3" cellspacing="0" class="m0l0m' + estados[1] + 'o" width="100%" height="100%"><tr><td class="m0l0m' + estados[1] + 'i">' + texto + '</td></tr></table>';
}

function envolverSubnivel(texto) {
	var res = new Array;
	for (var i=0; i<estados.length; i++)
		res[i] =  '<table cellpadding="3" cellspacing="0" class="m0l1m' + estados[i] + 'o" width="100%" height="100%"><tr><td class="m0l1m' + estados[i] + 'i">' + texto + '</td></tr></table>';
	return res;
}

function envolverSubnivelSelec(texto) {
	return '<table cellpadding="3" cellspacing="0" class="m0l1m' + estados[1] + 'o" width="100%" height="100%"><tr><td class="m0l1m' + estados[1] + 'i">' + texto + '</td></tr></table>';
}

function envolverSubnivelSubmenu(texto) {
	var res = new Array;
	for (var i=0; i<estados.length; i++)
		res[i] =  '<table cellpadding="3" cellspacing="0" class="m0l1m' + estados[i] + 'o" width="100%" height="100%"><tr><td width="100%" class="m0l1m' + estados[i] + 'i">' + texto + '</td><td class="m0l1m' + estados[i] + 'i">&gt;&nbsp;</td></tr></table>';
	return res;
}

function envolverSubnivelSubmenuSelec(texto) {
	return '<table cellpadding="3" cellspacing="0" class="m0l1m' + estados[1] + 'o" width="100%" height="100%"><tr><td width="100%" class="m0l1m' + estados[1] + 'i">' + texto + '</td><td class="m0l1m' + estados[1] + 'i">&gt;&nbsp;</td></tr></table>';
}