//---------------------------------------------------------------------------
// This script is based on the work of Dieter Bungers - http://www.infovation.de
// The original example for the "Cross Browser Expanding and Collapsing TOC"
// was published on http://www.siteexperts.com/tips/techniques/ts03/index.htm
//---------------------------------------------------------------------------

var tocTab = new Array();var ir=0;
tocTab[ir++] = new Array ("1", "Introduzione", "01_introduzione.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2", "Avvio programma", "01_avvio_procedura.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3", "Per iniziare", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1", "Nuova ditta ed utilit&agrave;", "02_nuova_ditta.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.2", "Introduzione alle registrazioni contabili ed iva", "02_intro_contabilita.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.3", "Introduzione al magazzino e fatturazione", "02_intro_magazzino.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4", "Funzioni di ambiente", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.1", "Menu finestre pulsanti", "03_ambiente_finestrepulsanti.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2", "Campi collegati ad un archivio", "03_ambiente_campiarchivio.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3", "Stampe/visualizzazioni", "03_ambiente_stampe_visualiz.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4", "Note generali sugli archivi", "03_ambiente_archivi.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.5", "Griglia riepilogo righe", "03_ambiente_grigliarighe.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5", "Contabilita", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.1", "Piano dei conti, clienti e fornitori", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.1.1", "Mastri e conti", "04_cont_mastriconti.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.1.2", "Riclassificazione", "04_cont_riclassificazione.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.1.3", "Clienti e fornitori", "04_cont_clientifornitori.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.2", "Tipi registro iva e codici iva", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.2.1", "Tipi registro iva", "05_cont_registri_iva.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.2.2", "Codici iva", "05_cont_codici_iva.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.3", "Registrazione fatture attive, passive, corrispettivi", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.3.1", "Introduzione alla registrazione di fatture attive, passive, corrispettivi", "06_cont_reg_intro_registraziva.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.3.2", "Fatture passive", "06_cont_reg_fatturepassive.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.3.3", "Fatture attive", "06_cont_reg_fattureattive.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.3.4", "Corrispettivi", "06_cont_reg_corrispettivi.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.3.5", "Fatture intracomunitarie", "06_cont_reg_fattureintra.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.3.6", "Bolle doganali", "06_cont_reg_bolledoganali.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.3.7", "Costi e spese su registri iva", "06_cont_reg_costisuregistriiva.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.3.8", "Note di credito", "06_cont_reg_notecredito.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.3.9", "Categorie per ripartizione acquisti e vendite", "06_cont_categorie.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.4", "Stampa Registri IVA", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.4.1", "Introduzione stampa registri iva", "07_cont_intro_stregistriiva.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.4.2", "Stampa registri iva", "07_cont_stregistriiva.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.4.3", "Stampa chiusura periodica iva", "07_cont_stchiusuraiva.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.4.4", "Totali Iva Annuali", "07_cont_sttotivaannuali.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.5", "Movimenti non IVA", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.5.1", "Causali", "08_cont_causali.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.5.2", "Movimenti non IVA", "08_cont_movimentinoniva.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.6", "Stampa giornale bollato", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.6.1", "Stampa giornale bollato", "09_cont_stampagiornale.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.7", "Stampe e interrogazioni contabili", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.7.1", "Introduzione stampe contabili", "10_cont_intro_stcontabili.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.7.2", "Bilancio di verifica", "10_cont_stbilancioverifica.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.7.3", "Movimenti per articolo", "10_cont_stmovperarticolo.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.7.4", "Movimenti per conto (schede contabili)", "10_cont_stmovperconto.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.7.5", "Elenchi fatture", "10_cont_stelenchifatture.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.7.6", "Situazione patrimoniale costi e ricavi", "10_cont_stpatrimoniale.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.7.7", "Bilancio riclassificato", "10_cont_stbilancioriclass.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.7.8", "Ricerca movimenti", "10_cont_stricercamov.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.7.9", "Situazione contabile clienti/fornitori", "10_cont_stsitcontabilecf.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("6", "Magazzino/fatturazione/Ddt", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("6.1", "Prodotti", "11_mag_prodotti.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("6.2", "Categorie prodotti", "11_mag_categorie.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("6.3", "Causali movimentazione", "11_mag_causalimov.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("6.4", "Tipi documento", "11_mag_tipidocumento.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("6.5", "Registraz. documenti (fatture,ddt,movim.magazzino)", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("6.5.1", "Registrazione documenti", "12_mag_registrdocumenti.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("6.5.2", "Stampa Ddt e fatture", "12_mag_stampaddtfatture.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("6.6", "Stampe movimenti/esistenza/listini/fatturato", "13_mag_stmovimenti.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("6.7", "Impostazione cifre decimali su prezzi e quantit&agrave;", "13_mag_decimali.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("7", "Ordini/Offerte", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("7.1", "Ordini/Offerte clienti", "14_ord_clienti.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("7.2", "Ordini Fornitori", "14_ord_fornitori.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("7.3", "Stampa situazione ordini", "14_ord_stsituazione.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("8", "Scadenzario", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("8.1", "Introduzione scadenzario", "15_scad_intro.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("8.2", "Codici di pagamento", "15_scad_codpagamento.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("8.3", "Creazione automatica scadenze da registrazione fatture", "15_scad_creazautomscadenze.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("8.4", "Creazione e variazione scadenze", "15_scad_archivioscadenze.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("8.5", "Registrazione pagamenti singolo cliente/fornitore", "15_scad_regpagamsingolocf.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("8.6", "Registrazione pagamenti", "15_scad_regpagam.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("8.7", "Stampa situazione Scadenze", "15_scad_stscadenze.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("9", "Riba", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("9.1", "Disposizioni di incasso riba", "16_riba_creazdistinta.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("9.2", "Archivio banche", "16_riba_banche.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("10", "Aperture/chiusure Annuali", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("10.1", "Aperture/chiusure Annuali", "17_nuovoanno.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("11", "Live Update", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("11.1", "LiveUpdate", "18_liveupdate.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("12", "Licenza d'uso", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("12.1", "Licenza d'uso", "19_licenza_d_uso.htm", "", "cicon9.gif", "");
showNumbers = false,
textSizes = new Array(1, 1, 0.7, 0.7),
tocBehaviour = new Array(1,1),
tocScroll=false,
tocLinks = new Array(1,0);
var isIE = navigator.appName.toLowerCase().indexOf("explorer") > -1;
var mdi = (isIE) ? textSizes[1]:textSizes[3];
var sml = (isIE) ? textSizes[2]:textSizes[4];
var oldCurrentNumber = "", oldLastVisitNumber = "";
var toDisplay = new Array();
for (ir=0; ir<tocTab.length; ir++) {
toDisplay[ir] = tocTab[ir][0].split(".").length==1;
}
function reDisplay(currentNumber,tocChange,noLink,e) {
if (e) {
ctrlKeyDown = (isIE) ? e.ctrlKey : (e.modifiers==2);
if (tocChange && ctrlKeyDown) tocChange = 2;
}
toc.document.clear();
toc.document.write("<html>\n\r<head></head>\n\r<style type=\"text/css\">\n\r       SPAN.heading1 { font-family: Top; font-weight: normal; font-size: pt; color: #000000; text-decoration: none }\n\r       SPAN.heading2 { font-family: Previous; font-weight: normal; font-size: pt; color: #000000; text-decoration: none }\n\r       SPAN.heading3 { font-family: Next; font-weight: normal; font-size: pt; color: #000000; text-decoration: none }\n\r       SPAN.heading4 { font-family: Helvetica,Arial; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r       SPAN.heading5 { font-family: Helvetica,Arial; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r       SPAN.heading6 { font-family: Helvetica,Arial; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r\n\r       SPAN.hilight1 { font-family: Top; font-weight: normal; font-size: pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight2 { font-family: Previous; font-weight: normal; font-size: pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight3 { font-family: Next; font-weight: normal; font-size: pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight4 { font-family: Helvetica,Arial; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight5 { font-family: Helvetica,Arial; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight6 { font-family: Helvetica,Arial; 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=\"Top\" size=\"4\"><b>\n\rManuale Win-Coge WinMag WinOrd\n\r  </b></font>\n\r  <br>\n\r  <br>\n\r\n\r  <!-- Place holder for the TOC, do not delete the line below -->\n\r  ");var currentNumArray = currentNumber.split(".");
var currentLevel = currentNumArray.length-1;
var currentIndex = 1;
if (currentNumber == "") currentNumber = top.location.href.substring(top.location.href.lastIndexOf("?")+1,top.location.href.length);
for (i=0; i<tocTab.length; i++) {
if (tocTab[i][2] == currentNumber && tocTab[i][2] != "") {
currentIndex = i;
break;
}
if (tocTab[i][0] == currentNumber) {
currentIndex = i;
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];
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);
}
}
}
var scrollY=0, addScroll=tocScroll;
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"));
if (addScroll) scrollY+=((thisLevel<2)?mdi:sml)*25;
if (isCurrent) addScroll=false;
toc.document.write("<table border=0 cellspacing=0 cellpadding=2>");
toc.document.write("<tr><td width=" + ((thisLevel+1) * 20) + " align=right valign=top>");
toc.document.write("<a href=\"javaScript:history.go(0)\" onMouseDown=\"parent.reDisplay('" + thisNumber + "'," + tocBehaviour[0] + "," + tocLinks[0] + ",event)\">");
toc.document.write("<img src=\"" + img + "\" border=0></a>");
toc.document.write("</td><td align=left>");
toc.document.write("<a href=\"javaScript:history.go(0)\" onMouseDown=\"parent.reDisplay('" + thisNumber + "'," + tocBehaviour[1] + "," + tocLinks[1] + ",event)\">");
toc.document.write("<span class=\""  + thisTextClass + ((thisLevel>5) ? 6 : thisLevel+1) + "\">");
toc.document.write( ((showNumbers)?(thisNumber+" "):"") + tocTab[i][1]);
toc.document.write("</span></a>");
toc.document.writeln("</td></tr></table>");
}
}
if (!noLink) {
oldLastVisitNumber = oldCurrentNumber;
oldCurrentNumber = currentNumber;
}
toc.document.write("\n\r\n\r  <br>\n\r  <hr>\n\r  <font face=\"Top\" size=\"1\">\n\r&copy; 2001 Tecnologie Informatiche\n\r </font>\n\r  <font face=\"Top\" size=\"3\"><p><b><a target=_top href=http://www.win-coge.com>http://www.win-coge.com</a></b></p></font> </body>\n\r</html>\n\r");
toc.document.close();
if (tocScroll) toc.scroll(0,scrollY);
if (theHref)
if (theTarget=="top") top.location.href = theHref;
else if (theTarget=="parent") parent.location.href = theHref;
else if (theTarget=="blank") open(theHref,"");
else content.location.href = theHref;
}
