




var MHeight = 0;


var isDOMxx = (document.getElementById ? true : false);
var isIE4xx = ((document.all && !isDOMxx) ? true : false);
var isNS4xx = (document.layers ? true : false);

var menu = new Array();
var litNow = new Array();
var popTimerxx = 0;

// changed by sam, from 170 to 180
var widthL1 = 180;
var widthRemain = 760 - widthL1;

var OverL1 = '#C7DBFF', BackL1 = '#ADCBFF';
var OverL2 = '#7AABFF', BackL2 = '#C7DBFF';
var BackL3 = '#dd7722';
var BackL4 = '#eea000';
var BackL5 = '#3080dd';
var BackL6 = '#2060bb';
var textL1 = '#ffffff';
var textL2 = '#222222';

var basepx = 125;
// changed by sam, from 25 to 24
var heightL1 = 24;
var _widthL2 = '215';
var widthL2;
if(_widthL2 == ""||_widthL2 == null||isNaN(_widthL2)) widthL2 = 200;
else widthL2 = parseInt(_widthL2);
var totalHeight = 0;


var popOldWidth = window.innerWidth;

var dot = '<td align=center valign=top width=14><img src="../../resources/images/tc/dot_01.gif" border=0 ';
var HOME = '<td align=center valign=top width=14><img src="../../resources/images/tc/dot_01.gif" border=0 ';
var space = '<td align=center valign=top width=2><img src="../../resources/images/tc/dot_01.gif" border=0  ';

function bg() {
 if(navigator.appName=="Microsoft Internet Explorer") {
 } else {
 }
}

function writeMenus() {
if (!isDOMxx && !isIE4xx && !isNS4xx) return;

for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0]) {
var str = '', itemX = 0, itemY = 0;

for (currItem = 1; currItem < menu[currMenu].length; currItem++) with (menu[currMenu][currItem]) {
var itemID = 'menu' + currMenu + 'item' + currItem;
var w = (isVert ? width : length);
var h = (isVert ? length : width);

if (isDOMxx || isIE4xx) {
str += '<div id="' + itemID + '" style="position: absolute; left: ' + itemX + '; top: ' + itemY + '; width: ' + w + '; height: ' + h + '; visibility: inherit; ';
if (backCol) str += 'background: ' + backCol + '; ';
str += '" ';
}
if (isNS4xx) {
str += '<layer id="' + itemID + '" left="' + itemX + '" top="' + itemY + '" width="' +  w + '" height="' + h + '" visibility="inherit" ';
if (backCol) str += 'bgcolor="' + backCol + '" ';
}
if (borderClass) str += 'class="' + borderClass + '" ';

str += 'onMouseOver="popOver(' + currMenu + ',' + currItem + ')" onMouseOut="popOut(' + currMenu + ',' + currItem + ')">';

str += '<table id="MENU" width="' + (w - 8) + '" border="0" valign=top cellspacing="0" cellpadding="' + (!isNS4xx && borderClass ? 3 : 0) + '">' + "<tr onmouseout=clearstatus(); onmouseover=cursorhand(this,'"+href+"'); onclick=gourl('"+href+"');>"  + image + '<td align="left" height="' + (h - 7) + '">' + '<a class="' + textClass + '" href="' + href + '"' + (frame ? ' target="' + frame + '">' : '>') + text + '</a></td>';
if (target > 0) {

menu[target][0].parentMenu = currMenu;
menu[target][0].parentItem = currItem;

if (popInd) str += '<td class="' + textClass + '" valign=top align="right">' + popInd + '</td>';
}
str += '</tr></table>' + (isNS4xx ? '</layer>' : '</div>');
if (isVert) itemY += length + spacing;
else itemX += length + spacing;
}
if (isDOMxx) {
var newDiv = document.createElement('div');
document.getElementsByTagName('body').item(0).appendChild(newDiv);
newDiv.innerHTML = str;
ref = newDiv.style;
ref.position = 'absolute';
ref.visibility = 'hidden';
ref.valign='top';
}

if (isIE4xx) {
document.body.insertAdjacentHTML('beforeEnd', '<div id="menu' + currMenu + 'div" ' + 'style="position: absolute; visibility: hidden">' + str + '</div>');
ref = getSty('menu' + currMenu + 'div');
}

if (isNS4xx) {
ref = new Layer(0);
ref.document.write(str);
ref.document.close();
}

for (currItem = 1; currItem < menu[currMenu].length; currItem++) {
itemName = 'menu' + currMenu + 'item' + currItem;
if (isDOMxx || isIE4xx) menu[currMenu][currItem].ref = getSty(itemName);
if (isNS4xx) menu[currMenu][currItem].ref = ref.document[itemName];
   }
}
with(menu[0][0]) {
ref.left = x;
ref.top = y;
ref.visibility = 'visible';
   }

