//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 a Property Type", "", 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 a Property Type", "", 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 a Price Range", "", 1); //HEADER OPTION
addOption("H-Summerside", "less than $75,000", "http://www.peiproperties.info/html/111.html");
addOption("H-Summerside", "$75K - $125K", "http://www.peiproperties.info/html/112.html");
addOption("H-Summerside", "$125 - $200K", "http://www.peiproperties.info/html/113.html");
addOption("H-Summerside", "$200K - $400K", "http://www.peiproperties.info/html/114.html");
addOption("H-Summerside", "$400K + ", "http://www.peiproperties.info/html/115.html");

addOption("H-Waterfront", "Select a Price Range", "", 1); //HEADER OPTION
addOption("H-Waterfront", "less than $75,000", "http://www.peiproperties.info/html/121.html");
addOption("H-Waterfront", "$75K - $125K", "http://www.peiproperties.info/html/122.html");
addOption("H-Waterfront", "$125 - $200K", "http://www.peiproperties.info/html/123.html");
addOption("H-Waterfront", "$200K - $400K", "http://www.peiproperties.info/html/124.html");
addOption("H-Waterfront", "$400K + ", "http://www.peiproperties.info/html/125.html");

addOption("H-Rural", "Select a Price Range", "", 1); //HEADER OPTION
addOption("H-Rural", "less than $75,000", "http://www.peiproperties.info/html/131.html");
addOption("H-Rural", "$75K - $125K", "http://www.peiproperties.info/html/132.html");
addOption("H-Rural", "$125 - $200K", "http://www.peiproperties.info/html/133.html");
addOption("H-Rural", "$200K - $400K", "http://www.peiproperties.info/html/134.html");
addOption("H-Rural", "$400K + ", "http://www.peiproperties.info/html/135.html");

addOption("H-Duplex", "Select a Price Range", "", 1); //HEADER OPTION
addOption("H-Duplex", "less than $75,000", "http://www.peiproperties.info/html/141.html");
addOption("H-Duplex", "$75K - $125K", "http://www.peiproperties.info/html/142.html");
addOption("H-Duplex", "$125 - $200K", "http://www.peiproperties.info/html/143.html");
addOption("H-Duplex", "$200K - $400K", "http://www.peiproperties.info/html/144.html");
addOption("H-Duplex", "$400K + ", "http://www.peiproperties.info/html/145.html");

addOption("H-Mini", "Select a Price Range", "", 1); //HEADER OPTION
addOption("H-Mini", "less than $75,000", "http://www.peiproperties.info/html/151.html");
addOption("H-Mini", "$75K - $125K", "http://www.peiproperties.info/html/152.html");
addOption("H-Mini", "$125 - $200K", "http://www.peiproperties.info/html/153.html");
addOption("H-Mini", "$200K - $400K", "http://www.peiproperties.info/html/154.html");
addOption("H-Mini", "$400K + ", "http://www.peiproperties.info/html/155.html");

addOption("H-Acreage", "Select a Price Range", "", 1); //HEADER OPTION
addOption("H-Acreage", "less than $75,000", "http://www.peiproperties.info/html/161.html");
addOption("H-Acreage", "$75K - $125K", "http://www.peiproperties.info/html/162.html");
addOption("H-Acreage", "$125 - $200K", "http://www.peiproperties.info/html/163.html");
addOption("H-Acreage", "$200K - $400K", "http://www.peiproperties.info/html/164.html");
addOption("H-Acreage", "$400K + ", "http://www.peiproperties.info/html/165.html");

addOption("H-Condo", "Select a Price Range", "", 1); //HEADER OPTION
addOption("H-Condo", "less than $75,000", "http://www.peiproperties.info/html/171.html");
addOption("H-Condo", "$75K - $125K", "http://www.peiproperties.info/html/172.html");
addOption("H-Condo", "$125 - $200K", "http://www.peiproperties.info/html/173.html");
addOption("H-Condo", "$200K - $400K", "http://www.peiproperties.info/html/174.html");
addOption("H-Condo", "$400K + ", "http://www.peiproperties.info/html/175.html");

addOption("L", "Select a Property Type", "", 1); //HEADER OPTION
addList("L", "Lots", "", "L-Lots");
addList("L", "Acreage", "", "L-Acre");

addOption("L-Lots", "Select a Property Type", "", 1); //HEADER OPTION
addOption("L-Lots", "Waterfront", "http://www.peiproperties.info/html/211.html");
addOption("L-Lots", "Non-Waterfront", "http://www.peiproperties.info/html/212.html");

addOption("L-Acre", "Select a Property Type", "", 1); //HEADER OPTION
addOption("L-Acre", "Waterfront", "http://www.peiproperties.info/html/221.html");
addOption("L-Acre", "Non-Waterfront", "http://www.peiproperties.info/html/222.html");

addOption("R", "Select a Property Type", "", 1); //HEADER OPTION
addList("R", "Cottages", "", "R-Cottage");
addList("R", "Lots", "", "R-Lot");

addOption("R-Cottage", "Select a Property Type", "", 1); //HEADER OPTION
addOption("R-Cottage", "Waterfront", "http://www.peiproperties.info/html/311.html");
addOption("R-Cottage", "Non-Waterfront", "http://www.peiproperties.info/html/312.html");

addOption("R-Lot", "SSelect a Property Type", "", 1); //HEADER OPTION
addOption("R-Lot", "Waterfront", "http://www.peiproperties.info/html/321.html");
addOption("R-Lot", "Non-Waterfront", "http://www.peiproperties.info/html/322.html");

addOption("ICI", "Select a Property Type", "", 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 a Property Type", "", 1); //HEADER OPTION
addOption("ICI-Land", "Lease", "http://www.peiproperties.info/html/411.html");
addOption("ICI-Land", "Purchase", "http://www.peiproperties.info/html/412.html");

addOption("ICI-Buildings", "Select a Property Type", "", 1); //HEADER OPTION
addOption("ICI-Buildings", "Lease", "http://www.peiproperties.info/html/421.html");
addOption("ICI-Buildings", "Purchase", "http://www.peiproperties.info/html/422.html");

addOption("ICI-Retail", "Select a Property Type", "", 1); //HEADER OPTION
addOption("ICI-Retail", "Lease", "http://www.peiproperties.info/html/431.html");
addOption("ICI-Retail", "Purchase", "http://www.peiproperties.info/html/432.html");

addOption("ICI-Apt", "Select a Property Type", "", 1); //HEADER OPTION
addOption("ICI-Apt", "Lease", "http://www.peiproperties.info/html/441.html");
addOption("ICI-Apt", "Purchase", "http://www.peiproperties.info/html/442.html");

addOption("ICI-Tourist", "Select a Property Type", "", 1); //HEADER OPTION
addOption("ICI-Tourist", "Lease", "http://www.peiproperties.info/html/451.html");
addOption("ICI-Tourist", "Purchase", "http://www.peiproperties.info/html/452.html");
