//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 one", "", 1); //HEADER OPTION
addList("First-Select", "Australia", "", "Territories");
addList("First-Select", "New Zealand", "", "Islands");

addOption("Territories", "Select state/territory", "", 1); //HEADER OPTION
addList("Territories", "New South Wales", "", "Territories-New South Wales");
addList("Territories", "Northern Territory", "", "Territories-Northern Territory");
addList("Territories", "Queensland", "", "Territories-Queensland");
addOption("Territories", "South Australia - Adelaide", "http://roommateroommateroommate.com/roommates/viewforum.php?f=208"); //END OF THIS NODE
addOption("Territories", "Tasmania - Hobart", "http://roommateroommateroommate.com/roommates/viewforum.php?f=209"); //END OF THIS NODE
addOption("Territories", "Victoria - Melbourne", "http://roommateroommateroommate.com/roommates/viewforum.php?f=210"); //END OF THIS NODE
addList("Territories", "Western Australia", "", "Territories-Western Australia");

addOption("Territories-New South Wales", "Select your city", "", 1); //HEADER OPTION
addOption("Territories-New South Wales", "Canberra or Wagga Wagga", "http://roommateroommateroommate.com/roommates/viewforum.php?f=201");
addOption("Territories-New South Wales", "Grafton", "http://roommateroommateroommate.com/roommates/viewforum.php?f=202");
addOption("Territories-New South Wales", "Sydney or Newcastle", "http://roommateroommateroommate.com/roommates/viewforum.php?f=203");

addOption("Territories-Northern Territory", "Select your city", "", 1); //HEADER OPTION
addOption("Territories-Northern Territory", "Alice Springs", "http://roommateroommateroommate.com/roommates/viewforum.php?f=204");
addOption("Territories-Northern Territory", "Darwin", "http://roommateroommateroommate.com/roommates/viewforum.php?f=205");

addOption("Territories-Queensland", "Select your city", "", 1); //HEADER OPTION
addOption("Territories-Queensland", "Brisbane", "http://roommateroommateroommate.com/roommates/viewforum.php?f=206");
addOption("Territories-Queensland", "Rockhampton", "http://roommateroommateroommate.com/roommates/viewforum.php?f=207");

addOption("Territories-Western Australia", "Select your city", "", 1); //HEADER OPTION
addOption("Territories-Western Australia", "Kalgoorlie-Boulder", "http://roommateroommateroommate.com/roommates/viewforum.php?f=211");
addOption("Territories-Western Australia", "Perth", "http://roommateroommateroommate.com/roommates/viewforum.php?f=212");

addOption("Islands", "Select your Island", "", 1); //HEADER OPTION
addList("Islands", "North Island", "", "Islands-North Island");
addList("Islands", "South Island", "", "Islands-South Island");

addOption("Islands-North Island", "Select your city", "", 1); //HEADER OPTION
addOption("Islands-North Island", "Auckland", "http://roommateroommateroommate.com/roommates/viewforum.php?f=213");
addOption("Islands-North Island", "Wellington", "http://roommateroommateroommate.com/roommates/viewforum.php?f=214");

addOption("Islands-South Island", "Select your city", "", 1); //HEADER OPTION
addOption("Islands-South Island", "Christchurch", "http://roommateroommateroommate.com/roommates/viewforum.php?f=215");
addOption("Islands-South Island", "Dunedin", "http://roommateroommateroommate.com/roommates/viewforum.php?f=216");