﻿// JavaScript Document
<!--
document.write('<ul>');
var str = document.title; // Get webage title
<!-- 1 -->
if (str.indexOf('您最可信賴的夥伴')>=0) { // if title equal to value
	document.write('<li><a href="/personal-banking/investments/trusted-fin-partner/zh/" class="selected" target="_blank">您最可信賴的夥伴</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/personal-banking/investments/trusted-fin-partner/zh/" target="_blank">您最可信賴的夥伴</a></li>'); // Normal option
}


<!-- 2 -->
if (str.indexOf('環球展望')>=0)  { // if title equal to value
	document.write('<li><a href="/personal-banking/investments/global-outlook/zh/" class="selected">環球展望</a>'); // Highlight option
} else {
	document.write('<li><a href="/personal-banking/investments/global-outlook/zh/">環球展望</a>'); // Normal option
}

document.write('<ul>');
if (str.indexOf('市場焦點')>=0) { // if title equal to value
	document.write(' <li class="line3"><a href="/personal-banking/investments/global-outlook/market-watch/zh/" class="selected">市場焦點</a></li>'); // Highlight option
} else {
	document.write(' <li class="line3"><a href="/personal-banking/investments/global-outlook/market-watch/zh/" >市場焦點</a></li>'); // Normal option
}
if (str.indexOf('市場快訊')>=0) { // if title equal to value
	document.write(' <li class="line3"><a href="/personal-banking/investments/global-outlook/market-flash/zh/" class="selected" >市場快訊</a></li>'); // Highlight option
} else {
	document.write(' <li class="line3"><a href="/personal-banking/investments/global-outlook/market-flash/zh/">市場快訊</a></li>'); // Normal option
}

if (str.indexOf('外匯市場分析')>=0) { // if title equal to value
	document.write('<li class="line2"><a href="/personal-banking/investments/global-outlook/fx-commentary/zh/" class="selected">每日外匯快訊</a></li>'); // Highlight option
} else {
	document.write('<li class="line2"><a href="/personal-banking/investments/global-outlook/fx-commentary/zh/">每日外匯快訊</a></li>'); // Normal option
}

document.write('</ul>');
document.write('</li>');

<!-- 3 -->
if (str.indexOf('客戶投資取向')>=0) { // if title equal to value
	document.write('<li><a href="/personal-banking/investments/customer-investment-profile/zh/" class="selected">客戶投資取向</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/personal-banking/investments/customer-investment-profile/zh/">客戶投資取向</a></li>'); // Normal option
}

<!--4 -->
if (str.indexOf('理財服務專區')>=0) { // if title equal to value
	document.write('<li><a href="/personal-banking/investments/investment-financial-services/zh/" class="selected">投資 • 理財服務專區</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/personal-banking/investments/investment-financial-services/zh/">投資 • 理財服務專區</a></li>'); // Normal option
}
<!-- 5-->
if (str.indexOf('InvestPro專智投資服務')>=0) { // if title equal to value
	document.write('<li><a href="/personal-banking/investments/investpro/zh/index.html" class="selected">InvestPro專智投資服務</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/personal-banking/investments/investpro/zh/index.html">InvestPro專智投資服務</a></li>'); // Normal option
}
<!-- 8 -->
if (str.indexOf('認股證')>=0) { // if title equal to value
	document.write(' <li class="line1"><a href="/personal-banking/investments/warrants/zh/" class="selected" target="_blank">認股證</a></li>'); // Highlight option
} else {
	document.write(' <li class="line1"><a href="/personal-banking/investments/warrants/zh/" target="_blank">認股證</a></li>'); // Normal option
}

<!-- 6 -->
if (str.indexOf('投資產品')>=0) { // if title equal to value
	document.write('<li><a href="/personal-banking/investments/zh/" class="selected">投資產品</a>'); // Highlight option
} else {
	document.write('<li><a href="/personal-banking/investments/zh/">投資產品</a>'); // Normal option
}

document.write('<ul>');
if (str.indexOf('基金投資服務 - 渣打銀行(香港)有限公司')>=0) { // if title equal to value
	document.write(' <li class="line3"><a href="/personal-banking/investments/investment-products/investment-funds/zh/index.html" class="selected">基金投資服務</a>'); // Highlight option
} else {
	document.write(' <li class="line3"><a href="/personal-banking/investments/investment-products/investment-funds/zh/index.html">基金投資服務</a>'); // Normal option
}

