document.write("<div id='lhnav_isc' style='display:none'>");
document.write("<table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed'>");
document.write("<tr><td class='lhnav-header'><div class='hkex-dot-red'>&nbsp;</div>Investment Service Centre</td></tr>");
document.write("<tr><td class='lhnav-content'>");
document.write("<div class='lhnav-link'><a href='/eng/invest/company/profilemenu_page_e.asp'>Company/Securities Profile</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/invest/company/top_rise_page_e.asp?curHtml=s_gain'>Today's Top 20 (Delayed)</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/invest/company/quotemenu_page_e.asp'>Today's Stock Quote (Delayed)</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/invest/company/intramenu_page_e.asp'>Intraday Stock Price Graph (Delayed)</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/invest/company/pricemenu_page_e.asp'>Historical Stock Price Graph</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/ddp/ddp_index.asp'>Futures and Options Prices and Charts (Delayed)</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/market/sec_tradinfo/stockcode/stockcode.htm'>List of Securities</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/csm/homepage.asp?LangCode=en' target='_blank'>China Stock Markets Web</a></div>");
document.write("<div class='lhnav-link'><a href='http://www.hkexnews.hk/' target='_blank'>HKExnews</a></div>");
document.write("<div class='lhnav-link'><a href='https://www.hkex.com.hk/eng/invest/user/servmenu_page_e.asp'>Investor Profile Maintenance</a></div>");
document.write("<div class='lhnav-link'><a href='https://www.hkex.com.hk/eng/invest/user/portfolio_page_e.asp'>News Alerts and Portfolio Valuation</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/invest/user/faq_page_e.asp'>About Investment Service Centre</a></div>");
document.write("</td></tr>");
document.write("<tr><td class='lhnav-footer'>&nbsp;</td></tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='lhnav_lm' style='display:none'>");
document.write("<table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed'>");
document.write("<tr><td class='lhnav-header'><div class='hkex-dot-red'>&nbsp;</div>Listing Matters</td></tr>");
document.write("<tr><td class='lhnav-content'>");
document.write("<div class='lhnav-link'><a href='/eng/listing/listhk/listing_in_hong_kong.htm'>Why List in Hong Kong</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/listing/listevent/EventsCal.htm'>Event Calendar</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/listing/listreq_pro/ListReq.htm'>Listing Requirements and Procedures</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/listing/edp/index.htm'>Electronic Disclosure</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/listing/listcomrpt/LC.htm'>Listing Committee</a></div>");
document.write("</td></tr>");
document.write("<tr><td class='lhnav-footer'>&nbsp;</td></tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='lhnav_pns' style='display:none'>");
document.write("<table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed'>");
document.write("<tr><td class='lhnav-header'><div class='hkex-dot-red'>&nbsp;</div>Products & Services</td></tr>");
document.write("<tr><td class='lhnav-content'>");
document.write("<div class='lhnav-link'><a href='/eng/prod/secprod/CMProducts.htm'>Securities Products</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/prod/drprod/DMProducts.htm'>Derivatives Products</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/prod/clr/ClearingService.htm'>Clearing Services</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/prod/dataprod/dataprod.htm'>Data Products</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/prod/issuersev/issuersev.htm'>Issuer Services</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/prod/hosting/hostingservices.htm'>Hosting Services</a></div>");
document.write("</td></tr>");
document.write("<tr><td class='lhnav-footer'>&nbsp;</td></tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='lhnav_mo' style='display:none'>");
document.write("<table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed'>");
document.write("<tr><td class='lhnav-header'><div class='hkex-dot-red'>&nbsp;</div>Market Operations</td></tr>");
document.write("<tr><td class='lhnav-content'>");
document.write("<div class='lhnav-link'><a href='/eng/market/hkex_part/EPIndex.htm'>Exchange and Clearing House Participants</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/market/partcir/Partindex.htm'>Participant Circulars</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/market/sec_tradinfra/CMTradInfra.htm'>Securities Trading Infrastructure</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/market/sec_tradinfo/CMTradInfo.htm'>Securities Trading Information</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/market/dv_tradinfra/DMTradInfra.htm'>Derivatives Trading Infrastructure</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/market/dv_tradfinfo/DMTradInfo.htm'>Derivatives Trading Information</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/market/clr/Clearing.htm'>Clearing</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/market/rm/RM_IndexPage.htm'>Risk Management</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/market/typhoons/trading_arrangements_during_typhoon_and_black_rainstorm.htm'>Trading Arrangements During Typhoons and Black Rainstorm</a></div>");
document.write("</td></tr>");
document.write("<tr><td class='lhnav-footer'>&nbsp;</td></tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='lhnav_rnr' style='display:none'>");
document.write("<table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed'>");
document.write("<tr><td class='lhnav-header'><div class='hkex-dot-red'>&nbsp;</div>Rules & Regulations</td></tr>");
document.write("<tr><td class='lhnav-content'>");
document.write("<div class='lhnav-link'><a href='/eng/rulesreg/regintro/introreg.htm'>Introduction to Regulatory Framework</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/rulesreg/traderules/tradingrule_disclaimer.htm'>Trading Rules</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/rulesreg/clearrules/clearinghouserules_disclaimer.htm'>Clearing House Rules</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/rulesreg/listrules/rule_disclaimer.htm'>Rules and Guidance on Listing Matters</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/rulesreg/regdoc/regdoc.htm'>Other Documents Related to the Regulatory Framework</a></div>");
document.write("</td></tr>");
document.write("<tr><td class='lhnav-footer'>&nbsp;</td></tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='lhnav_snr' style='display:none'>");
document.write("<table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed'>");
document.write("<tr><td class='lhnav-header'><div class='hkex-dot-red'>&nbsp;</div>Statistics & Research</td></tr>");
document.write("<tr><td class='lhnav-content'>");
document.write("<div class='lhnav-link'><a href='/eng/stat/statrpt/statrpt.htm'>Statistics Reports</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/stat/epstat/epstat_page.htm'>Participant Statistics</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/stat/smstat/securitiesMarket.htm'>Securities Market Statistics</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/stat/dmstat/derivativesMarket.htm'>Derivatives Market Statistics</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/stat/clearstat/ccassstat_page.htm'>Clearing Statistics</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/stat/research/research.htm'>Research Reports</a></div>");
document.write("</td></tr>");
document.write("<tr><td class='lhnav-footer'>&nbsp;</td></tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='lhnav_nnc' style='display:none'>");
document.write("<table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed'>");
document.write("<tr><td class='lhnav-header'><div class='hkex-dot-red'>&nbsp;</div>News & Consultations</td></tr>");
document.write("<tr><td class='lhnav-content'>");
document.write("<div class='lhnav-link'><a href='/eng/newsconsul/hkexnews/news.htm'>News Releases</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/newsconsul/speech/speech.htm'>Speeches</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/newsconsul/newsltr/newsletter.htm'>Exchange Newsletters</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/newsconsul/blog/blog.htm'>Charles Li Direct</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/newsconsul/submissions/index.htm'>Submissions by HKEx</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/newsconsul/mktconsul/marketconsultation.htm'>Market Consultations</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/newsconsul/Tnotices/rfp.htm'>Tender Notices</a></div>");
document.write("</td></tr>");
document.write("<tr><td class='lhnav-footer'>&nbsp;</td></tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='lhnav_ah' style='display:none'>");
document.write("<table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed'>");
document.write("<tr><td class='lhnav-header'><div class='hkex-dot-red'>&nbsp;</div>About HKEx</td></tr>");
document.write("<tr><td class='lhnav-content'>");
document.write("<div class='lhnav-link'><a href='/eng/exchange/corpinfo/corpinfo.htm'>Corporate Information</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/exchange/org/org.htm'>Organisation</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/exchange/invest/ir.htm'>Investor Relations</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/exchange/invest/realtime.htm'>Real Time Share Price</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/exchange/corpgov/corporate_governance.htm'>Corporate Governance</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/exchange/csr/csr.htm'>Corporate Social Responsibility</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/exchange/visit/index.htm'>Visit HKEx</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/exchange/job_opp/job.htm'>Job Opportunities</a></div>");
document.write("</td></tr>");
document.write("<tr><td class='lhnav-footer'>&nbsp;</td></tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='lhnav_wca' style='display:none'>");
document.write("<table cellpadding='0' cellspacing='0' border='0' width='100%' style='table-layout:fixed'>");
document.write("<tr><td class='lhnav-header'><div class='hkex-dot-red'>&nbsp;</div>News Alert</td></tr>");
document.write("<tr><td class='lhnav-content'>");
document.write("<div class='lhnav-link'><a href='/eng/wca/user/registration_e.asp'>Registration</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/wca/user/login_e.asp'>Log in</a></div>");
document.write("<div class='lhnav-link'><a href='/eng/wca/user/faq_e.asp'>FAQs</a></div>");
document.write("</td></tr>");
document.write("<tr><td class='lhnav-footer'>&nbsp;</td></tr>");
document.write("</table>");
document.write("</div>");