//document.getElementById("menuRow").height=totalHeight;

}

/* function Item(image, text, href, frame, length, spacing, target) */
/* Edit Menu Here -- Start */


	var chiht;
	var chiht_num;
	var dtl_chiht;
	var dtl_chiht_num;
	menu[0] = new Array();
	menu[0][0] = new Menu(true, '', 0, basepx, widthL1, OverL1, BackL1, 'itemBorder', 'itemText');

	
	chiht = '1';
	if (chiht == "" || chiht == null || isNaN(chiht)) chiht_num = 1;
	else chiht_num = parseInt(chiht);
	
	
	menu[0][1] = new Item1(dot, "最新消息 ", "../../tc/whats_new/whats_new.html", '', chiht_num, 0, 1);
	totalHeight = totalHeight + heightL1*chiht_num;
	menu[1] = new Array();
	menu[1][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[1][1] = new Item2(space, "新聞公報", '../../tc/whats_new/press_release.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[1][2] = new Item2(space, "最近的會議議程", '../../tc/whats_new/agenda.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[1][3] = new Item2(space, "最近的決定摘要", '../../tc/whats_new/gist.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[1][4] = new Item2(space, "最近的會議記錄", '../../tc/whats_new/minutes.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[1][5] = new Item2(space, "邀請陳述的最新草圖", '../../tc/whats_new/new_draft_plan.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '2';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[1][6] = new Item2(space, "邀請意見的最新申請及進一步資料", '../../tc/whats_new/new_application.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[1][7] = new Item2(space, "供公衆查閱的最新申請意見", '../../tc/whats_new/application_comment.html', '', dtl_chiht_num, 0, 0);
	
	
	
	

	
	chiht = '1';
	if (chiht == "" || chiht == null || isNaN(chiht)) chiht_num = 1;
	else chiht_num = parseInt(chiht);
	
	
	menu[0][2] = new Item1(dot, "關於我們", "../../tc/about_us/about_us.html", '', chiht_num, 0, 2);
	totalHeight = totalHeight + heightL1*chiht_num;
	menu[2] = new Array();
	menu[2][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[2][1] = new Item2(space, "簡介", '../../tc/about_us/intro.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[2][2] = new Item2(space, "成員", '../../tc/about_us/member.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[2][3] = new Item2(space, "年報", '../../tc/about_us/annual_rpt.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[2][4] = new Item2(space, "辦事程序與方法", '../../tc/about_us/procedure.html', '', dtl_chiht_num, 0, 0);
	
	
	
	

	
	chiht = '1';
	if (chiht == "" || chiht == null || isNaN(chiht)) chiht_num = 1;
	else chiht_num = parseInt(chiht);
	
	
	menu[0][3] = new Item1(dot, "新聞公報", "../../tc/press_release/press_release.html", '', chiht_num, 0, 3);
	totalHeight = totalHeight + heightL1*chiht_num;
	menu[3] = new Array();
	menu[3][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[3][1] = new Item2(space, "法定圖則公布", '../../tc/press_release/publication.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[3][2] = new Item2(space, "其他消息", '../../tc/press_release/others.html', '', dtl_chiht_num, 0, 0);
	
	
	
	

	
	chiht = '2';
	if (chiht == "" || chiht == null || isNaN(chiht)) chiht_num = 1;
	else chiht_num = parseInt(chiht);
	
	
	menu[0][4] = new Item1(dot, "表格, 準則, 技術文件及相關文件", "../../tc/forms/forms.html", '', chiht_num, 0, 4);
	totalHeight = totalHeight + heightL1*chiht_num;
	menu[4] = new Array();
	menu[4][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[4][1] = new Item2(space, "城市規劃條例", '../../tc/forms/ordinance.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[4][2] = new Item2(space, "城市規劃委員會規劃指引", '../../tc/forms/guideline.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[4][3] = new Item2(space, "技術文件", '../../tc/forms/techdoc.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[4][4] = new Item2(space, "表格及申請須知", '../../tc/forms/forms_related.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[4][5] = new Item2(space, "法定圖則註釋總表", '../../tc/forms/master_schedule.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[4][6] = new Item2(space, "詞彙釋義", '../../tc/forms/definition.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[4][7] = new Item2(space, "資料冊子", '../../tc/forms/info_pamphlet.html', '', dtl_chiht_num, 0, 0);
	
	
	
	

	
	chiht = '1';
	if (chiht == "" || chiht == null || isNaN(chiht)) chiht_num = 1;
	else chiht_num = parseInt(chiht);
	
	
	menu[0][5] = new Item1(dot, "法定圖則目錄", "../../tc/list_of_plans/list_of_plans.html", '', chiht_num, 0, 5);
	totalHeight = totalHeight + heightL1*chiht_num;
	menu[5] = new Array();
	menu[5][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[5][1] = new Item2(space, "簡介", '../../tc/list_of_plans/intro.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[5][2] = new Item2(space, "法定圖則涵蓋的範圍", '../../tc/list_of_plans/coverage.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[5][3] = new Item2(space, "圖則一覽表", '../../tc/list_of_plans/schedule_plan.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[5][4] = new Item2(space, "圖則內容", '../../tc/list_of_plans/content_plan.html', '', dtl_chiht_num, 0, 0);
	
	
	
	

	
	chiht = '1';
	if (chiht == "" || chiht == null || isNaN(chiht)) chiht_num = 1;
	else chiht_num = parseInt(chiht);
	
	
	menu[0][6] = new Item1(dot, "製訂圖則", "../../tc/plan_making/plan_making.html", '', chiht_num, 0, 6);
	totalHeight = totalHeight + heightL1*chiht_num;
	menu[6] = new Array();
	menu[6][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[6][1] = new Item2(space, "怎樣參與?", '../../tc/plan_making/participate.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '2';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[6][2] = new Item2(space, "現正邀請申述／意見／進一步申述的圖則", '../../tc/plan_making/draft_plan.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '3';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[6][3] = new Item2(space, "現正邀請反對陳述／進一步反對陳述的圖則（根據修訂前的城規條例）", '../../tc/plan_making/draft_plan_inv_obj.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '2';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[6][4] = new Item2(space, "現正供公眾查閱的申述／意見／進一步申述", '../../tc/plan_making/submission_insp.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '3';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[6][5] = new Item2(space, "反對陳述／進一步反對陳述的摘要（根據修訂前的城規條例）", '../../tc/plan_making/draft_plan_obj.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[6][6] = new Item2(space, "維港的規劃", '../../tc/plan_making/victoriaharbour.html', '', dtl_chiht_num, 0, 0);
	
	
	
	

	
	chiht = '1';
	if (chiht == "" || chiht == null || isNaN(chiht)) chiht_num = 1;
	else chiht_num = parseInt(chiht);
	
	
	menu[0][7] = new Item1(dot, "規劃申請", "../../tc/plan_application/plan_application.html", '', chiht_num, 0, 7);
	totalHeight = totalHeight + heightL1*chiht_num;
	menu[7] = new Array();
	menu[7][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[7][1] = new Item2(space, "怎樣申請?", '../../tc/plan_application/apply.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[7][2] = new Item2(space, "怎樣提出意見?", '../../tc/plan_application/make_comment.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '2';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[7][3] = new Item2(space, "現正邀請意見的申請及進一步資料", '../../tc/plan_application/application_comment.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '2';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[7][4] = new Item2(space, "現正供公眾查閱的申請及意見", '../../tc/plan_application/application_insp.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '2';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[7][5] = new Item2(space, "現正邀請意見的市區重建局發展計劃圖", '../../tc/plan_application/development_comment.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '2';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[7][6] = new Item2(space, "現正供公眾查閱的市區重建局發展計劃圖", '../../tc/plan_application/development_insp.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '2';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[7][7] = new Item2(space, "規劃許可申請（根據修訂前的城規條例）", '../../tc/plan_application/application_permission.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '2';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[7][8] = new Item2(space, "修訂法定圖則的要求（根據修訂前的城規條例）", '../../tc/plan_application/request_amend.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '2';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[7][9] = new Item2(space, "過往的規劃申請記錄 (由一九九零年一月一日起)", '../../tc/plan_application/records.html', '', dtl_chiht_num, 0, 0);
	
	
	
	

	
	chiht = '1';
	if (chiht == "" || chiht == null || isNaN(chiht)) chiht_num = 1;
	else chiht_num = parseInt(chiht);
	
	
	menu[0][8] = new Item1(dot, "會議", "../../tc/meetings/meetings.html", '', chiht_num, 0, 8);
	totalHeight = totalHeight + heightL1*chiht_num;
	menu[8] = new Array();
	menu[8][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[8][1] = new Item2(space, "公開會議的相關事宜", '../../tc/meetings/open_meeting.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[8][2] = new Item2(space, "城市規劃委員會會議", '../../tc/meetings/tpb_meeting.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[8][3] = new Item2(space, "都會規劃小組委員會會議", '../../tc/meetings/mpc_meeting.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '2';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[8][4] = new Item2(space, "鄉郊及新市鎮規劃小組委員會會議", '../../tc/meetings/rntpc_meeting.html', '', dtl_chiht_num, 0, 0);
	
	
	dtl_chiht = '1';
	if (dtl_chiht == "" || dtl_chiht == null) dtl_chiht_num = 1;
	else dtl_chiht_num = parseInt(dtl_chiht);
	menu[8][5] = new Item2(space, "聆聽申述小組委員會會議", '../../tc/meetings/rhc_meeting.html', '', dtl_chiht_num, 0, 0);
	
	
	
	

	
	chiht = '1';
	if (chiht == "" || chiht == null || isNaN(chiht)) chiht_num = 1;
	else chiht_num = parseInt(chiht);
	
	
	menu[0][9] = new Item1(dot, "城規會一般事項文件", "../../tc/papers/papers.html", '', chiht_num, 0, 0);
	totalHeight = totalHeight + heightL1*chiht_num;
	
	

	
	chiht = '1';
	if (chiht == "" || chiht == null || isNaN(chiht)) chiht_num = 1;
	else chiht_num = parseInt(chiht);
	
	
	menu[0][10] = new Item1(dot, "連結", "../../tc/links/links.html", '', chiht_num, 0, 0);
	totalHeight = totalHeight + heightL1*chiht_num;
	
	

	
	chiht = '1';
	if (chiht == "" || chiht == null || isNaN(chiht)) chiht_num = 1;
	else chiht_num = parseInt(chiht);
	
	
	menu[0][11] = new Item1(dot, "聯絡我們", "../../tc/contact_us/contact_us.html", '', chiht_num, 0, 0);
	totalHeight = totalHeight + heightL1*chiht_num;
	
	


/* Edit Menu Here -- End */

nsResizeHandler = new Function('if (popOldWidth != window.innerWidth) location.reload()');

if (isNS4xx) document.captureEvents(Event.CLICK);
document.onclick = clickHandle;

function AddMenuHeight(y) {
        MHeight = MHeight + y - 1;
}

function cursorhand(x,y) {
	x.style.cursor = 'hand';
        window.status = y;
}

function clearstatus() {
 	window.status='';
}

function gourl(x) {
	window.location = x;
}

function getRef(id) {
if (isDOMxx) return document.getElementById(id);
if (isIE4xx) return document.all[id];
if (isNS4xx) return document.layers[id];
}

function getSty(id) {
return (isNS4xx ? getRef(id) : getRef(id).style);
}

function popOver(menuNum, itemNum) {
clearTimeout(popTimerxx);
hideAllBut(menuNum);
litNow = getTree(menuNum, itemNum);
changeCol(litNow, true);
targetNum = menu[menuNum][itemNum].target;
if (targetNum > 0) {
thisX = parseInt(menu[menuNum][0].ref.left) + parseInt(menu[menuNum][itemNum].ref.left);
thisY = parseInt(menu[menuNum][0].ref.top) + parseInt(menu[menuNum][itemNum].ref.top);
with (menu[targetNum][0].ref) {
left = parseInt(thisX + menu[targetNum][0].x);
top = parseInt(thisY + menu[targetNum][0].y);
visibility = 'visible';
      }
   }
}

function popOut(menuNum, itemNum) {
if ((menuNum == 0) && !menu[menuNum][itemNum].target)
hideAllBut(0)
else
popTimerxx = setTimeout('hideAllBut(0)', 500);
}

function getTree(menuNum, itemNum) {

itemArray = new Array(menu.length);

while(1) {
itemArray[menuNum] = itemNum;

if (menuNum == 0) return itemArray;
itemNum = menu[menuNum][0].parentItem;
menuNum = menu[menuNum][0].parentMenu;
   }
}

function changeCol(changeArray, isOver) {
for (menuCount = 0; menuCount < changeArray.length; menuCount++) {
if (changeArray[menuCount]) {
newCol = isOver ? menu[menuCount][0].overCol : menu[menuCount][0].backCol;
// Change the colours of the div/layer background.
with (menu[menuCount][changeArray[menuCount]].ref) {
if (isNS4xx) bgColor = newCol;
else backgroundColor = newCol;
         }
      }
   }
}
function hideAllBut(menuNum) {
var keepMenus = getTree(menuNum, 1);
for (count = 0; count < menu.length; count++)
if (!keepMenus[count])
menu[count][0].ref.visibility = 'hidden';
changeCol(litNow, false);
}

function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) {

this.isVert = isVert;

this.popInd = popInd;

this.x = x;
this.y = y;
this.width = width;
this.overCol = overCol;
this.backCol = backCol;
this.borderClass = borderClass;
this.textClass = "menu";
this.parentMenu = null;
this.parentItem = null;
this.ref = null;

}

function Item1(image, text, href, frame, length, spacing, target) {
this.image = image + ' alt="' + text + '" valign=top name="' + text + '"></td>';
this.text = text;
if (href==''){
this.href = "index_e.htm";
}else{
this.href = href;
}
this.frame = frame;

if(length > 1) {
  this.length = (length - 1) * heightL1 * 1.6;
} else {
  this.length = length * heightL1;  
}
AddMenuHeight(this.length);

this.spacing = spacing;
this.target = target;
this.ref = null;
}

function Item2(image, text, href, frame, length, spacing, target) {
this.image = image + ' alt="' + text + '" valign=top name="' + text + '"></td>';
this.text = text;
if (href==''){
this.href = "index_e.htm";
}else{
this.href = href;
}
this.frame = frame;

if(length > 2) {
  this.length = heightL1 * (1.6 + (length-2)*0.8);
} else if(length > 1) {
  this.length = heightL1 * 1.6;
} else {
  this.length = length * heightL1;  
}

this.spacing = spacing;
this.target = target;
this.ref = null;
}

function moveRoot()
{
 with(menu[0][0].ref) left = ((parseInt(left) < 100) ? 100 : 5);
}

function clickHandle(evt)
{
 if (isNS4xx) document.routeEvent(evt);
 hideAllBut(0);
}



