
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=10;
_subOffsetLeft=-10;

with(menuStyle=new mm_style()){
onbgcolor="#CFE2D1";
oncolor="#407348";
offbgcolor="#579b63";
offcolor="#ebf3ec";
bordercolor="#66a26a";
borderstyle="outset";
borderwidth=1;
separatorcolor="#CFE2D1";
separatorsize=1;
padding=3;
fontsize=12;
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#83ba8c";
headercolor="#000000";
headerbgcolor="#ffffff";
high3dcolor="#c4d8e6";
low3dcolor="#579b63";
swap3d=1;
align="center";
}

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=90;
screenposition="center";
menuwidth="100%";
itemwidth="25%";
alwaysvisible=1;
orientation="horizontal";
aI("text=Test Item 1;showmenu=test1;");
aI("text=Test Item 2;showmenu=test2;");
aI("text=Test Item 3;showmenu=test3;");
aI("text=Test Item 4;showmenu=test4;");
}

with(milonic=new menuname("test1")){
style=menuStyle;
aI("text=Test 1 - 1;url=page1-1.htm;");
aI("text=Test 1 - 2;url=page1-2.htm;");
aI("text=Test 1 - 3;url=page1-3.htm;");
aI("text=Test 1 - 4;url=page1-4.htm;");
}

with(milonic=new menuname("test2")){
style=menuStyle;
aI("text=Test 2 - 1;url=page2-1.htm;");
aI("text=Test 2 - 2;url=page2-2.htm;");
aI("text=Test 2 - 3;url=page2-3.htm;");
aI("text=Test 2 - 4;url=page2-4.htm;");
aI("text=Test 2 - 5;showmenu=test2a;");
}

with(milonic=new menuname("test2a")){
style=menuStyle;
left="offset=15";
top="offset=-15";
aI("text=Test 2 - 1a;url=page2-1a.htm;");
aI("text=Test 2 - 2a;url=page2-2a.htm;");
aI("text=Test 2 - 3a;url=page2-3a.htm;");
aI("text=Test 2 - 4a;url=page2-4a.htm;");
}

with(milonic=new menuname("test3")){
style=menuStyle;
aI("text=Test 3 - 1;url=page3-1.htm;");
aI("text=Test 3 - 2;url=page3-2.htm;");
aI("text=Test 3 - 3;url=page3-3.htm;");
}

with(milonic=new menuname("test4")){
style=menuStyle;
aI("text=Test 4 - 1;url=http://support.milonic.com/demos/openmenusbyurl/diff_folder/page4-1.htm;");
aI("text=Test 4 - 2;url=http://support.milonic.com/demos/openmenusbyurl/diff_folder/page4-2.htm;");
aI("text=Test 4 - 3;url=http://support.milonic.com/demos/openmenusbyurl/diff_folder/page4-3.htm;");
}

drawMenus();


