/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=30
oCMenu.fromLeft=20 
oCMenu.fromTop=0   
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
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="750"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=0
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=110
oCMenu.level[0].height=25 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
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-2
oCMenu.level[1].height=22
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
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('top0','','Home','http://www.esrta.coop/index.html','')

oCMenu.makeMenu('top1','','About','','')
	oCMenu.makeMenu('sub10','top1','History','http://www.esrta.coop/history/index.html')
	
oCMenu.makeMenu('top2','','Telephone','http://www.esrta.coop/telephone/index.html')
	oCMenu.makeMenu('sub20','top2','Phone Service','http://www.esrta.coop/telephone/index.html')
	oCMenu.makeMenu('sub21','top2','Additional Services','http://www.esrta.coop/telephone/index.html')
		oCMenu.makeMenu('sub201','sub21','Long Speed Calling','http://www.esrta.coop/telephone/long_speed_calling.html','',160,0)
		oCMenu.makeMenu('sub202','sub21','Short Speed Calling','http://www.esrta.coop/telephone/short_speed_calling.html','',160,0)
		oCMenu.makeMenu('sub203','sub21','Call Forwarding','http://www.esrta.coop/telephone/call_forwarding.html','',160,0)
		oCMenu.makeMenu('sub204','sub21','Call Forward Remote Access','http://www.esrta.coop/telephone/call_forward_remote_access.html','',160,0)
		oCMenu.makeMenu('sub205','sub21','Call Forward Busy','http://www.esrta.coop/telephone/call_forward_busy.html','',160,0)
		oCMenu.makeMenu('sub206','sub21','Call Forward Dont Answer','http://www.esrta.coop/telephone/call_forward_dont_answer.html','',160,0)
		oCMenu.makeMenu('sub207','sub21','Call Waiting','http://www.esrta.coop/telephone/call_waiting.html','',160,0)
		oCMenu.makeMenu('sub208','sub21','Cancel Call Waiting','http://www.esrta.coop/telephone/cancel_call_waiting.html','',160,0)
		oCMenu.makeMenu('sub209','sub21','Teen Service','http://www.esrta.coop/telephone/teen_service.html','',160,0)
		oCMenu.makeMenu('sub210','sub21','Three Way Calling','http://www.esrta.coop/telephone/three_way_calling.html','',160,0)
		oCMenu.makeMenu('sub211','sub21','Toll Restriction','http://www.esrta.coop/telephone/toll_restriction.html','',160,0)
		oCMenu.makeMenu('sub212','sub21','Caller ID Plus Name','http://www.esrta.coop/telephone/caller_identification.html','',160,0)
		oCMenu.makeMenu('sub213','sub21','Caller ID Block','http://www.esrta.coop/telephone/caller_identification_block.html','',160,0)
		oCMenu.makeMenu('sub214','sub21','Customer Originated Trace','http://www.esrta.coop/esrta/telephone/customer_originiated_trace.html','',160,0)
		oCMenu.makeMenu('sub215','sub21','Automatic Recall','http://www.esrta.coop/telephone/automatic_recall.html','',160,0)
		oCMenu.makeMenu('sub216','sub21','Call Answering','http://www.esrta.coop/telephone/call_answering.html','',160,0)
		oCMenu.makeMenu('sub217','sub21','Anonymous Call Rejection','http://www.esrta.coop/telephone/anonymous_call_rejection.html','',160,0)
		oCMenu.makeMenu('sub218','sub21','Warm Line','http://www.esrta.coop/telephone/warm_line.html','',160,0)
			
	
oCMenu.makeMenu('top3','','Internet','http://www.esrta.com')
	oCMenu.makeMenu('sub31','top3','DSL','http://www.esrta.coop/dsl/index.html')
	oCMenu.makeMenu('sub32','top3','Dial-Up','http://www.esrta.coop/dialup/index.html')
	oCMenu.makeMenu('sub33','top3','Downloads','http://www.esrta.coop/downloads/index.html')
		oCMenu.makeMenu('sub301','sub33','Client Tools','http://www.esrta.coop/downloads/clienttools.exe','',160,0)
	oCMenu.makeMenu('sub34','top3','Speed Test','http://speedtest.esrta.com','',160,0)
	oCMenu.makeMenu('sub35','top3','Web Mail','http://webmail.esrta.com')

