function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6||this.ie7
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie7 ||this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.ns7|| this.opera5 || this.dom)
	return this
}
var bw=new lib_bwcheck() 

var mDebugging=2

function lib_doc_size(){ 
	this.x=0;this.x2=bw.ie && document.body.offsetWidth-20||innerWidth||0;
	this.y=0;this.y2=bw.ie && document.body.offsetHeight-5||innerHeight||0;
	if(!this.x2||!this.y2) return message('Document has no width or height') 
	this.x50=this.x2/2;this.y50=this.y2/2;
	this.x10=this.x2*10/100
	this.x15=this.x2*15/100
	this.y10=this.y2*10/100
	this.y15=this.y2*15/100
	return this;
}

page=new lib_doc_size()

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0 
oCMenu.frame="frmMain" 
oCMenu.useclick=0 
oCMenu.useNS4links=0  
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=

oCMenu.onlineUrl=

oCMenu.pagecheck=1 
oCMenu.checkscroll=1 
oCMenu.resizecheck=1 
oCMenu.wait=1000 

oCMenu.usebar=0 
oCMenu.barcolor="#FF9900" 
oCMenu.barwidth="menu" 
oCMenu.barheight="menu" 
oCMenu.barx="menu" 
oCMenu.bary="menu" 
oCMenu.barinheritborder=0 

oCMenu.rows=0 
oCMenu.fromleft=page.x50-340
oCMenu.fromtop=210
oCMenu.pxbetween=2

/*You have several different ways to place the top items. 
You can have them right beside eachother (only adding the pxbetween variable)
oCMenu.menuplacement=0

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="center"

You can also set them directly in pixels: (Remember to have as many array members as you have top items)
oCMenu.menuplacement=new Array(10,200,400,600)

Or you can place in percentage: (remember to use the ' ' around the numbers)


Choose one of those options to get the desired results.
*/


oCMenu.menuplacement=0
oCMenu.level[0]=new Array() 
oCMenu.level[0].width=120
oCMenu.level[0].height=30
oCMenu.level[0].bgcoloroff="transparent" 
oCMenu.level[0].bgcoloron="transparent"
oCMenu.level[0].textcolor="#495810" 
oCMenu.level[0].hovercolor="#cc0000" 
oCMenu.level[0].style="padding:1px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold" 
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="black" 
oCMenu.level[0].offsetX=-10
oCMenu.level[0].offsetY=0 
oCMenu.level[0].NS4font="tahoma,arial,helvetica"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].clip=0 
oCMenu.level[0].clippx=0 
oCMenu.level[0].cliptim=0
oCMenu.level[0].filter=0 

oCMenu.level[0].align="right" 

oCMenu.level[1]=new Array()
oCMenu.level[1].width=oCMenu.level[0].width+0
oCMenu.level[1].height=16
oCMenu.level[1].bgcoloroff="#004284"
oCMenu.level[1].bgcoloron="White"
oCMenu.level[1].textcolor="White" 
oCMenu.level[1].hovercolor="Black" 
oCMenu.level[1].style="padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=-35
oCMenu.level[1].offsetY=5
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="Black"


oCMenu.level[2]=new Array() 
oCMenu.level[2].width=oCMenu.level[0].width+20
oCMenu.level[2].height=16
oCMenu.level[2].bgcoloroff="#004284"
oCMenu.level[2].bgcoloron="White"
oCMenu.level[2].textcolor="White" 
oCMenu.level[2].hovercolor="Black" 
oCMenu.level[2].style="padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold"
oCMenu.level[2].align="right" 
oCMenu.level[2].offsetX=10
oCMenu.level[2].offsetY=10
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="Black"
oCMenu.level[2].NS4font="tahoma,arial,helvetica"
oCMenu.level[2].NS4fontSize="1"

oCMenu.makeMenu('top0','','Home','http://womensalabamagolf.com/','')
	//oCMenu.makeMenu('sub00','top0','Place holder','http://Placeholder.asp','',160,0)
	//oCMenu.makeMenu('sub01','top0','Place holder','http://Placeholder.asp','',160,0)
	