/*
if (str.indexOf('基金投資服務 - 渣打銀行(香港)有限公司')>=0) { // if title equal to value
	document.write(' <li class="line8"><a href="/personal-banking/investments/investment-products/investment-funds/zh/index.html" class="selected">基金投資服務</a>'); // Highlight option
} else {
	document.write(' <li class="line8"><a href="/personal-banking/investments/investment-products/investment-funds/zh/index.html">基金投資服務</a>'); // Normal option
}
document.write('<ul>');
if (str.indexOf('月供基金計劃')>=0) { // if title equal to value
	document.write(' <li class="line7"><a href="/personal-banking/investments/investment-products/investment-funds/monthly-investment-plan/zh/index.html" class="selected">月供基金計劃</a></li>'); // Highlight option
} else {
	document.write(' <li class="line7"><a href="/personal-banking/investments/investment-products/investment-funds/monthly-investment-plan/zh/index.html">月供基金計劃</a></li>'); // Normal option
}
document.write('</ul>');
document.write('</li>');
*/
if (str.indexOf('股票投資服務')>=0) { // if title equal to value
	document.write('<li class="line3"><a href="/personal-banking/investments/investment-products/securities-services/zh/index.html" class="selected">股票投資服務</a></li>'); // Highlight option
} else {
	document.write('<li class="line3"><a href="/personal-banking/investments/investment-products/securities-services/zh/index.html">股票投資服務</a></li>'); // Normal option
}
if (str.indexOf('高息貨幣掛鈎存款')>=0) { // if title equal to value
	document.write('<li class="line3"><a href="/personal-banking/investments/investment-products/premium-deposits/zh/index.html" class="selected">高息貨幣掛鈎存款</a></li>'); // Highlight option
} else {
	document.write('<li class="line3"><a href="/personal-banking/investments/investment-products/premium-deposits/zh/index.html">高息貨幣掛鈎存款</a></li>'); // Normal option
}
if (str.indexOf('股票掛鈎投資')>=0) { // if title equal to value
	document.write('<li class="line3"><a href="/personal-banking/investments/investment-products/equity-linked/zh/" class="selected">股票掛鈎投資服務</a></li>'); // Highlight option
} else {
	document.write('<li class="line3"><a href="/personal-banking/investments/investment-products/equity-linked/zh/">股票掛鈎投資服務</a></li>'); // Normal option
}

if (str.indexOf('債券投資服務')>=0) { // if title equal to value
	document.write('<li class="line3"><a href="/personal-banking/investments/investment-products/debt-securities/zh/index.html" class="selected">債券投資服務</a></li>'); // Highlight option
} else {
	document.write('<li class="line3"><a href="/personal-banking/investments/investment-products/debt-securities/zh/index.html">債券投資服務</a></li>'); // Normal option
}
if (str.indexOf('外匯交易')>=0) { // if title equal to value
	document.write('<li class="line1"><a href="/personal-banking/investments/investment-products/fx-trading/zh/index.html" class="selected">外匯交易</a></li>'); // Highlight option
} else {
	document.write('<li class="line1"><a href="/personal-banking/investments/investment-products/fx-trading/zh/index.html">外匯交易</a></li>'); // Normal option
}


document.write('</ul>');
document.write('</li>');
<!-- 7 -->
if (str.indexOf('財富融資')>=0) { // if title equal to value
	document.write('<li><a href="/personal-banking/investments/wealth-financing/zh/index.html" class="selected">財富融資</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/personal-banking/investments/wealth-financing/zh/index.html">財富融資</a></li>'); // Normal option
}

<!-- 8 -->
if (str.indexOf('財富管理升級組合')>=0) { // if title equal to value
	document.write('<li><a href="/personal-banking/investments/global-wealth-bonuspack/zh/index.html" class="selected">「富滙天下 財富管理升級組合」</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/personal-banking/investments/global-wealth-bonuspack/zh/index.html">「富滙天下 財富管理升級組合」</a></li>'); // Normal option
}




document.write('</ul>');
-->
