//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 country", "", 1); //COUNTRIES
addList("First-Select", "England", "uk-england-holiday-homes-cottages-apartments.php", "England");
addList("First-Select", "France", "france-holiday-apartments-gites-villas.php", "France",1);
addList("First-Select", "Italy", "italy-holiday-apartments-villas.php", "Italy");
addList("First-Select", "Northern Ireland", "uk-northern-ireland-holiday-homes-cottages-apartments.php", "Northern Ireland");
addList("First-Select", "Portugal", "portugal-holiday-apartments-villas.php", "Portugal");
addList("First-Select", "Scotland", "uk-scotland-holiday-homes-cottages-apartments.php", "Scotland");
addList("First-Select", "Spain", "spain-holiday-apartments-villas.php", "Spain");
addList("First-Select", "Wales", "uk-wales-holiday-homes-cottages-apartments.php", "Wales");

addOption("France", "Select region", "", 1); //HEADER OPTION
addList("France", "Alsace, Lorraine & Vosges", "france-alsace-lorraine-vosges-holiday-apartments-gites-villas.php", "ALV");
addList("France", "Aquitaine", "france-aquitaine-holiday-apartments-gites-villas.php", "AQU");
addList("France", "Auvergne", "france-auvergne-holiday-apartments-gites-villas.php", "AUV");
addList("France", "Brittany", "france-brittany-holiday-apartments-gites-villas.php", "BRI");
addList("France", "Corsica", "france-corsica-holiday-apartments-gites-villas.php", "COR");
addList("France", "Cote d'Azur - Provence", "france-cote-d-azur-provence-holiday-apartments-gites-villas.php", "CAP");
addList("France", "Cote d'Azur - Riviera", "france-cote-d-azur-riviera-holiday-apartments-gites-villas.php", "CAR");
addList("France", "Ile-de-France (Paris)", "france-ile-de-france-holiday-apartments-gites-villas.php", "IDF");
addList("France", "Languedoc-Roussillon", "france-languedoc-roussillon-holiday-apartments-gites-villas.php", "LR");
addList("France", "Midi-Pyrenees", "france-midi-pyrenees-holiday-apartments-gites-villas.php", "MP");
addList("France", "Normandy", "france-normandy-holiday-apartments-gites-villas.php", "NOR"); 
addList("France", "Poitou-Charentes", "france-poitou-charentes-holiday-apartments-gites-villas.php", "PC");
addList("France", "Rhone-Alpes", "france-rhone-alpes-holiday-apartments-gites-villas.php", "RA");
addList("France", "Western Loire", "france-western-loire-holiday-apartments-gites-villas.php", "WL");//END OF THIS NODE

addOption("ALV", "All", "", 1); //HEADER OPTION
/*addOption("BRI", "1 bedroom", "rentals/france/brittany/search_results.php");
addOption("BRI", "2 bedrooms", "rentals/france/brittany/search_results.php");
addOption("BRI", "3 bedrooms", "rentals/france/brittany/search_results.php");
addOption("BRI", "4+ bedrooms", "rentals/france/brittany/search_results.php");*/
addOption("AQU", "All", "", 1); //HEADER OPTION
addOption("AUV", "All", "", 1); //HEADER OPTION
addOption("BRI", "All", "", 1); //HEADER OPTION
addOption("COR", "All", "", 1); //HEADER OPTION
addOption("CAP", "All", "", 1); //HEADER OPTION
addOption("CAR", "All", "", 1); //HEADER OPTION
addOption("IDF", "All", "", 1); //HEADER OPTION
addOption("LR", "All", "", 1); //HEADER OPTION
addOption("MP", "All", "", 1); //HEADER OPTION
addOption("NOR", "All", "", 1); //HEADER OPTION
addOption("PC", "All", "", 1); //HEADER OPTION
addOption("RA", "All", "", 1); //HEADER OPTION
addOption("WL", "All", "", 1); //HEADER OPTION

