//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", "First-Select");

addOption("First-Select", "Select Region", "", 0); //HEADER OPTION
addList("First-Select", "Northern Thailand", "Northern Thailand", "Northern Thailand");
addList("First-Select", "Southern Resort Areas", "Southern Resort Areas", "Southern Resort Areas");
addList("First-Select", "Bangkok Area", "Bangkok Area", "Bangkok Area");

addOption("Northern Thailand", "Select a Location", "", 0); //HEADER OPTION
addOption("Northern Thailand", "Chiang Mai City",  "Chiang Mai City");
addOption("Northern Thailand", "Chiang Mai Country",  "Chiang Mai Country");
addOption("Northern Thailand", "Chiang Rai",  "Chiang Rai");//END OF THIS NODE

addOption("Southern Resort Areas", "Select a Location", "", 0); //HEADER OPTION
addOption("Southern Resort Areas", "Koh Samui", "Koh Samui");
addOption("Southern Resort Areas", "Krabi", "Krabi");
addOption("Southern Resort Areas", "Phuket", "Phuket");

addOption("Bangkok Area", "Select next menu", "", 0); //HEADER OPTION



