_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;

with(menuStyle=new mm_style()){
fontfamily="Arial, Helvetica, sans-serif";
fontsize="102%";
fontweight='bold';
fontstyle="normal";
headerbgcolor="#000000";
headercolor="#000000";
offbgcolor="#000000";
offcolor="#ffffff";
onbgcolor="#CC3333";
oncolor="#ffffff";
align="center";
itemwidth=100;
itemheight=15;
padding=4;
separatorsize=0;
}

with(subMenuStyle=new mm_style()) {
bordercolor="#000000";
borderstyle="solid";
fontfamily="Verdana, Arial, Helvetica, sans-serif";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#000000";
headercolor="#000000";
offbgcolor="#000000";
offcolor="#ffffff";
onbgcolor="#CC3333";
oncolor="#ffffff";
align="left";
padding=4;
separatorcolor="#000000";
separatorsize=0;
itemwidth=100;
itemheight=15;
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
orientation="horizontal";
style=menuStyle;
top=61;
aI("showmenu=door_products;text=Door Products;");
aI("text=Pre-Hanging;url=/pre_hanging/;");
aI("text=Pre-Finishing;url=/pre_finishing/;");
aI("text=Custom;url=/custom/;");
aI("text=Gallery;url=/gallery/;");
aI("text=FAQ;url=/faq/;");
aI("text=Contact;url=/contact/;");
}

with(milonic=new menuname("door_products")){
style=subMenuStyle;
aI("text=Classic;url=/classic/;");
aI("text=Craftsman;url=/craftsman/;");
aI("text=Cottage;url=/cottage/;");
aI("text=Bungalow;url=/bungalow/;");
aI("text=Nouveau;url=/nouveau/;");
aI("text=Progressive Craftsman;url=/Progressive_Craftsman/;");
aI("text=Rustic;url=/Rustic/;");
aI("text=Interior;url=/interiordoors/;");
aI("text=New Products;url=/new_products/;");
}

drawMenus();

function mm_changeMenuProperty(menuName, propertyRef, newValue)
{
  var menuNum = getMenuByName(menuName);
  _m[menuNum][propertyRef] = newValue;
  BDMenu(menuNum);
}

function mm_changeItemProperty(menuName, itemName, codeRef, newValue, updateDisplay)
{
  menuName = menuName.toLowerCase();
  for (i=0; i<_mi.length; i++)
    if (_mi[i][1].replace(/\ \;/ig,' ') == itemName && _m[_mi[i][0]][1] == menuName) break;
  if (i == _mi.length) return;
  _mi[i][codeRef] = newValue;
  if (updateDisplay) BDMenu(_mi[i][0]);
}

