// To adjust menu position function fAdjustPos(vObjectName,parentIndex) { oTemp = document.getElementById(vObjectName) var ie=(document.all); if (ie) { // Adjust the submenu position to prevent it from overlaping the right margin var posexceed posexceed = oTemp.offsetLeft + 160 - 800; if (posexceed > 0) { oTemp.style.pixelLeft = oTemp.offsetLeft - posexceed + 5; } oTemp.style.pixelTop = oMenuInit.offsetTop + 15; } else { a1='290px'; a2='355px'; a3='420px'; a5='550px'; a7='600px'; oTemp.style.left=eval("a"+parentIndex); oTemp.style.top =15; } } // To show menus. function fShowSubmenu(vObjectName,parentIndex) { fAdjustPos(vObjectName,parentIndex); oTemp = document.getElementById(vObjectName) // Make the submenu visible oTemp.style.visibility="visible"; } // To hide menus. function fHideSubmenu(vObjectName) { oTemp = document.getElementById(vObjectName) oTemp.style.visibility="hidden"; } function fPrintSubmenu(vSubmenuIndex) { if (vSubmenuIndex==1) { document.writeln('
\"\"
\"\"
 簡介
 校訓
 校徽校歌
 學校目標
 學校刊物
 校舍設施
 語文政策
 班級課程
 法團校董會章程
 聯絡我們
\"\"
'); } if (vSubmenuIndex==2) { document.writeln('
\"\"
\"\"
 行政架構
 組別工作目標
 課外活動組
 德育及公民教育組
 升學及就業輔導組
 學生輔導組
 訓導組
\"\"
'); } if (vSubmenuIndex==3) { document.writeln('
\"\"
\"\"
 學生會
 四社
 學會
 校隊
 校友會
 家長教師會
\"\"
'); } if (vSubmenuIndex==5) { document.writeln('
\"\"
\"\"
 中大數學網
 Britannica School (校內)
 TV News(教育城)
 LAC系統
 超閱\網
\"\"
'); } if (vSubmenuIndex==7) { document.writeln('
\"\"
\"\"
 學生內聯網
 相片集
 網頁連結
 校曆表
\"\"
'); } } function fAdjustLastSubmenu() { // To adjust the position of the last menu. fAdjustPos("oSubmenu7","7"); }