function swapPoint(item) {
	var i=document.getElementById(item);
	i.src="/hk/images/whitedots.gif";
}

function swapBG(item) {
	var bg=document.getElementById(item).style;
	bg.backgroundImage = "";
	bg.backgroundColor = "#82B6D7";
}

function swapSubBG(item) {
	document.getElementById(item).style.backgroundColor = "#0000A0";
}

function restorePoint(item) {
	var i=document.getElementById(item);
	i.src="/hk/images/orangedots.gif";
}

function restoreBG(item) {
	var bg=document.getElementById(item).style;
	switch(item) {
		case "home":
			bg.backgroundImage = "url('/hk/images/sea_bg_1.jpg')";
			break;
		case "news":
			bg.backgroundImage = "url('/hk/images/sea_bg_2.jpg')";
			break;
		case "aboutus":
		  bg.backgroundImage = "url('/hk/images/sea_bg_3.jpg')";
		  break;
		default:
			bg.backgroundColor = "#003478";
			break;
	} 	
}

function restoreSubBG(item) {
	document.getElementById(item).style.backgroundColor = "#5871B3";
}

function setBG(item) {
	//var bg=document.getElementById(item);
	//bg.background = "#82B6D7";
}

function show_menu(item) {
  changeOpac(90,item);
  document.getElementById(item).style.visibility = "visible";
}

function hide_menu(item) {
  document.getElementById(item).style.visibility = "hidden";
}

function changeOpac(opacity, id) {
	var object = document.getElementById(id).style; 
	object.opacity = (opacity / 100);
	Object.filter = "alpha(opacity=" + opacity + ")";
}

