//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.

/////DEFINE YOUR MENU LISTS and ITEMS below/////////////////

addListGroup("chainedmenu", "First-Select");

addOption("First-Select", "Select an item", "", 1); //HEADER OPTION
addList("First-Select", "Manuals", "", "Manuals");
addList("First-Select", "Brochures", "", "Brochures");
addList("First-Select", "Wiring Diagrams", "", "Diagrams");

addOption("Manuals", "Select an item", "", 1); //HEADER OPTION
addList("Manuals", "Dial Type Thermostats", "", "Manuals-Dial");
addList("Manuals", "Slimline Thermostats", "", "Manuals-Slim");
addList("Manuals", "Touchscreen Thermostats", "", "Manuals-Touch");
addList("Manuals", "Time Clock Thermostats", "", "Manuals-Time");
addList("Manuals", "Network Products", "", "Manuals-Network");
addList("Manuals", "PC Software", "", "Manuals-PC");
addList("Manuals", "Warm Air/Radiant Controls", "", "Manuals-Warm");
addList("Manuals", "Boiler Controllers", "", "Manuals-Boiler");


addOption("Manuals-Dial", "Select an item", "", 1); //HEADER OPTION
addList("Manuals-Dial", "DS1", "http://www.heatmiser.co.uk/docs/dial/ds1_manual.pdf", "http://www.heatmiser.co.uk/docs/dial/ds1_manual.pdf");
addList("Manuals-Dial", "DS1-L", "http://www.heatmiser.co.uk/docs/dial/ds1l_manual.pdf", "http://www.heatmiser.co.uk/docs/dial/ds1l_manual.pdf");
addList("Manuals-Dial", "DS1-E", "http://www.heatmiser.co.uk/docs/dial/ds1e_manual.pdf", "http://www.heatmiser.co.uk/docs/dial/ds1e_manual.pdf");
addList("Manuals-Dial", "DS1-EL", "http://www.heatmiser.co.uk/docs/dial/ds1el_manual.pdf", "http://www.heatmiser.co.uk/docs/dial/ds1el_manual.pdf");
addList("Manuals-Dial", "DS-SB", "http://www.heatmiser.co.uk/docs/dial/dssb_manual.pdf", "http://www.heatmiser.co.uk/docs/dial/dssb_manual.pdf");


addOption("Manuals-Slim", "Select an item", "", 1); //HEADER OPTION
addList("Manuals-Slim", "DT / DT-N (V1)", "http://www.heatmiser.co.uk/docs/slimline_mains/dt_v1_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/dt_v1_manual.pdf");
addList("Manuals-Slim", "DT / DT-N (V2)", "http://www.heatmiser.co.uk/docs/slimline_mains/dt_v2_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/dt_v2_manual.pdf");
addList("Manuals-Slim", "DT / DT-N (V3)", "http://www.heatmiser.co.uk/docs/slimline_mains/dt_v3_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/dt_v3_manual.pdf");
addList("Manuals-Slim", "PRT / PRT-N (V1)", "http://www.heatmiser.co.uk/docs/slimline_mains/prt_v1_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/prt_v1_manual.pdf");
addList("Manuals-Slim", "PRT / PRT-N (V2)", "http://www.heatmiser.co.uk/docs/slimline_mains/prt_v2_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/prt_v2_manual.pdf");
addList("Manuals-Slim", "PRT / PRT-N (V3)", "http://www.heatmiser.co.uk/docs/slimline_mains/prt_v3_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/prt_v3_manual.pdf");
addList("Manuals-Slim", "PRTHW / PRTHW-N(V1)", "http://www.heatmiser.co.uk/docs/slimline_mains/prthw_v1_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/prthw_v1_manual.pdf");
addList("Manuals-Slim", "PRTHW / PRTHW-N(V2)", "http://www.heatmiser.co.uk/docs/slimline_mains/prthw_v2_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/prthw_v2_manual.pdf");
addList("Manuals-Slim", "PRT-E / PRT=EN(V2)", "http://www.heatmiser.co.uk/docs/slimline_mains/prte_v2_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/prte_v2_manual.pdf");
addList("Manuals-Slim", "HC/HC-N", "http://www.heatmiser.co.uk/docs/slimline_mains/hc_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/hc_manual.pdf");
addList("Manuals-Slim", "PRT-R", "http://www.heatmiser.co.uk/docs/slimline_mains/prtr_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/prtr_manual.pdf");
addList("Manuals-Slim", "PRT-R2", "http://www.heatmiser.co.uk/docs/slimline_mains/prtr2_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/prtr2_manual.pdf");
addList("Manuals-Slim", "PRT-R", "http://www.heatmiser.co.uk/docs/slimline_mains/prtr_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/prtr_manual.pdf");
addList("Manuals-Slim", "FC", "http://www.heatmiser.co.uk/docs/slimline_mains/fc_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/fc_manual.pdf");
addList("Manuals-Slim", "FCV7", "http://www.heatmiser.co.uk/docs/slimline_mains/fcv7_manual.pdf", "http://www.heatmiser.co.uk/docs/slimline_mains/fcv7_manual.pdf");


