//---------------------------------------------------------------------------
// 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", "Allgemein", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("1.1", "Willkommen", "willkommen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2", "Beispielsitzung", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("1.2.1", "Anmeldung", "anmeldung.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2.2", "Programmoberfl&auml;che", "programmoberflache.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2.3", "Neue Anschrift aufnehmen", "kontakt2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2.4", "Einen Kontakt hinzuf&uuml;gen", "neuerkontakt.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2.5", "Neues Dokument manuell erfassen", "einneuesdokumenterfassen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2.6", "Neues Dokument durch Import einer Datei erfassen", "themenzuordnen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2.7", "Thema manuell erfassen", "themamanuellerfassen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2.8", "Erwiderung erfassen", "erwiderungerfassen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2.9", "Anlagen erfassen", "tut_anlagenerfassen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2.10", "Schl&uuml;sselw&ouml;rter zuordnen", "schlusselworter_zuordnen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2.11", "Themen finden", "tut_themenfinden.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2.12", "Nachwort", "tastaturkurzel2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2", "Programm", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.1", "Ansichten", "ansichten.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2", "Bedienung", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.1", "Einf&uuml;hrung", "werkzeugeunddokumente.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2", "&Ouml;ffnen eines Datensatzes", "offneneinesdokuments.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.3", "Schlie&szlig;en eines Datensatzes", "schliesseneinesdatensatzes.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.4", "Speichern eines Datensatzes", "sicherneinesdatensatzes.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.5", "Aktualisieren eines Datensatzes", "aktualisiereneinesdatensatze.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.6", "Wechsel zwischen verschiedenen Datens&auml;tzen", "wechselnzwischendatensaetzen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.7", "Auffinden von Datens&auml;tzen", "auffindenvondatensatzen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.8", "L&ouml;schen von Datens&auml;tzen", "bedienung.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.3", "Fenster", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.3.1", "Fensteranordnung", "allgemeines.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.3.2", "Fenster: Start", "tool_start.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.3.3", "Fenster: Formulare", "tool_formulare.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.3.4", "Fenster: Schl&uuml;sselw&ouml;rter", "tool_schlusselworter.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.3.5", "Fenster: Verkn&uuml;pfungen", "tool_verknupfungen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.3.6", "Fenster: Filter", "tool_filter.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.3.7", "Fenster: Inspektor", "tool_inspektor.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.3.8", "Fenster: Tabelle", "tool_tabelle.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.3.9", "Fenster: Text", "tool_text.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.3.10", "Fenster: Vorschau", "fenstervorschau.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.4", "Tastenk&uuml;rzel", "tastaturkurzel.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3", "Datenarten", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1", "Allgemeines zu den Datenarten", "db_datenarten.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.2", "dokuMETER", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.2.1", "Anrede", "db_anreden.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.2.2", "Anlagen", "db_anlagen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.2.3", "Anschriften", "db_anschriften.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.2.4", "Dokumente", "db_dokumente.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.2.5", "Erwiderungen", "db_erwiderungen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.2.6", "Kategorien", "db_kategorien.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.2.7", "Kontakte", "db_kontakte.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.2.8", "Schl&uuml;sselw&ouml;rter", "db_schlusselworter.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.2.9", "Themen", "db_themen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4", "System", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.1", "Benutzerverwaltung", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.1.1", "Allgemeines", "sys_usermanagement.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.2", "Benutzerrechte", "sys_benutzerrechte.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.3", "Kennwort &auml;ndern", "xuser_changepass.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.4", "Benutzer l&ouml;schen", "xuser_delete.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.5", "Neuer Benutzer", "xuser_insert.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2", "Projektverwaltung", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.2.1", "Projekte verwalten", "datenbankenverwaltung.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.2", "Projekte ausw&auml;hlen", "projekteauswahlen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3", "Datenbankenverwaltung", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.3.1", "Verschiedene Datenbanken per INI-Datei ausw&auml;hlen", "sys_ini.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5", "Sonstiges", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.1", "Installation", "installation.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.2", "Bugtracker", "bugtracker.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.3", "Kontakt", "kontakt.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5.4", "Lizenz", "lizenz.htm", "", "cicon9.gif", "");
showNumbers = false,
textSizes = new Array(1, 1, 0.7, 0.7),
tocBehaviour = new Array(1,1),
tocScroll=true,
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: 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>\n\rdokuMeter v1.0\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=\"Arial,Helvetica\" size=\"1\">\n\r&copy; 2004 kt-SOFTWare\n\r  </font>\n\r</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;
}

