var locapath = document.location.href;
var splitString = locapath.split("/");
var slash_count = splitString.length -1;
var dotpath = "";
if (slash_count > 0 ) {
	if (locapath.toString().search('/preview/')!= -1){
		slash_count = slash_count -5
	}else{
		slash_count = slash_count -4
	}
}
//alert(slash_count);

for(i=0;i<slash_count;i++)
	dotpath = dotpath + "../";

//alert(dotpath);

document.writeln("<p><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">[<a href=\"" + dotpath + "eindex.html\">Home</a>] ");
document.writeln("  [<a href=\"" + dotpath + "english/aboutus/whatsnew/whatsnew.html\">What's New</a>] [<a href=\"" + dotpath + "english/aboutus/aboutus.html\">About ");
document.writeln("  Us</a>] [<a href=\"" + dotpath + "english/aboutus/presspeech/presspeech.html\">Press Releases, ");
document.writeln("  Speeches and Publications</a>] [<a href=\"" + dotpath + "english/aboutus/deptprofile/code.html\">Access ");
document.writeln("  to Information</a>] [<a href=\"" + dotpath + "english/import_export/ie_maincontent.html\">Import ");
document.writeln("  and Export</a>] [<a href=\"" + dotpath + "english/cepa/index.html\">CEPA</a>] [<a href=\"" + dotpath + "english/smes_industry/smes_industry.html\">SMEs ");
document.writeln("  and Industry</a>] [<a href=\"" + dotpath + "english/trade_relations/traderelations_maincontent.html\">Trade ");
document.writeln("  Relations</a>] [<a href=\"" + dotpath + "english/aboutus/tradecircular/tradecircular_maincontent.html\">Trade ");
document.writeln("  Circulars</a>] [<a href=\"" + dotpath + "english/aboutus/form/index.html\">Public Forms</a>] ");
document.writeln("  [<a href=\"http://www.tid.gov.hk/service/ie/jsp/IE_Gen_eService_Content_et.jsp\" target=\"_blank\">E-Services</a>] ");
document.writeln("  [<a href=\"http://www.tid.gov.hk/service/ie/jsp/IE_E_Login_Pub_Show_Subscribe_et.jsp\" target=\"_blank\">Email ");
document.writeln("  Notification Service</a>] [<a href=\"" + dotpath + "english/aboutus/noticeboard/tender.html\">Tender ");
document.writeln("  Notices</a>] [<a href=\"" + dotpath + "english/aboutus/tel/tel.html\">Contact Us</a>] [<a href=\"" + dotpath + "english/aboutus/links/links.html\">Links</a>]</font></p>");
document.writeln("<hr>");
document.writeln("<p><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">[<a href=\"" + dotpath + "english/aboutus/tradecircular/tradecircular_maincontent.html\">Trade ");
document.writeln("  Circulars</a>] [<a href=\"" + dotpath + "english/aboutus/servctr/lopen_hours.html\">Counters</a>] ");
document.writeln("  [<a href=\"" + dotpath + "english/aboutus/tel/tel.html\">Phone</a>] [<a href=\"" + dotpath + "english/aboutus/publications/tradestat/tradestat_maincontent.html\">Statistics</a>] ");
document.writeln("  [<a href=\"" + dotpath + "english/aboutus/form/index.html\">Forms</a>] [<a href=\"http://www.tid.gov.hk/service/ie/jsp/IE_E_Login_Pub_Show_Subscribe_et.jsp\" target=\"_blank\">Email ");
document.writeln("  Notification Service</a>]</font></p>");
document.writeln("<hr width=\"100%\">");
document.writeln("<p><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">");
document.writeln('[<a href="http://www.gov.hk/en/residents/" target="_blank">GovHK</a>] [<a href="http://www.brandhk.gov.hk/brandhk/eindex.htm" target="_blank">Brand Hong Kong - Asia\'s world city</a>]</p>');
document.writeln("<hr>");
document.writeln("<p><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">2005 Copyright | <a href=\"" + dotpath + "english/notices/notices.html\">Important ");
document.writeln("  notices</a></font></p>");