//var hide_empty_list=true; //uncomment this line to hide empty selection lists
var disable_empty_list=true; //uncomment this line to disable empty selection lists

var onclickaction="goto" //set to "alert" or "goto". Former is for debugging purposes, to tell you the value of the final selected list that will be used as the destination URL. Set to "goto" when below configuration is all set up as desired. 

var newwindow=1 //Open links in new window or not? 1=yes, 0=no.

/////MENU LISTS and ITEMS below/////////////////

addListGroup("chainedmenu", "toplevel");

addOption("toplevel", "Select a General Category", "", 1); //HEADER OPTION
addList("toplevel", "Lathe Accessories", "", "lathe");
addList("toplevel", "Milling Accessories", "", "mill");
addList("toplevel", "Accessories for both Machines", "", "both");

addOption("lathe", "Select a Lathe Category", "", 1); //HEADER OPTION
addList("lathe", "Part Hold Accessories", "", "latheparthold");
addList("lathe", "Cutting Accessories", "", "lathecutting");
addList("lathe", "Digital Readouts", "", "lathedro");
addList("lathe", "CNC Packages", "", "lathecnc");
addList("lathe", "Lathe Table Accessories", "", "lathetable"); //END OF THIS NODE

addOption("latheparthold", "Select a Lathe Part Hold Accessory", "", 1); //HEADER OPTION
addOption("latheparthold", "Steady Rest - P/N 1074", "http://sherline.com/1074pg.htm");
addOption("latheparthold", "Follower Rest - P/N 1090", "http://sherline.com/1090pg.htm");
addOption("latheparthold", "Bullnose Live Center - P/N 1182", "http://sherline.com/1182pg.htm");
addOption("latheparthold", "Adjustable Tailstock Center - P/N 1207", "http://sherline.com/1201pg.htm");
addOption("latheparthold", "Adjustable Tailstock Chuck Holder - P/N 1202", "http://sherline.com/1202pg.htm");
addOption("latheparthold", "Adjustable Tailstock Tool Holder - P/N 1203", "http://sherline.com/1203pg.htm");
addOption("latheparthold", "Adjustable Tailstock 1-inch Die Holder - P/N 1206", "http://sherline.com/1206pg.htm");
addOption("latheparthold", "Adjustable Tailstock Spindle Extender - P/N 1220", "http://sherline.com/1220pg.htm");
addOption("latheparthold", "#0 Morse to 3/4-16 Chuck Adapter - P/N 1230", "http://sherline.com/1230pg.htm");
addOption("latheparthold", "WW Collet Tailstock Adapter - P/N 2085", "http://sherline.com/2085pg.htm");
addOption("latheparthold", "8.0mm Collet Tailstock Adapter - P/N 2086", "http://sherline.com/2086pg.htm");
addOption("latheparthold", "Collet-to-Thread Chuck Adapters - P/N 2090-2093", "http://sherline.com/1290pg.htm");
addOption("latheparthold", "8.0mm / 10.0mm Collet-to-Live Center - P/N 2106 / 2107", "http://sherline.com/2106pg.htm");
addOption("latheparthold", "Spur Driver - P/N 3035", "http://sherline.com/3035pg.htm");

