<!--
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]
}

var nowRoot = window.location.href;
var menuRoot;

if (nowRoot.indexOf("www.qxpaper.com") == -1) {
	menuRoot = "/qxpaper/eng/";
} else {
	menuRoot = "/eng/";
}

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]"
oM.onload="pos = findPos(); oM.fromLeft=pos[0]; oM.fromTop=pos[1]"

oM.onlineRoot=menuRoot
oM.offlineRoot=""

oM.rows=1

//Netscape 4 and Opera form work-around
if(bw.ns4 || bw.op5 || bw.op6){
  oCMenu.onshow="document.layers?document.layers.pulldownLayer.visibility='hidden':document.getElementById('pulldownDiv').style.visibility='hidden';"
  oCMenu.onhide="document.layers?document.layers.pulldownLayer.visibility='visible':document.getElementById('pulldownDiv').style.visibility='visible';"
}

//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=33
oM.level[0].borderX=0
oM.level[0].borderY=0
oM.level[0].borderClass="mainMenu"
oM.level[0].offsetX=0
oM.level[0].offsetY=0

oM.level[1]=new cm_makeLevel()
oM.level[1].width=null
oM.level[1].height=26
oM.level[1].regClass="subMenuReg" 
oM.level[1].overClass="subMenuOver"
oM.level[1].borderClass="subMenuBorder"

about_width = 222;
business_width = 185;
ir_width = 190;

/******************************************
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('space1','','','','',15,5,'images/global/spacer.gif','','','','','','1','','','','')

oM.makeMenu('home','','','global/home.php','',63,'','images/nav/home_off.gif','images/nav/home_on.gif','','','','','','','','swapIM_onmouseout("home")','Home')

oM.makeMenu('about','','','about/profile.htm','',128,'','images/nav/about_off.gif','images/nav/about_on.gif','','',"bottom",'','','','','swapIM_onmouseout("about")','About QX Paper')
	oM.makeMenu('profile','about','Corporate Profile','about/profile.htm','',about_width)
	oM.makeMenu('space1a','about','','','',about_width,1,'images/nav/about_separatorline.gif','','','','','','1','','','','')
	//oM.makeMenu('chairman','about','Chairman\'s Statement','about/chairman.htm','',about_width)
	//oM.makeMenu('space1b','about','','','',about_width,1,'images/nav/about_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('structure','about','Corporate Structure','about/structure.htm','',about_width)
	oM.makeMenu('space1c','about','','','',about_width,1,'images/nav/about_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('directors','about','Directors and Senior Management','about/directors.htm','',about_width)
	oM.makeMenu('space1d','about','','','',about_width,1,'images/nav/about_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('governance','about','Corporate Governance','about/governance.htm','',about_width)
	oM.makeMenu('space1bottom','about','','','',about_width,5,'images/nav/sub_bottom.gif','','','','','','1','','','','')

oM.makeMenu('business','','','business/overview.htm','',112,'','images/nav/business_off.gif','images/nav/business_on.gif','','',"bottom",'','','','','swapIM_onmouseout("business")','Our Business')
	oM.makeMenu('overview','business','Overview','business/overview.htm','',business_width)
	oM.makeMenu('space2a','business','','','',business_width,1,'images/nav/business_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('products','business','Products','business/products.htm','',business_width)
	oM.makeMenu('space2b','business','','','',business_width,1,'images/nav/business_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('facilities','business','Production Facilities','business/facilities.htm','',business_width)
	oM.makeMenu('space2c','business','','','',business_width,1,'images/nav/business_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('qc','business','Quality Control','business/qc.htm','',business_width)
	oM.makeMenu('space2d','business','','','',business_width,1,'images/nav/business_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('en','business','Environmental Protection','business/environmental.htm','',business_width)
	oM.makeMenu('space2e','business','','','',business_width,1,'images/nav/business_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('rnd','business','Research and Development','business/rnd.htm','',business_width)
	oM.makeMenu('space2bottom','business','','','',business_width,5,'images/nav/sub_bottom.gif','','','','','','1','','','','')

oM.makeMenu('ir','','','ir/corpinfo.htm','',151,'','images/nav/ir_off.gif','images/nav/ir_on.gif','','',"bottom",'','','','','swapIM_onmouseout("ir")','Investor Relations')
	oM.makeMenu('corpinfo','ir','Corporate Information','ir/corpinfo.htm','',ir_width)
	oM.makeMenu('space3a','ir','','','',ir_width,1,'images/nav/ir_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('reports','ir','Financial Reports','ir/reports.php','',ir_width)
	oM.makeMenu('space3b','ir','','','',ir_width,1,'images/nav/ir_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('announcements','ir','Announcements and Notices','ir/announcements.php','',ir_width)
	oM.makeMenu('space3c','ir','','','',ir_width,1,'images/nav/ir_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('circulars','ir','Circulars','ir/circulars.php','',ir_width)
	oM.makeMenu('space3d','ir','','','',ir_width,1,'images/nav/ir_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('presentations','ir','Company Presentations','ir/presentations.htm','',ir_width)
	oM.makeMenu('space4d','ir','','','',ir_width,1,'images/nav/ir_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('prospectus','ir','Prospectus','ir/prospectus.htm','',ir_width)
	oM.makeMenu('space5d','ir','','','',ir_width,1,'images/nav/ir_separatorline.gif','','','','','','1','','','','')
	oM.makeMenu('shareinfo','ir','Share Information','ir/shareinfo.htm','',ir_width)
	oM.makeMenu('space3bottom','ir','','','',ir_width,5,'images/nav/sub_bottom.gif','','','','','','1','','','','')

oM.makeMenu('news','','','news/press.htm','',113,'','images/nav/news_off.gif','images/nav/news_on.gif','','',"bottom",'','','','','swapIM_onmouseout("news")','News Center')

oM.makeMenu('emailalerts','','','global/emailalerts.php','',109,'','images/nav/emailalerts_off.gif','images/nav/emailalerts_on.gif','','',"bottom",'','','','','swapIM_onmouseout("emailalerts")','E-mail Alerts')

oM.construct()
//-->