//http://www.dynamicdrive.com/dynamicindex1/chainedmenu/index.htm
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=0 //Open links in new window or not? 1=yes, 0=no.

/////DEFINE YOUR MENU LISTS and ITEMS below/////////////////

addListGroup("chainedmenu", "First-Select");

addOption("First-Select", "Select Type", "", 1); //HEADER OPTION
addList("First-Select", "Auto Reset", "", "auto");
addList("First-Select", "Manual Reset", "", "manual");
addList("First-Select", "High Pressure", "", "high");

//-----------auto
addOption("auto", "Select Port Size", "", 1); //HEADER OPTION
addList("auto", "1/8`` FNPT", "", "auto-size"); 
addList("auto", "1/4`` FNPT", "", "auto-size"); 
addList("auto", "1/2`` FNPT", "", "auto-size"); 
addList("auto", "3/4`` FNPT", "", "auto-size"); 

addOption("auto-size", "Select Material", "", 1); //HEADER OPTION
addOption("auto-size", "Brass","results/excess_flow_valves_results.htm");
addOption("auto-size", "316 Stainless Steel","results/excess_flow_valves_results.htm");

//----------manual
addOption("manual", "Select Port Size", "", 1); //HEADER OPTION
addList("manual", "1/8`` FNPT", "", "manual-size"); 
addList("manual", "1/4`` FNPT", "", "manual-size"); 
addList("manual", "1/2`` FNPT", "", "manual-size"); 
addList("manual", "3/4`` FNPT", "", "manual-size"); 

addOption("manual-size", "Select Material", "", 1); //HEADER OPTION
addOption("manual-size", "Brass","results/excess_flow_valves_results.htm");
addOption("manual-size", "316 Stainless Steel","results/excess_flow_valves_results.htm");

//----------high
addOption("high", "Select Port Size", "", 1); //HEADER OPTION
addList("high", "1/4`` FNPT", "", "high-size"); 
addList("high", "1/2`` FNPT", "", "high-size"); 
addList("high", "3/4`` FNPT", "", "high-size"); 

addOption("high-size", "Select Material", "", 1); //HEADER OPTION
addOption("high-size", "316 Stainless Steel","results/excess_flow_valves_results.htm");
//excess_flow_valves_results.htm