﻿<!--
var link_marketexp="ht"+"tp://www.hangseng.com/c_investment/indexes.asp";
function createLeftMenu()	{
	var	i,l;
	var	heading='\u8b49 \u5238 \u670d \u52d9';
	var	headlink='href="/hsb/chi/per/invs/hsss/home/index.html" target="_top"';
        
	var	item=new Array(
                {text:'市 場 速 遞', link:'href="http:/' + '/www.hang' + 'seng.com/' + 'c' + '_investment/stock_quote.asp" target="_top"'},
		//{text:'股 市 速 遞', link:'href="http://www.hangseng.com/c_investment/mismart_popup.asp" target="secWin" onClick="eFinetPopUp(\'cSecsrvLeftMenu\');"'},
		{text:'推 廣 優 惠', link:'href="/hsb/chi/per/invs/hsss/cpo/index.html" target="_top"'},
		{text:'本 地 證 券 服 務', link:'href="/hsb/chi/per/invs/hsss/lss/home/index.html" target="_top"'},
		{text:'環 球 證 券 服 務', link:'href="/hsb/chi/per/invs/hsss/gss/index.html" target="_top"'},
		{text:'證 券 服 務 收 費', link:'href="/hsb/chi/per/invs/pdf/secu_char.pdf" target="_blank"'},
		{text:'股 票 孖 展 服 務', link:'href="/hsb/chi/per/invs/hsss/sms/home/index.html" target="_top"'},
		{text:'牛 熊 證 超 級 市 場', link:'href="JavaScript:void window.open(\'/einvc/chi/getpage.asp?app=EinvcCBBCHome\',\'\',\'toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width=780,height=500&n=eINVCWeb\');"'},
		{text:'認 股 證 超 級 市 場', link:'href="JavaScript:void window.open(\'/einvc/chi/getpage.asp?app=EinvcWarrantHome&frhase=cInvsHome\',\'\',\'toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width=780,height=500&n=eINVCWeb\');"'},
		{text:'認 購 新 股 服 務', link:'href="/eipo/chi/home/index.html" target="_top"'},
		{text:'股 票 每 月 投 資 計 劃', link:'href="/hsb/chi/per/invs/hsss/hsmip/home/index.html" target="_top"'},
		{text:'即 時 覆 盤 服 務', link:'href="/hsb/chi/per/invs/hsss/iocs/index.html" target="_top"'},
                //{text:'市 場 速 遞', link:'href="JavaScript:void window.open(link_marketexp,\'_top\');" '},
		//{text:'新 聞 及 市 場 事 項', link:'href="http://hscom-asp.e-finet.net/hangseng/c_indexNewsIndexPage.php" target="_blank"'},
		//{text:'指 數 及 市 場 十 大', link:'href="http://hscom-asp.e-finet.net/hangseng/c_indexRoundup.php" target="_blank"'},
		//{text:'市 場 焦 點', link:'href="JavaScript:void window.open(\'/einvc/chi/getpage.asp?app=eINVCThemStock&frhase=cInvsHome\',\'\',\'toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width=780,height=500&n=eINVCWeb\');"'},
		{text:'ETF 網 頁', link:'href="/hsb/chi/per/invs/hsss/etf2/home/main.html" target="_blank"'},
		{text:'「e-投 資 通 知 書」 服 務', link:'href="http://www.hangseng.com/hsb/chi/pmo/grp01/p08/index.html" target="_top"'}
                //{text:'ETF 報 價 表', link:'href="JavaScript:void window.open(\'/hsb/chi/user/sec/etf/main01.html\',\'\',\'width=715,height=550,top=5,left=5,toolbar=0,menubar=0,location=0,scrollbars=1,status=0,resizable=1\');"'}
	);
	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="/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="/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="/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)	{
	var	b='/hsb/chi/per/invs/hsss/';
	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");
}

var secWin;
function eFinetPopUp(p) {
	var features = "scrollbars=yes,resizable=yes,top=0,left=0,width=790,height=530";
	var theURL = "http://www.hangseng.com/com/efinet.html?p="+p;
	
	secWin = open(theURL,"secWin",features);
	if ((document.window != null) && (!secWin.opener)){
		secWin.opener = document.window;
	}
	secWin.focus();
	secWin = true;
}
//-->