addOption("Italy", "Select region", "", 1); //HEADER OPTION
addList("Italy", "Campania", "italy-campania-holiday-apartments-villas.php", "CAM");
addList("Italy", "Lazio (Rome)", "italy-lazio-holiday-apartments-villas.php", "LAZ");
addList("Italy", "Liguria", "italy-liguria-holiday-apartments-villas.php", "LIG");
addList("Italy", "Lombardy", "italy-Lombardy-holiday-apartments-villas.php", "LOM");
addList("Italy", "Marche", "italy-marche-holiday-apartments-villas.php", "MAR");
addList("Italy", "Sardinia", "italy-sardinia-holiday-apartments-villas.php", "SAR");
addList("Italy", "Sicily", "italy-sicily-holiday-apartments-villas.php", "SIC");
addList("Italy", "Tuscany", "italy-tuscany-holiday-apartments-villas.php", "TUS");
addList("Italy", "Umbria", "italy-umbria-holiday-apartments-villas.php", "UMB");
addList("Italy", "Veneto", "italy-veneto-holiday-apartments-villas.php", "VEN");

addOption("CAM", "All", "", 1); //HEADER OPTION
/*addOption("TUS", "1 bedroom", "rentals/italy/tuscany/search_results.php");
addOption("TUS", "2 bedrooms", "rentals/italy/tuscany/search_results.php");
addOption("TUS", "3 bedrooms", "rentals/italy/tuscany/search_results.php");
addOption("TUS", "4+ bedrooms", "rentals/italy/tuscany/search_results.php");*/
addOption("LAZ", "All", "", 1); //HEADER OPTION
addOption("LIG", "All", "", 1); //HEADER OPTION
addOption("LOM", "All", "", 1); //HEADER OPTION
addOption("MAR", "All", "", 1); //HEADER OPTION
addOption("SAR", "All", "", 1); //HEADER OPTION
addOption("SIC", "All", "", 1); //HEADER OPTION
addOption("TUS", "All", "", 1); //HEADER OPTION
addOption("UMB", "All", "", 1); //HEADER OPTION
addOption("VEN", "All", "", 1); //HEADER OPTION

addOption("Portugal", "Select region", "", 1); //HEADER OPTION
addList("Portugal", "Algarve", "portugal-algarve-holiday-apartments-villas.php", "ALG");
addList("Portugal", "Costa de Lisboa", "portugal-costa-de-lisboa-holiday-apartments-villas.php", "CDL");
addList("Portugal", "Lisbon", "portugal-lisbon-holiday-apartments-villas.php", "LIS");
addList("Portugal", "Madeira", "portugal-madeira-holiday-apartments-villas.php", "MAD");

addOption("ALG", "All", "", 1); //HEADER OPTION
/*addOption("TUS", "1 bedroom", "rentals/italy/tuscany/search_results.php");
addOption("TUS", "2 bedrooms", "rentals/italy/tuscany/search_results.php");
addOption("TUS", "3 bedrooms", "rentals/italy/tuscany/search_results.php");
addOption("TUS", "4+ bedrooms", "rentals/italy/tuscany/search_results.php");*/
addOption("CDL", "All", "", 1); //HEADER OPTION
addOption("LIS", "All", "", 1); //HEADER OPTION
addOption("MAD", "All", "", 1); //HEADER OPTION

addOption("Spain", "Select region", "", 1); //HEADER OPTION
addList("Spain", "Andalucia", "spain-andalucia-holiday-apartments-villas.php", "AND");
addList("Spain", "Catalonia", "spain-catalonia-holiday-apartments-villas.php", "CAT");
addList("Spain", "Murcia", "spain-murcia-holiday-apartments-villas.php", "MUR");
addList("Spain", "Valencia", "spain-valencia-holiday-apartments-villas.php", "VAL");
addList("Spain", "Balearics", "spain-balearic-islands-holiday-apartments-villas.php", "BAL");
addList("Spain", "Canaries", "spain-canary-islands-holiday-apartments-villas.php", "CAN");