function build_menu () {
document.write('<table border="0" cellpadding="0" cellspacing="0" class="leftmenu">');
document.write('<tr><td style="background-image:url(\'/hk/images/sea_bg_1.jpg\');width:153;height:23;" id="home"><a href="/hk/home.html" target="_top" onClick="setBG(\'home\');" onMouseOver="swapBG(\'home\');swapPoint(\'item1\');" onMouseOut="restoreBG(\'home\');restorePoint(\'item1\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item1">首頁</div></a></td></tr>');
document.write('<tr><td style="background-image:url(\'/hk/images/sea_bg_2.jpg\');width:153;height:23;" id="news"><a href="/hk/news/home.html" target="_top" onClick="setBG(\'news\')" onMouseOver="swapBG(\'news\');swapPoint(\'item2\');" onMouseOut="restoreBG(\'news\');restorePoint(\'item2\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item2">最新消息</div></a></td></tr>');
document.write('<tr><td style="background-image:url(\'/hk/images/sea_bg_3.jpg\');width:153;height:23;" id="aboutus"><a href="/hk/aboutus/home.html" target="_top" onClick="setBG(\'aboutus\')" onMouseOver="show_menu(\'aboutus_menu\');swapBG(\'aboutus\');swapPoint(\'item3\');" onMouseOut="restoreBG(\'aboutus\');restorePoint(\'item3\');hide_menu(\'aboutus_menu\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item3">關於我們</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="publications"><a href="/hk/publication/home.html" target="_top" onClick="setBG(\'publications\')" onMouseOver="show_menu(\'publications_menu\');swapBG(\'publications\');swapPoint(\'item4\');" onMouseOut="restoreBG(\'publications\');restorePoint(\'item4\');hide_menu(\'publications_menu\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item4">刊物及新聞公報</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="informations"><a href="/hk/information/home.html" target="_top" onClick="setBG(\'informations\')" onMouseOver="show_menu(\'informations_menu\');swapBG(\'informations\');swapPoint(\'item5\');" onMouseOut="restoreBG(\'informations\');restorePoint(\'item5\');hide_menu(\'informations_menu\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item5">公開資料</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="pub_services"><a href="/hk/pub_services/home.html" target="_top" onClick="setBG(\'pub_services\')" onMouseOver="show_menu(\'pub_services_menu\');swapBG(\'pub_services\');swapPoint(\'item6\');" onMouseOut="restoreBG(\'pub_services\');restorePoint(\'item6\');hide_menu(\'pub_services_menu\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item6">公共服務</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="forms"><a href="/hk/forms/home.html" target="_top" onClick="setBG(\'forms\')" onMouseOver="swapBG(\'forms\');swapPoint(\'item7\');" onMouseOut="restoreBG(\'forms\');restorePoint(\'item7\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item7">公用表格</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="ele_services"><a href="/hk/ele_services/home.html" target="_top" onClick="setBG(\'ele_services\')" onMouseOver="show_menu(\'ele_services_menu\');swapBG(\'ele_services\');swapPoint(\'item8\');" onMouseOut="restoreBG(\'ele_services\');restorePoint(\'item8\');hide_menu(\'ele_services_menu\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item8">電子服務</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="tender"><a href="/hk/tender/home.html" target="_top" onClick="setBG(\'tender\')" onMouseOver="show_menu(\'tender_menu\');swapBG(\'tender\');swapPoint(\'item9\');" onMouseOut="restoreBG(\'tender\');restorePoint(\'item9\');hide_menu(\'tender_menu\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item9">招標公告</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="links"><a href="/hk/links/home.html" target="_top" onClick="setBG(\'links\')" onMouseOver="show_menu(\'links_menu\');swapBG(\'links\');swapPoint(\'item10\');" onMouseOut="restoreBG(\'links\');restorePoint(\'item10\');hide_menu(\'links_menu\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item10">相關網址</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="others"><a href="/hk/others/home.html" target="_top" onclick="setBG(\'others\');" onMouseOver="show_menu(\'others_menu\');swapBG(\'others\');swapPoint(\'item11\');" onMouseOut="restoreBG(\'others\');restorePoint(\'item11\');hide_menu(\'others_menu\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item11">其他</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="contact_us"><a href="/hk/contact.html" target="_top" onclick="setBG(\'contact_us\');" onMouseOver="swapBG(\'contact_us\');swapPoint(\'item12\');" onMouseOut="restoreBG(\'contact_us\');restorePoint(\'item12\');"><div width="100%"><img src="/hk/images/orangedots.gif" alt="" id="item12">聯絡我們</div></a></td></tr>');
document.write('<tr><td style="background-image:url(\'/hk/images/sea_bg_4.jpg\');width:153;height:153;border:0">');
//Marquee Start
document.write('<div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">');
document.write('<div id="vmarquee" style="position: absolute; width: 98%;text-align:center">');
document.write('<a href="http://www.policyaddress.gov.hk/09-10/chi/index.html" target="_blank"><img src="/hk/images/Home/pre_pa0910.gif" height="42" width="70" alt="2009-10 施政報告" title="2009-10 施政報告"></a>');
document.write('<a href="http://www.gov.hk/tc/residents/" target="_blank"><img src="/hk/images/Home/govhk.gif" height="42" width="70" alt="香港政府一站通" title="香港政府一站通"></a>');
document.write('<a href="http://www.gov.hk/tc/theme/wifi/program/index.htm" target="_blank"><img src="/hk/images/Home/govwifi.gif" height="42" width="70" alt="「香港政府WiFi通」計劃" title="「香港政府WiFi通」計劃"></a>');
document.write('<a href="http://ebs.mardep.gov.hk" target="_blank"><img src="/hk/images/Home/ebs.png" height="42" width="70" alt="海事處電子業務系統" title="海事處電子業務系統"></a>');
document.write('<a href="http://www.youth.gov.hk/tc/index.htm" target="_blank"><img src="/hk/images/Home/youth.jpg" height="42" width="70" alt="Youth.gov.hk" title="Youth.gov.hk"></a>');
document.write('<a href="http://www.ogcio.gov.hk/ccli/unicode/hkscs/download.html" target="_blank"><img src="/hk/images/Home/hkscs.jpg" height="42" width="70" alt="香港增補字符集" title="香港增補字符集"></a>');
document.write('<a href="http://www.info.gov.hk/digital21/" target="_blank"><img src="/hk/images/Home/digital21.jpg" height="42" width="70" alt="香港數碼21" title="香港數碼21"></a>');
document.write('<a href="aboutus/5day.html" target="_blank"><img src="/hk/images/Home/5day_icon.jpg" height="42" width="70" alt="五天工作周" title="五天工作周"></a>');
document.write('<a href="http://www.budget.gov.hk/" target="_blank"><img src="/hk/images/Home/pre-budget_2010-11_c.gif" height="42" width="70" alt="2010-11財政預算案" title="2010-11財政預算案"></a>');
document.write('<a href="http://www.csb.gov.hk/tc_chi/letter/1662.html" target="_blank"><img src="/hk/images/Home/csa.gif" height="42" width="70" alt="香港公務員隊伍卓越成就選輯" title="香港公務員隊伍卓越成就選輯"></a>');
document.write('<a href="others/mdvacancy.html" target="_blank"><img src="/hk/images/Home/vacancy.gif" height="42" width="70" alt="海事處職位空缺" title="海事處職位空缺"></a>');
document.write('<a href="http://www.info.gov.hk/info/flu/chi/home.htm" target="_blank"><img src="/hk/images/Home/flu.gif" height="42" width="70" alt="預防禽流感" title="預防禽流感"></a>');
document.write('<a href="publication/portstat.html" target="_blank"><img src="/hk/images/Home/portstat.jpg" height="42" width="70" alt="港口及海事統計資料" title="港口及海事統計資料"></a>');
document.write('<a href="http://www.hkpc.org/qsas/chi/index.htm" target="_blank"><img src="/hk/images/Home/quality_seawater.jpg" height="42" width="70" alt="優質海水認可計劃" title="優質海水認可計劃"></a>');
document.write('<a href="http://www.icac.org.hk" target="_blank"><img src="/hk/images/Home/icac.jpg" height="42" width="70" alt="重誠信求卓越" title="重誠信求卓越"></a>');
document.write('<a href="publication/ereport.html" target="_blank"><img src="/hk/images/Home/mai.gif" height="42" width="70" alt="海事意外事故調查報告" title="海事意外事故調查報告"></a>');
document.write('<a href="http://www.gov.hk/tc/business/supportenterprises/bf/consultation/index.htm" target="_blank"><img src="/hk/images/Home/icon-small.gif" height="42" width="70" alt="營商諮詢電子平台" title="營商諮詢電子平台"></a>');
document.write('<a href="publication/pressrel/wps2008.html" target="_blank"><img src="/hk/images/Home/wps2008.jpg" height="42" width="142" alt="世界港口峰會" title="世界港口峰會"></a>');
document.write('<a href="http://marsec.mardep.gov.hk/index.html" target="_blank"><img src="/hk/images/Home/marsec.gif" height="62" width="142" alt="海上保安網站" title="海上保安網站"></a>');
document.write('<a href="http://www.tela.gov.hk/icrs/index2.html" target="_blank"><img src="/hk/images/Home/icrs.gif" height="62" width="142" alt="ICRS計劃" title="ICRS計劃"></a>');
document.write('<a href="http://www.caringcompany.net/b5_index.php" target="_blank"><img src="/hk/images/Home/caring.jpg" height="48" width="142" alt="香港社會服務聯會" title="香港社會服務聯會"></a>');
document.write('<a href="http://www.organdonation.gov.hk/tc/home.html" target="_blank"><img src="/hk/images/Home/banner_od.jpg" height="50" width="142" alt="器官捐贈" title="器官捐贈"></a>');
document.write('<a href="http://www.hkexpo2010.gov.hk/" target="_blank"><img src="/hk/images/Home/expo_c.jpg" height="47" width="142" alt="香港 - 在2010世博" title="香港 - 在2010世博"></a>');
document.write('</div>');
document.write('</div>');
//Marquee End
document.write('</td></tr>');
document.write('<tr><td style="background-color:#044AA1;width:153px;height:20px;border:0"></td></tr>');
document.write('</table>');

//About us Sub Menu
document.write('<div id="aboutus_menu" onMouseOver="show_menu(\'aboutus_menu\');swapBG(\'aboutus\');swapPoint(\'item3\');" onMouseOut="restoreBG(\'aboutus\');restorePoint(\'item3\');hide_menu(\'aboutus_menu\');" style="filter:alpha(opacity=90);">');
document.write('<table cellpadding="5" style="margin:0;border:1px #FFFFFF solid;background-color:#5871B3;"><tr><td>');
document.write('<table cellpadding="0" cellspacing="0" border="0" style="background-color:#5871B3;" class="sub_menu">');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub1"><a href="/hk/aboutus/home.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub1\');" onMouseOut="restoreSubBG(\'aboutus_sub1\');"><div width="100%">歡迎辭</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub2"><a href="/hk/aboutus/qckcnect.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub2\');" onMouseOut="restoreSubBG(\'aboutus_sub2\');"><div width="100%">服務速繫</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub3"><a href="/hk/aboutus/mvv.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub3\');" onMouseOut="restoreSubBG(\'aboutus_sub3\');"><div width="100%">使命</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub4"><a href="/hk/aboutus/dept.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub4\');" onMouseOut="restoreSubBG(\'aboutus_sub4\');"><div width="100%">組織,職能與服務</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub5"><a href="/hk/aboutus/pledge.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub5\');" onMouseOut="restoreSubBG(\'aboutus_sub5\');"><div width="100%">服務承諾</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub6"><a href="http://www.fstb.gov.hk/tb/chinese/press/epp.html" target="_new" onMouseOver="swapSubBG(\'aboutus_sub6\');" onMouseOut="restoreSubBG(\'aboutus_sub6\');"><div width="100%">資源增值計劃</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub7"><a href="/hk/aboutus/vcd.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub7\');" onMouseOut="restoreSubBG(\'aboutus_sub7\');"><div width="100%">海事處簡介短片</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub8"><a href="http://gicstat.info.gov.hk/gicwebstat/jsp/searchByDept.jsp?lang=zh_hk&dept=mardep" target="_new" onMouseOver="swapSubBG(\'aboutus_sub8\');" onMouseOut="restoreSubBG(\'aboutus_sub8\');"><div width="100%">網站瀏覽人數</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub9"><a href="/hk/aboutus/committees.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub9\');" onMouseOut="restoreSubBG(\'aboutus_sub9\');"><div width="100%">諮詢與法定組織 (部分只提供英文版)</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub10"><a href="http://www.gov.hk/tc/about/abouthk/factsheets/docs/port.pdf" target="_new" onMouseOver="swapSubBG(\'aboutus_sub10\');" onMouseOut="restoreSubBG(\'aboutus_sub10\');"><div width="100%">香港便覽 - 港口 (PDF)</div></a></td></tr>');
document.write('</table></td></tr></table></div>');

