//---------------------------------------------------------------------------
// 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", "Introduction", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("1.1", "Overview", "overview.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("1.2", "Scope", "scope.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("1.3", "Results", "results.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2", "Preparation", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.1", "Flow", "flow.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.2", "The Filter", "thefilter.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.3", "The Factors", "thefactors.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.4", "The PickMaster", "thepickmaster.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3", "The Test", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1", "Steps", "steps.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.2", "The Rules", "therules.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.3", "Tuesday, July 1st, 2003", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.3.1", "July 1st, CRC", "july1stcrc.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.3.2", "CRC Summary, July 1st 2003", "crcsummaryjuly1st2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4", "Wednesday, July 2nd, 2003", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.4.1", "July 2nd, BEL", "july2ndbel.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.2", "July 2nd, CD", "july2ndcd.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.3", "July 2nd, HOL", "july2ndhol.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.4", "BEL Summary, July 2nd, 2003", "belsummaryjuly2nd2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.5", "CD Summary, July 2nd, 2003", "cdsummaryjuly2nd2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.6", "HOL Summary, July 2nd, 2003", "holsummaryjuly2nd2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.5", "Thursday, July 3rd, 2003", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.5.1", "July 3rd, BEL", "july3rdbel.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.5.2", "July 3rd, CD", "july3rdcd.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.5.3", "July 3rd, HOL", "july3rdhol.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.5.4", "BEL, Summary, July 3rd, 2003", "belsummaryjuly3rd2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.5.5", "CD Summary, July 3rd, 2003", "cdsummaryjuly3rd2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.5.6", "HOL Summary, July 3rd,2003", "holsummaryjuly3rd2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.6", "Friday, July 4th, 2003", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.6.1", "July 4th, BEL", "july4thbel.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.6.2", "July 4th, CD", "july4thcd.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.6.3", "July 4th, CRC", "july4thcrc.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.6.4", "July 4th, HOL", "july4thhol.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.6.5", "BEL Summary, July 4th, 2003", "belsummaryjuly4th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.6.6", "CD Summary, July 4th, 2003", "cdsummaryjuly4th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.6.7", "CRC Summary, July 4th, 2003", "crcsummaryjuly4th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.6.8", "HOL, Summary July 4th, 2003", "holsummaryjuly4th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.7", "Saturday, July 5th, 2003", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.7.1", "July 5th, BEL", "july5thbel.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.7.2", "July 5th, CD", "july5thcd.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.7.3", "July 5th, CRC", "july5thcrc.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.7.4", "July 5th, HOL", "july5thhol.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.7.5", "BEL Summary, July 5th, 2003", "belsummaryjuly5th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.7.6", "CD Summary, July 5th, 2003", "cdsummaryjuly5th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.7.7", "CRC Summary July 5th, 2003", "crcsummaryjuly5th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.7.8", "Hol Summary, July 5th, 2003", "holsummaryjuly5th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.8", "Sunday, July 6th, 2003", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.8.1", "July 6th, BEL", "july6thbel.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.8.2", "July 6th, CD", "july6thcd.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.8.3", "July 6th, CRC", "july6thcrc.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.8.4", "July 6th, HOL", "july6thhol.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.8.5", "BEL Summary, July 6th, 2003", "belsummaryjuly6th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.8.6", "CD Summary, July 6th, 2003", "cdsummaryjuly6th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.8.7", "CRC Summary, July 6th, 2003", "crcsummaryjuly6th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.8.8", "HOL Summary, July 6th, 2003", "holsummaryjuly6th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.9", "Monday, July 7th, 2003", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.9.1", "July 7th, CRC", "july7thcrc.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.9.2", "CRC Summary, July 7th, 2003", "crcsummaryjuly7th2003.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4", "Summaries", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.1", "BEL", "bel.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.2", "CD", "cd.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.3", "CRC", "crc.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.4", "HOL", "hol.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5", "Appendix", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.1", "What is Synthetic Pace?", "whatissyntheticpace.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.2", "What is a Database?", "whatisadatabase.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.3", "What is a Filter?", "whatisafilter.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.4", "What is a Dynamic FIlter?", "whatisadynamicfilter.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.5", "Applying a Dynamic FIlter", "applyingadynamicfilter.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.6", "What is the PickMaster?", "whatisthepickmaster.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.7", "Factors Used", "factorsused.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) != "01pacehcp_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 = 3;
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 = "01pacehcp_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>HSH Synthetic Pace</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) * 15) + " 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\">&copy;2003 ... HorseStreet Publications</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;
}
