/*****************************************************************************************************************************
This is the menu creation code. The only styles here that are used are the left and top positioning, the width and the height
(although these are also in the style sheet) and the menu alignment (do not change from right). 

The menu code itself is in hierarchical form from top to bottom and the seperate levels are indented. It is a numerical menu.
if you add anything, the menu item's number is irellevant as long as it is higher than the previous and lower than the next one
down. I have left spaces between the numbers for entries to be added but if these are filled the whole menu will have to be 
re-numbered.

For the first level the top attribute states where the menu item will appear. For level 1 it is sub 01 and sub 001 for level 2

The only other difference is there are 2 pop up window links. These have to be stated in an in built function of coolmenus.
This is the 15th function (see the very bottom of this for an example).

As this is a new menu 08/10/2002 - all previous code can be found in /football/old. This also includes all the world cup stuff
that will have to be added sooner or later. S.Perry
*****************************************************************************************************************************/

//Menu object creation

oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=95
oCMenu.rows=0
oCMenu.menuPlacement=0

//This is the first part of the root so you don't have to write this in the actual menu.
oCMenu.offlineRoot=""
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="menu"
oCMenu.barHeight="menu"
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
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=150
oCMenu.level[0].height=22
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=0
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0

oCMenu.level[0].align="right"

//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-2
oCMenu.level[1].height=22
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].style=""
oCMenu.level[1].align="right"
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].rows=0
oCMenu.level[1].align="right"

/******************************************
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('top0','','<div class="menubgsponstop">&nbsp;Home</div>','main.aspx')

oCMenu.makeMenu('top1','','<div class="menubgsponsmid">&nbsp;Resources</div>','')
	oCMenu.makeMenu('sub12','top1','<div class="menubgtoolstop">&nbsp;Events</div>','EvtListing.aspx')
	oCMenu.makeMenu('sub14','top1','<div class="menubgtoolsmid">&nbsp;Research reports</div>','Reports.aspx')
	oCMenu.makeMenu('sub16','top1','<div class="menubgtoolsmid">&nbsp;Recommended reading</div>','Books.aspx')
	oCMenu.makeMenu('sub18','top1','<div class="menubgtoolsbot">&nbsp;Industry directory</div>','Directory.aspx')

oCMenu.makeMenu('top2','','<div class="menubgsponsmid">&nbsp;Archive<span class="Premium">ps</span></div>','')

	oCMenu.makeMenu('sub24','top2','<div class="menubgtoolstop">&nbsp;News</div>','ArtArch.aspx?TCode=1')
	oCMenu.makeMenu('sub25','top2','<div class="menubgtoolsmid">&nbsp;Best practice</div>','ArtArch.aspx?TCode=2')
	oCMenu.makeMenu('sub26','top2','<div class="menubgtoolsmid">&nbsp;Comment</div>','ArtArch.aspx?TCode=3')
	oCMenu.makeMenu('sub27','top2','<div class="menubgtoolsmid">&nbsp;White papers</div>','ArtArch.aspx?TCode=4')
	oCMenu.makeMenu('sub28','top2','<div class="menubgtoolsmid">&nbsp;Press releases</div>','ArtArch.aspx?TCode=5')
	oCMenu.makeMenu('sub29','top2','<div class="menubgtoolsbot">&nbsp;Polls</div>','PollsArchive.aspx')
	
oCMenu.makeMenu('top3','','<div class="menubgsponsmid">&nbsp;Jobs</div>','')
	
	oCMenu.makeMenu('sub32','top3','<div class="menubgtoolstop">&nbsp;Post a job</div>','UserPop.aspx?JobCode=2','_blank')
	oCMenu.makeMenu('sub34','top3','<div class="menubgtoolsbot">&nbsp;Find a job</div>','jobs.aspx')
		
oCMenu.makeMenu('top4','','<div class="menubgsponsbot">&nbsp;Advertise</div>','Advertise.aspx')

	
if(!(bw.ie5&&bw.mac)) oCMenu.construct();


