function prepararIndice()
{
	if ( document.getElementById( 'indice' ) )
	{
		if ( document.getElementById( 'subindice' ) )
		{
			// Preparar la aparición de los subíndices de cada índice
			aEnlaces = document.getElementById( 'indice' ).getElementsByTagName( 'a' ) ;
			for ( i = 0; i < aEnlaces.length; i++ )
			{
				if ( aEnlaces[ i ].parentNode.id == 'indice' )
				{
					if ( aEnlaces[ i ].name != 'tienda' )
					{
						aEnlaces[ i ].onmouseover = function()
						{
							// Subíndice a mostrar
							sCapa = 'subindice_' + this.name ;
							// Colocar el subíndice en la posición adecuada
							if ( this.offsetParent )
								document.getElementById( 'subindice' ).style.left = this.offsetLeft + 'px' ;
							// Mostrar el contenedor de subíndices en caso de que exista
							document.getElementById( 'subindice' ).style.display = ( document.getElementById( sCapa ) ) ? 'block' : 'none' ;
							// Mostrar solo el subíndice adecuado
							aSubindices = document.getElementById( 'subindice' ).getElementsByTagName( 'div' ) ;
							for ( j = 0; j < aSubindices.length; j++ )
								if ( aSubindices[ j ].parentNode.id == 'subindice' )
									aSubindices[ j ].style.display = ( aSubindices[ j ].id == sCapa ) ? 'block' : 'none' ;
						} ;
					}
				}
			}
		}
	}
}