<!--
function findPos(){
  if(bw.ns4){   //Netscape 4
    x = document.layers.layerMenu.pageX
    y = document.layers.layerMenu.pageY
  }else{ //other browsers
    x=0; y=0; var el,temp
    el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");
    if(el.offsetParent){
      temp = el
      while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
        temp=temp.offsetParent; 
        x+=temp.offsetLeft
        y+=temp.offsetTop;
      }
    }
    x+=el.offsetLeft
    y+=el.offsetTop
  }
  //Returning the x and y as an array
  return [x,y]
}

pos = findPos()

var oM=new makeCM("oM")
oM.pxBetween =0
oM.menuPlacement=0
oM.wait=600
oM.fillImg="images/global/spacer.gif"
oM.zIndex=0
oM.resizeCheck=1

oM.fromLeft=pos[0]
oM.fromTop=pos[1]
oM.onresize="pos = findPos(); oM.fromLeft=pos[0]; oM.fromTop=pos[1]"

if(window.location.href.indexOf('hkenergy.com.hk') == -1)
{
	oM.onlineRoot="/hke/eng/"
}
else
{
	oM.onlineRoot="/eng/"
}

oM.offlineRoot=""

oM.rows=1

//Level properties
//Syntax for fast creation (advanced users only)
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)

oM.level[0]=new cm_makeLevel()
oM.level[0].width=null
oM.level[0].height=35
oM.level[0].borderX=0
oM.level[0].borderY=0
oM.level[0].borderClass="mainMenu" 
oM.level[0].offsetX=0
oM.level[0].offsetY=1

oM.level[1]=new cm_makeLevel()
oM.level[1].width=215
oM.level[1].height=24
oM.level[1].regClass="subMenuReg" 
oM.level[1].overClass="subMenuOver" 
oM.level[1].arrow="images/nav/arrow_off.gif"
oM.level[1].arrowWidth=14
oM.level[1].arrowHeight=7
oM.level[1].offsetX=0
oM.level[1].offsetY=0

oM.level[2]=new cm_makeLevel()
oM.level[2].width=209
oM.level[2].height=22
oM.level[2].regClass="subSubMenuReg" 
oM.level[2].overClass="subSubMenuOver"

/******************************************
Menu item creation:
.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout, imageAltTag) 
*************************************/
oM.makeMenu('left_margin','','','','',33,'','','','','','','',1,'','','','')

oM.makeMenu('home','','','global/home.php','',66,'','images/nav/home_off.gif','images/nav/home_on.gif','','','bottom','','','','','swapIM_onmouseout("home")','Home')

oM.makeMenu('abouthke','','','abouthke/profile.php','',90,'','images/nav/abouthke_off.gif','images/nav/abouthke_on.gif','','','bottom','','','','','swapIM_onmouseout("abouthke")','About HKE')
	oM.makeMenu('profile','abouthke','Company Profile','abouthke/profile.php')
	oM.makeMenu('directors','abouthke','Directors and Management Executives','abouthke/directors.php')
	oM.makeMenu('governance','abouthke','Corporate Governance','abouthke/governance.php')

