﻿// JavaScript Document

<!--1-->
document.write('<ul>');
var str = document.title; // Get webage title
if (str.indexOf('渣打網上理財 - 渣打')>=0) { // if title equal to value
	document.write('<li><a href="/online-banking/zh/" class="selected">渣打網上理財</a>'); // Highlight option
} else {
	document.write('<li><a href="/online-banking/zh/">渣打網上理財</a>'); // Normal option
}

document.write('<ul>');
if (str.indexOf('常見問題')>=0) { // if title equal to value
	document.write('<li class="line3"><a href="/internet-banking/faq/zh/index.html" class="selected">常見問題</a></li>'); // Highlight option
} else {
	document.write('<li class="line3"><a href="/internet-banking/faq/zh/index.html" target="_blank">常見問題</a></li>'); // Normal option
}
if (str.indexOf('商戶名單')>=0) { // if title equal to value
	document.write('<li class="line1"><a href="/online-banking/merchant/zh/index.html" class="selected" target="_blank">商戶名單</a></li>'); // Highlight option
} else {
	document.write('<li class="line1"><a href="/online-banking/merchant/zh/index.html" target="_blank">商戶名單</a></li>'); // Normal option
}
document.write('</ul>');
document.write('</li>');
<!-- 2 -->
if (str.indexOf('Breeze')>=0) { // if title equal to value
	document.write('<li><a href="/breeze/zh/index.html?pid=left_menu_breeze_zh" class="selected" target="_blank">Breeze</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/breeze/zh/index.html?pid=left_menu_breeze_zh" target="_blank">Breeze</a></li>'); // Normal option
}
<!-- 2-1 -->
if (str.indexOf('Breeze Home')>=0) { // if title equal to value
	document.write('<li><a href="/breeze-home/zh/index.html?pid=left_menu_breeze-home_zh" class="selected" target="_blank">Breeze Home</a><sup><font style="font-size:10px; color:#FF0000">New!</font></sup></li>'); // Highlight option
} else {
	document.write('<li><a href="/breeze-home/zh/index.html?pid=left_menu_breeze-home_zh" target="_blank">Breeze Home</a><sup><font style="font-size:10px; color:#FF0000">New!</font></sup></li>'); // Normal option
}


<!-- 3 -->
if (str.indexOf('申請電子月結單')>=0) { // if title equal to value
	document.write('<li><a href="/online-banking/estatements-subscription-demo/zh/" class="selected">電子月結單</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/online-banking/estatements-subscription-demo/zh/">電子月結單</a></li>'); // Normal option
}

<!-- 4 -->
if (str.indexOf('電話銀行服務')>=0) { // if title equal to value
	document.write('<li><a href="#" class="selected">電話銀行服務</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/svc-phone/zh/index.html">電話銀行服務</a></li>'); // Normal option
}
<!-- 5 -->
if (str.indexOf('自助銀行服務')>=0) { // if title equal to value
	document.write('<li><a href="#" class="selected">自助銀行服務</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/branch-atm-locator/automated-banking/zh/index.html">自助銀行服務</a></li>'); // Normal option
}
<!-- 6 -->
if (str.indexOf('渣打提款卡')>=0) { // if title equal to value
	document.write('<li><a href="#" class="selected">渣打提款卡</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/branch-atm-locator/atm-card/zh/index.html">渣打提款卡</a>'); // Normal option
}

document.write('<ul>');
if (str.indexOf('雙幣提款卡')>=0) { // if title equal to value
	document.write('<li class="line1"><a href="#" class="selected">雙幣提款卡</a></li>'); // Highlight option
} else {
	document.write('<li class="line1"><a href="/branch-atm-locator/atm-card/dual-card/zh/">雙幣提款卡</a></li>'); // Normal option
}
document.write('</ul>');
document.write('</li>');

<!-- 7 -->
if (str.indexOf('自動櫃員機及分行iPhone應用程式')>=0) { // if title equal to value
	document.write('<li><a href="#" class="selected">自動櫃員機及分行iPhone應用程式</a></li>'); // Highlight option
} else {
	document.write('<li><a href="/iphone/zh/index.html">自動櫃員機及分行iPhone應用程式</a></li>'); // Normal option
}


document.write('</ul>');
-->
