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 Vehicle", "", 1); //HEADER OPTION
addList("First-Select", "Cars", "", "Cars");
addList("First-Select", "Vans", "", "Vans");

addOption("Cars", "Select Make", "", 1); //HEADER OPTION
addList("Cars", "Alfa Romeo", "", "Alfa Romeo");
addList("Cars", "Audi", "", "Audi");
addList("Cars", "BMW", "", "BMW");
addList("Cars", "Chrysler", "", "Chrysler");
addList("Cars", "Honda", "", "Honda");
addList("Cars", "Jeep", "", "Jeep");
addList("Cars", "Jaguar", "", "Jaguar");
addList("Cars", "Land Rover", "", "Land Rover");
addList("Cars", "Lexus", "", "Lexus");
addList("Cars", "Mazda", "", "Mazda");
addList("Cars", "Mercedes", "", "Mercedes");
addList("Cars", "Mini", "", "Mini");
addList("Cars", "Nissan", "", "Nissan");
addList("Cars", "Saab", "", "Saab");
addList("Cars", "Seat", "", "Seat");
addList("Cars", "Volvo", "", "Volvo");
addList("Cars", "VW", "", "VW");

addOption("Alfa Romeo", "Select Model", "", 1); //HEADER OPTION
addOption("Alfa Romeo", "147", "http://www.carsofdistinction.co.uk/Car/Alfa_Romeo/147.htm");
addOption("Alfa Romeo", "159", "http://www.carsofdistinction.co.uk/Car/Alfa_Romeo/159.htm");
addOption("Alfa Romeo", "Brera", "http://www.carsofdistinction.co.uk/Car/Alfa_Romeo/brera.htm");
addOption("Alfa Romeo", "GT", "http://www.carsofdistinction.co.uk/Car/Alfa_Romeo/GT.htm");
addOption("Alfa Romeo", "Spider", "http://www.carsofdistinction.co.uk/Car/Alfa_Romeo/spider.htm");

addOption("Audi", "Select Model", "", 1); //HEADER OPTION
addOption("Audi", "A3", "http://www.carsofdistinction.co.uk/Car/Audi/A3.htm");
addOption("Audi", "A4", "http://www.carsofdistinction.co.uk/Car/Audi/A4.htm");
addOption("Audi", "A5", "http://www.carsofdistinction.co.uk/Car/Audi/A5.htm");
addOption("Audi", "A6", "http://www.carsofdistinction.co.uk/Car/Audi/A6.htm");
addOption("Audi", "A8", "http://www.carsofdistinction.co.uk/Car/Audi/A8.htm");
addOption("Audi", "Q5", "http://www.carsofdistinction.co.uk/Car/Audi/Q5.htm");
addOption("Audi", "Q7", "http://www.carsofdistinction.co.uk/Car/Audi/Q7.htm");
addOption("Audi", "R8", "http://www.carsofdistinction.co.uk/Car/Audi/R8.htm");
addOption("Audi", "TT", "http://www.carsofdistinction.co.uk/Car/Audi/TT.htm");

addOption("BMW", "Select Model", "", 1); //HEADER OPTION
addOption("BMW", "1 Series", "http://www.carsofdistinction.co.uk/Car/BMW/1series.htm");
addOption("BMW", "3 Series", "http://www.carsofdistinction.co.uk/Car/BMW/3series.htm");
addOption("BMW", "5 Series", "http://www.carsofdistinction.co.uk/Car/BMW/5series.htm");
addOption("BMW", "6 Series", "http://www.carsofdistinction.co.uk/Car/BMW/6series.htm");
addOption("BMW", "7 Series", "http://www.carsofdistinction.co.uk/Car/BMW/7series.htm");
addOption("BMW", "X3", "http://www.carsofdistinction.co.uk/Car/BMW/X3.htm");
addOption("BMW", "X5", "http://www.carsofdistinction.co.uk/Car/BMW/X5.htm");
addOption("BMW", "Z4", "http://www.carsofdistinction.co.uk/Car/BMW/Z4.htm");
addOption("BMW", "M Cars", "http://www.carsofdistinction.co.uk/Car/BMW/Mcars.htm");

addOption("Chrysler", "Select Model", "", 1); //HEADER OPTION
addOption("Chrysler", "300c", "http://www.carsofdistinction.co.uk/Car/Chrysler/300c.htm");
addOption("Chrysler", "Grand Voyager", "http://www.carsofdistinction.co.uk/Car/Chrysler/grand_voyager.htm");

addOption("Honda", "Select Model", "", 1); //HEADER OPTION
addOption("Honda", "Accord", "http://www.carsofdistinction.co.uk/Car/Honda/Accord.htm");
addOption("Honda", "Civic", "http://www.carsofdistinction.co.uk/Car/Honda/Civic.htm");
addOption("Honda", "CRV", "http://www.carsofdistinction.co.uk/Car/Honda/CRV.htm");

addOption("Jeep", "Select Model", "", 1); //HEADER OPTION
addOption("Jeep", "Grand Cherokee", "http://www.carsofdistinction.co.uk/Car/Jeep/Grand_Cherokee.htm");
addOption("Jeep", "Jeep Patriot", "http://www.carsofdistinction.co.uk/Car/Jeep/Patriot.htm");

