var mm_rollOffText; 
var mm_rollItem; 

function mm_onText(rollOnText) 
{ 
  mm_rollItem = _itemRef; 
  mm_rollOffText = _mi[mm_rollItem][1]; 
  _mi[mm_rollItem][1] = rollOnText; 
  BDMenu(_mi[mm_rollItem][0]); 
  itemOn(mm_rollItem); 
} 

function mm_offText() 
{ 
  _mi[mm_rollItem][1] = mm_rollOffText; 
  BDMenu(_mi[mm_rollItem][0]); 
  itemOff(mm_rollItem); 
}	

_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=0            // Sub menu left offset



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="#ffffff";
pagebgcolor="#83ba8c";
headercolor="#000000";
headerbgcolor="#ffffff";
high3dcolor="#c4d8e6";
low3dcolor="#579b63";
swap3d=1;
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


with(main=new menuname("Main Menu")){
style=menuStyle;
top=80;
screenposition="center";
alwaysvisible=1;
orientation="horizontal";
aI("text=MouseOver to View Function!!;url=http://www.milonic.com/;target=_blank;onfunction=mm_onText('A Wonderfully Versatile Menu!');offfunction=mm_offText();");
aI("showmenu=nowidth;text=Point at me;onfunction=mm_onText('And, now you see');offfunction=mm_offText();");
aI("text=Point at me, too;align=center;onfunction=mm_onText('This has itemwidth specified');offfunction=mm_offText();itemwidth=200;");

}
with(main=new menuname("nowidth")){
style=menuStyle;
aI("text=no text length matched;");
aI("text=as in the first item");
aI("text=and no width set");
aI("text=as in the last item;");
aI("text=can cause the menu to shift.;");

}

drawMenus();  