addOption("Manuals-Touch", "Select an item", "", 1); //HEADER OPTION
addList("Manuals-Touch", "DT-TS/DT-NTS", "http://www.heatmiser.co.uk/docs/touchscreen_mains/dtts_manual.pdf", "http://www.heatmiser.co.uk/docs/touchscreen_mains/dtts_manual.pdf");
addList("Manuals-Touch", "DT-ETS/DT-ENTS", "http://www.heatmiser.co.uk/docs/touchscreen_mains/dtets_manual.pdf", "http://www.heatmiser.co.uk/docs/touchscreen_mains/dtets_manual.pdf");
addList("Manuals-Touch", "PRT-TS/PRT-NTS", "http://www.heatmiser.co.uk/docs/touchscreen_mains/prtts_manual.pdf", "http://www.heatmiser.co.uk/docs/touchscreen_mains/prtts_manual.pdf");
addList("Manuals-Touch", "PRT-ETS/PRT-ENTS", "http://www.heatmiser.co.uk/docs/touchscreen_mains/prtets_manual.pdf", "http://www.heatmiser.co.uk/docs/touchscreen_mains/prtets_manual.pdf");
addList("Manuals-Touch", "PRT-HWTS/PRT-HWNTS", "http://www.heatmiser.co.uk/docs/touchscreen_mains/prthwts_manual.pdf", "http://www.heatmiser.co.uk/docs/touchscreen_mains/prthwts_manual.pdf");
addList("Manuals-Touch", "PRT2-TS/PRT2-NTS", "http://www.heatmiser.co.uk/docs/touchscreen_mains/prt2ts_manual.pdf", "http://www.heatmiser.co.uk/docs/touchscreen_mains/prt2ts_manual.pdf");

addOption("Manuals-Time", "Select an item", "", 1); //HEADER OPTION
addList("Manuals-Time", "TM1 / TM1-N", "http://www.heatmiser.co.uk/docs/timeclock_12v/tm1n_manual.pdf", "http://www.heatmiser.co.uk/docs/timeclock_12v/tm1n_manual.pdf");
addList("Manuals-Time", "TM1-TS / TM1-NTS", "http://www.heatmiser.co.uk/docs/timeclock_12v/tm1nts_manual.pdf", "http://www.heatmiser.co.uk/docs/timeclock_12v/tm1nts_manual.pdf");
addList("Manuals-Time", "TM4-TS", "http://www.heatmiser.co.uk/docs/timeclock_12v/tm4_manual.pdf", "http://www.heatmiser.co.uk/docs/timeclock_12v/tm4_manual.pdf");

addOption("Manuals-Network", "Select an item", "", 1); //HEADER OPTION
addList("Manuals-Network", "TouchPad v2", "http://www.heatmiser.co.uk/docs/network_products/touchpad_v2_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/touchpad_v2_manual.pdf");
addList("Manuals-Network", "TouchPad v3", "http://www.heatmiser.co.uk/docs/network_products/touchpad_v3_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/touchpad_v3_manual.pdf");
addList("Manuals-Network", "Netmonitor User Guide v2", "http://www.heatmiser.co.uk/docs/network_products/netmonitor_user_v2_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/netmonitor_user_v2_manual.pdf");
addList("Manuals-Network", "Netmonitor User Guide v3", "http://www.heatmiser.co.uk/docs/network_products/netmonitor_user_v3_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/netmonitor_user_v3_manual.pdf");
addList("Manuals-Network", "Netmonitor Install Guide v2", "http://www.heatmiser.co.uk/docs/network_products/netmonitor_install_v2_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/netmonitor_install_v2_manual.pdf");
addList("Manuals-Network", "Netmonitor Install Guide v3", "http://www.heatmiser.co.uk/docs/network_products/netmonitor_user_v3_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/netmonitor_user_v3_manual.pdf");
addList("Manuals-Network", "TR2", "http://www.heatmiser.co.uk/docs/network_products/tr2_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/tr2_manual.pdf");


addOption("Manuals-PC", "Select an item", "", 1); //HEADER OPTION
addList("Manuals-PC", "PCLink V2", "http://www.heatmiser.co.uk/docs/network_products/pclink_v2_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/pclink_v2_manual.pdf");
addList("Manuals-PC", "PCLink V3", "http://www.heatmiser.co.uk/docs/network_products/pclink_v3_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/pclink_v3_manual.pdf");
addList("Manuals-PC", "PC Connect", "http://www.heatmiser.co.uk/docs/network_products/pcconnect_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/pcconnect_manual.pdf");
addList("Manuals-PC", "PlusNet User Guide", "http://www.heatmiser.co.uk/docs/network_products/plusnet_user_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/plusnet_user_manual.pdf");
addList("Manuals-PC", "PlusNet Setup Guide", "http://www.heatmiser.co.uk/docs/network_products/plusnet_setup_manual.pdf", "http://www.heatmiser.co.uk/docs/network_products/plusnet_setup_manual.pdf");