oCMenu.makeMenu('top1','','WAGA','http://womensalabamagolf.com/','')
	oCMenu.makeMenu('sub10','top1','Board of Directors','http://womensalabamagolf.com/waga/board.asp')
	oCMenu.makeMenu('sub11','top1','History','http://womensalabamagolf.com/waga/History.asp')

	
	oCMenu.makeMenu('sub12','top1','Areas','http://womensalabamagolf.com/waga/membership.asp')
			oCMenu.makeMenu('sub120','sub12','Map','http://womensalabamagolf.com/waga/Membership.asp')
			oCMenu.makeMenu('sub121','sub12','Area I','http://womensalabamagolf.com/waga/areas/Area1.asp?area=1')
			oCMenu.makeMenu('sub122','sub12','Area II','http://womensalabamagolf.com/waga/areas/Area2.asp?area=2')
			oCMenu.makeMenu('sub123','sub12','Area III','http://womensalabamagolf.com/waga/areas/area3.asp?area=3')			
			oCMenu.makeMenu('sub124','sub12','Area IV','http://womensalabamagolf.com/waga/areas/area4.asp?area=4')
			oCMenu.makeMenu('sub125','sub12','Area V','http://womensalabamagolf.com/waga/areas/area5.asp?area=5')			
			oCMenu.makeMenu('sub126','sub12','Area VI','http://womensalabamagolf.com/waga/areas/area6.asp?area=6')
			//oCMenu.makeMenu('sub120','sub12','Areas','http://womensalabamagolf.com/Membership.asp','',130,40)	
			oCMenu.makeMenu('sub13','top1','Special Awards','http://womensalabamagolf.com/waga/Specialawards.asp')								
			oCMenu.makeMenu('sub14','top1','Past Presidents','http://womensalabamagolf.com/waga/pastpresidents.asp')
 		//oCMenu.makeMenu('sub14','top1','Tax Sales','https://tc.jeffcointouch.com/taxcollection/taxsales_intro.asp','',160,0)
		//oCMenu.makeMenu('sub15','top1','Payment History','https://tc.jeffcointouch.com/taxcollection/collection_history.asp','',160,0)

oCMenu.makeMenu('top2','','Membership','http://womensalabamagolf.com/Membership/Join_WAGA.asp','')
	oCMenu.makeMenu('sub20','top2','Join WAGA','http://womensalabamagolf.com/Membership/Join_WAGA.asp')
	oCMenu.makeMenu('sub21','top2','Member Clubs','http://womensalabamagolf.com/Membership/WAGA_Clubs.asp')
			
oCMenu.makeMenu('top3','','News','http://womensalabamagolf.com/news/holeinone.asp')
	oCMenu.makeMenu('sub30','top3','Hole in One','http://womensalabamagolf.com/news/holeinone.asp')
	oCMenu.makeMenu('sub31','top3','WAGA Tales Newsletter','http://womensalabamagolf.com/news/WAGATales.asp')
	oCMenu.makeMenu('sub32','top3','Photo Gallery','http://womensalabamagolf.com/news/Photogallery.asp')
	oCMenu.makeMenu('sub33','top3','Links','http://womensalabamagolf.com/news/links/links.asp')	
			oCMenu.makeMenu('sub330','sub33','Links of Interest','http://womensalabamagolf.com/news/links/Links.asp')
			oCMenu.makeMenu('sub331','sub33','Links for Juniors','http://womensalabamagolf.com/news/links/linksforjrs.asp')

oCMenu.makeMenu('top4','','Tournaments','http://womensalabamagolf.com/tournaments/tournamentschedules.asp')
	oCMenu.makeMenu('sub40','top4','Calendar','http://womensalabamagolf.com/tournaments/tournamentschedules.asp')
	oCMenu.makeMenu('sub41','top4','Ratings','http://womensalabamagolf.com/tournaments/WAGA_Club_Ratings.asp')
    oCMenu.makeMenu('sub42','top4','Rules','http://womensalabamagolf.com/tournaments/Rules.asp')
	
	
oCMenu.makeMenu('top5','','Championships','http://womensalabamagolf.com/')
	oCMenu.makeMenu('sub50','top5','Senior','http://womensalabamagolf.com/championships/senior/seniormain.asp')
			oCMenu.makeMenu('sub500','sub50','Group & Starting Time','http://womensalabamagolf.com/Realtime/Senior/srpairing.asp')
			oCMenu.makeMenu('sub501','sub50','Scoreboard','http://womensalabamagolf.com/Realtime/Senior/srscoring.asp')
			oCMenu.makeMenu('sub502','sub50','Archives','http://womensalabamagolf.com/championships/senior/Srarchives.asp')
			oCMenu.makeMenu('sub503','sub50','Past Champions','http://womensalabamagolf.com/championships/senior/Srchamps.asp')
			oCMenu.makeMenu('sub504','sub50','News and Awards','http://womensalabamagolf.com/championships/senior/Srnews.asp')
			oCMenu.makeMenu('sub505','sub50','Entry Form','http://womensalabamagolf.com/championships/senior/entryform.asp')

	oCMenu.makeMenu('sub51','top5','Stroke Play','http://womensalabamagolf.com/championships/stroke_play/strokeplaymain.asp')
			oCMenu.makeMenu('sub510','sub51','Group & Starting Time','http://womensalabamagolf.com/realtime/Stroke_Play/StrokePairing08.asp')
			oCMenu.makeMenu('sub511','sub51','Scoreboard','http://womensalabamagolf.com/realtime/Stroke_Play/StrokeResults08.asp')
			oCMenu.makeMenu('sub512','sub51','Archives','http://womensalabamagolf.com/championships/stroke_play/SParchives.asp')
			oCMenu.makeMenu('sub513','sub51','Past Champions','http://womensalabamagolf.com/championships/stroke_play/SPchamps.asp')
			oCMenu.makeMenu('sub514','sub51','Entry Form','http://womensalabamagolf.com/championships/stroke_play/08spentry.asp')
	
	oCMenu.makeMenu('sub52','top5','Amateur','http://womensalabamagolf.com/championships/amateur/amateurmain.asp')
			oCMenu.makeMenu('sub520','sub52','Group & Starting Time','http://womensalabamagolf.com/realtime/amateur/amateurpairings.asp')
			oCMenu.makeMenu('sub521','sub52','Scoreboard','http://womensalabamagolf.com/realtime/amateur/amateurscoring.asp')
			oCMenu.makeMenu('sub522','sub52','Archives','http://womensalabamagolf.com/championships/amateur/Amarchives.asp')
			oCMenu.makeMenu('sub523','sub52','Past Champions','http://womensalabamagolf.com/championships/amateur/amateurhistory.asp')
	        oCMenu.makeMenu('sub524','sub52','Entry Form','http://womensalabamagolf.com/championships/amateur/08amateur.asp')
			oCMenu.makeMenu('sub525','sub52','Photo Gallery','http://womensalabamagolf.com/championships/amateur/photogallery.asp')
	
	oCMenu.makeMenu('sub53','top5','Four Ball','http://womensalabamagolf.com/championships/four_ball/fourballmain.asp')
	       oCMenu.makeMenu('sub529','sub53','Entry Form','http://womensalabamagolf.com/championships/four_ball/08statefourball.asp') 
		    oCMenu.makeMenu('sub530','sub53','Group & Starting Time','http://womensalabamagolf.com/realtime/four_ball/fourballpairings.asp')
			oCMenu.makeMenu('sub531','sub53','Scoreboard','http://womensalabamagolf.com/realtime/four_ball/fourballscoring.asp')
			oCMenu.makeMenu('sub532','sub53','Archives','http://womensalabamagolf.com/championships/four_ball/Fbarchives.asp')
			oCMenu.makeMenu('sub533','sub53','Photo Gallery','http://womensalabamagolf.com/championships/four_ball/photogallery.asp')
			
			//oCMenu.makeMenu('sub533','sub53','Past Champions','http://womensalabamagolf.com/championships/four_ball/Fbhistory.asp')	
	//oCMenu.makeMenu('sub51','top5','Links for Juniors','http://womensalabamagolf.com/linksforjrs.asp')