addOption("AND", "All", "", 1); //HEADER OPTION
/*addOption("ALI", "1 bedroom", "rentals/spain/andalucia/search_results.php");
addOption("ALI", "2 bedrooms", "rentals/spain/andalucia/search_results.php");
addOption("ALI", "3 bedrooms", "rentals/spain/andalucia/search_results.php");
addOption("ALI", "4+ bedrooms", "rentals/spain/andalucia/search_results.php");*/
addOption("CAT", "All", "", 1); //HEADER OPTION
addOption("MUR", "All", "", 1); //HEADER OPTION
addOption("VAL", "All", "", 1); //HEADER OPTION
addOption("BAL", "All", "", 1); //HEADER OPTION
addOption("CAN", "All", "", 1); //HEADER OPTION

addOption("England", "Select region", "", 1); //HEADER OPTION
addList("England", "Cornwall", "uk/england-cornwall-uk-holiday-homes-cottages-apartments.php", "COR");
addList("England", "Cumbria", "uk/england-cumbria-uk-holiday-homes-cottages-apartments.php", "CUM");
addList("England", "Devon", "uk/england-devon-uk-holiday-homes-cottages-apartments.php", "DEV");
addList("England", "Gloucestershire", "uk/england-gloucestershire-uk-holiday-homes-cottages-apartments.php", "GLO");
addList("England", "Oxfordshire", "uk/england-oxfordshire-uk-holiday-homes-cottages-apartments.php", "OXF");
addList("Northern Ireland", "County Antrim", "uk/northern-ireland-county-antrim-uk-holiday-homes-cottages-apartments.php", "ANT");
addList("Northern Ireland", "County Londonderry", "uk/northern-ireland-county-londonderry-uk-holiday-homes-cottages-apartments.php", "LON");
addList("Scotland", "Edinburgh and Lothians", "uk/scotland-edinburgh-lothians-uk-holiday-homes-cottages-apartments.php", "EDL");
addList("Scotland", "Scottish Highlands and Islands", "uk/scotland-scottish-highlands-islands-uk-holiday-homes-cottages-apartments.php", "SHI");
addList("Wales", "Anglesey", "uk/wales-anglesey-uk-holiday-homes-cottages-apartments.php", "ANG");
addList("Wales", "Pembrokeshire", "uk/wales-pembrokeshire-uk-holiday-homes-cottages-apartments.php", "PEM");
addList("Wales", "Snowdonia", "uk/wales-snowdonia-uk-holiday-homes-cottages-apartments.php", "SNW");

addOption("COR", "All", "", 1); //HEADER OPTION
/*addOption("ALI", "1 bedroom", "rentals/spain/andalucia/search_results.php");
addOption("ALI", "2 bedrooms", "rentals/spain/andalucia/search_results.php");
addOption("ALI", "3 bedrooms", "rentals/spain/andalucia/search_results.php");
addOption("ALI", "4+ bedrooms", "rentals/spain/andalucia/search_results.php");*/
addOption("CUM", "All", "", 1); //HEADER OPTION
addOption("DEV", "All", "", 1); //HEADER OPTION
addOption("GLO", "All", "", 1); //HEADER OPTION
addOption("OXF", "All", "", 1); //HEADER OPTION
addOption("ANT", "All", "", 1); //HEADER OPTION
addOption("LON", "All", "", 1); //HEADER OPTION
addOption("EDL", "All", "", 1); //HEADER OPTION
addOption("SHI", "All", "", 1); //HEADER OPTION
addOption("ANG", "All", "", 1); //HEADER OPTION
addOption("PEM", "All", "", 1); //HEADER OPTION
addOption("SNW", "All", "", 1); //HEADER OPTION