addOption("lathecutting", "Select a Lathe Cutting Accessory", "", 1); //HEADER OPTION
addOption("lathecutting", "Compound Slide - P/N 1270(in) | 1280 (metric)", "http://sherline.com/1270pg.htm");
addOption("lathecutting", "Riser Rocker Tool Post - P/N 1288", "http://sherline.com/1288pg.htm");
addOption("lathecutting", "Riser 3/8 inch Insert Holder Tool Post - P/N 1289", "http://sherline.com/1289pg.htm");
addOption("lathecutting", "Steady Rest Riser - P/N 1290", "http://sherline.com/1290pg.htm");
addOption("lathecutting", "Spacer Block Kit - P/N 1291", "http://sherline.com/1291pg.htm");
addOption("lathecutting", "Tailstock Riser Block - P/N 1292", "http://sherline.com/1292pg.htm");
addOption("lathecutting", "Clockmaker's Gearcutting Arbors - P/N 2094-2096", "http://sherline.com/2094pg.htm");
addOption("lathecutting", "Collet Pot Chucks - P/N 2100-2105", "http://sherline.com/2100pg.htm");
addOption("lathecutting", "W.R. Smith T-Rest - P/N 2110", "http://sherline.com/2110pg.htm");
addOption("lathecutting", "Radius Cutting Attachment - P/N 2200", "http://sherline.com/2200pg.htm");
addOption("lathecutting", "Quick-Change Tool Post Riser - P/N 2251", "http://sherline.com/2251pg.htm");
addOption("lathecutting", "Insert Tool Holders 35 Degree & 55 Degree - P/N 2256 - 2258", "http://sherline.com/2256pg.htm");
addOption("lathecutting", "Inserted Tip Cermaic Tool Holder - P/N 2265", "http://sherline.com/2265inst.pdf");
addOption("lathecutting", "Insert Boring Tools 80 Degree & 55 Degree - P/N 2259-2261", "http://sherline.com/2259pg.htm");
addOption("lathecutting", "Threading / Grooving Carbide Insert Tool Holder - P/N 2267", "http://sherline.com/2267pg.htm");
addOption("lathecutting", "1/4 inch Quick-Change Tool Holder - P/N 2280", "http://sherline.com/2280pg.htm");
addOption("lathecutting", "3/8 inch Quick-Change Boring Tool Holder - P/N 2285", "http://sherline.com/2285pg.htm");
addOption("lathecutting", "Quick-Change Cutoff Tool Holder - P/N 2290", "http://sherline.com/2290pg.htm");
addOption("lathecutting", "Quick-Change Carbide Insert Tool Holder - P/N 2295", "http://sherline.com/2295pg.htm");
addOption("lathecutting", "Two-Position Tool Post (1/4 | 1/4 inch) - P/N 3003", "http://sherline.com/3003pg.htm");
addOption("lathecutting", "Knurling Tool Holder - P/N 3004", "http://sherline.com/3004pg.htm");
addOption("lathecutting", "1/4 inch HSS Tool Blanks - P/N 3005", "http://sherline.com/3005pg.htm");
addOption("lathecutting", "Two-Position Tool Post (5/16 | 3/8 inch) - P/N 3006", "http://sherline.com/3008pg.htm");
addOption("lathecutting", "Cutoff Tool Rear Mounting Block - P/N 3016", "http://sherline.com/3016pg.htm");
addOption("lathecutting", "Rear Mount Cutoff Tool and Holder - P/N 3018", "http://sherline.com/3018pg.htm");
addOption("lathecutting", "Wood Tool Rest Set - P/N 3038", "http://sherline.com/3038pg.htm");
addOption("lathecutting", "Extended Wood Tool Rest Set - P/N 3047", "http://sherline.com/3047pg.htm");
addOption("lathecutting", "Rocker Tool Post - P/N 3057", "http://sherline.com/3057pg.htm");
addOption("lathecutting", "2.5 inch x 1-5/16 inch Steel Blank - P/N 3070", "http://sherline.com/3070pg.htm");
addOption("lathecutting", "Thread-Cutting Attachment - P/N 3100", "http://sherline.com/3100pg.htm");
addOption("lathecutting", "3/8-inch Insert Holder Tool Post - P/N 7600", "http://sherline.com/7600pg.htm");
addOption("lathecutting", "55 degree Negative Rake Insert Holder - P/N 7610", "http://sherline.com/7610pg.htm");
addOption("lathecutting", "55 degree Carbide Insert for 7610 Holder - P/N 7612", "http://sherline.com/7612pg.htm");
addOption("lathecutting", "High Speed Air Grinder Toolposts - P/N 8976 & 8987", "http://sherline.com/8976pg.htm");

addOption("lathedro", "Select a Lathe DRO Accessory", "", 1); //HEADER OPTION
addOption("lathedro", "Digital Readout / RPM Gauge (2-axis) - P/N 8200 & 8260", "http://sherline.com/8200pg.htm");
addOption("lathedro", "Digital Readout / RPM Gauge (3-axis) - P/N 8210 & 8215", "http://sherline.com/8210pg.htm");
addOption("lathedro", "Digital Readout w/o Electronics Box (2-axis) - P/N 8220 & 8225", "http://sherline.com/8220pg.htm");

addOption("lathecnc", "Select a Lathe CNC Accessory", "", 1); //HEADER OPTION
addOption("lathecnc", "CNC Lathe Leadscrew Lock Upgrade - P/N 4417Z", "http://sherline.com/4417Zpg.htm");
addOption("lathecnc", "CNC Upgrade Kit (Leadscrew Axis) - P/N 6970", "http://sherline.com/6700pg.htm");

