// JavaScript Document
var m_sHtmlRootSecure = "";
function mmLoadMenus(opt,bAdmin) {
  
  if (opt == "") {

	} else if (opt == "RT") {

  		if (window.mm_menu_0719160026_0) return;

			/* menu - Trade Now */
			window.mm_menu_0719160026_0 = new Menu("root",135,20,"Arial,Verdana",11,"#ffffff","#ffffff","#873A3A","#cc6666","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
			mm_menu_0719160026_0.addMenuItem("&nbsp;&nbsp;<b>English Equities</b>",    "location='/gc/applet/qsee.jsp?lang=EN'");
			mm_menu_0719160026_0.addMenuItem("&nbsp;&nbsp;<b>Chinese Equities</b>",    "location='/gc/applet/pdt_RealTimeSwing.jsp?lang=zh'");
			mm_menu_0719160026_0.addMenuItem("&nbsp;&nbsp;<b>English Derivatives</b>", "location='http://www.amesecurities.com.my/gc/applet/pdt_RealTimeFuture.jsp?lang=EN'");
			mm_menu_0719160026_0.addMenuItem("&nbsp;&nbsp;<b>Chinese Derivatives</b>", "location='http://www.amesecurities.com.my/gc/applet/pdt_RealTimeFuture.jsp?lang=CN'");
			mm_menu_0719160026_0.addMenuItem("&nbsp;&nbsp;<b>Islamic Stockbroking</b>", "location='/gc/applet/pdt_RealTimeSwing_ISB.jsp?lang=EN'");
			mm_menu_0719160026_0.addMenuItem("&nbsp;&nbsp;<b>Singapore Stocks</b>", "location='javascript:OpenSgStk();'");
			mm_menu_0719160026_0.hideOnMouseOut=true;
			//mm_menu_0719160026_0.bgColor='#b13131';
			mm_menu_0719160026_0.bgColor='#ffffff';
			mm_menu_0719160026_0.menuBorder=1;
			mm_menu_0719160026_0.menuLiteBgColor='#ffffff';
			mm_menu_0719160026_0.menuBorderBgColor='#777777';

			/* menu - My Profile */
			window.mm_menu_0719160027_0 = new Menu("root",135,20,"Arial,Verdana",11,"#ffffff","#ffffff","#873A3A","#cc6666","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
			mm_menu_0719160027_0.addMenuItem("&nbsp;&nbsp;<b>Change Password</b>", "location='javascript:OpenChgPwd();'");
			mm_menu_0719160027_0.addMenuItem("&nbsp;&nbsp;<b>Forgot Password</b>", "location='javascript:OpenForgotPwd();'");
			mm_menu_0719160027_0.addMenuItem("&nbsp;&nbsp;<b>Change PIN</b>",      "location='javascript:OpenChgPIN();'");
			mm_menu_0719160027_0.addMenuItem("&nbsp;&nbsp;<b>Forgot PIN</b>",      "location='javascript:OpenForgotPIN();'");
			mm_menu_0719160027_0.hideOnMouseOut=true;
			mm_menu_0719160027_0.bgColor='#ffffff';
			mm_menu_0719160027_0.menuBorder=1;
			mm_menu_0719160027_0.menuLiteBgColor='#ffffff';
			mm_menu_0719160027_0.menuBorderBgColor='#777777';

			/* menu - EServices - eForms */
			window.mm_menu_0719160028_0_1 = new Menu("&nbsp;&nbsp;<b>eForms</b>",100,20,"Arial,Verdana",11,"#ffffff","#ffffff","#873A3A","#cc6666","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
			mm_menu_0719160028_0_1.addMenuItem("&nbsp;&nbsp;<b>Registration</b>", "location='/gc/web/EFormReg.jsp'");
			mm_menu_0719160028_0_1.addMenuItem("&nbsp;&nbsp;<b>Services</b>",     "location='/gc/web/EFormSrv.jsp'");
			mm_menu_0719160028_0_1.hideOnMouseOut=true;
			mm_menu_0719160028_0_1.bgColor='#ffffff';
			mm_menu_0719160028_0_1.menuBorder=1;
			mm_menu_0719160028_0_1.menuLiteBgColor='#ffffff';
			mm_menu_0719160028_0_1.menuBorderBgColor='#777777';

			/* menu - EServices */
			window.mm_menu_0719160028_0 = new Menu("root",130,20,"Arial,Verdana",11,"#ffffff","#ffffff","#873A3A","#cc6666","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
			mm_menu_0719160028_0.addMenuItem("&nbsp;&nbsp;<b>eSettlement</b>",           "location='javascript:OpenWinStlOutstandingCliPos();'");
			mm_menu_0719160028_0.addMenuItem("&nbsp;&nbsp;<b>Settlement Status</b>",     "location='javascript:OpenWinStlPayStatus();'");
			mm_menu_0719160028_0.addMenuItem("&nbsp;&nbsp;<b>eSettlement Demo</b>",      "location='javascript:OpenWinStlDemo();'");
			mm_menu_0719160028_0.addMenuItem("&nbsp;&nbsp;<b>eDeposit</b>",              "location='javascript:OpenWinStlDepositStatus();'");
			
			mm_menu_0719160028_0.addMenuItem(mm_menu_0719160028_0_1, "location='/gc/web/EFormReg.jsp'");
			/**
			mm_menu_0719160028_0_1.addMenuItem("&nbsp;&nbsp;<b>eForms - Registration</b>", "location='/gc/web/EFormReg.jsp'");
			mm_menu_0719160028_0_1.addMenuItem("&nbsp;&nbsp;<b>eForms - Services</b>",     "location='/gc/web/EFormSrv.jsp'");
			**/
			mm_menu_0719160028_0.hideOnMouseOut=true;
			mm_menu_0719160028_0.bgColor='#ffffff';
			mm_menu_0719160028_0.menuBorder=1;
			mm_menu_0719160028_0.menuLiteBgColor='#ffffff';
			mm_menu_0719160028_0.menuBorderBgColor='#777777';

			/* menu - Research */
			window.mm_menu_0719160029_0 = new Menu("root",160,20,"Arial,Verdana",11,"#ffffff","#ffffff","#873A3A","#cc6666","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
            mm_menu_0719160029_0.addMenuItem("&nbsp;&nbsp;<b>AmResearch</b>", "location='javascript:OpenWinAmResearch();'");			if (bAdmin == 1) {
					mm_menu_0719160029_0.addMenuItem("&nbsp;&nbsp;<b>New Posting</b>", "location='/gc/researchAdmAddEdit.jsp'");
					mm_menu_0719160029_0.addMenuItem("&nbsp;&nbsp;<b>Edit Posting</b>", "location='/gc/researchArchive.jsp'");
			}
            mm_menu_0719160029_0.addMenuItem("&nbsp;&nbsp;<b>Bursa Malaysia Archived</b>", "location='javascript:OpenWinBursaArchive();'");			mm_menu_0719160029_0.hideOnMouseOut=true;
			mm_menu_0719160029_0.bgColor='#ffffff';
			mm_menu_0719160029_0.menuBorder=1;
			mm_menu_0719160029_0.menuLiteBgColor='#ffffff';
			mm_menu_0719160029_0.menuBorderBgColor='#777777';

			/* menu - Product & Services */
			window.mm_menu_0719160030_0 = new Menu("root",210,20,"Arial,Verdana",11,"#ffffff","#ffffff","#873A3A","#cc6666","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
			mm_menu_0719160030_0.addMenuItem("&nbsp;&nbsp;<b>eTrading with AmeSecurities</b>",      "location='/gc/web/ProdSev.jsp'");
			mm_menu_0719160030_0.addMenuItem("&nbsp;&nbsp;<b>Share Trading</b>",                    "location='/gc/web/ProdSev.jsp#1'");
			mm_menu_0719160030_0.addMenuItem("&nbsp;&nbsp;<b>Share Margin Financing</b>",           "location='/gc/web/ProdSev.jsp#2'");
			mm_menu_0719160030_0.addMenuItem("&nbsp;&nbsp;<b>Custodial & Nominee Services</b>",     "location='/gc/web/ProdSev.jsp#3'");
			mm_menu_0719160030_0.addMenuItem("&nbsp;&nbsp;<b>Central Depository Services</b>",      "location='/gc/web/ProdSev.jsp#4'");
			mm_menu_0719160030_0.addMenuItem("&nbsp;&nbsp;<b>International Investor Services</b>",  "location='/gc/web/ProdSev.jsp#5'");
			mm_menu_0719160030_0.addMenuItem("&nbsp;&nbsp;<b>Foreign Investing Services</b>",       "location='/gc/web/ProdSev.jsp#6'");
			mm_menu_0719160030_0.addMenuItem("&nbsp;&nbsp;<b>Securities Borrowing and Lending</b>", "location='/gc/web/ProdSev.jsp#7'");
			mm_menu_0719160030_0.addMenuItem("&nbsp;&nbsp;<b>Research</b>",                         "location='/gc/web/ProdSev.jsp#8'");
			mm_menu_0719160030_0.addMenuItem("&nbsp;&nbsp;<b>Corporate Finance</b>",                "location='/gc/web/ProdSev.jsp#9'");
			mm_menu_0719160030_0.addMenuItem("&nbsp;&nbsp;<b>Islamic Stockbroking</b>",             "location='/gc/isb.jsp'");
			mm_menu_0719160030_0.hideOnMouseOut=true;
			mm_menu_0719160030_0.bgColor='#ffffff';
			mm_menu_0719160030_0.menuBorder=1;
			mm_menu_0719160030_0.menuLiteBgColor='#ffffff';
			mm_menu_0719160030_0.menuBorderBgColor='#777777';

			/* menu - About Us */
			window.mm_menu_0719160031_0 = new Menu("root",170,20,"Arial,Verdana",11,"#ffffff","#ffffff","#873A3A","#cc6666","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
			/**
			mm_menu_0719160031_0.addMenuItem("&nbsp;&nbsp;<b>Corporate Information</b>",            "location='/gc/web/CorpInfo.jsp'");
			mm_menu_0719160031_0.addMenuItem("&nbsp;&nbsp;<b>Directors and Seniors Management</b>", "location='/gc/web/DirectorSeniorMgt.jsp'");
			mm_menu_0719160031_0.addMenuItem("&nbsp;&nbsp;<b>List of Management</b>",               "location='/gc/web/ListMgt.jsp'");
			
			mm_menu_0719160031_0.addMenuItem("&nbsp;&nbsp;<b>AmInvestment Bank Group</b>",          "MM_OpenWin('http://www.ambg.com.my/investmentbanking/aboutaminvestmentgroup/aboutaminvestmentgroup.asp','');");
			mm_menu_0719160031_0.addMenuItem("&nbsp;&nbsp;<b>Management Team</b>",          		"MM_OpenWin('http://www.ambg.com.my/investmentbanking/ourteam/managementteam.asp','');");
			mm_menu_0719160031_0.addMenuItem("&nbsp;&nbsp;<b>Strategic Business Teams</b>",         "MM_OpenWin('http://www.ambg.com.my/investmentbanking/ourteam/strategicbusinessteams.asp','');");
			**/
			mm_menu_0719160031_0.addMenuItem("&nbsp;&nbsp;<b>AmInvestment Bank Group</b>",          "MM_OpenWin('http://www.ambg.com.my/investment.asp?sc=ibanking_about_aminvestment_bank#','');");
			mm_menu_0719160031_0.addMenuItem("&nbsp;&nbsp;<b>Management Team</b>",          	"MM_OpenWin('http://www.ambg.com.my/investment.asp?sc=ibanking_our_team&pg=our_team_management','');");
			mm_menu_0719160031_0.addMenuItem("&nbsp;&nbsp;<b>Strategic Business Teams</b>",         "MM_OpenWin('http://www.ambg.com.my/investment.asp?sc=ibanking_our_team&pg=our_team_strategic_business','');");
			mm_menu_0719160031_0.addMenuItem("&nbsp;&nbsp;<b>Jobs</b>",                             "location='/gc/web/Jobs.jsp'");
			mm_menu_0719160031_0.hideOnMouseOut=true;
			mm_menu_0719160031_0.bgColor='#ffffff';
			mm_menu_0719160031_0.menuBorder=1;
			mm_menu_0719160031_0.menuLiteBgColor='#ffffff';
			mm_menu_0719160031_0.menuBorderBgColor='#777777';

			/* menu - Help */
			window.mm_menu_0719160032_0 = new Menu("root",130,20,"Arial,Verdana",11,"#ffffff","#ffffff","#873A3A","#cc6666","left","middle",5,0,100,-5,7,true,true,true,0,false,true);
			mm_menu_0719160032_0.addMenuItem("&nbsp;&nbsp;<b>Contact Us</b>",    "location='/gc/web/ContactUs.jsp'");
			mm_menu_0719160032_0.addMenuItem("&nbsp;&nbsp;<b>Feedback</b>",      "location='/gc/web/Feedback.jsp'");
			mm_menu_0719160032_0.addMenuItem("&nbsp;&nbsp;<b>FAQs</b>",          "location='/gc/web/FaqRegistration.jsp'");
			mm_menu_0719160032_0.addMenuItem("&nbsp;&nbsp;<b>eTrading Demo</b>", "location='javascript:OpenDemo();'");
			mm_menu_0719160032_0.addMenuItem("&nbsp;&nbsp;<b>eSettlement Demo</b>",      "location='javascript:OpenWinStlDemo();'");
			mm_menu_0719160032_0.hideOnMouseOut=true;
			mm_menu_0719160032_0.bgColor='#ffffff';
			mm_menu_0719160032_0.menuBorder=1;
			mm_menu_0719160032_0.menuLiteBgColor='#ffffff';
			mm_menu_0719160032_0.menuBorderBgColor='#777777';

			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 OpenChgPwd() {
	loadwindow("/gc/cliChgPwd.jsp?secure=Y",360,225,300,180);	
}

function OpenForgotPwd() {
	loadwindow(m_sHtmlRootSecure + "/gc/cliForgetPwd.jsp?secure=Y",420,225,300,180);	
}

function OpenChgPIN() {
	loadwindow("/gc/cliChgPIN.jsp?secure=Y",310,225,300,180);	
}

function OpenForgotPIN() {
	loadwindow("/gc/cliForgetPIN.jsp?secure=Y",425,230,300,180);	
}

function OpenDemo() {
	OpenLinkWindow('/gc/web/demo.htm','demo','left=160,top=100,width=667,height=480,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');	
}

function OpenSgStk() {
	OpenLinkWindow('/gc/web/TradeSingaporeStocks.htm','Stocks','left=160,top=100,width=665,height=520,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');	
}

function OpenWinStlDemo() {
	OpenLinkWindow('http://www.amesecurities.com.my/gc/web/demoEStmt.htm','Demo','left=160,top=100,width=665,height=520,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');	
}

function OpenWinAmResearch(){
	OpenLinkWindow('/gc/researchArchive.jsp','Demo','left=160,top=100,width=800,height=520,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
}

function OpenWinBursaArchive(){
	OpenLinkWindow('/gc/news.jsp','Demo','left=160,top=100,width=800,height=520,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
}