function swapPoint(item) {
	var i=document.getElementById(item);
	i.src="/en/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="/en/images/orangedots.gif";
}

function restoreBG(item) {
	var bg=document.getElementById(item).style;
	switch(item) {
		case "home":
			bg.backgroundImage = "url('/en/images/sea_bg_1.jpg')";
			break;
		case "news":
			bg.backgroundImage = "url('/en/images/sea_bg_2.jpg')";
			break;
		case "aboutus":
		  bg.backgroundImage = "url('/en/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.style.backgroundColor = "#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 opacity(id, start, end, millisec) {
	var speed = Math.round(millisec/100);
	var timer =0;
	
	if (start > end) {
		for (i=start; i>=end; i--) {
			setTimeout("changeOpac("+i+",'"+id+"')",(timer+speed));
			timer++;
		}
		document.getElementById(id).style.visibility = "hidden";
	} 
	else if (start <end) {
		for (i=start; i<=end; i++)
		{
			setTimeout("changeOpac("+i+",'"+id+"')",(timer+speed));
			timer++;
		}
		document.getElementById(id).style.visibility = "visible";	
	}
}

function changeOpac(opacity, id) {
	var item = document.getElementById(id).style; 
	item.opacity = (opacity / 100);
	item.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(\'/en/images/sea_bg_1.jpg\');width:153;height:23;" id="home"><a href="/en/home.html" target="_top" onClick="setBG(\'home\');" onMouseOver="swapBG(\'home\');swapPoint(\'item1\');" onMouseOut="restoreBG(\'home\');restorePoint(\'item1\');"><div width="100%"><img src="/en/images/orangedots.gif" alt="" id="item1">Home</div></a></td></tr>');
document.write('<tr><td style="background-image:url(\'/en/images/sea_bg_2.jpg\');width:153;height:23;" id="news"><a href="/en/news/home.html" target="_top" onClick="setBG(\'news\');" onMouseOver="swapBG(\'news\');swapPoint(\'item2\');" onMouseOut="restoreBG(\'news\');restorePoint(\'item2\');"><div width="100%"><img src="/en/images/orangedots.gif" alt="" id="item2">What\'s new</div></a></td></tr>');
document.write('<tr><td style="background-image:url(\'/en/images/sea_bg_3.jpg\');width:153;height:23;" id="aboutus"><a href="/en/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="/en/images/orangedots.gif" alt="" id="item3">About us</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:40;" id="publications"><a href="/en/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\');" style="cursor:pointer;"><div style="float:left;padding-top:5;"><img src="/en/images/orangedots.gif" alt="" id="item4"></div><div style="float:left;width:84%">Publications and <br>press releases</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="informations"><a href="/en/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="/en/images/orangedots.gif" alt="" id="item5">Access to information</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="pub_services"><a href="/en/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="/en/images/orangedots.gif" alt="" id="item6">Public services</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="forms"><a href="/en/forms/home.html" target="_top" onClick="setBG(\'forms\')" onMouseOver="swapBG(\'forms\');swapPoint(\'item7\');" onMouseOut="restoreBG(\'forms\');restorePoint(\'item7\');"><div width="100%"><img src="/en/images/orangedots.gif" alt="" id="item7">Public forms</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="ele_services"><a href="/en/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="/en/images/orangedots.gif" alt="" id="item8">Electronic services</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="tender"><a href="/en/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="/en/images/orangedots.gif" alt="" id="item9">Tender notices</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="links"><a href="/en/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="/en/images/orangedots.gif" alt="" id="item10">Links</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="others"><a href="/en/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="/en/images/orangedots.gif" alt="" id="item11">Others</div></a></td></tr>');
document.write('<tr><td style="background-color:#003478;width:153;height:23;" id="contact_us"><a href="/en/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="/en/images/orangedots.gif" alt="" id="item12">Contact us</div></a></td></tr>');
document.write('<tr><td style="background-image:url(\'/en/images/sea_bg_4.jpg\');width:153;height:153;border:0"></td></tr>');
document.write('<tr><td style="background-color:#044AA1;width:153px;height:50px;border:0"></td></tr>');
document.write('</table>');

//About us Sub Menu
document.write('<div id="aboutus_menu" onMouseOver="swapBG(\'aboutus\');swapPoint(\'item3\');show_menu(\'aboutus_menu\');" 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="/en/aboutus/home.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub1\');" onMouseOut="restoreSubBG(\'aboutus_sub1\');"><div width="100%">Welcome Message</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub2"><a href="/en/aboutus/qckcnect.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub2\');" onMouseOut="restoreSubBG(\'aboutus_sub2\');"><div width="100%">Services Quick Connection</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub3"><a href="/en/aboutus/mvv.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub3\');" onMouseOut="restoreSubBG(\'aboutus_sub3\');"><div width="100%">Mission</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub4"><a href="/en/aboutus/dept.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub4\');" onMouseOut="restoreSubBG(\'aboutus_sub4\');"><div width="100%">Organization, Functions and Services</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub5"><a href="/en/aboutus/pledge.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub5\');" onMouseOut="restoreSubBG(\'aboutus_sub5\');"><div width="100%">Performance Pledge</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/eng/press/epp.html" target="_new" onMouseOver="swapSubBG(\'aboutus_sub6\');" onMouseOut="restoreSubBG(\'aboutus_sub6\');"><div width="100%">Enhanced Productivity Programme</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub7"><a href="/en/aboutus/vcd.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub7\');" onMouseOut="restoreSubBG(\'aboutus_sub7\');"><div width="100%">Department Video</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=en&dept=mardep" target="_new" onMouseOver="swapSubBG(\'aboutus_sub8\');" onMouseOut="restoreSubBG(\'aboutus_sub8\');"><div width="100%">Access Statistics</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub9"><a href="/en/aboutus/committees.html" target="_top" onMouseOver="swapSubBG(\'aboutus_sub9\');" onMouseOut="restoreSubBG(\'aboutus_sub9\');"><div width="100%">Advisory, Statutory and Consultative Bodies / Committees</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="aboutus_sub10"><a href="http://www.gov.hk/en/about/abouthk/factsheets/docs/port.pdf" target="_new" onMouseOver="swapSubBG(\'aboutus_sub10\');" onMouseOut="restoreSubBG(\'aboutus_sub10\');"><div width="100%">Hong Kong Fact Sheet - the Port (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="/en/publication/home.html" target="_top" onMouseOver="swapSubBG(\'publications_sub1\');" onMouseOut="restoreSubBG(\'publications_sub1\');"><div width="100%">Shipping Ordinances</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub2"><a href="/en/notices/notices.html" target="_top" onMouseOver="swapSubBG(\'publications_sub2\');" onMouseOut="restoreSubBG(\'publications_sub2\');"><div width="100%">Marine Department Notices</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub3"><a href="/en/msnotice/msn.html" target="_top" onMouseOver="swapSubBG(\'publications_sub3\');" onMouseOut="restoreSubBG(\'publications_sub3\');"><div width="100%">Hong Kong Merchant Shipping Notices</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub4"><a href="/en/msnote/msin.html" target="_top" onMouseOver="swapSubBG(\'publications_sub4\');" onMouseOut="restoreSubBG(\'publications_sub4\');"><div width="100%">Hong Kong Merchant Shipping Information Notes</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%">Notices to Mariners</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub6"><a href="/en/publication/hkmn.html" target="_top" onMouseOver="swapSubBG(\'publications_sub6\');" onMouseOut="restoreSubBG(\'publications_sub6\');"><div width="100%">Hong Kong Maritime News</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub7"><a href="/en/publication/press.html" target="_top" onMouseOver="swapSubBG(\'publications_sub7\');" onMouseOut="restoreSubBG(\'publications_sub7\');"><div width="100%">Press Releases</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub8"><a href="/en/publication/otherept.html" target="_top" onMouseOver="swapSubBG(\'publications_sub8\');" onMouseOut="restoreSubBG(\'publications_sub8\');"><div width="100%">Reports of Marine Department</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub9"><a href="/en/publication/class_per.html" target="_top" onMouseOver="swapSubBG(\'publications_sub9\');" onMouseOut="restoreSubBG(\'publications_sub9\');"><div width="100%">Annual Report on the Performance of Recognised Organisations</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub10"><a href="/en/publication/spreport.html" target="_top" onMouseOver="swapSubBG(\'publications_sub10\');" onMouseOut="restoreSubBG(\'publications_sub10\');"><div width="100%">Special Finance Committee Meeting, Written Questions (Reply)</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub11"><a href="/en/publication/pohk.html" target="_top" onMouseOver="swapSubBG(\'publications_sub11\');" onMouseOut="restoreSubBG(\'publications_sub11\');"><div width="100%">FREE Copies of Port of Hong Kong</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub12"><a href="/en/publication/portstat.html" target="_top" onMouseOver="swapSubBG(\'publications_sub12\');" onMouseOut="restoreSubBG(\'publications_sub12\');"><div width="100%">Port and Maritime Statistics</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub13"><a href="/en/publication/opovw.html" target="_top" onMouseOver="swapSubBG(\'publications_sub13\');" onMouseOut="restoreSubBG(\'publications_sub13\');"><div width="100%">Marine Ferry Terminals Operating Accounts</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="publications_sub14"><a href="/en/publication/berthing.html" target="_top" onMouseOver="swapSubBG(\'publications_sub14\');" onMouseOut="restoreSubBG(\'publications_sub14\');"><div width="100%">Berthing Guidelines</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="/en/information/home.html" target="_top" onMouseOver="swapSubBG(\'informations_sub1\');" onMouseOut="restoreSubBG(\'informations_sub1\');"><div width="100%">Access to Information</div></a></td></tr>');
//document.write('<tr><td style="background-color:#5871B3;height:22;" id="informations_sub2"><a href="http://www.info.gov.hk/access/index.htm" target="_new" onMouseOver="swapSubBG(\'informations_sub2\');" onMouseOut="restoreSubBG(\'informations_sub2\');"><div width="100%">Access to Government Information</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="informations_sub3"><a href="http://www.csb.gov.hk/english/recruit/cre/949.html" target="_top" onMouseOver="swapSubBG(\'informations_sub3\');" onMouseOut="restoreSubBG(\'informations_sub3\');"><div width="100%">Common Recruitment Examination</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="informations_sub4"><a href="http://www.csb.gov.hk/english/recruit/exammat/340.html" target="_top" onMouseOver="swapSubBG(\'informations_sub4\');" onMouseOut="restoreSubBG(\'informations_sub4\');"><div width="100%">The Language Proficiency Requirements for Entry to the Civil Service</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="/en/pub_services/home.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub1\');" onMouseOut="restoreSubBG(\'pub_services_sub1\');"><div width="100%">Hong Kong Shipping Register</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub2"><a href="/en/pub_services/shipdir.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub2\');" onMouseOut="restoreSubBG(\'pub_services_sub2\');"><div width="100%">Hong Kong Shipping Directory</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub3"><a href="/en/pub_services/arridepa.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub3\');" onMouseOut="restoreSubBG(\'pub_services_sub3\');"><div width="100%">Arrivals and Departures</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub4"><a href="/en/pub_services/ocean/ocean.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub4\');" onMouseOut="restoreSubBG(\'pub_services_sub4\');"><div width="100%">Port Services</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub5"><a href="/en/pub_services/workinprogress.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub5\');" onMouseOut="restoreSubBG(\'pub_services_sub5\');"><div width="100%">Marine Works in Progress</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub6"><a href="/en/pub_services/exam.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub6\');" onMouseOut="restoreSubBG(\'pub_services_sub6\');"><div width="100%">Certification and Examination for Seafarers Including Examination Schedule</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="pub_services_sub7"><a href="/en/pub_services/fees.html" target="_top" onMouseOver="swapSubBG(\'pub_services_sub7\');" onMouseOut="restoreSubBG(\'pub_services_sub7\');"><div width="100%">Fees and Charges</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%">Hydrographic Services and Products</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%">Maritime Security</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="/en/ele_services/home.html" target="_top" onMouseOver="swapSubBG(\'ele_services_sub1\');" onMouseOut="restoreSubBG(\'ele_services_sub1\');"><div width="100%">Seafarer\'s Certification Information Verification Service</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="ele_services_sub2"><a href="/en/ele_services/pcp.html" target="_top" onMouseOver="swapSubBG(\'ele_services_sub2\');" onMouseOut="restoreSubBG(\'ele_services_sub2\');"><div width="100%">Port Clearance and Multiple Entry and Clearance Permit Verification</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="ele_services_sub3"><a href="/en/ele_services/dgis.html" target="_top" onMouseOver="swapSubBG(\'ele_services_sub3\');" onMouseOut="restoreSubBG(\'ele_services_sub3\');"><div width="100%">Dangerous Goods Manifest</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%">Electronic Business System</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="ele_services_sub5"><a href="/en/ele_services/berthinfo.html" target="_top" onMouseOver="swapSubBG(\'ele_services_sub5\');" onMouseOut="restoreSubBG(\'ele_services_sub5\');"><div width="100%">Hong Kong - Macau Ferry Terminal and China Ferry Terminal - Approved Berthing Slot Allocation</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="ele_services_sub6"><a href="/en/ele_services/bunker_clc.html" target="_top" onMouseOver="swapSubBG(\'ele_services_sub6\');" onMouseOut="restoreSubBG(\'ele_services_sub6\');"><div width="100%">CLC/Bunkers Cert. Authentication</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="/en/tender/home.html" target="_top" onMouseOver="swapSubBG(\'tender_sub1\');" onMouseOut="restoreSubBG(\'tender_sub1\');"><div width="100%">Government New Vessels</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="tender_sub2"><a href="/en/tender/otindex.html" target="_top" onMouseOver="swapSubBG(\'tender_sub2\');" onMouseOut="restoreSubBG(\'tender_sub2\');"><div width="100%">General Tenders</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="tender_sub3"><a href="/en/tender/gfis.html" target="_top" onMouseOver="swapSubBG(\'tender_sub3\');" onMouseOut="restoreSubBG(\'tender_sub3\');"><div width="100%">Government Fleet Information System</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="/en/links/home.html" target="_top" onMouseOver="swapSubBG(\'links_sub1\');" onMouseOut="restoreSubBG(\'links_sub1\');"><div width="100%">Links to Other Sites</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="links_sub2"><a href="/en/links/local.html" target="_top" onMouseOver="swapSubBG(\'links_sub2\');" onMouseOut="restoreSubBG(\'links_sub2\');"><div width="100%">Local Weather</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="links_sub3"><a href="http://www.gov.hk/en/about/govdirectory/govwebsite.htm" target="_top" onMouseOver="swapSubBG(\'links_sub3\');" onMouseOut="restoreSubBG(\'links_sub3\');"><div width="100%">Other Hong Kong Government Organizations</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="/en/others/home.html" target="_top" onMouseOver="swapSubBG(\'others_sub1\');" onMouseOut="restoreSubBG(\'others_sub1\');"><div width="100%">Port State Control</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub2"><a href="/en/others/life-saving.html" target="_top" onMouseOver="swapSubBG(\'others_sub2\');" onMouseOut="restoreSubBG(\'others_sub2\');"><div width="100%">Life-saving Equipment Service Stations in Hong Kong</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub3"><a href="/en/others/mdtc.html" target="_top" onMouseOver="swapSubBG(\'others_sub3\');" onMouseOut="restoreSubBG(\'others_sub3\');"><div width="100%">Marine Department Training Centre</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub4"><a href="/en/others/sgtis.html" target="_top" onMouseOver="swapSubBG(\'others_sub4\');" onMouseOut="restoreSubBG(\'others_sub4\');"><div width="100%">Sea-going Training Incentive Scheme</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub5"><a href="/en/others/info_marpol.html" target="_top" onMouseOver="swapSubBG(\'others_sub5\');" onMouseOut="restoreSubBG(\'others_sub5\');"><div width="100%">Useful Information on MARPOL Implementation in Hong Kong</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub6"><a href="/en/others/mdvacancy.html" target="_top" onMouseOver="swapSubBG(\'others_sub6\');" onMouseOut="restoreSubBG(\'others_sub6\');"><div width="100%">Job Vacancies</div></a></td></tr>');
document.write('<tr><td style="background-color:#5871B3;height:22;" id="others_sub7"><a href="/en/others/access.html" target="_top" onMouseOver="swapSubBG(\'others_sub7\');" onMouseOut="restoreSubBG(\'others_sub7\');"><div width="100%">Accessibility of Government Premises, Facilities and Services</div></a></td></tr>');
document.write('</table></td></tr></table></div>');
}
