home *** CD-ROM | disk | FTP | other *** search
Wrap
//--------------------------------------------------------------------------- // 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", "U₧iteΦnΘ informace", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("1.1", "Titulni strana", "titul.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("1.2", "Didaktick² cφl", "didaktickycil.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("1.3", "LicenΦnφ podmφnky", "licencnipodminky.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("1.4", "Typy licencφ", "typylicencφ.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("1.5", "UΦebnice", "ucebnice.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("1.6", "Kontextovß nßpov∞da", "kontextovßnßpov∞da.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("1.7", "Pod∞kovßnφ", "podekovßnφ.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("2", "P°φprava", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("2.1", "Na co se zam∞°it", "nacosezamerit.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("2.2", "Instalace", "instalace.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("2.3", "Nastavenφ adresß°∙", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("2.3.1", "Soubory", "soubory.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("2.3.2", "Na clientu", "naclientu.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("2.3.3", "Na serveru", "naservru.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("3", "Prvnφ hodina", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("3.1", "Volba klßvesnice", "volbaklavesnice.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("3.2", "Zahßjenφ v²uky", "zahajenivyuky.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("3.3", "Volba jmΘna", "volbajmena.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("3.4", "Nastavenφ parametr∙", "nastaveniparametru.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("3.5", "UkonΦenφ v²uky", "ukoncenivyuky.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("3.6", "PokraΦovßnφ ve v²uce", "pokracovanivevyuce.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("4", "Zßkladnφ v²uka", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("4.1", "Snφmek", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("4.1.1", "Definice snφmku", "definicesnimku.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("4.1.2", "Nastavenφ snφmku", "nastavenisnimku.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("4.1.3", "Informace o snφmku", "informaceosnimku.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("4.2", "Zp∙sob psanφ", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("4.2.1", "Reakce po chyb∞", "reakcepochybe.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("4.2.2", "Tvar psanΘho °ßdku", "tvarpsanehoradku.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("4.2.3", "AutomatickΘ °ßdkovßnφ", "automatickeradkovani.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("4.3", "Prstoklad", "prstoklad.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("4.4", "Metronom", "metronom.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("4.5", "Archivace", "archivace.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("4.6", "GrafickΘ prvky", "grafickΘprvky.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("4.7", "KlßvesovΘ zkratky", "klavesovezkratky.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("5", "ProcviΦovßnφ", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("5.1", "Opakovßnφ snφmku", "opakovanisnimku.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("5.2", "Snφmke z chybn²ch slov", "snimekzchybnychslov.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("5.3", "Snφmke na Φas", "snφmeknacas.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("6", "Nadstavba", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("6.1", "Opis nebo diktßt", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("6.1.1", "Re₧im psanφ", "rezimpsani.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("6.1.2", "Postup", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("6.1.2.1", "Text z uΦebnice", "textzuΦebnice.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("6.1.2.2", "Voln² text", "voln²text.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("6.1.3", "Zp∙sob vyhodnocenφ", "zpusobvyhodnoceni.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("6.2", "SpuÜt∞nφ editoru", "spustenieditoru.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("7", "V²ukovΘ texty", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("7.1", "Standardnφ", "standardni.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("7.2", "VolnΘ", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("7.2.1", "DodßvanΘ", "dodavane.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("7.2.2", "Vlastnφ", "vlastni.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("8", "V²sledky", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("8.1", "Zobrazenφ v²sledk∙", "zobrazenivysledku.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("8.2", "Zobrazenφ vyhodnocenΘho textu", "zobrazenivyhodnocenehotextu.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("8.3", "Archivovan² text", "archivovanytext.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("8.4", "Prohlφ₧enφ", "prohlizeni.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("9", "Metodika", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("9.1", "PoΦφtßnφ ·hoz∙", "", "", "cicon1.gif", "cicon2.gif"); tocTab[ir++] = new Array ("9.1.1", "PoΦφtßnφ ·hoz∙ za jednotlivΘ znaky", "jednotliveznaky.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("9.1.2", "P°ipoΦφtßvßnφ ·hoz∙ za °ßdkovßnφ", "uhozyzaradkovani.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("9.1.3", "PoΦφtßnφ ·hoz∙ skupiny velk²ch pφsmen", "uzhozyskupinyvelkychpismen.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("9.1.4", "PoΦφtßnφ ·hoz∙ skupiny Φφslic", "uhozyskupinycislic.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("9.2", "PoΦφtßnφ chyb", "pocitanichyb.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("9.3", "V²poΦet rychlosti a p°esnosti", "vypocetrychlostiapresnosti.htm", "", "cicon9.gif", "cicon9.gif"); tocTab[ir++] = new Array ("9.4", "Hodnocenφ", "hodnoceni.htm", "", "cicon9.gif", "cicon9.gif"); isContent = true, isIndex = false, 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 (isIndex && (toc.location.href.substring(toc.location.href.lastIndexOf("/")+1,toc.location.href.length) != "atf_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 = 1; var scrollY=0, addScroll=tocScroll; 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][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]; 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) { toc.location.href = "atf_kwindex.htm"; isIndex = true; } if (isContent) { 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>Manußl k programu ATF</b></font><br>\n\r<font face=\"Arial,Helvetica\" size=\"2\">\n\r<a href=\"javaScript:parent.reDisplay(\'navIndex\',0,0);\">Keyword Index</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]; if (isContent) { 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>"); } //isContent } } if (!noLink) { oldLastVisitNumber = oldCurrentNumber; oldCurrentNumber = currentNumber; } if (isContent) { toc.document.write("\n\r\n\r<hr><font face=\"Arial,Helvetica\" size=\"1\">⌐ <1992-2003> firma SWX Na Plßni 46, 150 00 Praha 4</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; }