/*** 
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=7
oCMenu.fromLeft=10 
oCMenu.fromTop=165
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot=""



/*** Edit this line when changing directories**/
//oCMenu.onlineRoot="/illinoiswind/" //DEV
oCMenu.onlineRoot="/" //LIVE
/***End edit**/


oCMenu.resizeCheck=1 
oCMenu.wait=100
oCMenu.fillImg="/images/cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="760"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=165
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=100
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].width=100
oCMenu.level[1].height=25
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+40
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=100
oCMenu.level[2].height=23
oCMenu.level[2].offsetX=-(oCMenu.level[0].width-2)/2+40
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','index.asp','',35,'','')

oCMenu.makeMenu('top1','','About Us','about/index.asp','',55)
		

oCMenu.makeMenu('top2','','Wind Monitoring Program','program/index.asp','',150)
	oCMenu.makeMenu('sub03','top2','About the Program','program/index.asp','',150,25)
	oCMenu.makeMenu('sub04','top2','Met Tower Application','program/application.asp','',150,25)
	oCMenu.makeMenu('sub99','top2','Wind Data','http://www.illinoiswind.org/windData/','',150,25)
	
  
oCMenu.makeMenu('top3','','Resource Maps','','',95)
	oCMenu.makeMenu('sub333_1','top3','Wind Maps','windData/maps.asp','',150,25)
	oCMenu.makeMenu('sub333_2','top3','Other Resource Maps','resources/maps.asp','',150,25)
	oCMenu.makeMenu('sub333_3','top3','Wind Site Selection Tool','http://www.illinoissiteselectiontool.org/windsiteselection/','',150,25)


oCMenu.makeMenu('top4','','Online Resources','','',103)
	oCMenu.makeMenu('sub07','top4','Wind Data','http://www.illinoiswind.org/windData/','',100,25)
	oCMenu.makeMenu('sub08','top4','Easements','resources/easements.asp','',100,25)
	oCMenu.makeMenu('sub09','top4','Zoning','resources/zoning.asp','',100,25)
	
	/*oCMenu.makeMenu('sub13','top4','Small Turbine Projects','resources/small/index.asp','',100,30)
		oCMenu.makeMenu('sub13_1','sub13','Overview','resources/small/index.asp','',150,30)
		oCMenu.makeMenu('sub13_2','sub13','Can a Small Wind Turbine be Economical in Illinois?','resources/small/faq01.asp','',150,30)
		oCMenu.makeMenu('sub13_3','sub13','How Do I Plan a Small Turbine Project?','resources/small/faq02.asp','',150,30)
		oCMenu.makeMenu('sub13_4','sub13','What is Net Metering? ','resources/small/faq03.asp','',150,30)
		oCMenu.makeMenu('sub13_5','sub13','Are There Funding Resources Available?','resources/small/faq04.asp','',150,30)
		oCMenu.makeMenu('sub13_6','sub13','Opportunities in Illinois ','resources/small/faq05.asp','',150,30)
		oCMenu.makeMenu('sub13_7','sub13','Federal Incentives ','resources/small/faq06.asp','',150,30)
		oCMenu.makeMenu('sub13_8','sub13','Find Your Average Wind Speed','resources/small/faq07.asp','',150,30)
		oCMenu.makeMenu('sub13_9','sub13','Small Wind Sales, Manufacturers &amp; Installation ','resources/small/faq08.asp','',150,30)
		oCMenu.makeMenu('sub13_10','sub13','Small Wind Turbine Resources ','resources/small/resources.asp','',150,30)*/
		
		
		
	oCMenu.makeMenu('sub14','top4','Large Turbine Projects','resources/large/index.asp','',100,30)
		oCMenu.makeMenu('sub14_0','sub14','Overview','resources/large/index.asp','',150,30)
		oCMenu.makeMenu('sub14_1','sub14','What do Large Wind Turbines Need?','resources/large/faq01.asp','',150,30)
		oCMenu.makeMenu('sub14_2','sub14','Siting and Permitting Tasks ','resources/large/faq02.asp','',150,30)
		oCMenu.makeMenu('sub14_3','sub14','Technology ','resources/large/faq03.asp','',150,30)
		oCMenu.makeMenu('sub14_4','sub14','What is Interconnection and Transmission?','resources/large/faq04.asp','',150,30)
		oCMenu.makeMenu('sub14_5','sub14','Project Costs and Financing ','resources/large/faq05.asp','',150,30)
		oCMenu.makeMenu('sub14_6','sub14','How much will my Operation Costs be? ','resources/large/faq06.asp','',150,30)
		oCMenu.makeMenu('sub14_7','sub14','How do you Finance Large Wind Projects? ','resources/large/faq07.asp','',150,30)
		oCMenu.makeMenu('sub14_8','sub14','Large Wind Turbine Distributors ','resources/large/faq08.asp','',150,30)
		oCMenu.makeMenu('sub14_9','sub14','Regional Wind Developers ','resources/large/faq09.asp','',150,30)
			
		
	oCMenu.makeMenu('sub15','top4','Financing','resources/financing.asp','',100,25)
	oCMenu.makeMenu('sub16x','top4','Industry Activity','resources/activity.asp','',100,25)
	oCMenu.makeMenu('sub17x','top4','Met Tower Companies','resources/installers.asp','',100,35)
	oCMenu.makeMenu('sub18x','top4','Environmental','resources/environmental.asp','',100,25)
	oCMenu.makeMenu('sub19x','top4','Rural Electrics','resources/video.asp','',100,25)
		
	
