function findPosX(obj){var curleft = 0;
if(obj.offsetParent) while(1){curleft += obj.offsetLeft;
if(!obj.offsetParent)break;obj = obj.offsetParent;}else if(obj.x)curleft += obj.x;return curleft;}
//var posx = findPosX(document.getElementById("xxx"));

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames=0

//Menu properties
oCMenu.pxBetween=8
oCMenu.fromLeft=135
oCMenu.fromTop=85
oCMenu.rows=0
oCMenu.menuPlacement="0"

oCMenu.offlineRoot="/"
oCMenu.onlineRoot="http://www.edarural.com/"
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
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 specified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=80
oCMenu.level[0].height=18
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=1
oCMenu.level[0].offsetY=5
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="right"

//dynamic effect (controllable for each level)
oCMenu.level[0].clippx=2
oCMenu.level[0].cliptim=2
//special animation filters (IE5.5+ only, controllable for each level)
oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"

//Other special animation filters (IE5.5+ only, controllable for each level)
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Wheel(duration=0.5,spokes=5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Barn(duration=0.5,orientation=horizontal)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Blinds(duration=0.5,bands=5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.CheckerBoard(duration=0.5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=0.5,wipeStyle=0)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Iris(duration=0.5,irisStyle=STAR)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Iris(duration=0.5,irisStyle=CIRCLE)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Pixelate(duration=0.5,maxSquare=40)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Wheel(duration=0.5,spokes=5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Spiral(duration=0.5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Stretch(duration=0.5,stretchStyle=push)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Strips(duration=0.5,motion=rightdown)"


//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-4
oCMenu.level[1].height=18
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].align="right"
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
//dynamic effect
oCMenu.level[1].clippx=2
oCMenu.level[1].cliptim=2
//special animation filters
oCMenu.level[1].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify 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=18
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','','About Us','organisation.html','')
		oCMenu.makesubMenu('sub01','top0','Organisation','/organisation.html','',140,0)
		oCMenu.makesubMenu('sub02','top0','Clients','pclients.htm','',140,0)
		/*oCMenu.makesubMenu('sub04','top0','Countries & Regions','countries.html','',140,0)*/
		oCMenu.makesubMenu('sub03','top0','Group Companies','groupcompanies.html','',140,0)


oCMenu.makeMenu('top1','','Services','research_impact_assessment.html')
	oCMenu.makesubMenu('sub10','top1','Research & Social Assessment','research_impact_assessment.html','',200,0)
			oCMenu.makesubMenu('sub101','sub10','Select work','projects_research_impact_assessment.html','')
			oCMenu.makesubMenu('sub102','sub10','Publications','publication.html','')
			oCMenu.makesubMenu('sub103','sub10','New Social Rating','Social-Rating.html','')

	oCMenu.makesubMenu('sub11','top1','Training & Capacity Building','training_capacity_building.html','',200,0)
			oCMenu.makesubMenu('sub111','sub11','Microfinance Courses','training_capacity_building_microfinance.html','',220,0)
			oCMenu.makesubMenu('sub112','sub11','Micro-enterprise Courses','training_capacity_building_microenterprise.html','',220,0)
			oCMenu.makesubMenu('sub113','sub11','Training of Trainers','training_capacity_building_training.html#1','',220,0)
			oCMenu.makesubMenu('sub114','sub11','Capacity Building Needs Assessment','training_capacity_building_training.html#2','',220,0)
			oCMenu.makesubMenu('sub115','sub11','Course Methodologies','training_capacity_building_training.html#3','',220,0)
			oCMenu.makesubMenu('sub116','sub11','Modes of Offering','training_capacity_building_training.html#4','',220,0)
			oCMenu.makesubMenu('sub117','sub11','Affiliations','training_capacity_building_training.html#5','',220,0)
			oCMenu.makesubMenu('sub118','sub11','New Efforts','training_capacity_building_training.html#6','',220,0)
			oCMenu.makesubMenu('sub119','sub11','Select Clients','training_capacity_building_training.html#7','',220,0)
			oCMenu.makesubMenu('sub120','sub11','Countries','training_capacity_building_training.html#8','',220,0)
			oCMenu.makesubMenu('sub121','sub11','Select Work','projects_training_capacity_building.html','',220,0)
					oCMenu.makesubMenu('sub321','sub121','Microfinance Training Work','projects_training_capacity_building.html#1','',150,0)
					oCMenu.makesubMenu('sub322','sub121','Micro-enterprise Training Work','projects_training_capacity_building.html#2','',150,0)
					oCMenu.makesubMenu('sub323','sub121','Training of Trainers work','projects_training_capacity_building.html#3','',150,0)



	oCMenu.makeMenu('sub13','top1','Enterprise Promotion & BDS','enterprise_promotion_bds.html','',200,0)
			oCMenu.makesubMenu('sub131','sub13','Implementation of Enterprise Programmes','projects_enterprise_promotion_bds.html','',250,0)
			oCMenu.makesubMenu('sub132','sub13','Management Support & Advisory Services','projects_enterprise_promotion_bds.html','',250,0)
			oCMenu.makesubMenu('sub133','sub13','Enterprise & Livelihood Research','projects_enterprise_promotion_bds.html','',250,0)


oCMenu.makeMenu('top2','','Our Work','ourwork.html')
		oCMenu.makesubMenu('sub21','top2','Research & Social Assessment','projects_research_impact_assessment.html','',200,0)
		oCMenu.makesubMenu('sub22','top2','Training & Capacity Building','projects_training_capacity_building.html','',200,0)
		oCMenu.makesubMenu('sub23','top2','Enterprise Promotion & BDS','projects_enterprise_promotion_bds.html','',200,0)

oCMenu.makeMenu('top3','','Publications','publication.html','')

oCMenu.makeMenu('top4','','Careers','careers.html','')

//Leave this line - it constructs the menu
oCMenu.construct()