//Publication Sub Menu
document.write('<div id="publications_menu" onMouseOver="show_menu(\'publications_menu\');swapBG(\'publications\');swapPoint(\'item4\');" onMouseOut="restoreBG(\'publications\');restorePoint(\'item4\');hide_menu(\'publications_menu\');" style="filter:alpha(opacity=90)">');
document.write('<table cellpadding="5" style="margin:0;border:1px #FFFFFF solid;background-color:#5871B3;"><tr><td>');
document.write('<table cellpadding="0" cellspacing="0" border="0" style="background-color:#5871B3;" class="sub_menu">');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub1"><a href="/hk/publication/home.html" target="_top" onMouseOver="swapSubBG(\'publications_sub1\');" onMouseOut="restoreSubBG(\'publications_sub1\');"><div width="100%">海事條例</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub2"><a href="/hk/notices/notices.html" target="_top" onMouseOver="swapSubBG(\'publications_sub2\');" onMouseOut="restoreSubBG(\'publications_sub2\');"><div width="100%">海事處佈告</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub3"><a href="/hk/msnotice/msn.html" target="_top" onMouseOver="swapSubBG(\'publications_sub3\');" onMouseOut="restoreSubBG(\'publications_sub3\');"><div width="100%">香港商船公告</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub4"><a href="/hk/msnote/msin.html" target="_top" onMouseOver="swapSubBG(\'publications_sub4\');" onMouseOut="restoreSubBG(\'publications_sub4\');"><div width="100%">香港商船資訊</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub5"><a href="http://www.hydro.gov.hk/Product/ntm.htm" target="_new" onMouseOver="swapSubBG(\'publications_sub5\');" onMouseOut="restoreSubBG(\'publications_sub5\');"><div width="100%">航海通告 (於英文網頁)</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub6"><a href="/hk/publication/hkmn.html" target="_top" onMouseOver="swapSubBG(\'publications_sub6\');" onMouseOut="restoreSubBG(\'publications_sub6\');"><div width="100%">香港海事通訊</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub7"><a href="/hk/publication/press.html" target="_top" onMouseOver="swapSubBG(\'publications_sub7\');" onMouseOut="restoreSubBG(\'publications_sub7\');"><div width="100%">新聞稿</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub8"><a href="/hk/publication/otherept.html" target="_top" onMouseOver="swapSubBG(\'publications_sub8\');" onMouseOut="restoreSubBG(\'publications_sub8\');"><div width="100%">海事處報告</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub9"><a href="/hk/publication/class_per.html" target="_top" onMouseOver="swapSubBG(\'publications_sub9\');" onMouseOut="restoreSubBG(\'publications_sub9\');"><div width="100%">認可機構表現年報</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub10"><a href="/hk/publication/spreport.html" target="_top" onMouseOver="swapSubBG(\'publications_sub10\');" onMouseOut="restoreSubBG(\'publications_sub10\');"><div width="100%">財務委員會特別會議, 書面問題(答覆)</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub11"><a href="/hk/publication/pohk.html" target="_top" onMouseOver="swapSubBG(\'publications_sub11\');" onMouseOut="restoreSubBG(\'publications_sub11\');"><div width="100%">免費香港港口冊子 (只提供英文版)</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub12"><a href="/hk/publication/portstat.html" target="_top" onMouseOver="swapSubBG(\'publications_sub12\');" onMouseOut="restoreSubBG(\'publications_sub12\');"><div width="100%">港口及海事統計資料</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub13"><a href="/hk/publication/opovw.html" target="_top" onMouseOver="swapSubBG(\'publications_sub13\');" onMouseOut="restoreSubBG(\'publications_sub13\');"><div width="100%">客運碼頭經營帳目</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub14"><a href="/hk/publication/berthing.html" target="_top" onMouseOver="swapSubBG(\'publications_sub14\');" onMouseOut="restoreSubBG(\'publications_sub14\');"><div width="100%">靠泊指引 (只提供英文版)</div></a></td></tr>');
document.write('</table></td></tr></table></div>');

