var tocTab = new Array();var ir=0;
tocTab[ir++] = new Array ("1", "Welcome", "welcome.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2", "How to...", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.1", "Get started", "ht_start.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.2", "Host a domain name", "ht_hostdom.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.3", "Setup primary / secondary", "ht_primsec.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.4", "Secure you server", "ht_secure.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.5", "Read the log", "ht_readlog.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.6", "Integrate with other applications", "ht_integrate.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.7", "Use HTTP commands", "ht_http.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.8", "Use command line options", "ht_cmdline.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.9", "Configure advanced options", "ht_advcfg.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.10", "Use &quot;warning.bat&quot;", "ht_warnbat.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3", "User Interface", "userinterface.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1", "Main window", "wd_mainscreen.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1.1", "Views", "wd_views.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.2", "IP Address Blocking dialog", "wd_block.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1.2.1", "IP Address Blocking Rule dialog", "wd_blockrule.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3", "Options dialog", "wd_options.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1.3.1", "General", "wd_opt_general.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.2", "DNS - Requests", "wd_opt_dnsreq.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.3", "DNS - Recursion", "wd_opt_dnsrecur.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.4", "DNS - Forwarding", "wd_opt_dnsforward.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.5", "DNS - Caching", "wd_opt_dnscaching.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.6", "DNS - Security", "wd_opt_dnssecur.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.7", "DNS - Records", "wd_opt_dnsrec.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.8", "DNS - Zone Transfers", "wd_opt_dnszt.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.9", "DNS - Master/Slave", "wd_opt_dnsms.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.10", "DNS - NAT IP alias", "wd_opt_dnsnatlan.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.11", "DHCP", "wd_opt_dhcp.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1.3.11.1", "DHCP Scope dialog", "wd_dhcpscope.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.12", "HTTP API", "wd_opt_httpapi.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.13", "Logging - Log Details", "wd_opt_logdet.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3.14", "Logging - Log files", "wd_opt_logfiles.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.2", "DNS Look Up window", "wd_lookup.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.3", "DNS Cache Snapshot window", "wd_snapshot.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4", "DNS Records window", "wd_records.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.4.1", "Zone Properties", "wd_zoneprop.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.2", "Record Properties", "wd_recprop.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.3", "New Zone Wizard", "wd_newzone.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.4", "Quick Domain Wizard", "wd_quickdom.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.5", "Bulk Update Wizard", "wd_bulkwiz.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.6", "Reverse Zone Wizard", "wd_revwiz.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.7", "Import Wizard", "wd_import.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4.8", "TSIG Dynamic Updates", "wd_tsig.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4", "Definitions", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.1", "Hosts file", "df_hostsfile.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.2", "DNS Caching", "df_cache.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.3", "TTL (Time To Live)", "df_ttl.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.4", "Root DNS records", "df_root.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.5", "DNS Recursion", "df_recursion.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.6", "DNS Forwarding", "df_forward.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.7", "Round Robin", "df_rrobin.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.8", "Zones", "df_zones.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.9", "Zone Transfers", "df_zonetransfer.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.10", "Reverse Zone / in-addr.arpa", "df_reverse.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.11", "Dynamic DNS updates", "df_dyndns.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.12", "DHCP", "df_dhcp.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5", "Common DNS Record Types", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.1", "A (Host Address)", "rec_a.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.2", "CNAME (Alias)", "rec_cname.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.3", "MX (Mail Server)", "rec_mx.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.4", "NS (DNS Server)", "rec_ns.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.5", "PTR (Reverse)", "rec_ptr.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.6", "SOA (Zone Properties)", "rec_soa.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6", "Other DNS Record Types", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("6.1", "A6", "rec_a6.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.2", "AAAA", "rec_aaaa.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.3", "AFSDB", "rec_afsdb.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.4", "ATMA", "rec_atma.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.5", "DNAME", "rec_dname.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.6", "HINFO", "rec_hinfo.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.7", "ISDN", "rec_isdn.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.8", "LOC", "rec_loc.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.9", "MB, MG, MINFO, MR", "rec_mb.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.10", "NAPTR", "rec_naptr.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.11", "NSAP", "rec_nsap.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.12", "RP", "rec_rp.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.13", "RT", "rec_rt.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.14", "SRV", "rec_srv.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.15", "TXT", "rec_txt.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("6.16", "X25", "rec_x25.htm", "", "cicon9.gif", "cicon9.gif");
isContent = true,
isIndex = false,
showNumbers = false,
tocBehaviour = new Array(1,1),
tocScroll=false,
tocLinks = new Array(0,0);
var oldOnError = null;
var isDyn = navigator.userAgent.toLowerCase().indexOf("opera") == -1;
var isIE = navigator.appName.toLowerCase().indexOf("explorer") > -1;
var oldCurrentNumber = "", oldLastVisitNumber = "";
var toDisplay = new Array();
for (ir=0; ir<tocTab.length; ir++) {
toDisplay[ir] = tocTab[ir][0].split(".").length==1;
}
function windowErr() {
isDyn = false;
$hmtoc.location.href = "sdnsplus_content.htm";
window.onerror = oldOnError;
}
function reDisplay(currentNumber,tocChange,noLink,e) {
if (isIndex && ($hmtoc.location.href.substring($hmtoc.location.href.lastIndexOf("/")+1,$hmtoc.location.href.length) != "sdnsplus_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 = 0;
var currentHash = "";
if ((currentNumber == "") && (top.location.href.lastIndexOf("?") > 0)) {
currentNumber = top.location.href.substring(top.location.href.lastIndexOf("?")+1,top.location.href.length);
if (currentNumber.lastIndexOf(",") > 0) {
currentHash = "#" + currentNumber.substring(currentNumber.lastIndexOf(",")+1, currentNumber.length);
currentNumber = currentNumber.substring(0, currentNumber.lastIndexOf(","));
}
}
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] + currentHash;
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) {
$hmtoc.location.href = "sdnsplus_kwindex.htm";
isIndex = true;
}
hasSelection = false;
if (isContent) {
if (!isDyn) {
if ($hmtoc.location.href.substring($hmtoc.location.href.lastIndexOf("/")+1,$hmtoc.location.href.length) != "sdnsplus_content.htm") $hmtoc.location.href = "sdnsplus_content.htm";
}
else {
oldOnError = window.onerror;
window.onerror = windowErr;
$hmtoc.document.clear();
$hmtoc.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: 10pt; color: #000000; text-decoration: none }\n\r       SPAN.heading3 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; color: #000000; text-decoration: none }\n\r       SPAN.heading4 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; color: #000000; text-decoration: none }\n\r       SPAN.heading5 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; color: #000000; text-decoration: none }\n\r       SPAN.heading6 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; 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: 10pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight3 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight4 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight5 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight6 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r</style>\n\r<body bgcolor=\"#FFFFFF\">\n\r<font face=\"Arial,Helvetica\" size=\"4\"><b>Simple DNS Plus</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];
thisTextClass = ((thisNumber==currentNumber)?("hilight"):("heading"));
thisNode = ((thisNumber==currentNumber)?("<div id=currentNode></div>"):(""));
if (thisNumber==currentNumber) hasSelection = true;
$hmtoc.document.write(thisNode);
$hmtoc.document.write("<table border=0 cellspacing=0 cellpadding=2>");
if (img!="") {
$hmtoc.document.write("<tr><td width=" + ((thisLevel+1) * 20) + " align=right valign=top>");
$hmtoc.document.write("<a href=\"javaScript:history.go(0)\" onMouseDown=\"parent.reDisplay('" + thisNumber + "'," + tocBehaviour[0] + "," + tocLinks[0] + ",event)\">");
$hmtoc.document.write("<img src=\"" + img + "\" border=0></a>");
}
else $hmtoc.document.write("<tr><td width=" + (thisLevel * 20) + " align=right valign=top>");
$hmtoc.document.write("</td><td align=left>");
$hmtoc.document.write("<a href=\"javaScript:history.go(0)\" onMouseDown=\"parent.reDisplay('" + thisNumber + "'," + tocBehaviour[1] + "," + tocLinks[1] + ",event)\">");
$hmtoc.document.write("<span class=\""  + thisTextClass + ((thisLevel>5) ? 6 : thisLevel+1) + "\">");
$hmtoc.document.write( ((showNumbers)?(thisNumber+" "):"") + tocTab[i][1]);
$hmtoc.document.write("</span></a>");
$hmtoc.document.writeln("</td></tr></table>");
window.onerror = oldOnError;
} //isDyn
} //isContent
}
}
if (!noLink) {
oldLastVisitNumber = oldCurrentNumber;
oldCurrentNumber = currentNumber;
}
if (isContent && isDyn) {
$hmtoc.document.write("\n\r\n\r<hr><font face=\"Arial,Helvetica\" size=\"1\">Copyright &copy; 1999-2005 JH Software</font>\n\r</body>\n\r</html>\n\r");
$hmtoc.document.close();
}
if (theHref)
if (theTarget=="top") top.location.href = theHref;
else if (theTarget=="parent") parent.location.href = theHref;
else if (theTarget=="blank") open(theHref,"");
else {
$hmcontent.location.href = theHref;
if ((tocScroll) && (hasSelection)) $hmtoc.document.all["currentNode"].scrollIntoView();
}
}

