//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", "West Prince Family Homes", "", "H");
addList("First-Select", "West Prince Land & Lots", "", "L");
addList("First-Select", "West Prince Recreational", "", "R");
addList("First-Select", "West Prince Investment Income", "", "ICI");

addOption("H", "Select a Property Type", "", 1); //HEADER OPTION
addList("H", "Residential Property", "", "H-Residential Property");
addList("H", "Waterfront", "", "H-Waterfront");
addList("H", "Rural", "", "H-Rural");
addList("H", "Duplexes", "", "H-Duplex");
addList("H", "Mini Homes", "", "H-Mini");
addList("H", "Homes with Acreage", "", "H-Acreage");
addList("H", "Apartments & Condos", "", "H-Condo");

addOption("H-Residential Property", "Select Price Range", "", 1); //HEADER OPTION
addOption("H-Residential Property", "less than $75,000", "http://www.peipropertyforsale.com/html/181.html");
addOption("H-Residential Property", "$75K - $125K", "http://www.peipropertyforsale.com/html/182.html");
addOption("H-Residential Property", "$125 - $200K", "http://www.peipropertyforsale.com/html/183.html");
addOption("H-Residential Property", "$200K - $400K", "http://www.peipropertyforsale.com/html/184.html");
addOption("H-Residential Property", "$400K + ", "http://www.peipropertyforsale.com/html/185.html");

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

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

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

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

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

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

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

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

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

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

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

addOption("R-Lot", "Select Property Type", "", 1); //HEADER OPTION
addOption("R-Lot", "Waterfront", "http://www.peipropertyforsale.com/html/321_wp.html");
addOption("R-Lot", "Non-Waterfront", "http://www.peipropertyforsale.com/html/322_wp.html");

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

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

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

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

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