//Information Sub Menu
document.write('<div id="informations_menu" onMouseOver="show_menu(\'informations_menu\');swapBG(\'informations\');swapPoint(\'item5\');" onMouseOut="restoreBG(\'informations\');restorePoint(\'item5\');hide_menu(\'informations_menu\');" style="filter:alpha(opacity=90)">');
document.write('<table cellpadding="5" style="margin:0;border:1px #FFFFFF solid;background-color:#5871B3;"><tr><td>');
document.write('<table cellpadding="0" cellspacing="0" border="0" style="background-color:#5871B3;" class="sub_menu">');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="informations_sub1"><a href="/hk/information/home.html" target="_top" onMouseOver="swapSubBG(\'informations_sub1\');" onMouseOut="restoreSubBG(\'informations_sub1\');"><div width="100%">公開資料</div></a></td></tr>');
//document.write('<tr><td style="background-color:#5871B3;height:22;" id="informations_sub2"><a href="http://www.access.gov.hk/tc/index.htm" target="_new" onMouseOver="swapSubBG(\'informations_sub2\');" onMouseOut="restoreSubBG(\'informations_sub2\');"><div width="100%">公開政府資料</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="informations_sub3"><a href="http://www.csb.gov.hk/tc_chi/recruit/cre/949.html" target="_blank" onMouseOver="swapSubBG(\'informations_sub3\');" onMouseOut="restoreSubBG(\'informations_sub3\');"><div width="100%">綜合招聘考試</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="informations_sub4"><a href="http://www.csb.gov.hk/tc_chi/recruit/exammat/340.html" target="_blank" onMouseOver="swapSubBG(\'informations_sub4\');" onMouseOut="restoreSubBG(\'informations_sub4\');"><div width="100%">公務員入職有關語文能力的要求</div></a></td></tr>');
document.write('</table></td></tr></table></div>');

