//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 State", "", 1); //HEADER OPTION
addList("First-Select", "Illinois", "", "State-Illinois");
addList("First-Select", "Iowa", "", "State-Iowa");
addList("First-Select", "Minnesota", "", "State-Minnesota");
addList("First-Select", "Missouri", "", "State-Missouri");
addList("First-Select", "Nebraska", "", "State-Nebraska");
addList("First-Select", "South Dakota", "", "State-SouthDakota");

addOption("State-Illinois", "Select City", "", 1); //HEADER OPTION
addOption("State-Illinois", "Galena", "stores-galena.php");

addOption("State-Iowa", "Select City", "", 1); //HEADER OPTION
addOption("State-Iowa", "Algona", "stores-algona.php");
addOption("State-Iowa", "Altoona", "stores-altoona.php");
addOption("State-Iowa", "Ames", "stores-ames.php");
addOption("State-Iowa", "Ankeny", "stores-ankeny.php");
addOption("State-Iowa", "Boone", "stores-boone.php");
addOption("State-Iowa", "Chariton", "stores-chariton.php");
addOption("State-Iowa", "Clarion", "stores-clarion.php");
addOption("State-Iowa", "Coralville", "stores-coralville.php");
addOption("State-Iowa", "Corydon", "stores-corydon.php");
addOption("State-Iowa", "Des Moines", "stores-desmoines.php");
addOption("State-Iowa", "Eagle Grove", "stores-eaglegrove.php");
addOption("State-Iowa", "Forest City", "stores-forestcity.php");
addOption("State-Iowa", "Fort Dodge", "stores-fortdodge.php");
addOption("State-Iowa", "Hartley", "stores-hartley.php");
addOption("State-Iowa", "Hawarden", "stores-hawarden.php");
addOption("State-Iowa", "Hull", "stores-hull.php");
addOption("State-Iowa", "Humboldt", "stores-humboldt.php");
addOption("State-Iowa", "Humeston", "stores-humeston.php");
addOption("State-Iowa", "Huxley", "stores-huxley.php");
addOption("State-Iowa", "Iowa City", "stores-iowacity.php");
addOption("State-Iowa", "Lamoni", "stores-lamoni.php");
addOption("State-Iowa", "Lemars", "stores-lemars.php");
addOption("State-Iowa", "Leon", "stores-leon.php");
addOption("State-Iowa", "Marshalltown", "stores-marshalltown.php");
addOption("State-Iowa", "Mason City", "stores-masoncity.php");
addOption("State-Iowa", "Nevada", "stores-nevada.php"); 
addOption("State-Iowa", "Orange City", "stores-orangecity.php");
addOption("State-Iowa", "Osceola", "stores-osceola.php");
addOption("State-Iowa", "Quad Cities", "stores-quadcities.php");
addOption("State-Iowa", "Sanborn", "stores-sanborn.php");
addOption("State-Iowa", "Sheldon", "stores-sheldon.php");
addOption("State-Iowa", "Sioux City", "stores-siouxcity.php");
addOption("State-Iowa", "Sioux Center", "stores-siouxcenter.php");
addOption("State-Iowa", "Spencer", "stores-spencer.php");
addOption("State-Iowa", "Storm Lake", "stores-stormlake.php");
addOption("State-Iowa", "Urbandale", "stores-urbandale.php");
addOption("State-Iowa", "Waukon", "stores-waukon.php");
addOption("State-Iowa", "Webster City", "stores-webstercity.php");