addOption("lathetable", "Select a Lathe Machine Accessory", "", 1); //HEADER OPTION
addOption("lathetable", "Stereo Microscope and Lathe Mount - P/N 2125 & 2126", "http://sherline.com/2125pg.htm");
addOption("lathetable", "Power Feed - P/N 3001", "http://sherline.com/3001pg.htm");
addOption("lathetable", "Tool Height Gauge - P/N 3009", "http://sherline.com/3009pg.htm");
addOption("lathetable", "Crosslide Accessory Plate - P/N 3017", "http://sherline.com/3017pg.htm");
addOption("lathetable", "Vertical Milling Columns for Sherline Lathes", "http://sherline.com/3050pg.htm");
addOption("lathetable", "Crosslide Accessory Plate - P/N 3017", "http://sherline.com/3017pg.htm");
addOption("lathetable", "Vinyl Dust Covers 15-inch & 24-inch - P/N 4150 & 4151", "http://sherline.com/4150pg.htm");
addOption("lathetable", "Chip Guard - P/N 4360", "http://sherline.com/4360pg.htm");

addOption("mill", "Select a Mill Category", "", 1); //HEADER OPTION
addList("mill", "Part Hold Accessories", "", "millparthold");
addList("mill", "Cutting Accessories", "", "millcutting");
addList("mill", "Digital Readouts", "", "milldro");
addList("mill", "CNC Packages", "", "millcnc");
addList("mill", "Mill Table Accessories", "", "milltable"); //END OF THIS NODE

addOption("millparthold", "Select a Mill Part Hold Accessory", "", 1); //HEADER OPTION
addOption("millparthold", "8.0mm Collet Fixture - P/N 1165", "http://sherline.com/1165pg.htm");
addOption("millparthold", "Basic Hold-Down Set - P/N 3012", "http://sherline.com/3012pg.htm");
addOption("millparthold", "Deluxe Step Block Hold Down Set - P/N 3013", "http://sherline.com/3013pg.htm");
addOption("millparthold", "Indexing Attachment - P/N 3200", "http://sherline.com/3200pg.htm");
addOption("millparthold", "Milling Vise - P/N 3551", "http://sherline.com/3551pg.htm");
addOption("millparthold", "8.0mm Collet Fixture - P/N 1165", "http://sherline.com/1165pg.htm");

addOption("millcutting", "Select a Mill Cutting Accessory", "", 1); //HEADER OPTION
addOption("millcutting", "Sensitive Drilling Attachment - P/N 1012", "http://sherline.com/1012pg.htm");
addOption("millcutting", "WW Collet Fixture - P/N 1164", "http://sherline.com/1164pg.htm");
addOption("millcutting", "8.0mm Collet Fixture - P/N 1165", "http://sherline.com/1165pg.htm");
addOption("millcutting", "Fly Cutter - P/N 3052", "http://sherline.com/3052pg.htm");
addOption("millcutting", "Boring Head - P/N 3054 (inch) & 3049 (metric)", "http://sherline.com/3054pg.htm");
addOption("millcutting", "Mill Collet Set - P/N 3060 (inch) & 3090 (metric)", "http://sherline.com/3060pg.htm");
addOption("millcutting", "Boring Tool 1/4 x 6-inch - P/N 3061", "http://sherline.com/3061pg.htm");
addOption("millcutting", "Boring Tool 5/16 x 1-inch - P/N 3063", "http://sherline.com/3061pg.htm");
addOption("millcutting", "Boring Tool 5/16 x 1.5-inch - P/N 3064", "http://sherline.com/3061pg.htm");
addOption("millcutting", "Slitting Saw Holder - P/N 3065", "http://sherline.com/3065pg.htm");
addOption("millcutting", "End Mill Holders - P/N 3075 - 6081", "http://sherline.com/3079pg.htm");
addOption("millcutting", "1/4-inch Shank End Mill Set - P/N 3080", "http://sherline.com/3080pg.htm");
addOption("millcutting", "Milling Collets - P/N 3087-3098", "http://sherline.com/3087pg.htm");
addOption("millcutting", "Gear Tooth Cutter Holder - P/N 3217", "http://sherline.com/3217pg.htm");
addOption("millcutting", "Mill Cutter Arbors - P/N 3230-3236", "http://sherline.com/3230pg.htm");
addOption("millcutting", "Single Flute Insert Fly Cutter - P/N 7620", "http://sherline.com/7620pg.htm");
addOption("millcutting", "1/4-inch Shank End Mill Set - P/N 3080", "http://sherline.com/3080pg.htm");
addOption("millcutting", "High Speed Air Engraving Head - P/N 8900", "http://sherline.com/8900pg.htm");