oM.makeMenu('business','','','business/windprojects.php','',203,'','images/nav/business_off.gif','images/nav/business_on.gif','','','bottom','','','','','swapIM_onmouseout("business")','Alternative Energy Business')
	/*oM.makeMenu('energy','business','Policies Supporting Alternative Energy','business/energy.php','',225)*/
	//oM.makeMenu('marketinfo','business','The Market for Alternative Energy<BR>in China','business/marketinfo.php','',225,38,'','','','','right')
	oM.makeMenu('windprojects','business','Wind Power Projects','business/windprojects.php','',225,'','','','','','right')
	/*oM.makeMenu('windprojects','business','Wind Power Projects','business/hkcwind.php?third=mudanjiang','',225,'','','','','','right')
	oM.makeMenu('hkcprojects','business','Projects owned by HKC','business/hkcwind.php?third=mudanjiang','',225,'','','','','','right')
		oM.makeMenu('topline1','hkcprojects','','','',150,1,'','','subSubMenuLine','','','',1)
		oM.makeMenu('hkcwind','hkcprojects','Wind Power Projects','business/hkcwind.php?third=mudanjiang','',150,'','','','subSubMenuReg1','subSubMenuOver1')
		oM.makeMenu('mudanjiang','hkcprojects','- Mudanjiang, Heilongjiang Province','business/mudanjiang.php','',255)
		oM.makeMenu('siziwang1','hkcprojects','- Siziwang, Inner Mongolia Province (Phrase 1)','business/siziwang1.php','',255)
		oM.makeMenu('danjinghe','hkcprojects','- Danjinghe, Hebei Province','business/danjinghe.php','',255)
		oM.makeMenu('changma1','hkcprojects','- Changma, Gansu Province (Phrase 1)','business/changma1.php','',255)
		oM.makeMenu('hkcwaste','hkcprojects','Waste-to-Energy Projects','business/hkcwaste.php?third=linyi','',150)
		oM.makeMenu('linyi','hkcprojects','- Linyi, Shandong Province','business/linyi.php','',255)
		oM.makeMenu('hkcbiofuel','hkcprojects','Biofuel Projects','business/hkcbiofuel.php?third=chongqing','',150)
		oM.makeMenu('chongqing','hkcprojects','- Chongqing Ethanol Plant','business/chongqing.php','',255)
		oM.makeMenu('bottomline1','hkcprojects','','','',150,1,'','','subSubMenuLine','','','',1)
*/
	oM.makeMenu('wasteprojects','business','Waste-to-Energy Projects','business/hkcwaste.php?third=linyi','',225,'','','','','','right')
	/*oM.makeMenu('hkeprojects','business','Projects owned by HKE','business/hkewind.php?third=siziwang2','',225,'','','','','','right')
		oM.makeMenu('topline2','hkeprojects','','','',150,1,'','','subSubMenuLine','','','',1)
		oM.makeMenu('hkewind','hkeprojects','Wind Power Projects','business/hkewind.php?third=siziwang2','',150,'','','','subSubMenuReg1','subSubMenuOver1')
		oM.makeMenu('siziwang2','hkeprojects','- Siziwang, Inner Mongolia Province (Phrase 2)','business/siziwang2.php','',255)
		oM.makeMenu('lunaobao','hkeprojects','- Lunaobao Hebei Province','business/lunaobao.php','',255)
		oM.makeMenu('changma2','hkeprojects','- Changma, Gansu Province (Phrase 2)','business/changma2.php','',255)
		oM.makeMenu('hkebiofuel','hkeprojects','Biofuel Projects','business/hkebiofuel.php?third=jiangmen','',150)
		oM.makeMenu('jiangmen','hkeprojects','- Jiangmen Cellulosic Ethanol Pilot Plant','business/jiangmen.php','',255)
		oM.makeMenu('bottomline2','hkeprojects','','','',150,1,'','','subSubMenuLine','','','',1)
*/
	//oM.makeMenu('cecic','business','China Energy Conservation and Investment Corporation','business/cecic.php','',225,38,'','','','','right')


oM.makeMenu('ir','','','ir/chairman.php','',144,'','images/nav/ir_off.gif','images/nav/ir_on.gif','','','bottom','','','','','swapIM_onmouseout("ir")','Investor Relations')
	oM.makeMenu('chairman','ir','Chairman\'s Statement','ir/chairman.php','',175)
	oM.makeMenu('reports','ir','Financial Reports','ir/reports.php','',175)
	oM.makeMenu('announcements','ir','Announcements and Notices','ir/announcements.php','',175)
	oM.makeMenu('circulars','ir','Circulars','ir/circulars.php','',175)
	oM.makeMenu('info','ir','Corporate Information','ir/info.php','',175)

oM.makeMenu('media','','','media/press.php','',110,'','images/nav/media_off.gif','images/nav/media_on.gif','','','bottom','','','','','swapIM_onmouseout("media")','Media Centre')
	oM.makeMenu('press','media','Press Releases','media/press.php','',130)

oM.makeMenu('contactus','','','global/contactus.php','',89,'','images/nav/contactus_off.gif','images/nav/contactus_on.gif','','','bottom','','','','','swapIM_onmouseout("contactus")','Contact Us')

oM.makeMenu('right_margin','','','','',35,'','','','','','','',1,'','','','')

oM.construct()
//-->