//Menu object creation

//Making the menu object. Argument: menuname

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0 
oCMenu.useclick=0 

oCMenu.useNS4links=1 
oCMenu.NS4padding=2 
oCMenu.checkselect=0

/*If you choose to have this code inside a linked js, or if your using frames it's important to set these variables. 
This will help you get your links to link to the right place even if your files are in different folders.
The offlineUrl variable is the actual path to the directory where you js file are locally. 
This is just so you can test it without uploading. Remember to start it with file:/// and only use slashes, no backward slashes!
Also remember to end with a slash */

oCMenu.offlineUrl="file:///C|/MASC/" 
oCMenu.onlineUrl="http://www.maritimeawards.ca/" 

oCMenu.pagecheck=1 
oCMenu.checkscroll=0 //scrolled or not? 
oCMenu.resizecheck=1 
oCMenu.wait=600 

//Background bar properties
oCMenu.usebar=0 
oCMenu.barcolor="Navy" 
oCMenu.barwidth="menu" 
oCMenu.barheight="menu" 
oCMenu.barx=0 
oCMenu.bary=0 
oCMenu.barinheritborder=0 

//Placement properties
oCMenu.rows=1 // rows or collum
oCMenu.fromleft='' 
oCMenu.fromtop=95 
oCMenu.pxbetween='1' 
/*You have several different ways to place the top items. 
You can have them right beside eachother (only adding the pxbetween variable)
oCMenu.menuplacement="center"
You can have them aligned to one of the sides - This is mostly when not using frames, but can be used in both conditions
Values: (If you get strange results check the fromleft,fromtop and pxbetween variables above)
For menus that are placed in columns (align=left or align=right (se below)) you can align them to the "right" or "center"
For menus that are placed in rows (align=top or align=bottom (se below)) you can align them to the "bottom", "center" or "bottomcenter"
oCMenu.menuplacement="bottomcenter"


Choose one of those options to get the desired results.
*/
oCMenu.menuplacement='center'
//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new Array() 
oCMenu.level[0].width=127
oCMenu.level[0].height=22 
oCMenu.level[0].bgcoloroff="Navy" 
oCMenu.level[0].bgcoloron="#003366" 
oCMenu.level[0].textcolor="white"
oCMenu.level[0].align="center"  
oCMenu.level[0].hovercolor="Yellow" 
oCMenu.level[0].style="padding:2px; font-family:arial; font-size:12px; font-weight:normal" 
oCMenu.level[0].border=1 
oCMenu.level[0].bordercolor="#003366" 
oCMenu.level[0].offsetX=-10 
oCMenu.level[0].offsetY=-1 
oCMenu.level[0].NS4font="arial"
oCMenu.level[0].NS4fontSize="2"

/*New: Added animation features that can be controlled on each level.*/
oCMenu.level[0].clip=0 //Set this to 1 if you want the submenus of this level to "slide" open in a animated clip effect. - Value: 0 || 1
oCMenu.level[0].clippx=0 //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 
oCMenu.level[0].cliptim=0 //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
oCMenu.level[0].filter=0 //VALUE: 0 || "filter specs"
oCMenu.level[0].align="bottom" //Value: "top" || "bottom" || "left" || "right" 

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=148
oCMenu.level[1].height=22
oCMenu.level[1].style="padding:2px; font-family:arial; font-size:12px; font-weight:normal"
oCMenu.level[1].align="bottomcenter" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="white"

//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=158
oCMenu.level[2].height=22
oCMenu.level[2].style="padding:2px; font-family:arial; font-size:12px; font-weight:normal"
oCMenu.level[2].align="bottomcenter" 
oCMenu.level[2].offsetX=-(oCMenu.level[1].width-2)/2+20
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="white"


