//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="alert" //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", "CountryName");

addOption("CountryName", "Select a Country", "", 1); //HEADER OPTION
addList("CountryName", "United States", "http://www.educationcenteronline.org/Schools-United-States/index.html", "USA");
addOption("USA", "Select a State", "", 1); //HEADER OPTION
addList("CountryName", "Canada", "http://www.educationcenteronline.org/Schools-Canada/index.html", "Canada");
addList("CountryName", "United Kingdom", "", "UK");


addList("USA", "Alabama", "http://www.educationcenteronline.org/Schools-by-State/alabama.html", "USA-Alabama"); //HEADER OPTION
addOption("USA-Alabama", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Arizona", "http://www.educationcenteronline.org/Schools-by-State/arizona.html", "USA-Arizona"); //HEADER OPTION
addOption("USA-Arizona", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Arkansas", "http://www.educationcenteronline.org/Schools-by-State/arkansas.html", "USA-Arkansas"); //HEADER OPTION
addOption("USA-Arkansas", "Select a city", "", 1); //HEADER OPTION

addList("USA", "California", "http://www.educationcenteronline.org/Schools-by-State/california.html", "USA-California"); //HEADER OPTION
addOption("USA-California", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Colorado", "http://www.educationcenteronline.org/Schools-by-State/colorado.html", "USA-Colorado"); //HEADER OPTION
addOption("USA-Colorado", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Connecticut", "http://www.educationcenteronline.org/Schools-by-State/connecticut.html", "USA-Connecticut"); //HEADER OPTION
addOption("USA-Connecticut", "Select a city", "", 1); //HEADER OPTION

addList("USA", "District of Columbia", "http://www.educationcenteronline.org/Schools-by-State/district-of-columbia.html", "USA-District-of-Columbia"); //HEADER OPTION
addOption("USA-District-of-Columbia", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Florida", "http://www.educationcenteronline.org/Schools-by-State/florida.html", "USA-Florida"); //HEADER OPTION
addOption("USA-Florida", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Georgia", "http://www.educationcenteronline.org/Schools-by-State/georgia.html", "USA-Georgia"); //HEADER OPTION
addOption("USA-Georgia", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Hawaii", "http://www.educationcenteronline.org/Schools-by-State/hawaii.html", "USA-Hawaii"); //HEADER OPTION
addOption("USA-Hawaii", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Idaho", "http://www.educationcenteronline.org/Schools-by-State/idaho.html", "USA-Idaho"); //HEADER OPTION
addOption("USA-Idaho", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Illinois", "http://www.educationcenteronline.org/Schools-by-State/illinois.html", "USA-Illinois"); //HEADER OPTION
addOption("USA-Illinois", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Indiana", "http://www.educationcenteronline.org/Schools-by-State/indiana.html", "USA-Indiana"); //HEADER OPTION
addOption("USA-Indiana", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Iowa", "http://www.educationcenteronline.org/Schools-by-State/iowa.html", "USA-Iowa"); //HEADER OPTION
addOption("USA-Iowa", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Kansas", "http://www.educationcenteronline.org/Schools-by-State/kansas.html", "USA-Kansas"); //HEADER OPTION
addOption("USA-Kansas", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Kentucky", "http://www.educationcenteronline.org/Schools-by-State/kentucky.html", "USA-Kentucky"); //HEADER OPTION
addOption("USA-Kentucky", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Louisiana", "http://www.educationcenteronline.org/Schools-by-State/louisiana.html", "USA-Louisiana"); //HEADER OPTION
addOption("USA-Louisiana", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Maine", "http://www.educationcenteronline.org/Schools-by-State/maine.html", "USA-Maine"); //HEADER OPTION
addOption("USA-Maine", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Maryland", "http://www.educationcenteronline.org/Schools-by-State/maryland.html", "USA-Maryland"); //HEADER OPTION
addOption("USA-Maryland", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Massachusetts", "http://www.educationcenteronline.org/Schools-by-State/massachusetts.html", "USA-Massachusetts"); //HEADER OPTION
addOption("USA-Massachusetts", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Michigan", "http://www.educationcenteronline.org/Schools-by-State/michigan.html", "USA-Michigan"); //HEADER OPTION
addOption("USA-Michigan", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Minnesota", "http://www.educationcenteronline.org/Schools-by-State/minnesota.html", "USA-Minnesota"); //HEADER OPTION
addOption("USA-Minnesota", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Mississippi", "http://www.educationcenteronline.org/Schools-by-State/mississippi.html", "USA-Mississippi"); //HEADER OPTION
addOption("USA-Mississippi", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Missouri", "http://www.educationcenteronline.org/Schools-by-State/missouri.html", "USA-Missouri"); //HEADER OPTION
addOption("USA-Missouri", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Nebraska", "http://www.educationcenteronline.org/Schools-by-State/nebraska.html", "USA-Nebraska"); //HEADER OPTION
addOption("USA-Nebraska", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Nevada", "http://www.educationcenteronline.org/Schools-by-State/nevada.html", "USA-Nevada"); //HEADER OPTION
addOption("USA-Nevada", "Select a city", "", 1); //HEADER OPTION

addList("USA", "New Hampshire", "http://www.educationcenteronline.org/Schools-by-State/new-hampshire.html", "USA-New-Hampshire"); //HEADER OPTION
addOption("USA-New-Hampshire", "Select a city", "", 1); //HEADER OPTION

addList("USA", "New Jersey", "http://www.educationcenteronline.org/Schools-by-State/new-jersey.html", "USA-New-Jersey"); //HEADER OPTION
addOption("USA-New-Jersey", "Select a city", "", 1); //HEADER OPTION

addList("USA", "New Mexico", "http://www.educationcenteronline.org/Schools-by-State/new-mexico.html", "USA-New-Mexico"); //HEADER OPTION
addOption("USA-New-Mexico", "Select a city", "", 1); //HEADER OPTION

addList("USA", "New York", "http://www.educationcenteronline.org/Schools-by-State/new-york.html", "USA-New-York"); //HEADER OPTION
addOption("USA-New-York", "Select a city", "", 1); //HEADER OPTION

addList("USA", "North Carolina", "http://www.educationcenteronline.org/Schools-by-State/north-carolina.html", "USA-North-Carolina"); //HEADER OPTION
addOption("USA-North-Carolina", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Ohio", "http://www.educationcenteronline.org/Schools-by-State/ohio.html", "USA-Ohio"); //HEADER OPTION
addOption("USA-Ohio", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Oklahoma", "http://www.educationcenteronline.org/Schools-by-State/oklahoma.html", "USA-Oklahoma"); //HEADER OPTION
addOption("USA-Oklahoma", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Oregon", "http://www.educationcenteronline.org/Schools-by-State/oregon.html", "USA-Oregon"); //HEADER OPTION
addOption("USA-Oregon", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Pennsylvania", "http://www.educationcenteronline.org/Schools-by-State/pennsylvania.html", "USA-Pennsylvania"); //HEADER OPTION
addOption("USA-Pennsylvania", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Puerto Rico", "http://www.educationcenteronline.org/Schools-by-State/puerto-rico.html", "USA-Puerto-Rico"); //HEADER OPTION
addOption("USA-Puerto-Rico", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Rhode Island", "http://www.educationcenteronline.org/Schools-by-State/rhode-island.html", "USA-Rhode-Island"); //HEADER OPTION
addOption("USA-Rhode-Island", "Select a city", "", 1); //HEADER OPTION

addList("USA", "South Carolina", "http://www.educationcenteronline.org/Schools-by-State/south-carolina.html", "USA-South-Carolina"); //HEADER OPTION
addOption("USA-South-Carolina", "Select a city", "", 1); //HEADER OPTION

addList("USA", "South Dakota", "http://www.educationcenteronline.org/Schools-by-State/south-dakota.html", "USA-South-Dakota"); //HEADER OPTION
addOption("USA-South-Dakota", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Tennessee", "http://www.educationcenteronline.org/Schools-by-State/tennessee.html", "USA-Tennessee"); //HEADER OPTION
addOption("USA-Tennessee", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Texas", "http://www.educationcenteronline.org/Schools-by-State/texas.html", "USA-Texas"); //HEADER OPTION
addOption("USA-Texas", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Utah", "http://www.educationcenteronline.org/Schools-by-State/utah.html", "USA-Utah"); //HEADER OPTION
addOption("USA-Utah", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Virginia", "http://www.educationcenteronline.org/Schools-by-State/virginia.html", "USA-Virginia"); //HEADER OPTION
addOption("USA-Virginia", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Washington", "http://www.educationcenteronline.org/Schools-by-State/washington.html", "USA-Washington"); //HEADER OPTION
addOption("USA-Washington", "Select a city", "", 1); //HEADER OPTION

addList("USA", "West Virginia", "http://www.educationcenteronline.org/Schools-by-State/west-virginia.html", "USA-West-Virginia"); //HEADER OPTION
addOption("USA-West-Virginia", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Wisconsin", "http://www.educationcenteronline.org/Schools-by-State/wisconsin.html", "USA-Wisconsin"); //HEADER OPTION
addOption("USA-Wisconsin", "Select a city", "", 1); //HEADER OPTION

addList("USA", "Wyoming", "http://www.educationcenteronline.org/Schools-by-State/wyoming.html", "USA-Wyoming"); //HEADER OPTION
addOption("USA-Wyoming", "Select a city", "", 1); //HEADER OPTION



