function swapPoint(item) {
	var i=document.getElementById(item);
	i.src="/sc/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="/sc/images/orangedots.gif";
}

function restoreBG(item) {
	var bg=document.getElementById(item).style;
	switch(item) {
		case "home":
			bg.backgroundImage = "url('/sc/images/sea_bg_1.jpg')";
			break;
		case "news":
			bg.backgroundImage = "url('/sc/images/sea_bg_2.jpg')";
			break;
		case "aboutus":
		  bg.backgroundImage = "url('/sc/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).style;
	//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(\'/sc/images/sea_bg_1.jpg\');width:153;height:23;" id="home"><a href="/sc/home.html" target="_top" onClick="setBG(\'home\');" onMouseOver="swapBG(\'home\');swapPoint(\'item1\');" onMouseOut="restoreBG(\'home\');restorePoint(\'item1\');"><div width="100%"><img src="/sc/images/orangedots.gif" alt="" id="item1">首页</div></a></td></tr>');
document.write('<tr><td style="background-image:url(\'/sc/images/sea_bg_2.jpg\');width:153;height:23;" id="news"><a href="/sc/news/home.html" target="_top" onClick="setBG(\'news\')" onMouseOver="swapBG(\'news\');swapPoint(\'item2\');" onMouseOut="restoreBG(\'news\');restorePoint(\'item2\');"><div width="100%"><img src="/sc/images/orangedots.gif" alt="" id="item2">最新消息</div></a></td></tr>');
document.write('<tr><td style="background-image:url(\'/sc/images/sea_bg_3.jpg\');width:153;height:23;" id="aboutus"><a href="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/forms/home.html" target="_top" onClick="setBG(\'forms\')" onMouseOver="swapBG(\'forms\');swapPoint(\'item7\');" onMouseOut="restoreBG(\'forms\');restorePoint(\'item7\');"><div width="100%"><img src="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/images/orangedots.gif" alt="" id="item12">联络我们</div></a></td></tr>');
document.write('<tr><td style="background-image:url(\'/sc/images/sea_bg_4.jpg\');width:153;height:153;border:0"></td></tr>');
document.write('<tr><td style="background-color:#044AA1;width:153px;height:100px;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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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/simpchi/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="/sc/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_cn&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="/sc/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/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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/sc/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://202.67.226.40/gate/gb/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://202.67.226.40/gate/gb/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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('<tr><td style="background-color:#5871B3;height:22;" id="ele_services_sub6"><a href="/sc/ele_services/bunker_clc.html" target="_top" onMouseOver="swapSubBG(\'ele_services_sub6\');" onMouseOut="restoreSubBG(\'ele_services_sub6\');"><div width="100%">CLC/Bunkers Cert. 核实服务 (只提供英文版)</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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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/sc/about/govdirectory/govwebsite/alphabetical.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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/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="/sc/others/mdvacancy.html" target="_top" onMouseOver="swapSubBG(\'others_sub6\');" onMouseOut="restoreSubBG(\'others_sub6\');"><div width="100%">职位空缺</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub7"><a href="/sc/others/access.html" target="_top" onMouseOver="swapSubBG(\'others_sub7\');" onMouseOut="restoreSubBG(\'others_sub7\');"><div width="100%">政府建筑物、设施和服务的无障碍事宜</div></a></td></tr>');
document.write('</table></td></tr></table></div>');
}