addOption("milldro", "Select a Mill DRO Accessory", "", 1); //HEADER OPTION
addOption("milldro", "3-axis Mill Digital Readout - P/N 8100 (inch) & 8160 (metric)", "", "http://sherline.com/3074pg.htm");
addOption("milldro", "Drill Chuck Tool Holder - P/N 3074", "http://sherline.com/3074pg.htm");
addOption("milldro", "Z-axis Only Digital Readout Handwheel Package - P/N 8240 (inch) & 8245 (metric)", "http://sherline.com/8240pg.htm");

addOption("millcnc", "Select a Mill CNC Accessory", "", 1); //HEADER OPTION
addOption("millcnc", "CNC-Ready 4-inch Rotary Table - P/N 3700CNC", "http://sherline.com/3700cncpg.htm");
addOption("millcnc", "CNC Mill Z-axis Backlash Lock - P/N 4017Z", "http://sherline.com/4017Zinst.htm");
addOption("millcnc", "CNC-Ready Mill XY Bases", "http://sherline.com/5200pg.htm");
addOption("millcnc", "CNC-Ready Mill XYZ Bases", "http://sherline.com/5201pg.htm");
addOption("millcnc", "CNC Upgrade Kits", "http://sherline.com/6700pg.htm");
addOption("millcnc", "CNC-Ready Mill XYZ Bases", "http://sherline.com/5201pg.htm");
addOption("millcnc", "CNC Rotary Table - P/N 8700", "http://sherline.com/8700pg.htm");
addOption("millcnc", "CNC Linear Controllers", "http://sherline.com/8800pg.htm");
addOption("millcnc", "CNC Power Feed - P/N 8850", "http://sherline.com/8850pg.htm");

addOption("milltable", "Select a Mill Machine Accessory", "", 1); //HEADER OPTION
addOption("milltable", "Chuck-to-T-Slot Adapter - P/N 1187", "http://sherline.com/1187pg.htm");
addOption("milltable", "Index Block Set - P/N 2045", "http://sherline.com/2045pg.htm");
addOption("milltable", "Stereo Microscope and Mount - P/N 2127 & 2128", "http://sherline.com/2127pg.htm");
addOption("milltable", "4-Jaw Chuck Hold-Down Set - P/N 3058", "http://sherline.com/3058pg.htm");
addOption("milltable", "Rotary Column Attachment - P/N 3500", "http://sherline.com/3500pg.htm");
addOption("milltable", "90-degree Angle Plate - P/N 3559", "http://sherline.com/3559pg.htm");
addOption("milltable", "Mill Tooling Plate - P/N 3560", "http://sherline.com/3560pg.htm");
addOption("milltable", "Rotating Mill Vise Base - P/N 3570", "http://sherline.com/3570pg.htm");
addOption("milltable", "4-inch Rotary Table - P/N 3700", "http://sherline.com/3700pg.htm");
addOption("milltable", "Right Angle Attachment - P/N 3701", "http://sherline.com/3701pg.htm");
addOption("milltable", "Right Angle Adjustable Tailstock - P/N 3702", "http://sherline.com/3702pg.htm");
addOption("milltable", "Tilting Angle Table - P/N 3750", "http://sherline.com/3750pg.htm");
addOption("milltable", "Mill Saddle Lock Upgrade - P/N 4017U", "http://sherline.com/4017upg.htm");
addOption("milltable", "15-inch Extended Mill Column & Leadscrews - P/N 45260-45291", "http://sherline.com/45260pg.htm");
addOption("milltable", "Mill Vinyl Dust Covers - P/N 5150 & 5151", "http://sherline.com/5150pg.htm");
addOption("milltable", "Manual Mill XY Bases", "http://sherline.com/5200pg.htm");
addOption("milltable", "Manual Mill XYZ Bases", "http://sherline.com/5201pg.htm");
addOption("milltable", "18-inch Extended Mill Table and Leadscrews - P/N 54182-51173", "http://sherline.com/54182pg.htm");
addOption("milltable", "Mill Column 8-Direction Upgrades - P/N 5650-5680", "http://sherline.com/5650pg.htm");
addOption("milltable", "Horizontal Milling Conversion - P/N 6100", "http://sherline.com/6100pg.htm");
addOption("milltable", "Column Conversion - P/N 6101", "http://sherline.com/6101pg.htm");
addOption("milltable", "Parallel Set - P/N 7505", "http://sherline.com/7505pg.htm");