var section = url_level2.toLowerCase();

var globalquicklinks = false;

document.write("<SCRIPT language=\"javascript\" src=\"/eng/script/hkex_quicklinks.js\"></SCRIPT>");

switch ( section )
{
    case "invest":
        $('#nav-isc').css({background:'#0D3558'});
        $('#lhnav_isc').show();
        break;
    case "listing":
        $('#nav-lm').css({background:'#0D3558'});
        $('#lhnav_lm').show();
    	break;
    case "prod":
        $('#nav-pns').css({background:'#0D3558'});
        $('#lhnav_pns').show();
        break;
    case "market":
        $('#nav-mo').css({background:'#0D3558'});
        $('#lhnav_mo').show();
        break;
    case "rulesreg":
        $('#nav-rnr').css({background:'#0D3558'});
        $('#lhnav_rnr').show();
        break;
    case "stat":
        $('#nav-snr').css({background:'#0D3558'});
        $('#lhnav_snr').show();
        break;
    case "newsconsul":
        $('#nav-nnc').css({background:'#0D3558'});
        $('#lhnav_nnc').show();
        break;
    case "exchange":
        $('#nav-ah').css({background:'#0D3558'});
        $('#lhnav_ah').show();
        break;
    default:
		globalquicklinks = true;
        document.write("<SCRIPT language=\"javascript\" src=\"/eng/script/hkex_relatedlinks.js\"></SCRIPT>");
};

$(document).ready(function() {
	if ( globalquicklinks == true ) {
		$("#quicklinks").show();
	}
	else {
		$("#quicklinks").hide();
	}
});