oCMenu.makeMenu('top5','','Publications','publications/index.asp','',72)

oCMenu.makeMenu('top6','','Small Wind Turbines','resources/small/index.asp','',120,30)
		oCMenu.makeMenu('sub6_1','top6','Overview','resources/small/index.asp','',150,30)
		oCMenu.makeMenu('sub6_2','top6','Can a Small Wind Turbine be Economical in Illinois?','resources/small/faq01.asp','',150,30)
		oCMenu.makeMenu('sub6_3','top6','How Do I Plan a Small Turbine Project?','resources/small/faq02.asp','',150,30)
		oCMenu.makeMenu('sub6_4','top6','What is Net Metering? ','resources/small/faq03.asp','',150,30)
		oCMenu.makeMenu('sub6_5','top6','Are There Funding Resources Available?','resources/small/faq04.asp','',150,30)
		oCMenu.makeMenu('sub6_6','top6','Opportunities in Illinois ','resources/small/faq05.asp','',150,30)
		oCMenu.makeMenu('sub6_7','top6','Federal Incentives ','resources/small/faq06.asp','',150,30)
		oCMenu.makeMenu('sub6_8','top6','Find Your Average Wind Speed','resources/small/faq07.asp','',150,30)
		oCMenu.makeMenu('sub6_9','top6','Small Wind Sales, Manufacturers &amp; Installation ','resources/small/faq08.asp','',150,45)
		oCMenu.makeMenu('sub6_10','top6','Publications ','publications/index.asp','',150,30)
		oCMenu.makeMenu('sub6_11','top6','Resources ','resources/small/resources.asp','',150,30)
	
oCMenu.makeMenu('top7','','Links','links/index.asp','',32)
	oCMenu.makeMenu('sub7_1','top7','Wind and Your Community','links/index.asp#community','',180,30)
	oCMenu.makeMenu('sub7_2','top7','Organizations &amp; Government Agencies','links/index.asp#orgs','',180,30)
	oCMenu.makeMenu('sub7_4','top7','Wind Energy News','links/index.asp#news','',180,30)
	oCMenu.makeMenu('sub7_5','top7','Small Wind','links/index.asp#small','',180,30)
	
		
//Leave this line - it constructs the menu
oCMenu.construct()	