var tocTab = new Array();var ir=0;
tocTab[ir++] = new Array ("1", "Introducing D2nc", "introduction.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("1.1", "Why D2nc?", "whyd2nc.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("1.2", "Installation", "installation.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("1.3", "How to buy D2nc", "howtobuy.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("1.4", "Copyright", "copyright.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2", "The User Interface (Overview)", "userinterface.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.1", "Shape - SDL", "uishapesdl.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.2", "Shape - DXF", "uishapedxf.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.3", "Constraint", "uiconstraint.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.4", "Path", "uipath.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.5", "Operations", "uioperations.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.5.1", "Contour Centerline", "contourcenterline.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.5.2", "Contour 4th Axis", "contour4thaxis.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.5.3", "G41/G42 Offset Outside", "g41g42offsetoutside.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.5.4", "G41/G42 Offset Inside", "g41g42offsetinside.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.5.5", "Drill Standard", "drillstandard.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.5.6", "Drill Dwell", "drilldwell.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.5.7", "Drill Peck", "drillpeck.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.5.8", "Drill Rapid Peck", "drillrapidpeck.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.5.9", "Other Position and Pause", "otherpositionandpause.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.6", "Machine Queue", "uimachinequeue.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.7", "Menu", "menu.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.7.1", "SDL Wizards", "sdlwizards.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.7.2", "Shape Library", "shapelibrary.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.7.3", "Tool Table", "tooltable.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.7.4", "Settings", "settings.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.7.5", "Material Settings", "materialsettings.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("2.7.6", "Export DXF ", "exportdxf.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3", "Using D2nc - Basic Concepts", "usingd2nc.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1", "End-to-End Process", "endtoendprocess.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1.1", "Describe a Shape using SDL", "describeashapesdl.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.2", "Import a Shape from DXF", "importashapedxf.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.3", "Set Constraints", "setconstraints.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.4", "Define Path", "definepath.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.1.5", "Generate Gcode", "generategcode.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.2", "What\'s a Shape?", "whatisashape.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.3", "Simple Shape", "simpleshape.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.4", "Creating your own SDL Wizards", "creatingyourownsdlwizards.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("3.5", "Rotary using X or Y", "rotaryinxory.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4", "Wizard Directory", "wizarddirectory.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.1", "Drill - Bolt Circle", "drillboltcircle.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.2", "Drill - Hole Array", "drillholearray.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.3", "Drill - Linear Hole Pattern", "drilllinearholepattern.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.4", "Drill - Rectangular Hole Pattern", "drillrectangularholepattern.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.5", "Mill - CL - Bolt Circle", "millboltcircle.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.6", "Mill - CL - Engine Flywheel Spoke Cutout", "millengineflywheelspokecut.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.7", "Mill - CL - Engrave Bezel", "millengravebezel.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.8", "Mill - CL - Engrave Circle Pattern", "millengravecirclepattern.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.9", "Mill - CL - Engrave Scale", "millengravescale.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.10", "Mill - CL - Radial Pocket (tool centerline)", "millradialpocket(toolcente.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.11", "Mill - CL - Radial Pocket (tool edge)", "millradialpocket(tooledge).htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.12", "Mill - CL - Radial Slot", "millradialslot.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.13", "Mill - CL - Rectangular Pocket", "millrectangularpocket.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.14", "Mill - CL - Shape - Circle", "mill_cl_shape_circle.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.15", "Mill - CL - Slotted Timing Disk", "millslottedtimingdisk.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.16", "Mill - CL - Spiral Pocket", "millspiralpocket.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.17", "Mill - CL - Surfacing in X axis", "millsurfacinginxaxis.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.18", "Mill - CL - Surfacing in Y axis", "millsurfacinginyaxis.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.19", "Mill - Multi - Engine Beam", "millenginebeam.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.20", "Mill - Multi - Engine Conrod", "millengineconrod.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.21", "Mill - Off - \'D\' Hole", "milldhole.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.22", "Mill - Off - Radial Slot", "mill_off_radialslot.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.23", "Mill - Off - Shape - Circle", "milloffshapecircle.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.24", "Mill - Off - Shape - HEX - across flats", "mill_off_shape_hex_acr.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.25", "Mill - Off - Shape - HEX - across points", "mill_off_shape_hex_acr2.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.26", "Mill - Off - Shape - Rectangle Centered Radius", "milloffshaperectcenrad.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("4.27", "Mill - Off - Shape - Rectangle", "milloffshaperectangle.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5", "Shape Description Language", "reference.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.1", "Assignment", "variables.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.2", "Functions", "mathfunctions.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.3", "Conditional test", "conditionalstatements.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.4", "H - Heading", "heading.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.5", "D - Draw", "draw.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.6", "J - Jump", "jump.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.7", "A - Arc", "arc.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.8", "W - Warp", "warp.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.9", "B - Block", "block.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.10", "N - Procedure", "procedure.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.11", "R - Repeat", "repeat.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.12", "T- Tangent", "tangent.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.13", "M - Move", "move.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.14", "E - Etch", "etch.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.15", "I - Library", "library.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.16", "V - ConVex", "convex.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.17", "C - ConCave", "concave.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.18", "&amp; - Close", "close.htm", "", "cicon9.gif", "cicon9.gif");
tocTab[ir++] = new Array ("5.19", "% - Reflect", "reflect.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 = "d2nc_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) != "d2nc_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 = "d2nc_kwindex.htm";
isIndex = true;
}
hasSelection = false;
if (isContent) {
if (!isDyn) {
if (hmtoc.location.href.substring(hmtoc.location.href.lastIndexOf("/")+1,hmtoc.location.href.length) != "d2nc_content.htm") hmtoc.location.href = "d2nc_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: 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>D2nc User Manual</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\">&copy; &lt;2005-2008&gt; ... D2nc</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();
}
}
