//---------------------------------------------------------------------------
// 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", "1. Introduction", "", "", "folder.gif", "folder_open.gif");
tocTab[ir++] = new Array ("1.1", "1.1. Welcome", "1_1_welcome.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("1.2", "1.2. How To Use This Manual", "1_2_howtousethismanual.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("1.3", "1.3. Important Terms", "1_3_importantterms.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("1.4", "1.4. What is VirtualLab?", "1_4_whatisvirtuallab.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("1.5", "1.5. How Does VirtualLab Work?", "1_5_howdoesvirtuallabwork.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("1.6", "1.6. System Requirements", "1_6_systemrequirements.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("1.7", "1.7. Supported File Systems and Storage Media", "1_7_supportedfilesystemsan.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("1.8", "1.8. URGENT - Read This Before Using VirtualLab", "1_8_urgent_readthisbefore.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("2", "2. Getting Started", "", "", "folder.gif", "folder_open.gif");
tocTab[ir++] = new Array ("2.1", "2.1. Pre-Installation Checklist", "2_1_pre_installationchecklis.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("2.2", "2.2. Installation", "2_2_installation.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("2.3", "2.3. Uninstalling VirtualLab", "2_3_uninstallingvirtuallab.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3", "3. Recovering Lost Data", "", "", "folder.gif", "folder_open.gif");
tocTab[ir++] = new Array ("3.1", "3.1. Pre-Recovery Checklist", "3_1_pre_recoverychecklist.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.2", "3.2 Launching VirtualLab", "3_2launchingvirtuallab.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.3", "3.3 Hard Drive Recovery", "harddriverecovery.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.4", "3.4 Deleted File Recovery", "3_4deletedfilerecovery.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.5", "3.5 CD/DVD Recovery", "3_5cddvdrecovery.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.6", "3.6 Deleted Email Recovery", "3_6deletedemailrecovery.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.7", "3.7 Photo Recovery", "3_7photorecovery.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.8", "Advansed Settings", "advancedsettings.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.9", "3.8. Selecting recognized partitions", "3_7_selectingrecognized.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.10", "3.9. Working with found data", "3_9_workingwithfound.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.11", "3.10. The File Viewer", "3_10_thefileviewer.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.12", "3.11. Signing In for Paid Session", "3_11_signinginforpaidses.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.13", "3.12. Network Settings", "3_12_networksettings.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.14", "3.13. Saving Recovered Files", "3_13_savingrecoveredfiles.htm", "", "file.gif", "");
tocTab[ir++] = new Array ("3.15", "3.14. Support", "3_14_support.htm", "", "file.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<table>\n\r<tr>\n\r<td><img src=\"img/user_manual.gif\"></td>\n\r<td><img src=\"img/vlab_logo.gif\"></td>\n\r</tr>\n\r</table>\n\r\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\t\t<font face=\"Arial\" size=\"1\">&copy; 2003 <a href=\"http://www.binarybiz.com\">BinaryBiz</a> (http://www.binarybiz.com) </font>\n\r\t\t<p><font size=\"1\" face=\"Arial,Helvetica,Geneva,Swiss,SunSans-Regular\">Portions </font><font face=\"Arial\" size=\"1\">&copy;</font><font size=\"1\" face=\"Arial,Helvetica,Geneva,Swiss,SunSans-Regular\"> <a href=\"http://www.recallusa.com\" target=\"blank\">Total Recall Data Recovery</a></font></p></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;
}

