_menuCloseDelay=500;
_menuOpenDelay=0;
_subOffsetTop=0;
_subOffsetLeft=1;

var tbnBaseUrl    = "http://www.thunderbirdnest.com/";
var tbnForumsUrl  = "http://www.thunderbirdnest.com/forums/";
var tbnGalleryUrl = "http://www.thunderbirdnest.com/membergallery/";
var tbnMenuUrl    = "/menu/";

function mm_cacheImages()
{
  if (!document.images) return;

// Add image names to the following list.
  var imgNames = new Array(
    tbnMenuUrl + "T-on.gif",
    tbnMenuUrl + "bgitem-off.gif",
    tbnMenuUrl + "bgitem-on.gif",
    tbnMenuUrl + "subarrow-off.gif",
    tbnMenuUrl + "subarrow-on.gif"
  );

  var imgs = new Array();
  for (var i = 0; i < imgNames.length; i++)
  {
    imgs[i] = new Image();
    imgs[i].src = imgNames[i];
  }
}



with(styleBase=new mm_style()){
offbgcolor     = "#008080";
onbgcolor      = "#00E0E0";
offcolor       = "#FFFFFF";
oncolor        = "#004040";
//oncolor        = "#FFFFFF";
bordercolor    = "#000000";
borderstyle    = "solid";
borderwidth    = 1;
separatorcolor = "#FFFFFF";
separatorsize  = 0;
padding        = "3px 3px 3px 6px";
fontsize       = "12px";
fontstyle      = "normal";
fontfamily     = "Arial, Tahoma, Verdana";
high3dcolor    = "#FFFFFF";
low3dcolor     = "#000000";
swap3d         = 1;
}

styleMain = new copyOf(styleBase);

styleSub = new copyOf(styleBase);
styleSub.subimage        = tbnMenuUrl + "subarrow-off.gif";
styleSub.onsubimage      = tbnMenuUrl + "subarrow-on.gif";
styleSub.subimagepadding = 3;
styleSub.bgimage         = tbnMenuUrl + "bgitem-off.gif";
styleSub.overbgimage     = tbnMenuUrl + "bgitem-on.gif";
styleSub.overfilter      = "Shadow(color='#000000', Direction=135, Strength=2)";
styleSub.overfilter      = "GradientWipe(WipeStyle=0,motion='forward',duration=0.3);Shadow(color='#000000', Direction=135, Strength=2)";
styleSub.outfilter       = "GradientWipe(WipeStyle=0,motion='reverse',duration=0.3);Shadow(color='#000000', Direction=135, Strength=2)";

with(milonic=new menuname("smallmain")){
style=styleMain;
top = 156;
left=0;
alwaysvisible=1;
followscroll="0,40,10";
orientation="vertical";
aI("text=;image="+tbnMenuUrl+"T-off.gif;overimage="+tbnMenuUrl+"T-on.gif;showmenu=mainmenu;url=#top;subimagepadding=5;");
}

with(milonic=new menuname("mainmenu")){
style=styleSub;
itemwidth=100;
orientation="vertical";
//aI("text="+tbnSecurityToken+";url="+tbnBaseUrl+";");
aI("text=Home;url="+tbnBaseUrl+";");
aI("text=Forums;showmenu=forums;url="+tbnForumsUrl+"index.php;");
aI("text=Gallery;showmenu=gallery;url="+tbnGalleryUrl+"index.php;");
if (tbnIsLoggedIn) {
  aI("text=Private Msgs;showmenu=private_messages;url="+tbnForumsUrl+"private.php;");
  aI("text=Extras;showmenu=extras;pointer=arrow;");
  aI("text=Tools;showmenu=tools;pointer=arrow;");
  aI("text=Events;url="+tbnForumsUrl+"forumdisplay.php?f=19;");
  aI("text=New Posts;url="+tbnForumsUrl+"search.php?do=getnew;");
  aI("text=Today's Posts;url="+tbnForumsUrl+"search.php?do=getdaily;");
  aI("text=Links;url="+tbnForumsUrl+"forumdisplay.php?f=113;");
}
}