//Public Service Sub Menu
document.write('<div id="pub_services_menu" onMouseOver="show_menu(\'pub_services_menu\');swapBG(\'pub_services\');swapPoint(\'item6\');" onMouseOut="restoreBG(\'pub_services\');restorePoint(\'item6\');hide_menu(\'pub_services_menu\');" style="filter:alpha(opacity=90)">');
document.write('<table cellpadding="5" style="margin:0;border:1px #FFFFFF solid;background-color:#5871B3;"><tr><td>');
document.write('<table cellpadding="0" cellspacing="0" border="0" style="background-color:#5871B3;" class="sub_menu">');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub1"><a href="/hk/pub_services/home.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub1\');" onMouseOut="restoreSubBG(\'pub_services_sub1\');"><div width="100%">香港船舶註冊</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub2"><a href="/hk/pub_services/shipdir.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub2\');" onMouseOut="restoreSubBG(\'pub_services_sub2\');"><div width="100%">香港船務指南 (只提供英文版)</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub3"><a href="/hk/pub_services/arridepa.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub3\');" onMouseOut="restoreSubBG(\'pub_services_sub3\');"><div width="100%">抵港、離港船隻</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub4"><a href="/hk/pub_services/ocean/ocean.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub4\');" onMouseOut="restoreSubBG(\'pub_services_sub4\');"><div width="100%">港口服務</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub5"><a href="/hk/pub_services/workinprogress.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub5\');" onMouseOut="restoreSubBG(\'pub_services_sub5\');"><div width="100%">海事工程 (只提供英文版)</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub6"><a href="/hk/pub_services/exam.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub6\');" onMouseOut="restoreSubBG(\'pub_services_sub6\');"><div width="100%">船員考試和發證以及考試時間表</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub7"><a href="/hk/pub_services/fees.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub7\');" onMouseOut="restoreSubBG(\'pub_services_sub7\');"><div width="100%">收　費</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub8"><a href="http://www.hydro.gov.hk" target="_new" onMouseOver="swapSubBG(\'pub_services_sub8\');" onMouseOut="restoreSubBG(\'pub_services_sub8\');"><div width="100%">海洋地理產品及服務</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub9"><a href="http://marsec.mardep.gov.hk/index.html" target="_new" onMouseOver="swapSubBG(\'pub_services_sub9\');" onMouseOut="restoreSubBG(\'pub_services_sub9\');"><div width="100%">海事安全 (只提供英文版)</div></a></td></tr>');
document.write('</table></td></tr></table></div>');

