//Menu object creation
oCMenu1 = new makeCM("oCMenu1") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu1.pxBetween = 0

//Using the cm_page object to place the menu ----
  //There are some differences between the browsers that I try to fix here.

oCMenu1.fromLeft = 268;
//oCMenu1.fromLeft=!bw.ns4?cmpage.x2 - 160:cmpage.x2 - 176

//We also need to "replace" the menu on resize. So:
//oCMenu1.onresize = "oCMenu1.fromLeft = cmpage.x2 > 990 ? 250 : 51"

oCMenu1.fromTop=8  
oCMenu1.rows=1
oCMenu1.menuPlacement=0

// Menu 1 settings
oCMenu1.offlineRoot = "file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/" 
oCMenu1.onlineRoot = "" 
oCMenu1.resizeCheck = 1 
oCMenu1.wait = 100
oCMenu1.fillImg = "images/spacer.gif"
oCMenu1.zIndex = 0

//Background bar properties
oCMenu1.useBar = 0
oCMenu1.barWidth = "menu"
oCMenu1.barHeight = "menu" 
oCMenu1.barClass = "clBar"
oCMenu1.barX = "menu"
oCMenu1.barY = "menu"
oCMenu1.barBorderX = 0
oCMenu1.barBorderY = 0
oCMenu1.barBorderClass = ""


//Level properties - ALL properties have to be spesified in level 0
oCMenu1.level[0]=new cm_makeLevel() //Add this for each new level

oCMenu1.level[0].width = 161
oCMenu1.level[0].height = 1 
oCMenu1.level[0].regClass = "clLevel0"
oCMenu1.level[0].overClass = "clLevel0over"
oCMenu1.level[0].borderX = 0
oCMenu1.level[0].borderY = 0
oCMenu1.level[0].borderClass = "clLevel0border"
oCMenu1.level[0].width
oCMenu1.level[0].offsetX = oCMenu1.level[0].width - 2
oCMenu1.level[0].offsetY = 36
oCMenu1.level[0].rows  = 0
oCMenu1.level[0].arrow = 0
oCMenu1.level[0].align = "left"

/*New: Added animation features that can be controlled on each level.*/
oCMenu1.level[0].clip = 1 //Set this to 1 if you want the submenus of this level to "slide" open in a animated clip effect. - Value: 0 || 1
oCMenu1.level[0].clippx = 15 //If you have clip spesified you can set how many pixels it will clip each timer in here to control the speed of the animation. - Value: px 
oCMenu1.level[0].cliptim = 50 //This is the speed of the timer for the clip effect. Play with this and the clippx to get the desired speed for the clip effect (be carefull though and try and keep this value as high or possible or you can get problems with NS4). - Value: milliseconds
//Filters - This can be used to get some very nice effect like fade, slide, stars and so on. EXPLORER5.5+ ONLY - If you set this to a value it will override the clip on the supported browsers
oCMenu1.level[0].filter = "progid:DXImageTransform.Microsoft.Fade(duration=0.5)" //VALUE: 0 || "filter specs"



//SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu1.level[1] = new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu1.level[1].width       = oCMenu1.level[0].width
oCMenu1.level[1].height      = 16
oCMenu1.level[1].regClass    = "clLevel1"
oCMenu1.level[1].overClass   = "clLevel1over"
oCMenu1.level[1].borderX     = 1
oCMenu1.level[1].borderY     = 1
oCMenu1.level[1].align       = "right" 
oCMenu1.level[1].offsetX     = -1
oCMenu1.level[1].offsetY     = -1
oCMenu1.level[1].arrow       = "images/menu_arrow.gif"
oCMenu1.level[1].arrowWidth  = 8
oCMenu1.level[1].arrowHeight = 7
oCMenu1.level[1].borderClass = "clLevel1border"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu1.level[2] = new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu1.level[2].width = 150
oCMenu1.level[2].height = 16
oCMenu1.level[2].offsetX = 0
oCMenu1.level[2].offsetY = 0
oCMenu1.level[2].regClass = "clLevel2"
oCMenu1.level[2].overClass = "clLevel2over"
oCMenu1.level[2].borderClass = "clLevel2border"