with(milonic=new menuname("forums")){
style=styleSub;
itemwidth=120;
aI("text=Thunderbird Chat;url="+tbnForumsUrl+"forumdisplay.php?f=47;");
if (tbnIsLoggedIn) aI("text=Off Topic;url="+tbnForumsUrl+"forumdisplay.php?f=46;");
aI("text=TOTM Contest;url="+tbnForumsUrl+"forumdisplay.php?f=184;");
aI("text=Events;url="+tbnForumsUrl+"forumdisplay.php?f=19;");
if (tbnIsLoggedIn) aI("text=Tech Forums;url="+tbnForumsUrl+"forumdisplay.php?f=2;");
aI("text=Chapter Forums;url="+tbnForumsUrl+"forumdisplay.php?f=5;");
if (tbnIsLoggedIn) aI("text=Classifieds;url="+tbnForumsUrl+"forumdisplay.php?f=57;");
}

with(milonic=new menuname("gallery")){
style=styleSub;
itemwidth=115;
if (tbnIsLoggedIn) aI("text=My Gallery;url="+tbnGalleryUrl+"showgallery.php?cat=500&ppuser="+tbnUserID+";");
aI("text=Member Galleries;url="+tbnGalleryUrl+"showmembers.php?cat=500&password=;");
aI("text=Event Galleries;url="+tbnGalleryUrl+"showmembers.php?cat=514&password=;");
aI("text=TOTM Gallery;url="+tbnGalleryUrl+"showmembers.php?cat=648&password=;");
aI("text=Hardtop Gallery;url="+tbnGalleryUrl+"showmembers.php?cat=620&password=;");
}

with(milonic=new menuname("private_messages")){
style=styleSub;
itemwidth=120;
aI("text=View my PM Inbox;url="+tbnForumsUrl+"private.php?folderid=0;");
aI("text=View my Sent PMs;url="+tbnForumsUrl+"private.php?folderid=-1;");
aI("text=Send a PM;url="+tbnForumsUrl+"private.php?do=newpm;");
aI("text=Track PMs;url="+tbnForumsUrl+"private.php?do=trackpm;");
}

with(milonic=new menuname("extras")){
style=styleSub;
itemwidth=140;
aI("text=TBN Arcade;url="+tbnForumsUrl+"arcade.php;");
aI("text=Member Map;url="+tbnForumsUrl+"VBGooglemap.php;");
aI("text=TBN T-Bird Registry;showmenu=tbird_registry;url="+tbnForumsUrl+"vbgarage.php;");
}

with(milonic=new menuname("tbird_registry")){
style=styleSub;
itemwidth=140;
aI("text=View Registry;url="+tbnForumsUrl+"vbgarage.php;");
aI("text=Add/Edit Registry Entry;url="+tbnForumsUrl+"vbgarage.php?do=editgarage;");
}

with(milonic=new menuname("tools")){
style=styleSub;
itemwidth=130;
aI("text=Control Panel;showmenu=control_panel;url="+tbnForumsUrl+"usercp.php;");
aI("text=Members;showmenu=member_list;url="+tbnForumsUrl+"memberlist.php;");
aI("text=Subscribed Threads;url="+tbnForumsUrl+"subscription.php?do=viewsubscription;");
aI("text=Search Forums;url="+tbnForumsUrl+"search.php;");
aI("text=FAQs;url="+tbnForumsUrl+"faq.php;");
aI("text=Calendar;url="+tbnForumsUrl+"calendar.php;");
}

with(milonic=new menuname("control_panel")){
style=styleSub;
itemwidth=145;
aI("text=View Profile;url="+tbnForumsUrl+"member.php?u="+tbnUserID+";");
aI("text=Edit Details;url="+tbnForumsUrl+"profile.php?do=editprofile;");
aI("text=Edit Signature;url="+tbnForumsUrl+"profile.php?do=editsignature;");
aI("text=Edit Email & Password;url="+tbnForumsUrl+"profile.php?do=editpassword;");
aI("text=Edit Options;url="+tbnForumsUrl+"profile.php?do=editoptions;");
aI("text=Edit Avatar;url="+tbnForumsUrl+"profile.php?do=editavatar;");
aI("text=Edit Attachments;url="+tbnForumsUrl+"profile.php?do=editattachments;");
//aI("text=Buddy & Ignore Lists;url="+tbnForumsUrl+"profile.php?do=editlist;");
//aI("text=Profile Pic;url="+tbnForumsUrl+"profile.php?do=editprofilepic;");
}

with(milonic=new menuname("member_list")){
style=styleSub;
itemwidth=120;
aI("text=List Members;url="+tbnForumsUrl+"memberlist.php;");
aI("text=Search Members;url="+tbnForumsUrl+"memberlist.php?do=search;");
}

drawMenus();

mm_cacheImages();