//Electronic Service Sub Menu
document.write('<div id="ele_services_menu" onMouseOver="show_menu(\'ele_services_menu\');swapBG(\'ele_services\');swapPoint(\'item8\');" onMouseOut="restoreBG(\'ele_services\');restorePoint(\'item8\');hide_menu(\'ele_services_menu\');" style="filter:alpha(opacity=90)">');
document.write('<table cellpadding="5" style="margin:0;border:1px #FFFFFF solid;background-color:#5871B3;"><tr><td>');
document.write('<table cellpadding="0" cellspacing="0" border="0" style="background-color:#5871B3;" class="sub_menu">');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="ele_services_sub1"><a href="/hk/ele_services/home.html" target="_top" onMouseOver="swapSubBG(\'ele_services_sub1\');" onMouseOut="restoreSubBG(\'ele_services_sub1\');"><div width="100%">船員證書資料核對服務 (只提供英文版)</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="ele_services_sub2"><a href="/hk/ele_services/pcp.html" target="_top" onMouseOver="swapSubBG(\'ele_services_sub2\');" onMouseOut="restoreSubBG(\'ele_services_sub2\');"><div width="100%">船隻出港證及多次出入口許可證核對服務</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="ele_services_sub3"><a href="/hk/ele_services/dgis.html" target="_top" onMouseOver="swapSubBG(\'ele_services_sub3\');" onMouseOut="restoreSubBG(\'ele_services_sub3\');"><div width="100%">危險品艙單 (只提供英文版)</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="ele_services_sub4"><a href="http://ebs.mardep.gov.hk" target="_new" onMouseOver="swapSubBG(\'ele_services_sub4\');" onMouseOut="restoreSubBG(\'ele_services_sub4\');"><div width="100%">電子業務系統</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="ele_services_sub5"><a href="/hk/ele_services/berthinfo.html" target="_top" onMouseOver="swapSubBG(\'ele_services_sub5\');" onMouseOut="restoreSubBG(\'ele_services_sub5\');"><div width="100%">港澳客運碼頭和中國客運碼頭 -  核准泊位時段分配情況的資料 (只提供英文版)</div></a></td></tr>');
document.write('</table></td></tr></table></div>');

