/******************************************
 * 
 * 
Extra info - Coolmenus reference/help - Extra links to help files **** 
CSS help: http://coolmenus.dhtmlcentral.com/projects/coolmenus/reference.asp?m=37
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
*/

/*** 
Menu Definition Code.  Items you may wish to edit are marked ***

Menus are created at the bottom of this script.
**/
ass="clLevel2border"

// Menu object creation - must do these before the menu is built which is at the bottom.
brMenu=new makeCM("brMenu") //Making the menu object. Argument: menuname

brMenu.frames = 0

//Menu properties   
brMenu.pxBetween=5    // *** space between menu items
brMenu.fromLeft=0      // *** left positioning
brMenu.fromTop=415     // *** how far down to place the menus
brMenu.rows=1          // *** how many rows for the menus
brMenu.menuPlacement="center"

// *** path to src dir for offline testing                                                             
brMenu.offlineRoot="file:///Users/BlueRidgeAdventures/Documents/WEB/html/swank/purpleivy/" 
brMenu.onlineRoot="swank/purpleivy/"    // *** path to src dir when online - here assuming it is at base level.
brMenu.resizeCheck=1 
brMenu.wait=1000 
brMenu.fillImg="cm_fill.gif"  // will be used as image between menu items (I think!)
brMenu.zIndex=0

//Background bar properties
brMenu.useBar=0
brMenu.barWidth="745"   // width of the nav bar - since we use a table to reserve space, not really needed.
brMenu.barHeight="menu" 
brMenu.barClass="clBar"
brMenu.barX=0 
brMenu.barY=0
brMenu.barBorderX=0
brMenu.barBorderY=0
brMenu.barBorderClass=""

//Level properties - ALL properties have to be specified in level 0.  Don't remove any of these, but you can change values.
brMenu.level[0]=new cm_makeLevel()  // Add this for each new level
brMenu.level[0].width=100   			// *** the width of each navigation element - they're all the same
brMenu.level[0].height=20           // *** height of the nav line
brMenu.level[0].regClass="clLevel0" // defines the CSS classes to use for this element
brMenu.level[0].overClass="clLevel0over"
brMenu.level[0].borderX=0           // *** size of border for the nav box
brMenu.level[0].borderY=0
brMenu.level[0].borderClass="clLevel0border"
brMenu.level[0].offsetX=0
brMenu.level[0].offsetY=0
brMenu.level[0].rows=0
brMenu.level[0].arrow=0
brMenu.level[0].arrowWidth=0
brMenu.level[0].arrowHeight=0
brMenu.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
brMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
brMenu.level[1].width= 150;  // *** to make same as above set to:    brMenu.level[0].width-2
brMenu.level[1].height=25
brMenu.level[1].regClass="clLevel1"
brMenu.level[1].overClass="clLevel1over"
brMenu.level[1].borderX=1
brMenu.level[1].borderY=1
brMenu.level[1].align="right" 
brMenu.level[1].offsetX=-(brMenu.level[0].width-2)/2+20
brMenu.level[1].offsetY=0
brMenu.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
brMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
brMenu.level[2].width=150
brMenu.level[2].height=20
brMenu.level[2].offsetX=0
brMenu.level[2].offsetY=0
brMenu.level[2].regClass="clLevel2"
brMenu.level[2].overClass="clLevel2over"
brMenu.level[2].borderClass="clLevel2border"

/*************************************
Menu item creation... The full list of parameters is:

brMenu.makeMenu(
	name,           // the name of this menu item in its level
	parent_name,    // the parent of this item, by name above
	text,           // text to use in the menu item
	link,           // where to go when selected. May omit, in which case it's just info only.
	target,         // "_blank" may open in new window.  May omit.
	width,          // override the width and height of this item.  May omit.  I use these for a custom cell size in examples.
	height,    
	regImage,       // images to use in this menu item if you want to use images.  regular and mouseover
	overImage, 
	regClass,       // specify a special CSS class for this item.  Reg and mouseover
	overClass, 
	align,          // how to align the text in the menu
	rows, 
	nolink,         
	onclick, onmouseover, onmouseout) 
	
Note:  It is VERY IMPORTANT that you provide a static list of links at the footer of your page when using coolmenus
because the links are generated by javascript and are invisible to search engines, and you want to
make sure that all your pages get linked properly.
*************************************/