oCMenu.makeMenu('top6','','Jr Championship','http://womensalabamagolf.com/championships/junior/juniormain.asp')
	oCMenu.makeMenu('sub60','top6','History','http://womensalabamagolf.com/junior_golfers/Juniorgolfers.asp')	
	oCMenu.makeMenu('sub61','top6','Group & Starting Time','http://womensalabamagolf.com/realtime/junior/jrpairings.asp')
	oCMenu.makeMenu('sub62','top6','Scoreboard','http://womensalabamagolf.com/realtime/junior/jrscoring.asp')
	oCMenu.makeMenu('sub63','top6','Photo Gallery','http://womensalabamagolf.com/championships/junior/photogallery.asp')
	oCMenu.makeMenu('sub64','top6','Past Champions','http://womensalabamagolf.com/championships/junior/Jrchamps.asp')
	oCMenu.makeMenu('sub66','top6','Entry Form','http://womensalabamagolf.com/championships/junior/08entryform.asp')
	//oCMenu.makeMenu('sub410','sub41','Place holder','Place holder.pdf','',130,40)	

oCMenu.makeMenu('top7','','Scholarships','http://womensalabamagolf.com/scholarships/Scholarships.asp')
	oCMenu.makeMenu('sub70','top7','Scholarship Board','http://womensalabamagolf.com/scholarships/scholarshipboard.asp')
	oCMenu.makeMenu('sub71','top7','History','http://womensalabamagolf.com/scholarships/Scholarshiphistory.asp')	
	oCMenu.makeMenu('sub72','top7','Application','http://womensalabamagolf.com/scholarships/scholarshipapp.doc')
	oCMenu.makeMenu('sub73','top7','Recipients','http://womensalabamagolf.com/scholarships/scholarshiprecipients.asp')
	oCMenu.makeMenu('sub74','top7','Donations','http://womensalabamagolf.com/scholarships/scholarshipdonations.asp')	
	//oCMenu.makeMenu('sub51','top5','Links for Juniors','http://womensalabamagolf.com/linksforjrs.asp')
	
oCMenu.makeMenu('top8','','SWATCA','http://womensalabamagolf.com/Championships/SWATCA/history.asp')
	oCMenu.makeMenu('sub80','top8','History','http://womensalabamagolf.com/Championships/SWATCA/history.asp')
	oCMenu.makeMenu('sub81','top8','Participation','http://womensalabamagolf.com/Championships/SWATCA/participation.asp')	
	oCMenu.makeMenu('sub82','top8','Newsletter','http://womensalabamagolf.com/Championships/SWATCA/newsletter.asp')

oCMenu.makeMenu('top9','','Contact Us','http://womensalabamagolf.com/Contact.asp')
	//oCMenu.makeMenu('sub60','top6','Place holder','http://Place holder.asp','',190,0)
	//oCMenu.makeMenu('sub61','top6','Place holder','http://Place holder.org','',190,0)
	//oCMenu.makeMenu('sub62','top6','Place holder','http://Place holder.org','',190,0)
oCMenu.makeStyle(); oCMenu.construct()		
