//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=1 //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", "Weather", "", "weather");
addList("First-Select", "Links", "", "links");
addList("First-Select", "Gyms", "", "gyms");
addList("First-Select", "Tides", "", "tides");

addOption("weather", "Select an item", "", 1); //HEADER OPTION
addList("weather", "New Brunswick", "", "weather-nb");
addList("weather", "Nova Scotia", "", "weather-ns");
addList("weather", "Newfoundland", "", "weather-nf");
addList("weather", "Prince Edward Island", "", "weather-pei");

addOption("weather-nb", "Select an item", "", 1); //HEADER OPTION
addOption("weather-nb", "Fredericton", "http://www.weatheroffice.gc.ca/city/pages/nb-29_metric_e.html");
addOption("weather-nb", "Grand Falls", "http://www.weatheroffice.gc.ca/city/pages/nb-6_metric_e.html");
addOption("weather-nb", "Grand Manan", "http://www.weatheroffice.gc.ca/city/pages/nb-27_metric_e.html");
addOption("weather-nb", "Moncton", "http://www.weatheroffice.gc.ca/city/pages/nb-36_metric_e.html");
addOption("weather-nb", "Saint John", "http://www.weatheroffice.gc.ca/city/pages/nb-23_metric_e.html");
addOption("weather-nb", "Saint Andrews", "http://www.weatheroffice.gc.ca/city/pages/nb-36_metric_e.html");

addOption("weather-ns", "Select an item", "", 1); //HEADER OPTION
addOption("weather-ns", "Digby", "http://www.weatheroffice.gc.ca/city/pages/ns-20_metric_e.html");
addOption("weather-ns", "Halifax", "http://www.weatheroffice.gc.ca/city/pages/ns-19_metric_e.html");
addOption("weather-ns", "Kentville", "http://www.weatheroffice.gc.ca/city/pages/ns-17_metric_e.html");
addOption("weather-ns", "Sydney", "http://www.weatheroffice.gc.ca/city/pages/ns-31_metric_e.html");
addOption("weather-ns", "Truro", "http://www.weatheroffice.gc.ca/city/pages/ns-25_metric_e.html");

addOption("weather-nf", "Select an item", "", 1); //HEADER OPTION
addOption("weather-nf", "Corner Brook", "http://www.weatheroffice.gc.ca/city/pages/nf-41_metric_e.html");
addOption("weather-nf", "St John's", "http://www.weatheroffice.gc.ca/city/pages/nf-24_metric_e.html");

addOption("weather-pei", "Select an item", "", 1); //HEADER OPTION
addOption("weather-pei", "Charlottetown", "http://www.weatheroffice.gc.ca/city/pages/pe-5_metric_e.html");
addOption("weather-pei", "East Point", "http://www.weatheroffice.gc.ca/city/pages/pe-6_metric_e.html");
addOption("weather-pei", "North Cape", "http://www.weatheroffice.gc.ca/city/pages/pe-1_metric_e.html");


addOption("links", "Select an item", "", 1); //HEADER OPTION
addList("links", "New Brunswick", "", "links-nb");
addList("links", "Nova Scotia", "", "links-ns");
addList("links", "Newfoundland", "", "links-nf");
addList("links", "Prince Edward Island", "", "links-pei");
addList("links", "Global", "", "links-global");

addOption("links-nb", "Select an item", "", 1); //HEADER OPTION
addOption("links-nb", "Beta-Source", "http://www.beta-source.com");
addOption("links-nb", "Ice Climbing In NB", "http://www.geocities.com/Yosemite/Rapids/6319/");
addOption("links-nb", "UNB R&I Club", "http://www.unbf.ca/clubs/climb/");
addOption("links-nb", "Andrew Climb NB", "http://www.climbnb.mine.nu/");
addOption("links-nb", "Steve Climb NB", "http://www.climbnb.com/");
addOption("links-nb", "Steve Adamson", "http://mteverest.myip.org/default.aspx");
addOption("links-nb", "NBCCSJ Club", "http://198.164.152.12/adamson/climbing/");

addOption("links-ns", "Select an item", "", 1); //HEADER OPTION
addOption("links-ns", "Climb Nova Scotia", "http://www.climbnovascotia.ca/");
addOption("links-ns", "Bouldering in HFX", "http://nsbouldering.com/");
addOption("links-ns", "Rock Climbing NS Style", "http://www.peak.ca/rock/");
addOption("links-ns", "NS Climbers Resource", "http://members.tripod.com/novascotiaclimb/");
addOption("links-ns", "Cape Clear", "http://www.capeclear.org/");
addOption("links-ns", "Ground Zero", "http://www.groundzeroclimbinggym.com/");
addOption("links-ns", "Zig TV", "http://zigtv.ca/");
addOption("links-ns", "Pulldown", "http://www.pulldown.ca/Home.html");
addOption("links-ns", "Tracstarr", "http://www.tracstarr.com/");

addOption("links-nf", "Select an item", "", 1); //HEADER OPTION
addOption("links-nf", "Eastern Edge Climbing Club", "http://www.infonet.st-johns.nf.ca/providers/eecc/");
addOption("links-nf", "Wall Nuts", "http://www.wallnutsclimbing.com/");

