// JavaScript Document

function mmLoadMenus(opt) {
  
  if (opt != "RT") {

	
	} else {
  		if (window.mm_menu_0719160026_0) return;

			/* menu - About Us */
			window.mm_menu_0719160024_0 = new Menu("root",245,25,"Arial",12,"#966304","#966304","#F4E5BA","#FCE337","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
			mm_menu_0719160024_0.addMenuItem("&nbsp;&nbsp;ABOUT US",   "location='/web/mna/about-us1'");
			mm_menu_0719160024_0.addMenuItem("&nbsp;&nbsp;WHATS NEW", "location='/web/mna/whats-new'");
			mm_menu_0719160024_0.hideOnMouseOut=true;
			mm_menu_0719160024_0.bgColor='#F4E5BA';
			mm_menu_0719160024_0.menuBorder=1;
			mm_menu_0719160024_0.menuLiteBgColor='#966304';
			mm_menu_0719160024_0.menuBorderBgColor='#FCE337';
		
			/* menu - Trading Hall */
			window.mm_menu_0719160026_0 = new Menu("root",245,25,"Arial",12,"#966304","#966304","#F4E5BA","#FCE337","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
			mm_menu_0719160026_0.addMenuItem("&nbsp;&nbsp;ENGLISH VERSION", "location='http://www.mnaonline.com.my/n2n_gc/applet/qsea_conn.jsp?lang=en',target='_top'");
			mm_menu_0719160026_0.addMenuItem("&nbsp;&nbsp;CHINESE VERSION", "location='http://www.mnaonline.com.my/n2n_gc/applet/qsea_conn.jsp?lang=zh',target='_top'");
			mm_menu_0719160026_0.hideOnMouseOut=true;
			mm_menu_0719160026_0.bgColor='#F4E5BA';
			mm_menu_0719160026_0.menuBorder=1;
			mm_menu_0719160026_0.menuLiteBgColor='#966304';
			mm_menu_0719160026_0.menuBorderBgColor='#FCE337';
		
			/* menu - Research */
			window.mm_menu_0719160027_0 = new Menu("root",245,25,"Arial",12,"#966304","#966304","#F4E5BA","#FCE337","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
			mm_menu_0719160027_0.addMenuItem("&nbsp;&nbsp;BURSA NEWS", "location='http://www.mnaonline.com.my/web/mna/bursa-news',target='_top'");
			mm_menu_0719160027_0.addMenuItem("&nbsp;&nbsp;RESEARCH REPORT", "location='http://www.mnaonline.com.my/web/mna/research',target='_top'");
			mm_menu_0719160027_0.hideOnMouseOut=true;
			mm_menu_0719160027_0.bgColor='#F4E5BA';
			mm_menu_0719160027_0.menuBorder=1;
			mm_menu_0719160027_0.menuLiteBgColor='#966304';
			mm_menu_0719160027_0.menuBorderBgColor='#FCE337';

			/* menu - My Profile */
			window.mm_menu_0719160028_0 = new Menu("root",245,25,"Arial",12,"#966304","#966304","#F4E5BA","#FCE337","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
			mm_menu_0719160028_0.addMenuItem("&nbsp;&nbsp;ACCOUNT INFORMATION",    "location='javascript:cliAccInfo_parent();'");
			mm_menu_0719160028_0.addMenuItem("&nbsp;&nbsp;CHANGE PASSWORD", "location='javascript:cliChgPwd_parent();'");
			mm_menu_0719160028_0.addMenuItem("&nbsp;&nbsp;FORGOT PASSWORD", "location='javascript:cliForgotPwd_parent();'");
			mm_menu_0719160028_0.addMenuItem("&nbsp;&nbsp;CHANGE PIN",      "location='javascript:cliChgPIN_parent();'");
			mm_menu_0719160028_0.addMenuItem("&nbsp;&nbsp;FORGOT PIN",      "location='javascript:cliForgotPIN_parent();'");
            mm_menu_0719160028_0.hideOnMouseOut=true;
			mm_menu_0719160028_0.bgColor='#F4E5BA';
			mm_menu_0719160028_0.menuBorder=1;
			mm_menu_0719160028_0.menuLiteBgColor='#966304';
			mm_menu_0719160028_0.menuBorderBgColor='#FCE337';
		
			mm_menu_0719160026_0.writeMenus();		
	}
} // mmLoadMenus()

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_OpenWin(vsLinkURL, vsParam) {
	if (vsParam == '')
		vsParam = "top=0,left=100,width=820,height=600,scrollbars=yes"
	window.open(vsLinkURL, "_blank", vsParam);
}

function OpenWinDemo()
{
	var scrWidth=screen.width, scrHeight=screen.height, nLeft, nTop

	nLeft = (scrWidth - 650) /2
	nTop = (scrHeight - 420) /2
	window.open('/web/demo.htm', 'winDemo', 'left='+ nLeft +',top='+ nTop +',width=650,height=480,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no', false)
}

function OpenWinFuture()
{
	var scrWidth=screen.width, scrHeight=screen.height, nLeft, nTop

	nLeft = (scrWidth - 650) /2
	nTop = (scrHeight - 420) /2
	//window.open('http://www.cimb.com.my/article.cfm?id=498', 'winFuture', 'left='+ nLeft +',top='+ nTop +',width=780,height=580,location=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes', false)
	window.open('http://www.ib.cimb.com/index.php?ch=ib_busi_equity_futures&tpt=1', 'winFuture', 'left='+ nLeft +',top='+ nTop +',width=780,height=580,location=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes', false)
}

function OpenWinCliRegCompany()
{
	var scrWidth=screen.width, scrHeight=screen.height, nLeft, nTop

	nLeft = (scrWidth - 795) /2
	nTop = (scrHeight - 500) /2
	window.open('/bin/cliTermCond.asp?Type=C', 'winCliReg', 'left='+ nLeft +',top='+ nTop +',width=795,height=500,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes', false)
}

function OpenWinCliAcctInfo() 
{
	var scrWidth=screen.width, scrHeight=screen.height, nLeft = 0, nTop = 0

	nLeft = (scrWidth - 650) /2;
	nTop = (scrHeight - 420) /2;

	window.open('/bin/acctInfo.asp', 'winAcctInfo', 'left='+ nLeft +',top='+ nTop +',width=620,height=300,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes', false);
}