oCMenu.makeMenu('top4','','Links','')
	oCMenu.makeMenu('sub40','top4','Ag Links','')
		oCMenu.makeMenu('sub401','sub40','Ag Journal','http://www.agjournalonline.com','',160,0)
		oCMenu.makeMenu('sub402','sub40','Chicago Board of Trade','http://www.cbot.com/','',160,0)
		oCMenu.makeMenu('sub403','sub40','Kansas City Board of Trade','http://www.kcbot.com/','',160,0)
		oCMenu.makeMenu('sub404','sub40','High Plains Journal','http://www.hpj.com/','',160,0)
	oCMenu.makeMenu('sub41','top4','Weather','')
		oCMenu.makeMenu('sub411','sub41','Arriba','http://www.wunderground.com/cgi-bin/findweather/getForecast?query=ARRIBA+CO','',160,0)
		oCMenu.makeMenu('sub412','sub41','Genoa','http://www.wunderground.com/cgi-bin/findweather/getForecast?query=GENOA+CO','',160,0)
		oCMenu.makeMenu('sub413','sub41','Kit Carson','http://www.wunderground.com/cgi-bin/findweather/getForecast?query=KIT+CARSON+CO','',160,0)
		oCMenu.makeMenu('sub414','sub41','Bennett','http://www.wunderground.com/cgi-bin/findweather/getForecast?query=BENNETT+CO','',160,0)
		oCMenu.makeMenu('sub415','sub41','Haswell','http://www.wunderground.com/cgi-bin/findweather/getForecast?query=HASWELL+CO','',160,0)
		oCMenu.makeMenu('sub416','sub41','Woodrow','http://www.wunderground.com/cgi-bin/findweather/getForecast?query=WOODROW+CO','',160,0)
		oCMenu.makeMenu('sub417','sub41','Eads','http://www.wunderground.com/cgi-bin/findweather/getForecast?query=EADS+CO','',160,0)
		oCMenu.makeMenu('sub418','sub41','Hugo','http://www.wunderground.com/cgi-bin/findweather/getForecast?query=80821','',160,0)
		oCMenu.makeMenu('sub419','sub41','Flagler','http://www.wunderground.com/cgi-bin/findweather/getForecast?query=FLAGLER+CO','',160,0)
		oCMenu.makeMenu('sub420','sub41','Karval','http://www.wunderground.com/cgi-bin/findweather/getForecast?query=KARVAL+CO','',160,0)
	oCMenu.makeMenu('sub42','top4','Schools','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
		oCMenu.makeMenu('sub421','sub42','Arriba-Flagler','http://arriba-flaglercsd20.net/','',160,0)
		oCMenu.makeMenu('sub422','sub42','Genoa-Hugo','http://genoa.dreamteamtech.com/','',160,0)
		oCMenu.makeMenu('sub423','sub42','Kit Carson','http://www.kcsdr1.org/','',160,0)
		oCMenu.makeMenu('sub424','sub42','Bennett','http://www.bennett29j.k12.co.us/','',160,0)
		oCMenu.makeMenu('sub425','sub42','Woodlin','http://woodlinschool.com/','',160,0)
		oCMenu.makeMenu('sub426','sub42','Eads','http://eadseagles.com/','',160,0)
		oCMenu.makeMenu('sub427','sub42','Karval','http://www.karvalschool.org/','',160,0)
	oCMenu.makeMenu('sub43','top4','Search','')
		oCMenu.makeMenu('sub431','sub43','Google','http://www.google.com','',160,0)
		oCMenu.makeMenu('sub432','sub43','Yahoo','http://www.yahoo.com','',160,0)
		oCMenu.makeMenu('sub433','sub43','MSN','http://www.msn.com','',160,0)

/***LEAVE THIS FOR USING AS AN EXAMPLE TO CREATE MORE SUBMENUS.  REMEMBER TO CHANGE THE NUMBERING ACCORDINGLY.
oCMenu.makeMenu('top5','','&nbsp;CoolMenus','mailto:test.html')
	oCMenu.makeMenu('sub50','top5','Examples','/coolmenus/examples.asp')
		oCMenu.makeMenu('sub500','sub50','With frames','/coolmenus/examples.asp?show=with')
		oCMenu.makeMenu('sub501','sub50','Without frames','/coolmenus/examples.asp?show=without')
	oCMenu.makeMenu('sub51','top5','Download','/coolmenus/download.asp')
		oCMenu.makeMenu('sub510','sub51','Download the source code to this menu','/coolmenus/download.asp','',150,40)
	oCMenu.makeMenu('sub52','top5','Tutorial','/coolmenus/tutorial.asp')
		oCMenu.makeMenu('sub520','sub52','Learn how to set up the menu','/coolmenus/tutorial.asp','',150,40)
	oCMenu.makeMenu('sub53','top5','MenuMaker','','',0,0,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
		oCMenu.makeMenu('sub530','sub53','Use the menuMaker to make the menu code for you','','',150,40,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
	oCMenu.makeMenu('sub54','top5','FAQ','/coolmenus/faq.asp')
		oCMenu.makeMenu('sub540','sub54','Frequently asked questions','coolmenus/faq.asp','',150,40)
	oCMenu.makeMenu('sub55','top5','Help forum','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
		oCMenu.makeMenu('sub550','sub55','Go to this forum and post you problems or suggestions regarding the CoolMenus','/forum/forum.asp?forum_id=2','',150,40)
**/
//Leave this line - it constructs the menu
oCMenu.construct()		