addOption("State-Minnesota", "Select City", "", 1); //HEADER OPTION
addOption("State-Minnesota", "Appleton", "stores-appleton.php");
addOption("State-Minnesota", "Belview", "stores-belview.php");
addOption("State-Minnesota", "Benson", "stores-benson.php");
addOption("State-Minnesota", "Buffalo Lake", "stores-buffalolake.php");
addOption("State-Minnesota", "Clara City", "stores-claracity.php");
addOption("State-Minnesota", "Comfrey", "stores-comfrey.php");
addOption("State-Minnesota", "Crystal", "stores-crystal.php");
addOption("State-Minnesota", "Dawson", "stores-dawson.php");
addOption("State-Minnesota", "Fairfax", "stores-fairfax.php");
addOption("State-Minnesota", "Fairmont", "stores-fairmont.php");
addOption("State-Minnesota", "Glencoe", "stores-glencoe.php");
addOption("State-Minnesota", "Glenwood", "stores-glenwood.php");
addOption("State-Minnesota", "Granite Falls", "stores-granitefalls.php");
addOption("State-Minnesota", "Jordon", "stores-jordon.php");
addOption("State-Minnesota", "Kandiyohi", "stores-kandiyohi.php");
addOption("State-Minnesota", "Lamberton", "stores-lamberton.php");
addOption("State-Minnesota", "Le Seuer", "stores-leseuer.php");
addOption("State-Minnesota", "Litchfield", "stores-litchfield.php");
addOption("State-Minnesota", "Luverne", "stores-luverne.php");
addOption("State-Minnesota", "Olivia", "stores-olivia.php");
addOption("State-Minnesota", "Ortonville", "stores-ortonville.php");
addOption("State-Minnesota", "Madelia", "stores-madelia.php");
addOption("State-Minnesota", "Madison", "stores-madison.php");
addOption("State-Minnesota", "Mankato", "stores-mankato.php");
addOption("State-Minnesota", "Marshall", "stores-marshall.php");
addOption("State-Minnesota", "Melrose", "stores-melrose.php");
addOption("State-Minnesota", "Montevideo", "stores-montevideo.php");
addOption("State-Minnesota", "Morgan", "stores-morgan.php");
addOption("State-Minnesota", "Morris", "stores-morris.php");
addOption("State-Minnesota", "New Ulm", "stores-newulm.php");
addOption("State-Minnesota", "Pipestone", "stores-pipestone.php");
addOption("State-Minnesota", "Redwood Falls", "stores-redwoodfalls.php");
addOption("State-Minnesota", "Sherburn", "stores-sherburn.php");
addOption("State-Minnesota", "Sleepy Eye", "stores-sleepyeye.php");
addOption("State-Minnesota", "Springfield", "stores-springfield.php");
addOption("State-Minnesota", "St. James", "stores-stjames.php");
addOption("State-Minnesota", "Morgan", "stores-morgan.php");
addOption("State-Minnesota", "Tracy", "stores-tracy.php");
addOption("State-Minnesota", "Tyler", "stores-tyler.php");
addOption("State-Minnesota", "Vesta", "stores-vesta.php");
addOption("State-Minnesota", "Wabasso", "stores-wabasso.php");
addOption("State-Minnesota", "Waconia", "stores-waconia.php");
addOption("State-Minnesota", "Waseca", "stores-waseca.php");
addOption("State-Minnesota", "Watertown", "stores-watertown.php");
addOption("State-Minnesota", "Westbrook", "stores-westbrook.php");
addOption("State-Minnesota", "Windom", "stores-windom.php");
addOption("State-Minnesota", "Worthington", "stores-worthington.php");


addOption("State-Missouri", "Select City", "", 1); //HEADER OPTION
addOption("State-Missouri", "Bethany", "stores-bethany.php");
addOption("State-Missouri", "California", "stores-california.php");

addOption("State-Nebraska", "Select City", "", 1); //HEADER OPTION
addOption("State-Nebraska", "Beatrice", "stores-beatrice.php");
addOption("State-Nebraska", "South Sioux City", "stores-scssc.php");

addOption("State-SouthDakota", "Select City", "", 1); //HEADER OPTION
addOption("State-SouthDakota", "Brandon", "stores-brandon.php");
addOption("State-SouthDakota", "Brookings", "stores-brookings.php");
addOption("State-SouthDakota", "Huron", "stores-huron.php");
addOption("State-SouthDakota", "Lennox", "stores-lennox.php");
addOption("State-SouthDakota", "Luverne", "stores-luverne_sd.php");
addOption("State-SouthDakota", "Madison", "stores-madison.php");
addOption("State-SouthDakota", "Mitchell", "stores-mitchell.php");
addOption("State-SouthDakota", "Pierre", "stores-pierre.php");
addOption("State-SouthDakota", "Sioux Center", "stores-siouxcenter.php");
addOption("State-SouthDakota", "Sioux Falls", "stores-siouxfalls.php");
addOption("State-SouthDakota", "Spencer", "stores-spencer.php");
addOption("State-SouthDakota", "Tea", "stores-tea.php");
addOption("State-SouthDakota", "Vermillion", "stores-vermillion.php");
addOption("State-SouthDakota", "Watertown", "stores-watertown.php");
addOption("State-SouthDakota", "Yankton", "stores-yankton.php");