/*Variables for each menu item: (** means that they have to be spesified!)
name: The name of the item. This must be unique for each item. Do not use spaces or strange charachters in this one! **
parent: The name of the menuitem you want this to "connect" to. This will be a submenu of the item that have the name you place in here. ** for all other then the topitems
text: The text you want in the item. ** (except if you use images) 
link: The page you want this item to link to.
target: The target window or frame you want the link to go to (Default is same window if you're not using frames, and the mainframe if you're using frames)
width: The width of the element. If not spesified it will get the default width spesified above.
height: The height of the element. If not spesified it will get the default height spesified above.
img1: The "off" image for element if you want to use images.
img2: The image that appears onmouseover if using images.
bgcoloroff: The background color for this item. If not spesified it will get the default background color spesified above.
bgcoloron: The "on" background color for this item. If not spesified it will get the default "on" background color spesified above.
textcolor: The text color for this item. If not spesified it will get the default text color spesified above.
hovercolor: The "on" text color for this item. If not spesified it will get the default "on" text color spesified above. Netscape4 ignores this
onclick: If you want something to happen when the element is clicked (different from going to a link) spesifiy it here.
onmouseover: This will happen when you mouseover the element. Could be status text, another imageswap or whatever.
onmouseout: This will happen when you mouseout the element.
Remember you can have as many levels/sublevels as you want. Just make sure you spesify the correct "parent" for each item.
To set styles for each level see above.
*/

oCMenu.makeMenu('top0','','&nbsp;About MASC','','')
	oCMenu.makeMenu('sub00','top0','Mission','../mission.htm')
	oCMenu.makeMenu('sub01','top0','History','../history.htm')
	oCMenu.makeMenu('sub02','top0','Contact','../contact.htm')
	oCMenu.makeMenu('sub03','top0','Constitution & By-laws','../pdfs/Constitution_and_By-laws_2006_10_19.pdf')

oCMenu.makeMenu('top1','','&nbsp;Board of Governors','')
	oCMenu.makeMenu('sub10','top1','Board of Governors','../board.htm')
	oCMenu.makeMenu('sub11','top1','Bios','../Bios.htm')
	oCMenu.makeMenu('sub12','top1','D.M.J. Memorial Fund','../Memoriam/Memoriam.html')


oCMenu.makeMenu('top2','','&nbsp;Maritime Issues','')
	oCMenu.makeMenu('sub21','top2','General','../Maritime_Issues/MaritimeIssues.htm')

oCMenu.makeMenu('top3','','&nbsp;Scholarships','')
	oCMenu.makeMenu('sub30','top3','Awards','../awards.htm')
		oCMenu.makeMenu('sub300','sub30','University of Victoria','../awards_UofVictoria.htm')
		oCMenu.makeMenu('sub301','sub30','University of Calgary','../awards_UofCalgary.htm')
		oCMenu.makeMenu('sub302','sub30','Dalhousie University','../awards_Dalhousie.htm')
		oCMenu.makeMenu('sub303','sub30','Memorial University','../awards_MUofNfld.htm')
	oCMenu.makeMenu('sub31','top3','Testimonials','../testimonials.htm')

oCMenu.makeMenu('top4','','&nbsp;News &amp; Events','')
	oCMenu.makeMenu('sub40','top4','Public Forums','../forums.htm')
		oCMenu.makeMenu('sub400','sub40','Legal Workshop','../lawyers/start.html')
		oCMenu.makeMenu('sub401','sub40','Arctic Ocean Meeting','../pdfs/Arctic_Ocean_Meeting_of_Experts_2006.pdf')
		oCMenu.makeMenu('sub402','sub40','March Forum 2006','../ForumBC_waters2006.htm')
		oCMenu.makeMenu('sub403','sub40','November Forum 2006','../ForumShips_Sea_Bureau2006.htm')
		oCMenu.makeMenu('sub404','sub40','Workshop 2007','../OGCWC/OGCWC.html')
	oCMenu.makeMenu('sub41','top4','Publications','../publications.htm')
	oCMenu.makeMenu('sub42','top4','Events','')
		oCMenu.makeMenu('sub420','sub42','Day Sail','../Events/Day_Sail2006.html')
		oCMenu.makeMenu('sub421','sub42','Annual General Meeting','../Events/AGM_Sept20_06.html')

oCMenu.makeMenu('top5','','&nbsp;Membership','')
	oCMenu.makeMenu('sub50','top5','Information','../membership.htm')
	oCMenu.makeMenu('sub51','top5','AGM Minutes 2006','../pdfs/AGM_2006_Minutes.pdf')
	oCMenu.makeMenu('sub52','top5','Presidents Club','../Briefs/PCIndex.html')


//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); 
oCMenu.construct()