/* Top Level */
brMenu.makeMenu('top1','','Home','http://www.blueridgeadventures.net/swank/default.html','')
brMenu.makeMenu('top2','','Race')
brMenu.makeMenu('top3','','Course')
brMenu.makeMenu('top4','','Register', 'http://www.blueridgeadventures.net/swank/registration.html')
brMenu.makeMenu('top5','','Media')
brMenu.makeMenu('top6','','Sponsors')


/*Subnav for top0 */
brMenu.makeMenu('sub1_1','top1','Blue Ridge Adventures','http://www.blueridgeadventures.net')
brMenu.makeMenu('sub1_2','top1','Off Road Assault','http://www.blueridgeadventures.net/oramm/')
brMenu.makeMenu('sub1_3','top1','Pisgah Stage Race','http://www.blueridgeadventures.net/stage/')
brMenu.makeMenu('sub1_4','top1','Swank 65','http://www.blueridgeadventures.net/swank/')
brMenu.makeMenu('sub1_5','top1','About Us','http://www.blueridgeadventures.net/aboutus.html')
brMenu.makeMenu('sub1_6','top1','Contact','http://www.blueridgeadventures.net/contactus.html')


brMenu.makeMenu('sub2_1','top2','Info','http://www.blueridgeadventures.net/swank/info.html')
brMenu.makeMenu('sub2_2','top2','F.A.Q.','http://www.blueridgeadventures.net/swank/faq.html')
brMenu.makeMenu('sub2_3','top2','Prizes','http://www.blueridgeadventures.net/swank/prizes.html')
brMenu.makeMenu('sub2_4','top2','Results','http://www.blueridgeadventures.net/swank/results.html')
brMenu.makeMenu('sub2_5','top2','Lodging','http://www.blueridgeadventures.net/swank/lodging.html')
brMenu.makeMenu('sub2_6','top2','Attractions','http://www.blueridgeadventures.net/swank/attractions.html')



brMenu.makeMenu('sub3_1','top3','Map & Elevation','http://www.blueridgeadventures.net/swank/course.html')
brMenu.makeMenu('sub3_2','top3','Course Cue','http://www.blueridgeadventures.net/swank/coursecue.html')
brMenu.makeMenu('sub3_3','top3','Course Markings','http://www.blueridgeadventures.net/swank/markings.html')
brMenu.makeMenu('sub3_4','top3','Trail Descriptions','http://www.blueridgeadventures.net/swank/trails.html')
brMenu.makeMenu('sub3_5','top3','How We Calculate','http://www.blueridgeadventures.net/swank/mileage.html')



brMenu.makeMenu('sub4_1','top4','Online Registration','http://www.active.com/mountain-biking/pisgah-forest-nc/the-12th-annual-swank-65-2010', '_blank')
brMenu.makeMenu('sub4_2','top4','Mail-In Registration', 'http://www.blueridgeadventures.net/swank/2010_Swank_Registration.pdf', '_blank')
brMenu.makeMenu('sub4_3','top4','Categories', 'http://www.blueridgeadventures.net/swank/categories.html')
brMenu.makeMenu('sub4_4','top4','Pricing', 'http://www.blueridgeadventures.net/swank/pricing.html')
brMenu.makeMenu('sub4_5','top4','Refund Policy', 'http://www.blueridgeadventures.net/swank/refund.html')

brMenu.makeMenu('sub5_1','top5','Photos','http://www.blueridgeadventures.net/swank/photos.html')
brMenu.makeMenu('sub5_2','top5','Videos','http://www.blueridgeadventures.net/swank/videos.html')
brMenu.makeMenu('sub5_3','top5','News','http://www.blueridgeadventures.net/swank/news.html')

brMenu.makeMenu('sub6_1','top6','Opportunities','http://www.blueridgeadventures.net/swank/2010_Sponsorship_Swank.pdf', '_blank')

brMenu.makeMenu('sub2_4_1','sub2_4','2009','http://www.blueridgeadventures.net/swank/2009SwankResults.htm', '_blank')
brMenu.makeMenu('sub2_4_2','sub2_4','2008','http://www.blueridgeadventures.net/swank/2008SwankResults.HTM', '_blank')
brMenu.makeMenu('sub2_4_3','sub2_4','2007','http://www.blueridgeadventures.net/swank/2007SWANKRESULTS.HTM', '_blank')
brMenu.makeMenu('sub2_4_4','sub2_4','2006','http://www.blueridgeadventures.net/swank/2006SwankResults.pdf', '_blank')


//Leave this line - it constructs the menu
brMenu.construct()	