addOption("Manuals-Warm", "Select an item", "", 1); //HEADER OPTION
addList("Manuals-Warm", "Economy 2000", "http://www.heatmiser.co.uk/docs/industrial_manuals/2000_manual.pdf", "http://www.heatmiser.co.uk/docs/industrial_manuals/2000_manual.pdf");
addList("Manuals-Warm", "Economy 2000L", "http://www.heatmiser.co.uk/docs/industrial_manuals/2000_manual.pdf", "http://www.heatmiser.co.uk/docs/industrial_manuals/2000_manual.pdf");
addList("Manuals-Warm", "Economy", "http://www.heatmiser.co.uk/docs/industrial_manuals/new_economy_manual.pdf", "http://www.heatmiser.co.uk/docs/industrial_manuals/new_economy_manual.pdf");
addList("Manuals-Warm", "Eclipse", "http://www.heatmiser.co.uk/docs/industrial_manuals/new_eclipse_manual.pdf", "http://www.heatmiser.co.uk/docs/industrial_manuals/new_eclipse_manual.pdf");
addList("Manuals-Warm", "Mistral 1", "http://www.heatmiser.co.uk/docs/industrial_manuals/new_mistral_manual.pdf", "http://www.heatmiser.co.uk/docs/industrial_manuals/new_mistral_manual.pdf");
addList("Manuals-Warm", "Mistral 2", "http://www.heatmiser.co.uk/docs/industrial_manuals/new_mistral_manual.pdf", "http://www.heatmiser.co.uk/docs/industrial_manuals/new_mistral_manual.pdf");


addOption("Manuals-Boiler", "Select an item", "", 1); //HEADER OPTION
addList("Manuals-Boiler", "Boilerman", "http://www.heatmiser.co.uk/docs/industrial_manuals/new_boilerman_manual.pdf", "http://www.heatmiser.co.uk/docs/industrial_manuals/new_boilerman_manual.pdf");
addList("Manuals-Boiler", "Senior", "http://www.heatmiser.co.uk/docs/industrial_manuals/senior_manual.pdf", "http://www.heatmiser.co.uk/docs/industrial_manuals/senior_manual.pdf");
addList("Manuals-Boiler", "Plus (1st Generation)", "http://www.heatmiser.co.uk/docs/industrial_manuals/plusmanual.pdf", "http://www.heatmiser.co.uk/docs/industrial_manuals/plusmanual.pdf");
addList("Manuals-Boiler", "Plus User (Current)", "http://www.heatmiser.co.uk/docs/industrial_manuals/newplus_user.pdf", "http://www.heatmiser.co.uk/docs/industrial_manuals/newplus_user.pdf");
addList("Manuals-Boiler", "Plus Setup (Current)", "http://www.heatmiser.co.uk/docs/industrial_manuals/newplus_eng.pdf", "http://www.heatmiser.co.uk/docs/industrial_manuals/newplus_eng.pdf");


addOption("Brochures", "Select an item", "", 1); //HEADER OPTION
addList("Brochures", "Domestic", "", "Brochure-dom");
addList("Brochures", "Industrial", "", "Brochure-ind");

addOption("Brochure-dom", "Select an item", "", 1); //HEADER OPTION
addList("Brochure-dom", "Domestic Brochure", "http://www.heatmiser.co.uk/docs/brochures/domestic.pdf", "http://www.heatmiser.co.uk/docs/brochures/domestic.pdf");

addOption("Brochure-ind", "Select an item", "", 1); //HEADER OPTION
addList("Brochure-ind", "Industral Brochure", "http://www.heatmiser.co.uk/docs/brochures/industrial2009.pdf", "http://www.heatmiser.co.uk/docs/brochures/industrial2009.pdf");


addOption("Diagrams", "Select an item", "", 1); //HEADER OPTION
addList("Diagrams", "UH1", "", "diagrams-uh1");
addList("Diagrams", "UH2", "", "diagrams-uh2");

addOption("diagrams-uh1", "Select an item", "", 1); //HEADER OPTION
addList("diagrams-uh1", "UH1 Wiring Diagram", "http://www.heatmiser.co.uk/docs/drawings/uh1_wiring.pdf", "http://www.heatmiser.co.uk/docs/drawings/uh1_wiring.pdf");

addOption("diagrams-uh2", "Select an item", "", 1); //HEADER OPTION
addList("diagrams-uh2", "UH2 Wiring Diagram", "http://www.heatmiser.co.uk/docs/drawings/uh2_wiring.pdf", "http://www.heatmiser.co.uk/docs/drawings/uh2_wiring.pdf");





