//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 an item", "", 1); //HEADER OPTION
addList("First-Select", "Family Homes", "", "H");
addList("First-Select", "Land & Lots", "", "L");
addList("First-Select", "Recreational", "", "R");
addList("First-Select", "IC & I", "", "ICI");

addOption("H", "Select an item", "", 1); //HEADER OPTION
addList("H", "Summerside", "", "H-Summerside");
addList("H", "Waterfront", "", "H-Waterfront");
addList("H", "Rural", "", "H-Rural");
addList("H", "Duplex", "", "H-Duplex");
addList("H", "Mini Homes", "", "H-Mini");
addList("H", "Home with Acreage", "", "H-Acreage");
addList("H", "Apartments & Condos", "", "H-Condo");

addOption("H-Summerside", "Select an item", "", 1); //HEADER OPTION
addOption("H-Summerside", "less than $75,000", "html/111.html");
addOption("H-Summerside", "$75K - $125K", "html/112.html");
addOption("H-Summerside", "$125 - $200K", "html/113.html");
addOption("H-Summerside", "$200K - $400K", "html/114.html");
addOption("H-Summerside", "$400K + ", "html/115.html");

addOption("H-Waterfront", "Select an item", "", 1); //HEADER OPTION
addOption("H-Waterfront", "less than $75,000", "html/121.html");
addOption("H-Waterfront", "$75K - $125K", "html/122.html");
addOption("H-Waterfront", "$125 - $200K", "html/123.html");
addOption("H-Waterfront", "$200K - $400K", "html/124.html");
addOption("H-Waterfront", "$400K + ", "html/125.html");

addOption("H-Rural", "Select an item", "", 1); //HEADER OPTION
addOption("H-Rural", "less than $75,000", "html/131.html");
addOption("H-Rural", "$75K - $125K", "html/132.html");
addOption("H-Rural", "$125 - $200K", "html/133.html");
addOption("H-Rural", "$200K - $400K", "html/134.html");
addOption("H-Rural", "$400K + ", "no_results.htm");

addOption("H-Duplex", "Select an item", "", 1); //HEADER OPTION
addOption("H-Duplex", "less than $75,000", "no_results.htm");
addOption("H-Duplex", "$75K - $125K", "html/142.html");
addOption("H-Duplex", "$125 - $200K", "html/143.html");
addOption("H-Duplex", "$200K - $400K", "no_results.htm");
addOption("H-Duplex", "$400K + ", "no_results.htm");

addOption("H-Mini", "Select an item", "", 1); //HEADER OPTION
addOption("H-Mini", "less than $75,000", "html/151.html");
addOption("H-Mini", "$75K - $125K", "html/152.html");
addOption("H-Mini", "$125 - $200K", "no_results.htm");
addOption("H-Mini", "$200K - $400K", "no_results.htm");
addOption("H-Mini", "$400K + ", "no_results.htm");

addOption("H-Acreage", "Select an item", "", 1); //HEADER OPTION
addOption("H-Acreage", "less than $75,000", "no_results.htm");
addOption("H-Acreage", "$75K - $125K", "no_results.htm");
addOption("H-Acreage", "$125 - $200K", "html/163.html");
addOption("H-Acreage", "$200K - $400K", "html/164.html");
addOption("H-Acreage", "$400K + ", "no_results.htm");

addOption("H-Condo", "Select an item", "", 1); //HEADER OPTION
addOption("H-Condo", "less than $75,000", "no_results.htm");
addOption("H-Condo", "$75K - $125K", "html/172.html");
addOption("H-Condo", "$125 - $200K", "html/173.html");
addOption("H-Condo", "$200K - $400K", "html/174.html");
addOption("H-Condo", "$400K + ", "no_results.htm");

addOption("L", "Select an item", "", 1); //HEADER OPTION
addList("L", "Lots", "", "L-Lots");
addList("L", "Acreage", "", "L-Acre");

addOption("L-Lots", "Select an item", "", 1); //HEADER OPTION
addOption("L-Lots", "Waterfront", "html/211.html");
addOption("L-Lots", "Non-Waterfront", "html/212.html");

addOption("L-Acre", "Select an item", "", 1); //HEADER OPTION
addOption("L-Acre", "Waterfront", "html/221.html");
addOption("L-Acre", "Non-Waterfront", "html/222.html");

addOption("R", "Select an item", "", 1); //HEADER OPTION
addList("R", "Cottages", "", "R-Cottage");
addList("R", "Lots", "", "R-Lot");

addOption("R-Cottage", "Select an item", "", 1); //HEADER OPTION
addOption("R-Cottage", "Waterfront", "html/311.html");
addOption("R-Cottage", "Non-Waterfront", "html/312.html");

addOption("R-Lot", "Select an item", "", 1); //HEADER OPTION
addOption("R-Lot", "Waterfront", "html/321.html");
addOption("R-Lot", "Non-Waterfront", "html/322.html");

addOption("ICI", "Select an item", "", 1); //HEADER OPTION
addList("ICI", "Land", "", "ICI-Land");
addList("ICI", "Buildings", "", "ICI-Buildings");
addList("ICI", "Office & Retail", "", "ICI-Retail");
addList("ICI", "Multi-Res Investment", "", "ICI-Apt");
addList("ICI", "Tourist", "", "ICI-Tourist");

addOption("ICI-Land", "Select an item", "", 1); //HEADER OPTION
addOption("ICI-Land", "Lease", "no_results.htm");
addOption("ICI-Land", "Purchase", "html/412.html");

addOption("ICI-Buildings", "Select an item", "", 1); //HEADER OPTION
addOption("ICI-Buildings", "Lease", "no_results.htm");
addOption("ICI-Buildings", "Purchase", "html/422.html");

addOption("ICI-Retail", "Select an item", "", 1); //HEADER OPTION
addOption("ICI-Retail", "Lease", "no_results.htm");
addOption("ICI-Retail", "Purchase", "html/432.html");

addOption("ICI-Apt", "Select an item", "", 1); //HEADER OPTION
addOption("ICI-Apt", "Lease", "no_results.htm");
addOption("ICI-Apt", "Purchase", "html/442.html");

addOption("ICI-Tourist", "Select an item", "", 1); //HEADER OPTION
addOption("ICI-Tourist", "Lease", "no_results.htm");
addOption("ICI-Tourist", "Purchase", "html/452.html");