addOption("Jaguar", "Select Model", "", 1); //HEADER OPTION
addOption("Jaguar", "XF", "http://www.carsofdistinction.co.uk/Car/Jaguar/XF.htm");
addOption("Jaguar", "Others", "http://www.carsofdistinction.co.uk/Car/Jaguar/Others.htm");

addOption("Land Rover", "Select Model", "", 1); //HEADER OPTION
addOption("Land Rover", "Defender", "http://www.carsofdistinction.co.uk/Car/Landrover/Defender.htm");
addOption("Land Rover", "Discovery", "http://www.carsofdistinction.co.uk/Car/Landrover/Discovery.htm");
addOption("Land Rover", "Freelander", "http://www.carsofdistinction.co.uk/Car/Landrover/Freelander.htm");
addOption("Land Rover", "Range Rover", "http://www.carsofdistinction.co.uk/Car/Landrover/Rangerover.htm");
addOption("Land Rover", "Range Rover Sport", "http://www.carsofdistinction.co.uk/Car/Landrover/Rangerover_sport.htm");

addOption("Lexus", "Select Model", "", 1); //HEADER OPTION
addOption("Lexus", "IS", "http://www.carsofdistinction.co.uk/Car/Lexus/IS.htm");
addOption("Lexus", "GS", "http://www.carsofdistinction.co.uk/Car/Lexus/GS.htm");
addOption("Lexus", "LS", "http://www.carsofdistinction.co.uk/Car/Lexus/LS.htm");
addOption("Lexus", "RX", "http://www.carsofdistinction.co.uk/Car/Lexus/RX.htm");

addOption("Mazda", "Select Model", "", 1); //HEADER OPTION
addOption("Mazda", "3", "http://www.carsofdistinction.co.uk/Car/Mazda/3.htm");
addOption("Mazda", "5", "http://www.carsofdistinction.co.uk/Car/Mazda/5.htm");
addOption("Mazda", "6", "http://www.carsofdistinction.co.uk/Car/Mazda/6.htm");
addOption("Mazda", "MX5", "http://www.carsofdistinction.co.uk/Car/Mazda/MX5.htm");
addOption("Mazda", "RX", "http://www.carsofdistinction.co.uk/Car/Mazda/RX.htm");

addOption("Mercedes", "Select Model", "", 1); //HEADER OPTION
addOption("Mercedes", "A-Class", "http://www.carsofdistinction.co.uk/Car/Mercedes/a-class.htm");
addOption("Mercedes", "C-Class", "http://www.carsofdistinction.co.uk/Car/Mercedes/c-class.htm");
addOption("Mercedes", "CL-Class", "http://www.carsofdistinction.co.uk/Car/Mercedes/cl-class.htm");
addOption("Mercedes", "CLC-Class", "http://www.carsofdistinction.co.uk/Car/Mercedes/clc.htm");
addOption("Mercedes", "CLK-Class", "http://www.carsofdistinction.co.uk/Car/Mercedes/clk-class.htm");
addOption("Mercedes", "E-Class", "http://www.carsofdistinction.co.uk/Car/Mercedes/e-class.htm");
addOption("Mercedes", "M-Class", "http://www.carsofdistinction.co.uk/Car/Mercedes/m-class.htm");
addOption("Mercedes", "S-Class", "http://www.carsofdistinction.co.uk/Car/Mercedes/s-class.htm");
addOption("Mercedes", "SL-Class", "http://www.carsofdistinction.co.uk/Car/Mercedes/sl-class.htm");
addOption("Mercedes", "SLK-Class", "http://www.carsofdistinction.co.uk/Car/Mercedes/slk-class.htm");
addOption("Mercedes", "Viano", "http://www.carsofdistinction.co.uk/Car/Mercedes/viano.htm");

addOption("Mini", "Select Model", "", 1); //HEADER OPTION
addOption("Mini", "Hatchback", "http://www.carsofdistinction.co.uk/Car/Mini/Hatchback.htm");
addOption("Mini", "Convertible", "http://www.carsofdistinction.co.uk/Car/Mini/Convertible.htm");
addOption("Mini", "Clubman", "http://www.carsofdistinction.co.uk/Car/Mini/Clubman.htm");

addOption("Nissan", "Select Model", "", 1); //HEADER OPTION
addOption("Nissan", "X Trail", "http://www.carsofdistinction.co.uk/Car/Nissan/x_trail.htm");
addOption("Nissan", "Pathfinder", "http://www.carsofdistinction.co.uk/Car/Nissan/Pathfinder.htm");

addOption("Saab", "Select Model", "", 1); //HEADER OPTION
addOption("Saab", "9-3", "http://www.carsofdistinction.co.uk/Car/Saab/9-3.htm");
addOption("Saab", "9-5", "http://www.carsofdistinction.co.uk/Car/Saab/9-5.htm");

