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

oCMenu.frames = 0

//Menu properties
oCMenu.pxBetween=0
oCMenu.fromLeft=140
oCMenu.fromTop=165
oCMenu.rows=1
oCMenu.menuPlacement="left"

oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/"
oCMenu.onlineRoot="/menu/"
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="100%"
oCMenu.barHeight="menu"
oCMenu.barClass="clBar"
oCMenu.barX=140
oCMenu.barY=140
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=65
oCMenu.level[0].height=16
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"

//EXAMPLE 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
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=oCMenu.level[0].width+90
oCMenu.level[1].height=16
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].align="right"
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetY=0
oCMenu.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
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=150
oCMenu.level[2].height=20
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
*************************************/
oCMenu.makeMenu('home','','&nbsp;Home','http://www.wmcwels.com/cgi-bin/home.pl','')

oCMenu.makeMenu('about','','&nbsp;About','http://www.wmcwels.com/cgi-bin/home.pl?/About','')
  oCMenu.makeMenu('ab1','about','&nbsp;What is the WMC?','http://www.wmcwels.com/cgi-bin/home.pl?/About#whatis')
	oCMenu.makeMenu('ab2','about','&nbsp;Objectives','http://www.wmcwels.com/cgi-bin/home.pl?/About#objectives')

oCMenu.makeMenu('library','','&nbsp;Library','http://www.wmcwels.com/cgi-bin/home.pl?/Library','')
  oCMenu.makeMenu('li1','library','&nbsp;Search the library','http://www.wmcwels.com/cgi-bin/home.pl?/Library#search')
	oCMenu.makeMenu('li2','library','&nbsp;How to search','http://www.wmcwels.com/cgi-bin/home.pl?/Library#how')
	oCMenu.makeMenu('li3','library','&nbsp;Library helps','http://www.wmcwels.com/cgi-bin/home.pl?/Library#helps')
	oCMenu.makeMenu('li4','library','&nbsp;Information','http://www.wmcwels.com/cgi-bin/home.pl?/Library#information')

oCMenu.makeMenu('resources','','&nbsp;Resources','http://www.wmcwels.com/cgi-bin/home.pl?/Resources','')
  oCMenu.makeMenu('re1','resources','&nbsp;Locate (by language)','http://www.wmcwels.com/cgi-bin/home.pl?/Resources#langgroup')
	oCMenu.makeMenu('re2','resources','&nbsp;Locate (alphabetical)','http://www.wmcwels.com/cgi-bin/home.pl?/Resources#alphagroup')
	oCMenu.makeMenu('re3','resources','&nbsp;Suggestions for beginners','http://www.wmcwels.com/cgi-bin/home.pl?/Resources#suggestions')

oCMenu.makeMenu('bookstore','','&nbsp;Bookstore','http://www.wmcwels.com/cgi-bin/home.pl?/Bookstore','')
  oCMenu.makeMenu('bo1','bookstore','&nbsp;Information','http://www.wmcwels.com/cgi-bin/home.pl?/Bookstore#information')
	oCMenu.makeMenu('bo2','bookstore','&nbsp;Browse the bookstore','http://www.wmcwels.com/cgi-bin/home.pl?/Bookstore#browse')
	<!-- oCMenu.makeMenu('bo3','bookstore','&nbsp;Search','http://www.wmcwels.com/cgi-bin/home.pl?/Bookstore#search') -->

oCMenu.makeMenu('fun','','&nbsp;For Fun','http://www.wmcwels.com/cgi-bin/home.pl?/Fun','')
  oCMenu.makeMenu('fu1','fun','&nbsp;Learn language expressions','http://www.wmcwels.com/cgi-bin/home.pl?/Fun#learn')

oCMenu.makeMenu('clipart','','&nbsp;Clip Art','http://www.wmcwels.com/cgi-bin/home.pl?/ClipArt','')
  oCMenu.makeMenu('cl1','clipart','&nbsp;Download instructions','http://www.wmcwels.com/cgi-bin/home.pl?/ClipArt#instructions')
	oCMenu.makeMenu('cl2','clipart','&nbsp;Browse volume one','http://www.wmcwels.com/cgi-bin/home.pl?/ClipArt#volumeone')
	oCMenu.makeMenu('cl3','clipart','&nbsp;Browse volume two','http://www.wmcwels.com/cgi-bin/home.pl?/ClipArt#volumetwo')

oCMenu.makeMenu('download','','&nbsp;Download','http://www.wmcwels.com/cgi-bin/home.pl?/Download','')
  oCMenu.makeMenu('do1','download','&nbsp;Instructions for downloading','http://www.wmcwels.com/cgi-bin/home.pl?/Download#instructions')
	oCMenu.makeMenu('do2','download','&nbsp;English materials','http://www.wmcwels.com/cgi-bin/home.pl?/Download#english')
	oCMenu.makeMenu('do3','download','&nbsp;Spanish materials','http://www.wmcwels.com/cgi-bin/home.pl?/Download#spanish')

oCMenu.makeMenu('contactus','','&nbsp;Contact Us','http://www.wmcwels.com/cgi-bin/home.pl?/ContactUs','')

//Leave this line - it constructs the menu
oCMenu.construct()