﻿<!--
function createLeftMenu()	{
	var	i,l;
	var	heading='\u5916 \u532f \u5b56 \u5c55 \u670d \u52d9';
	var	headlink='href="http://www.hangseng.com/hsb/chi/per/invs/rmt/home/index.html" target="_top"';
	var	item=new Array(
		{text:'\u63a8 \u5ee3 \u512a \u60e0', link:'href="http://www.hangseng.com/hsb/chi/per/invs/rmt/cpo/index.html" target="_top"'},
		{text:'\u9748 \u6d3b \u5916 \u532f \u8cb7 \u8ce3 \u670d \u52d9', link:'href="http://www.hangseng.com/hsb/chi/per/invs/rmt/flexi/index.html" target="_top"'},
	    {text:'靈 活 黃 金 買 賣 服 務', link:'href="http://www.hangseng.com/hsb/chi/per/invs/rmt/fgold/index.html" target="_top"'},
		{text:'\u5c08 \u696d \u5916 \u532f \u8cb7 \u8ce3 \u670d \u52d9', link:'href="http://www.hangseng.com/hsb/chi/per/invs/rmt/pro/index.html" target="_top"'},
		{text:'專 業 黃 金 買 賣 服 務', link:'href="http://www.hangseng.com/hsb/chi/per/invs/rmt/pgold/index.html" target="_top"'},
		{text:'\u7db2 \u4e0a \u5916 \u532f \u5b56 \u5c55 \u8cb7 \u8ce3', link:'href="http://www.hangseng.com/hsb/chi/per/invs/rmt/onl/index.html" target="_top"'},
		{text:'\u5916 \u532f \u5b56 \u5c55 \u8cb7 \u8ce3 \u56de \u5831 \u8a08 \u7b97 \u6a5f', link:'href="http://eba.hangseng.com/eLoanCentre/FMTReturnCalculator.jsp?lang=cht" target="_top"'}
		//{text:'\u5916 \u532f \u5b56 \u5c55 \u8cb7 \u8ce3 \u56de \u5831 \u8a08 \u7b97 \u6a5f', link:'href="/chi/per/invs/femtrc/cal/index.html" target="_top"'}
	);
	var	html='';
	var	c=getID(new	String(document.location));
	html+='<table	width="150"	border="0" cellpadding="0" cellspacing="0" bgcolor="#F0F0F0"><tr bgcolor="#000066">';
	html+='<td width="10"><img src="http://www.hangseng.com/hsb/com/spacer.gif" width="10"	height="10"></td>';
	html+='<td width="140"><a	'+headlink+'><font class="navhead">'+heading+'</font></a></td>';
	html+='</tr></table>';
	html+='<table	width="130"	border="0" cellpadding="0" cellspacing="0"><tr>';
	html+='<td valign="top"><img src="http://www.hangseng.com/hsb/com/spacer.gif" width="10"	height="325"></td>';
	html+='<td valign="top"><table width="122" border="0"	cellspacing="0"	cellpadding="0">';
	for	(i=0;i<item.length;i++)	{
		l=getID(item[i].link);
		html+='<tr><td valign="top"><img src="http://www.hangseng.com/hsb/com/spacer.gif" width="140" height="5"><br><a '+item[i].link+'>';
		html+='<font class="nav">';
		if (l==c)
			html+='<font color="red">'+item[i].text+'</font>';
		else
			html+=item[i].text;
		html+='</font>';
		html+='</a><br></td></tr>';
	}
	html+='</table></td>';
	html+='</tr></table>';
	document.write(html);
}

function getID(s)	{
	if ((s.indexOf('/chi/per/invs/femtrc/cal/')>0)) {		
					s='rc';		
	} else {				
					var	b='/hsb/chi/per/invs/rmt/';
					if (s.indexOf(b)==-1)
						b='/hsb/chi/per/invs/femtrc/';
					var	p=s.indexOf(b)+b.length
					if (p>0) {
						s=s.substr(p);
						p=s.indexOf('/');
						s=s.substr(0,p);
					}
					return s;
	}
}

function eipo_popup(theURL) { //v2.0
  window.open(theURL,"win","width=780,height=330,top=0,left=0,status=yes,scrollbars=yes,toolbar=yes,location=yes,menubar=yes,resizable=yes");
}

function cpo_popup()
{
  window.open("http://www.hangseng.com/hsb/chi/per/invs/rmt/cpo/popup.html","cpo","left=5,top=5,width=625,height=500,resizable=yes,scrollbars=yes");
}

//-->