addOption("Seat", "Select Model", "", 1); //HEADER OPTION
addOption("Seat", "Alambra", "http://www.carsofdistinction.co.uk/Car/Seat/Alambra.htm");
addOption("Seat", "Ibiza", "http://www.carsofdistinction.co.uk/Car/Seat/Ibiza.htm");
addOption("Seat", "Leon", "http://www.carsofdistinction.co.uk/Car/Seat/Leon.htm");

addOption("Volvo", "Select Model", "", 1); //HEADER OPTION
addOption("Volvo", "S40", "http://www.carsofdistinction.co.uk/Car/Volvo/S40.htm");
addOption("Volvo", "S60", "http://www.carsofdistinction.co.uk/Car/Volvo/S60.htm");
addOption("Volvo", "S80", "http://www.carsofdistinction.co.uk/Car/Volvo/S80.htm");
addOption("Volvo", "V50", "http://www.carsofdistinction.co.uk/Car/Volvo/V50.htm");
addOption("Volvo", "V70", "http://www.carsofdistinction.co.uk/Car/Volvo/V70.htm");
addOption("Volvo", "XC60", "http://www.carsofdistinction.co.uk/Car/Volvo/XC60.htm");
addOption("Volvo", "XC70", "http://www.carsofdistinction.co.uk/Car/Volvo/XC70.htm");
addOption("Volvo", "XC90", "http://www.carsofdistinction.co.uk/Car/Volvo/XC90.htm");
addOption("Volvo", "C30", "http://www.carsofdistinction.co.uk/Car/Volvo/C30.htm");
addOption("Volvo", "C70", "http://www.carsofdistinction.co.uk/Car/Volvo/C70.htm");

addOption("VW", "Select Model", "", 1); //HEADER OPTION
addOption("VW", "Golf", "http://www.carsofdistinction.co.uk/Car/VW/Golf.htm");
addOption("VW", "Passat", "http://www.carsofdistinction.co.uk/Car/VW/Passat.htm");
addOption("VW", "Tiguan", "http://www.carsofdistinction.co.uk/Car/VW/Tiguan.htm");
addOption("VW", "Touareg", "http://www.carsofdistinction.co.uk/Car/VW/Touareg.htm");

addOption("Vans", "Select Make", "", 1); //HEADER OPTION
addList("Vans", "Citroen", "", "Citroen");
addList("Vans", "Ford", "", "Ford");
addList("Vans", "Mazda ", "", "Mazda Van");
addList("Vans", "Mercedes", "", "Mercedes Van");
addList("Vans", "Mitsubishi", "", "Mitsubishi");
addList("Vans", "Nissan", "", "Nissan");
addList("Vans", "Toyota", "", "Toyota");
addList("Vans", "Volkswagen", "", "Volkswagen");

addOption("Citroen", "Select Model", "", 1); //HEADER OPTION
addOption("Citroen", "Berlingo", "http://www.carsofdistinction.co.uk/Van/Citroen/Belingo.htm");
addOption("Citroen", "Dispatch", "http://www.carsofdistinction.co.uk/Van/Citroen/Dispatch.htm");

addOption("Ford", "Select Model", "", 1); //HEADER OPTION
addOption("Ford", "Connect", "http://www.carsofdistinction.co.uk/Van/Ford/Connect.htm");
addOption("Ford", "Transit", "http://www.carsofdistinction.co.uk/Van/Ford/Transit.htm");
addOption("Ford", "Ranger", "http://www.carsofdistinction.co.uk/Van/Ford/Ranger.htm");

addOption("Mazda Van", "Select Model", "", 1); //HEADER OPTION
addOption("Mazda Van", "BT-50", "http://www.carsofdistinction.co.uk/Van/Mazda/BT-50.htm");

addOption("Mercedes Van", "Select Model", "", 1); //HEADER OPTION
addOption("Mercedes Van", "Sprinter", "http://www.carsofdistinction.co.uk/Van/Mercedes/Sprinter.htm");
addOption("Mercedes Van", "Vito", "http://www.carsofdistinction.co.uk/Van/Mercedes/Vito.htm");

addOption("Mitsubishi", "Select Model", "", 1); //HEADER OPTION
addOption("Mitsubishi", "L200", "http://www.carsofdistinction.co.uk/Van/Mitsubishi/L200.htm");

addOption("Nissan", "Select Model", "", 1); //HEADER OPTION
addOption("Nissan", "Navara", "http://www.carsofdistinction.co.uk/Van/Nissan/Navara.htm");

addOption("Toyota", "Select Model", "", 1); //HEADER OPTION
addOption("Toyota", "Hilux", "http://www.carsofdistinction.co.uk/Van/Toyota/Hilux.htm");

addOption("Volkswagen", "Select Model", "", 1); //HEADER OPTION
addOption("Volkswagen", "Caddy", "http://www.carsofdistinction.co.uk/Van/Volkswagen/Caddy.htm");
addOption("Volkswagen", "Crafter", "http://www.carsofdistinction.co.uk/Van/Volkswagen/Crafter.htm");
addOption("Volkswagen", "Transporter", "http://www.carsofdistinction.co.uk/Van/Volkswagen/Transporter.htm");

