/*** 
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

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=100
oCMenu.fromTop=99   
oCMenu.rows=1 
oCMenu.menuPlacement="center"
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=0 
//oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=1



//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=82
oCMenu.level[0].height=16 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=-1
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=14
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0                    
oCMenu.level[1].borderY=4
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetY=-20 
oCMenu.level[1].borderClass="clLevel1border"



/******************************************
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.htm','','111')

oCMenu.makeMenu('top1','','Home','/index.php','','46')


oCMenu.makeMenu('top2','','Contacts','/contacts/index.php','','60')
	oCMenu.makeMenu('sub20','top2','Contact us','/contacts/contact.php','','159')
	oCMenu.makeMenu('sub21','top2','Location','/contacts/location.php','','159')
	oCMenu.makeMenu('sub22','top2','Personnel','/contacts/personnel.php','','159')
	oCMenu.makeMenu('sub23','top2','Members','/contacts/members.php','','159')
	oCMenu.makeMenu('sub24','top2','What is the ALA?','/contacts/what.php','','159')
	oCMenu.makeMenu('sub25','top2','Links','/contacts/links.php','','159')
	
oCMenu.makeMenu('top3','','News','/news/index.php','','46')
	oCMenu.makeMenu('sub30','top3','Events','/news/events.php','','159')
	oCMenu.makeMenu('sub31','top3','Press articles','/news/press_articles.php','','159')
	oCMenu.makeMenu('sub32','top3','Legislation issues','/news/legislation_issues.php','','159')
	//oCMenu.makeMenu('sub33','top3','Contacts','/contacts/contact.php','','159')

oCMenu.makeMenu('top4','','Technical info','/tech/index.php','','90')
	oCMenu.makeMenu('sub40','top4','pH value and lime requirements','/tech/ph_value_and_lime_requirements.php','','189')
	oCMenu.makeMenu('sub41','top4','Crop requirements','/tech/crop_requirements.php','','189')
	oCMenu.makeMenu('sub42','top4','Natural liming materials','/tech/natural_liming_materials.php','','189')
	oCMenu.makeMenu('sub43','top4','Granular liming materials','/tech/granular_liming_materials.php','','189')
	oCMenu.makeMenu('sub44','top4','Products from industrial processes','/tech/products_from_industrial_processes.php','','189')
	oCMenu.makeMenu('sub45','top4','Lime effectiveness','/tech/lime_effectiveness.php','','189')
	oCMenu.makeMenu('sub46','top4','Agricultural liming','/tech/agricultural_liming.php','','189')
	oCMenu.makeMenu('sub47','top4','Fertiliser utilisation','/tech/fertiliser_utilisation.php','','189')
	oCMenu.makeMenu('sub48','top4','Lime is a fertiliser','/tech/lime_is_a_fertiliser.php','','189')
	oCMenu.makeMenu('sub49','top4','Liming for profit','/tech/liming_for_profit.php','','189')
	oCMenu.makeMenu('sub410','top4','Lime and upland catchment areas','/tech/lime_and_upland_catchment_areas.php','','189')
	oCMenu.makeMenu('sub411','top4','Soil structure','/tech/soil_structure.php','','189')
	oCMenu.makeMenu('sub412','top4','Stock wellbeing','/tech/stock_wellbeing.php','','189')
	oCMenu.makeMenu('sub413','top4','Agrochemical effectiveness','/tech/agrochemical_effectiveness.php','','189')
	oCMenu.makeMenu('sub414','top4','Liming in forestry','/tech/lime_in_forestry.php','','189')

oCMenu.makeMenu('top5','','Issues','/issues/index.php','','52')
	oCMenu.makeMenu('sub50','top5','FAQs','/issues/faqs.php','','229')
	oCMenu.makeMenu('sub51','top5','Fertiliser handbook','/issues/fertiliser_handbook.php','','229')
	oCMenu.makeMenu('sub52','top5','Fertiliser legislation UK','/issues/fertiliser_legislation_uk.php','','229')
	oCMenu.makeMenu('sub53','top5','Fertiliser legislation EU','/issues/fertiliser_legislation_eu.php','','229')
	oCMenu.makeMenu('sub54','top5','EU TC260 WG3','/issues/eu_tc260_wg3.php','','229')
	oCMenu.makeMenu('sub55','top5','Soils policy EU & UK','/issues/soils_policy_eu_and_uk.php','','229')
	
oCMenu.makeMenu('top6','','Library','/library/index.php','','51')

oCMenu.makeMenu('top7','','Lime producers','/suppliers/index.php','','100')
	oCMenu.makeMenu('sub71','top7','England - North','/suppliers/england_north.php','','159')
	oCMenu.makeMenu('sub72','top7','England - Midlands','/suppliers/england_midlands.php','','159')
	oCMenu.makeMenu('sub73','top7','England - East Anglia','/suppliers/england_east_anglia.php','','159')
	oCMenu.makeMenu('sub74','top7','England - South East','/suppliers/england_south_east.php','','159')
	oCMenu.makeMenu('sub75','top7','England - South West','/suppliers/england_south_west.php','','159')
	oCMenu.makeMenu('sub76','top7','Scotland','/suppliers/scotland.php','','159')
	oCMenu.makeMenu('sub77','top7','Wales','/suppliers/wales.php','','159')

oCMenu.makeMenu('top8','','Lime calculator','/lime_calculator.php','','98')


//Leave this line - it constructs the menu
oCMenu.construct()	
