var tocTab = new Array();var ir=0;
tocTab[ir++] = new Array ("1", "Introducci&oacute;n", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("1.1", "&iquest;Por qu&eacute; un programa de nutrici&oacute;n?", "porque.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("1.2", "Caracter&iacute;sticas del programa", "caracteristicas.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("1.3", "Aplicaciones del programa", "aplicaciones.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2", "Empezando a trabajar", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.1", "Instalaci&oacute;n del programa", "instalacion.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.2", "Instalaci&oacute;n en red local", "instalacionenredlocal.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.3", "Un vistazo general", "vistazo.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.4", "Descripci&oacute;n de la interfase", "interfase.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.5", "Modificaci&oacute;n de datos", "modificadatos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3", "Tabla de Alimentos", "tabladealimentos.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1", "Ficha nutricional de un alimento", "fichaalimento.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.2", "Porci&oacute;n comestible", "porcion.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.3", "Denominaciones de los alimentos", "denominaciones.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4", "Medidas caseras, raciones y unidades habituales de consumo", "medidascaseras.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.5", "Algunas consideraciones sobre las medidas caseras", "medidasconsideraciones.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.6", "Buscar fichas de composici&oacute;n nutricional por nombre", "buscaralimentos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.7", "Qu&eacute; hacer si no encuentro un alimento", "noencuentro.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.8", "Relaci&oacute;n de fichas de composici&oacute;n nutricional", "relacionalimentos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.9", "Selecci&oacute;n de nutrientes que se presentan en una tabla", "seleccioncampos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.10", "Posici&oacute;n de un nutriente en una tabla", "posicióndeunnutrienteenun.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.11", "Ordenar seg&uacute;n la cantidad de nutriente", "ordenarnutriente.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.12", "Columnas fijas en una tabla", "columnasfijas.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.13", "Selecci&oacute;n de alimentos que cumplen unas condiciones (filtro)", "filtroalimentos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.14", "Crear nuevo alimento", "nuevoalimento.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.15", "Intercambios: cantidad de alimento para conseguir una cantidad de un nutriente", "intercambios.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4", "Tabla de ingestas diarias recomendadas", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.1", "Qu&eacute; son las tablas de ingestas recomendadas", "cdr.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.2", "C&aacute;lculo de las ingestas recomendadas", "calculocdr.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5", "Tabla de Platos o Recetas", "tabladeplatos.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.1", "Ficha nutricional de un plato", "fichaplato.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.2", "Creaci&oacute;n de un nuevo plato", "nuevoplato.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.3", "B&uacute;squeda de platos", "buscarplatos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.4", "Crear un plato a partir de otro ya existente", "duplicarplato.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.5", "Relaci&oacute;n de fichas de composici&oacute;n nutricional de platos", "relacionplatos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.6", "Cambios en los nutrientes en la preparaci&oacute;n de los alimentos", "cambiosnutrientes.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.7", "Copia / Recuperaci&oacute;n de platos en archivos .DBF", "copiarecuperaplatos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6", "Valoraci&oacute;n diet&eacute;tica", "valoracion.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("6.1", "Valoraci&oacute;n de dietas y men&uacute;s", "encuestas.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.2", "Calculadora nutricional", "calculadoranutricional.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.3", "Ingestas de energ&iacute;a y nutrientes por grupos de alimentos, comidas y d&iacute;as", "ingestasgrupos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.4", "Valoraci&oacute;n de la dieta con respecto a las ingestas recomendadas", "valoracdr.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.5", "Calidad nutricional de la dieta", "calidaddieta.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.6", "Resultados de consumo por alimentos (crudos o procesados)", "consumoalimentos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.7", "Relaci&oacute;n de valoraciones", "relacionvaloraciones.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.8", "Organizaci&oacute;n de las valoraciones en grupos", "grupoencuestas.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.9", "Creaci&oacute;n de un nuevo registro de valoraci&oacute;n nutricional", "nuevaencuesta.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.10", "Cambio del c&oacute;digo de una valoraci&oacute;n", "cambiocodigovaloracion.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.11", "Exportaci&oacute;n de Resultados de las valoraciones", "exportarencuestas.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("7", "Listados, Informes y enlaces con otros programas", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("7.1", "Listados", "listados.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("7.2", "Informes", "informes.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("7.3", "Editor de informes", "editordeinformes.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("7.4", "Tabuladores", "tabuladores.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("7.5", "Utilizaci&oacute;n del portapapeles para exportar datos", "portapapeles.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("8", "Configuraci&oacute;n", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("8.1", "Configuraci&oacute;n de los modelos de informe", "configuramodelos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("8.2", "Modelo de informe para las valoraciones", "modeloinfovaloracion.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("9", "Utilidades", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("9.1", "Copias de seguridad", "copiasdeseguridad.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("9.2", "Actualizar base de datos", "actualizarbasededatos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("9.3", "Actualizaci&oacute;n de la tabla de Alimentos", "actualizacionalimentos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("9.4", "Traslado de la clave de activaci&oacute;n a otro ordenador", "trasladodelaclave.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("10", "Informaci&oacute;n t&eacute;cnica", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("10.1", "Estructura de la base de datos", "basedatos.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("10.2", "Descripci&oacute;n de las tablas de datos", "tablas.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("10.3", "Nombres de los campos para los distintos nutrientes", "nutrientes.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("11", "Referencias", "bibliografia.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("12", "Autores", "autores.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("13", "Agradecimientos", "agradecimientos.htm", "", "cicon9.gif", "cicon9.gif");
isContent = true,
isIndex = false,
showNumbers = false,
tocBehaviour = new Array(1,1),
tocScroll=false,
tocLinks = new Array(0,0);
var oldOnError = null;
var isDyn = navigator.userAgent.toLowerCase().indexOf("opera") == -1;
var isIE = navigator.appName.toLowerCase().indexOf("explorer") > -1;
var oldCurrentNumber = "", oldLastVisitNumber = "";
var toDisplay = new Array();
for (ir=0; ir<tocTab.length; ir++) {
toDisplay[ir] = tocTab[ir][0].split(".").length==1;
}
function windowErr() {
isDyn = false;
hmtoc.location.href = "dial_content.htm";
window.onerror = oldOnError;
}
function reDisplay(currentNumber,tocChange,noLink,e) {
if (isIndex && (hmtoc.location.href.substring(hmtoc.location.href.lastIndexOf("/")+1,hmtoc.location.href.length) != "dial_kwindex.htm")) { isIndex=false; isContent=true; }
if (currentNumber == "navIndex") { isContent=false; }
if (currentNumber == "navContent") { isIndex=false; isContent=true; }
if (e) {
ctrlKeyDown = (isIE) ? e.ctrlKey : (e.modifiers==2);
if (tocChange && ctrlKeyDown) tocChange = 2;
}
var currentNumArray = currentNumber.split(".");
var currentLevel = currentNumArray.length-1;
var currentIndex = 7;
var currentHash = "";
if ((currentNumber == "") && (top.location.href.lastIndexOf("?") > 0)) {
currentNumber = top.location.href.substring(top.location.href.lastIndexOf("?")+1,top.location.href.length);
if (currentNumber.lastIndexOf(",") > 0) {
currentHash = "#" + currentNumber.substring(currentNumber.lastIndexOf(",")+1, currentNumber.length);
currentNumber = currentNumber.substring(0, currentNumber.lastIndexOf(","));
}
}
for (i=0; i<tocTab.length; i++) {
if ((tocTab[i][0] == currentNumber) || (tocTab[i][2] == currentNumber && tocTab[i][2] != "")) {
currentIndex = i;
currentNumber = tocTab[i][0];
currentNumArray = currentNumber.split(".");
currentLevel = currentNumArray.length-1;
break;
}
}
if (currentIndex < tocTab.length-1) {
nextLevel = tocTab[currentIndex+1][0].split(".").length-1;
currentIsExpanded = nextLevel > currentLevel && toDisplay[currentIndex+1];
}
else currentIsExpanded = false;
theHref = (noLink) ? "" : tocTab[currentIndex][2] + currentHash;
theTarget = tocTab[currentIndex][3];
for (i=1; i<tocTab.length; i++) {
if (tocChange) {
thisNumber = tocTab[i][0];
thisNumArray = thisNumber.split(".");
thisLevel = thisNumArray.length-1;
isOnPath = true;
if (thisLevel > 0) {
for (j=0; j<thisLevel; j++) {
isOnPath = (j>currentLevel) ? false : isOnPath && (thisNumArray[j] == currentNumArray[j]);
}
}
toDisplay[i] = (tocChange == 1) ? isOnPath : (isOnPath || toDisplay[i]);
if (thisNumber.indexOf(currentNumber+".")==0 && thisLevel > currentLevel) {
if (currentIsExpanded) toDisplay[i] = false;
else toDisplay[i] = (thisLevel == currentLevel+1);
}
}
}
if (!isContent && !isIndex) {
hmtoc.location.href = "dial_kwindex.htm";
isIndex = true;
}
hasSelection = false;
if (isContent) {
if (!isDyn) {
if (hmtoc.location.href.substring(hmtoc.location.href.lastIndexOf("/")+1,hmtoc.location.href.length) != "dial_content.htm") hmtoc.location.href = "dial_content.htm";
}
else {
oldOnError = window.onerror;
window.onerror = windowErr;
hmtoc.document.clear();
hmtoc.document.write("<html>\n\r<head></head>\n\r<style type=\"text/css\">\n\r       SPAN.heading1 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; color: #000000; text-decoration: none }\n\r       SPAN.heading2 { font-family: Arial,Helvetica; font-weight: normal; font-size: 9pt; color: #000000; text-decoration: none }\n\r       SPAN.heading3 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r       SPAN.heading4 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r       SPAN.heading5 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r       SPAN.heading6 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r\n\r       SPAN.hilight1 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight2 { font-family: Arial,Helvetica; font-weight: normal; font-size: 9pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight3 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight4 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight5 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight6 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r</style>\n\r<body bgcolor=\"#FFFFFF\">\n\r<font face=\"Arial,Helvetica\" size=\"4\"><b>DIAL Programa para Evaluaci&oacute;n de Dietas y c&aacute;lculos de Alimentaci&oacute;n</b></font><br>\n\r<font face=\"Arial,Helvetica\" size=\"2\">\n\r<a href=\"javaScript:parent.reDisplay(\'navIndex\',0,0);\">Indice</a>\n\r</font><br><br><br>\n\r\n\r  <!-- Place holder for the TOC, do not delete the line below -->\n\r  ");
for (i=0; i<tocTab.length; i++) {
if (toDisplay[i]) {
thisNumber = tocTab[i][0];
thisNumArray = thisNumber.split(".");
thisLevel = thisNumArray.length-1;
isCurrent = (i == currentIndex);
if (i < tocTab.length-1) {
nextLevel = tocTab[i+1][0].split(".").length-1;
img = (thisLevel >= nextLevel) ? tocTab[i][4] : ((toDisplay[i+1]) ? tocTab[i][5] : tocTab[i][4]);
}
else img = tocTab[i][4];
thisTextClass = ((thisNumber==currentNumber)?("hilight"):("heading"));
thisNode = ((thisNumber==currentNumber)?("<div id=currentNode></div>"):(""));
if (thisNumber==currentNumber) hasSelection = true;
hmtoc.document.write(thisNode);
hmtoc.document.write("<table border=0 cellspacing=0 cellpadding=2>");
if (img!="") {
hmtoc.document.write("<tr><td width=" + ((thisLevel+1) * 20) + " align=right valign=top>");
hmtoc.document.write("<a href=\"javaScript:history.go(0)\" onMouseDown=\"parent.reDisplay('" + thisNumber + "'," + tocBehaviour[0] + "," + tocLinks[0] + ",event)\">");
hmtoc.document.write("<img src=\"" + img + "\" border=0></a>");
}
else hmtoc.document.write("<tr><td width=" + (thisLevel * 20) + " align=right valign=top>");
hmtoc.document.write("</td><td align=left>");
hmtoc.document.write("<a href=\"javaScript:history.go(0)\" onMouseDown=\"parent.reDisplay('" + thisNumber + "'," + tocBehaviour[1] + "," + tocLinks[1] + ",event)\">");
hmtoc.document.write("<span class=\""  + thisTextClass + ((thisLevel>5) ? 6 : thisLevel+1) + "\">");
hmtoc.document.write( ((showNumbers)?(thisNumber+" "):"") + tocTab[i][1]);
hmtoc.document.write("</span></a>");
hmtoc.document.writeln("</td></tr></table>");
window.onerror = oldOnError;
} //isDyn
} //isContent
}
}
if (!noLink) {
oldLastVisitNumber = oldCurrentNumber;
oldCurrentNumber = currentNumber;
}
if (isContent && isDyn) {
hmtoc.document.write("\n\r\n\r<hr><font face=\"Arial,Helvetica\" size=\"1\">&copy; 2008 ALCE INGENIERIA</font>\n\r</body>\n\r</html>\n\r");
hmtoc.document.close();
}
if (theHref)
if (theTarget=="top") top.location.href = theHref;
else if (theTarget=="parent") parent.location.href = theHref;
else if (theTarget=="blank") open(theHref,"");
else {
hmcontent.location.href = theHref;
if ((tocScroll) && (hasSelection)) hmtoc.document.all["currentNode"].scrollIntoView();
}
}
