<!--
var date2 = new Date()
var year  = date2.getFullYear()
var showadsfactor, preview_check, CFName, showRP;
var domain_pf, h_domain, c_domain=(h_domain?h_domain:document.domain);
//var sdomain_n=document.domain.replace(/^(www.|)+(.*)$/,"$2");
var sdomain_n=c_domain.replace(/^([^\.]+)\.+(.*)$/,"$2");
var domain_pf="http://www."+sdomain_n;
var img_domain="http://img."+sdomain_n;
var img2_domain="http://img2."+sdomain_n;
var CFName = document.URL;

if (!preview_check){
	if (showadsfactor==null) showadsfactor=true;
}
if (showRP==null) showRP=true;

document.write('<table width="778" border="0" cellspacing="0" cellpadding="0" class="footertext" name="footerTBL" id="footerTBL">');
document.write('  <tr>');
document.write('    <td><img src="'+domain_pf+'/image/shim.gif" width="10" height="10"></td>');
document.write('  <tr>');
document.write('    <td>');
var frontpage;
if (frontpage == 1) {
	document.write('    <div align="center"><img src="'+domain_pf+'/image/new_red_line.gif" width="777" height="13"></div>');
}
document.write('      <div align="center">');
document.write('        <a href="http://news.'+sdomain_n+'/dailynews/index.asp">新聞</a>│');
document.write('        <a href="http://www.headlinefinance.hk/">財經</a>│');
document.write('        <a href="'+domain_pf+'/ent/">娛樂</a>│');
document.write('        <a href="'+domain_pf+'/blog/index.asp">Blog</a>│');
document.write('        <a href="'+domain_pf+'/album/">相簿</a>│');
document.write('        <a href="'+domain_pf+'/dining/">飲食</a>│');
document.write('        <a href="'+domain_pf+'/shop/">旺舖</a>│');
document.write('        <a href="http://travel.'+sdomain_n+'/travel/index.asp">旅遊</a>│');
document.write('        <a href="'+domain_pf+'/pet/">寵物</a>│');
document.write('        <a href="'+domain_pf+'/shopping/">潮流時尚</a>│');
document.write('        <a href="'+domain_pf+'/digital/">數碼</a>│');
document.write('        <a href="'+domain_pf+'/living/">健康生活</a>│');
document.write('        <a href="'+domain_pf+'/beauty/">美容</a>│');
document.write('        <a href="'+domain_pf+'/home/">家居</a>│');
document.write('        <a href="'+domain_pf+'/car/">汽車</a>│');
document.write('        <a href="'+domain_pf+'/fortune/">星相</a>│');
document.write('        <a href="'+domain_pf+'/arts/">藝術</a>');
document.write(' <br>        Copyright '+year+' hkheadline.com. all rights reserved. <br>');
document.write('        聯絡我們： <a href="mailto:web_info@hkheadline.com">web_info@hkheadline.com</a> <br>');

if (CFName.indexOf('/shop/') == -1)
{
  document.write('        <a href="http://paper.hkheadline.com/html/callad.html" target="_blank">日報廣告查詢</a> : 31813666　 <a href="'+domain_pf+'/adv_index.asp" target="_blank">網上廣告查詢</a> : 2798 2708　<br>');
}

document.write('        <a href="'+domain_pf+'/privacy.html" target="_blank">私隱政策聲明</a> │ <a href="'+domain_pf+'/terms.html" target="_blank">使用條款</a> │ <a href="http://www.hkheadline.com/qrcode_terms.html " target="_blank">QR Code 使用條款及細則</a> │ <a href="'+domain_pf+'/copyright.html" target="_blank">版權告示</a>');
document.write('<img src="/image/hk_footer_logo_new.gif" border="0" usemap="#Map_footer">');
document.write('<map name="Map_footer">');
document.write('  <area shape="rect" coords="5, 13, 62, 35" href="http://www.singtaonewscorp.com/" target="_blank">');
document.write('  <area shape="rect" coords="83, 14, 148, 37" href="http://www.singtao.com/" target="_blank">');
document.write('  <area shape="rect" coords="169, 14, 231, 36" href="http://www.thestandard.com.hk/" target="_blank">');
document.write('  <area shape="rect" coords="250, 14, 336, 37" href="http://www.hkheadline.com/" target="_blank">');
document.write('  <area shape="rect" coords="351, 15, 401, 34" href="http://www.pcmarket.com.hk/" target="_blank">');
document.write('  <area shape="rect" coords="419, 15, 491, 34" href="http://www.cazbuyer.com/" target="_blank">');
document.write('  <area shape="rect" coords="509, 11, 580, 36" href="http://www.easttouch.com.hk/" target="_blank">');
document.write('  <area shape="rect" coords="599, 12, 683, 39" href="http://www.eastweek.com.hk/" target="_blank">');
document.write('  <area shape="rect" coords="699, 13, 777, 35" href="http://www.singtaobooks.com/" target="_blank">');
document.write('  <area shape="rect" coords="790, 13, 899, 35" href="http://www.headlinefinance.hk/" target="_blank">');
document.write('</map>');

document.write('        </div>');
document.write('    </td>');
document.write('  </tr>');
document.write('  <tr><td>&nbsp;</td></tr>');
document.write('  <tr><td>&nbsp;</td></tr>');
document.write('</table>');



// special right promo
if  (CFName.indexOf('/home_testing/') > 0) 
{
 var divRP_left='1083';
}
if  (CFName.indexOf('/forum/') > 0) 
{
 var divRP_left='1007';
}
else
{
 var divRP_left='1065';
}

document.write ("<" + "script language='JavaScript' type='text/javascript' src='http://www.hkheadline.com/digital/gen//digital_gallery_icon_data.js'><" + "/script>");
if (showRP) document.write ("<" + "script language='JavaScript' type='text/javascript' src='" +img2_domain+ "/headline/js/right_promo.js?t=1'><" + "/script>");


if  (CFName.indexOf('/membership/') == -1) {
	//adsfactor
	if (showadsfactor){
	  //CFName is need;
	  document.write ("<" + "script language='JavaScript' type='text/javascript' src='" +img2_domain+ "/promo/js/banner_adsfactor_video.js?t=1'><" + "/script>");
	}
}

// check user browser info
//document.write('<'+'script src="http://img2.hkheadline.com/headline/js/c_info.js"></script'+'>');

//Piwik
document.write ("<" + "script language='JavaScript' type='text/javascript' src='/js/piwik.js'><" + "/script>");

//-->