//Tender Sub Menu
document.write('<div id="tender_menu" onMouseOver="show_menu(\'tender_menu\');swapBG(\'tender\');swapPoint(\'item9\');" onMouseOut="restoreBG(\'tender\');restorePoint(\'item9\');hide_menu(\'tender_menu\');" style="filter:alpha(opacity=90)">');
document.write('<table cellpadding="5" style="margin:0;border:1px #FFFFFF solid;background-color:#5871B3;"><tr><td>');
document.write('<table cellpadding="0" cellspacing="0" border="0" style="background-color:#5871B3;" class="sub_menu">');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="tender_sub1"><a href="/hk/tender/home.html" target="_top" onMouseOver="swapSubBG(\'tender_sub1\');" onMouseOut="restoreSubBG(\'tender_sub1\');"><div width="100%">政府新建船舶</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="tender_sub2"><a href="/hk/tender/otindex.html" target="_top" onMouseOver="swapSubBG(\'tender_sub2\');" onMouseOut="restoreSubBG(\'tender_sub2\');"><div width="100%">雜項</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="tender_sub3"><a href="/hk/tender/gfis.html" target="_top" onMouseOver="swapSubBG(\'tender_sub3\');" onMouseOut="restoreSubBG(\'tender_sub3\');"><div width="100%">政府船隊資訊系統</div></a></td></tr>');
document.write('</table></td></tr></table></div>');

//Links Sub Menu
document.write('<div id="links_menu" onMouseOver="show_menu(\'links_menu\');swapBG(\'links\');swapPoint(\'item10\');" onMouseOut="restoreBG(\'links\');restorePoint(\'item10\');hide_menu(\'links_menu\');" style="filter:alpha(opacity=90)">');
document.write('<table cellpadding="5" style="margin:0;border:1px #FFFFFF solid;background-color:#5871B3;"><tr><td>');
document.write('<table cellpadding="0" cellspacing="0" border="0" style="background-color:#5871B3;" class="sub_menu">');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="links_sub1"><a href="/hk/links/home.html" target="_top" onMouseOver="swapSubBG(\'links_sub1\');" onMouseOut="restoreSubBG(\'links_sub1\');"><div width="100%">連結其他網址 (只提供英文版)</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="links_sub2"><a href="/hk/links/local.html" target="_top" onMouseOver="swapSubBG(\'links_sub2\');" onMouseOut="restoreSubBG(\'links_sub2\');"><div width="100%">本地天氣</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="links_sub3"><a href="http://www.gov.hk/tc/about/govdirectory/govwebsite.htm" target="_top" onMouseOver="swapSubBG(\'links_sub3\');" onMouseOut="restoreSubBG(\'links_sub3\');"><div width="100%">其他政府機構</div></a></td></tr>');
document.write('</table></td></tr></table></div>');

//Others Sub Menu
document.write('<div id="others_menu" onMouseOver="show_menu(\'others_menu\');swapBG(\'others\');swapPoint(\'item11\');" onMouseOut="restoreBG(\'others\');restorePoint(\'item11\');hide_menu(\'others_menu\');" style="filter:alpha(opacity=90)">');
document.write('<table cellpadding="5" style="margin:0;border:1px #FFFFFF solid;background-color:#5871B3;"><tr><td>');
document.write('<table cellpadding="0" cellspacing="0" border="0" style="background-color:#5871B3;" class="sub_menu">');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub1"><a href="/hk/others/home.html" target="_top" onMouseOver="swapSubBG(\'others_sub1\');" onMouseOut="restoreSubBG(\'others_sub1\');"><div width="100%">港口國監督</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub2"><a href="/hk/others/life-saving.html" target="_top" onMouseOver="swapSubBG(\'others_sub2\');" onMouseOut="restoreSubBG(\'others_sub2\');"><div width="100%">香港的救生設備維修站</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub3"><a href="/hk/others/mdtc.html" target="_top" onMouseOver="swapSubBG(\'others_sub3\');" onMouseOut="restoreSubBG(\'others_sub3\');"><div width="100%">海事處訓練中心</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub4"><a href="/hk/others/sgtis.html" target="_top" onMouseOver="swapSubBG(\'others_sub4\');" onMouseOut="restoreSubBG(\'others_sub4\');"><div width="100%">航海訓練獎勵計劃</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub5"><a href="/hk/others/info_marpol.html" target="_top" onMouseOver="swapSubBG(\'others_sub5\');" onMouseOut="restoreSubBG(\'others_sub5\');"><div width="100%">在香港實施防污公約的有關資料</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub6"><a href="/hk/others/mdvacancy.html" target="_top" onMouseOver="swapSubBG(\'others_sub6\');" onMouseOut="restoreSubBG(\'others_sub6\');"><div width="100%">職位空缺</div></a></td></tr>');
document.write('</table></td></tr></table></div>');
}