addOption("both", "Select a Category", "", 1); //HEADER OPTION
addList("both", "Collets & Chucks", "", "collets");
addList("both", "Tools, Hardware & Cutting", "", "tools");
addList("both", "Handwheels", "", "handwheel");
addList("both", "Reference Materials", "", "ref");
addList("both", "CNC Accessories", "", "bothcnc"); //END OF THIS NODE

addOption("collets", "Select a Collet Accessory", "", 1); //HEADER OPTION
addOption("collets", "5-piece WW Collet Set - P/N 1160", "http://sherline.com/1160pg.htm");
addOption("collets", "WW Collet Adapter - P/N 1161", "http://sherline.com/1161pg.htm");
addOption("collets", "Deluxe WW Collet Sets - P/N 1162 (inch) & 1179 (metric)", "http://sherline.com/1162pg.htm");
addOption("collets", "8mm Collet Adapter - P/N 1163", "http://sherline.com/1163pg.htm");
addOption("collets", "Oak WW Collet Storeage Box - P/N 11710", "http://sherline.com/1171pg.htm");
addOption("collets", "Deluxe Boxed 78-piece Collet Set - P/N 1180", "http://sherline.com/1180pg.htm");
addOption("collets", "WW Collet with 1-inch Blank - P/N 2083", "http://sherline.com/2083pg.htm");

addOption("tools", "Select a Tool Accessory", "", 1); //HEADER OPTION
addOption("tools", "Spacer Block Kit - P/N 1291", "http://sherline.com/1291pg.htm");
addOption("tools", "Spindle Handwheel - P/N 2049", "http://sherline.com/2049pg.htm");
addOption("tools", "Insert Boring Tools - P/N 2259-2261", "http://sherline.com/2259pg.htm");
addOption("tools", "Toggle Switch Dust Cover - P/N 3015", "http://sherline.com/3015pg.htm");
addOption("tools", "5/32-inch Hex T-Driver - P/N 3020", "http://sherline.com/3020pg.htm");
addOption("tools", "Center Drill Set - P/N 3021", "http://sherline.com/3021pg.htm");
addOption("tools", "#1 Morse Blank - P/N 3055", "http://sherline.com/3055pg.htm");
addOption("tools", "10-32 T-Nuts (Qty 10) - P/N 3056", "http://sherline.com/3056pg.htm");
addOption("tools", "10,000 RPM Pulley Set - P/N 4335", "http://sherline.com/4335pg.htm");
addOption("tools", "10,000 RPM Spindle/Motor/Speed Control Unit - P/N 33070", "http://sherline.com/4335pg.htm");
addOption("tools", "Safety Glasses - P/N 5330", "http://sherline.com/5330pg.htm");
addOption("tools", "Teflon Grease - P/N 7550 & 7555", "http://sherline.com/7550pg.htm");
addOption("tools", "Teflon Spray Dry - P/N 7555", "http://sherline.com/7550pg.htm");

addOption("handwheel", "Select a Handwheel Accessory", "", 1); //HEADER OPTION
addOption("handwheel", "Oversize 2.5-inch Handwheel - P/N 3400 (inch) & 3485 (metric)", "http://sherline.com/3400pg.htm");
addOption("handwheel", "Adjustable Zero Handwheels - P/N 3420-3465", "http://sherline.com/3420pg.htm");

addOption("ref", "Select a Reference Guide", "", 1); //HEADER OPTION
addOption("ref", "Home Machinists Handbook - P/N 5300", "http://sherline.com/5300pg.htm");
addOption("ref", "Assembly and Instruction Guide - P/N 5326", "http://sherline.com/5326pg.htm");
addOption("ref", "Shop Guide - P/N 5327", "http://sherline.com/5327pg.htm");
addOption("ref", "Steam Emgome Video with Plans - P/N 5328", "http://sherline.com/5328pg.htm");
addOption("ref", "Shop Secrets Video / Measuring Tools - P/N 5329", "http://sherline.com/5329pg.htm");

addOption("bothcnc", "Select a CNC Accessory", "", 1); //HEADER OPTION
addOption("bothcnc", "Stepper Motors - P/N 67127 & 67130", "http://sherline.com/67127pg.htm");
addOption("bothcnc", "CNC Linear Controller w/Stepper Motor - P/N 8800", "http://sherline.com/8800pg.htm");