addOption("links-pei", "Select an item", "", 1); //HEADER OPTION
addOption("links-pei", "No Info", "http://www.climbeasterncanada.com/deadlink.html");

addOption("links-global", "Select an item", "", 1); //HEADER OPTION
addOption("links-global", "Alpine Club of Canada", "http://www.alpineclubofcanada.ca/");
addOption("links-global", "Big Up", "http://www.bigupproductions.com/");
addOption("links-global", "Climbing Magazine", "http://www.climbing.com");
addOption("links-global", "Dr Topo", "http://www.drtopo.com");
addOption("links-global", "Gripped", "http://www.gripped.com");
addOption("links-global", "IFSC", "http://www.ifsc-climbing.org/");
addOption("links-global", "Live The Vision", "http://www.live-the-vision.com/cms/");
addOption("links-global", "NE Ice", "http://www.neice.com");
addOption("links-global", "New England Bouldering", "http://www.newenglandbouldering.com/");
addOption("links-global", "NC Bouldering", "http://www.ncbouldering.com/main.htm");
addOption("links-global", "Mountain Project", "http://www.mountainproject.com");
addOption("links-global", "Red River Climbing", "http://www.redriverclimbing.com");
addOption("links-global", "Rock and Ice", "http://www.rockandice.com");
addOption("links-global", "Rock Climbing.com", "http://www.rockclimbing.com");
addOption("links-global", "South East Climbing", "http://www.southeastclimbing.com/");
addOption("links-global", "Supertopo", "http://www.supertopo.com");
addOption("links-global", "Tour De Bloc", "http://www.tourdebloc.com");
addOption("links-global", "UIAA", "http://www.theuiaa.org/");
addOption("links-global", "Urban Climber", "http://www.urbanclimbermag.com/");





addOption("gyms", "Select an item", "", 1); //HEADER OPTION
addList("gyms", "New Brunswick", "", "gyms-nb");
addList("gyms", "Nova Scotia", "", "gyms-ns");
addList("gyms", "Newfoundland", "", "gyms-nf");
addList("gyms", "Prince Edward Island", "", "gyms-pei");

addOption("gyms-nb", "Select an item", "", 1); //HEADER OPTION
addOption("gyms-nb", "UNB R&I Club", "http://www.unbf.ca/clubs/climb/");
addOption("gyms-nb", "NBCCSJ Club", "http://198.164.152.12/adamson/climbing/");

addOption("gyms-ns", "Select an item", "", 1); //HEADER OPTION
addOption("gyms-ns", "Rock Court", "http://www.athletics.dal.ca/default.cfm?id=609");
addOption("gyms-ns", "Ground Zero", "http://www.climbgroundzero.ca/");

addOption("gyms-nf", "Select an item", "", 1); //HEADER OPTION
addOption("gyms-nf", "Wall Nuts", "http://www.wallnutsclimbing.com/");

addOption("gyms-pei", "Select an item", "", 1); //HEADER OPTION
addOption("gyms-pei", "No Info", "http://www.climbeasterncanada.com/deadlink.html");



addOption("tides", "Select an item", "", 1); //HEADER OPTION
addList("tides", "New Brunswick", "", "tides-nb");
addList("tides", "Nova Scotia", "", "tides-ns");
addList("tides", "Newfoundland", "", "tides-nf");
addList("tides", "Prince Edward Island", "", "tides-pei");

addOption("tides-nb", "Select an item", "", 1); //HEADER OPTION
addOption("tides-nb", "Grand Manan", "http://www.lau.chs-shc.gc.ca/cgi-bin/tide-shc.cgi?queryType=showFrameset&zone=32&language=english&region=5&stnnum=10");
addOption("tides-nb", "Saint John", "http://www.lau.chs-shc.gc.ca/cgi-bin/tide-shc.cgi?queryType=showFrameset&zone=32&language=english&region=5&stnnum=65");
addOption("tides-nb", "St Martins", "http://www.lau.chs-shc.gc.ca/cgi-bin/tide-shc.cgi?queryType=showFrameset&zone=30&language=english&region=5&stnnum=129");


addOption("tides-ns", "Select an item", "", 1); //HEADER OPTION
addOption("tides-ns", "Halifax", "http://www.lau.chs-shc.gc.ca/cgi-bin/tide-shc.cgi?queryType=showFrameset&zone=28&language=english&region=5&stnnum=490");
addOption("tides-ns", "Hantsport", "http://www.lau.chs-shc.gc.ca/cgi-bin/tide-shc.cgi?queryType=showFrameset&zone=30&language=english&region=5&stnnum=282");

addOption("tides-nf", "Select an item", "", 1); //HEADER OPTION
addOption("tides-nf", "St John's", "http://www.lau.chs-shc.gc.ca/cgi-bin/tide-shc.cgi?queryType=showFrameset&zone=25&language=english&region=5&stnnum=905");

addOption("tides-pei", "Select an item", "", 1); //HEADER OPTION
addOption("tides-pei", "No Info", "http://www.climbeasterncanada.com/deadlink.html");






