// This code defines up to four menu levels - this example uses only two levels (0 and 1)
// reference for the call to make a new menu level is as follows:
// myCoolMenu.level[x]=new cm_makeLevel(width, height, regClass, overClass, borderY, borderX, 
//      borderClass, rows, align, offsetX, offsetY, arrow, arrowWidth, arrowHeight, roundBorder)
// classes are defined in the .css file (regClass and overClass)
// you have to provide an arrow image (/images/menu_arrow.gif)
// **** turning off borderx and bordery disables menus in Internet Explorer - works in Firefox
oM.level[0]=new cm_makeLevel(90,22,"clT","clTover",1,1,"clB",0,"bottom",0,0,0,0,0);
oM.level[1]=new cm_makeLevel(90,22,"clS","clSover",1,1,"clB2",0,"lefttop",0,0,"",10,10);
oM.level[2]=new cm_makeLevel(90,22,"clS2","clS2over",1,1,"clB2");
oM.level[3]=new cm_makeLevel(90,22);

// top level menu item definitions
// parameters = (top menu name, '', menu text, URL for link)
// reference for the makeMenu call is as follows (not all parameters are required):
// myCoolMenu.makeMenu(name, parent_name, text for menu item, link (url), target (browser window), width, 
//      height, regImage, overImage, 
//      regClass, overClass , align, rows,&nbsp;nolink, onclick, onmouseover, onmouseout)

oM.makeMenu('m2','','About Us','/aboutus.htm','', '');
oM.makeMenu('m3','','Services','/services/index.htm','', '');
oM.makeMenu('m4','','Products','/products/index.htm','', '');
oM.makeMenu('m5','','Location','/location.htm','', '');
oM.makeMenu('m6','','Contact Us','/contactus.htm','', '');

// sub menus for menu 2 
oM.makeMenu('m2a','m2','Overview','/aboutus.htm');
oM.makeMenu('m2b','m2','Our Concept','/concept.htm');
oM.makeMenu('m2c','m2','Our Staff','/ourstaff.htm');
oM.makeMenu('m2d','m2','Specials','/specials/index.htm');

// sub menus for menu 3 
oM.makeMenu('m3a','m3','Overview','/services/index.htm');
oM.makeMenu('m3b','m3','Hair Salon','/services/hair.htm');
oM.makeMenu('m3c','m3','Day Spa','/services/spa.htm');
oM.makeMenu('m3c0','m3c','Overview','/services/spa.htm');
oM.makeMenu('m3c2','m3c','Facials','/services/facials.htm');
oM.makeMenu('m3c3','m3c','Nails','/services/nails.htm');
oM.makeMenu('m3c5','m3c','Makeup','/services/makeupapplication.htm');
oM.makeMenu('m3c4','m3c','Massage','/services/massage.htm');
oM.makeMenu('m3c1','m3c','Waxing','/services/waxing.htm');
oM.makeMenu('m3d','m3','Specials','/specials/index.htm');

// sub menus for menu 4
oM.makeMenu('m4a','m4','Shop Aveda','/products/index.htm');
oM.makeMenu('m4b','m4','Hair Care','/products/haircare.htm');
oM.makeMenu('m4c','m4','Skin Care','/products/skincare.htm');
oM.makeMenu('m4d','m4','Makeup','/products/makeup.htm');
oM.makeMenu('m4e','m4','Fragrance','/products/fragrance.htm');

//var avail="7+((cmpage.x2-7)/7)";
//original - oM.menuPlacement=new Array(10,avail+"-11",avail+"*2-8",avail+"*3-12",avail+"*4-7",avail+"*5-9",avail+"*6+5");
//oM.menuPlacement=new Array(10,avail+"-1",avail+"*2-20",avail+"*3-15",avail+"*4-15",avail+"*5-15",avail+"*6+5");
//oM.menuPlacement=new Array(15,avail+"-5",avail+"*2-5",avail+"*3-5",avail+"*4-5",avail+"*5-15",avail+"*6-5");
//oM.menuPlacement=new Array(15,avail,avail+"*2",avail+"*3",avail+"*4",avail+"*5",avail+"*6");
//oM.menuPlacement="";
oM.construct();
