

var MHeight = 0;
var widthL1 = 150;

var widthRemain = 760 - widthL1;

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;

var OverL1 = '#326432', BackL1 = '#3c8757';
var OverL2 = '#028EB4', BackL2 = '#326432';
var BackL3 = '#dd7722';
var BackL4 = '#eea000';
var BackL5 = '#3080dd';
var BackL6 = '#2060bb';
var textL1 = '#ffffff';
var textL2 = '#222222';

var basepx = 87;
var heightL1 = 21;
var widthL2 = 185;

var popOldWidth = window.innerWidth;

var dot = '<td align=center valign=center width=14><img src='+basepath+'english/images/front/spacer.gif border=0 height=13 width=14 ';
var HOME = '<td align=center valign=center width=14><img src='+basepath+'english/images/front/home.gif border=0 height=13 width=14 ';
var space = '<td align=center valign=center width=2><img src='+basepath+'english/images/front/spacer.gif border=0 height=13 width=2 ';

function bg() {
 if(navigator.appName=="Microsoft Internet Explorer") {
  document.body.background = basepath+'english/images/general/epd_bkg_new_ie.gif';
 } else {
  document.body.background = basepath+'english/images/general/epd_bkg_new_ns.gif';
 }
}

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 width="' + (w - 8) + '" border="0" cellspacing="0" cellpadding="' + (!isNS4xx && borderClass ? 3 : 0) + '">' + "<tr onmouseout=clearstatus(); onmouseover=cursorhand(this,'"+href+"'); onclick=gourl('"+href+"','"+frame+"');>"  + 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 + '" 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';
}

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';
   }
}

/* function Item(image, text, href, frame, length, spacing, target) */
/* Edit Menu Here -- Start */

menu[0] = new Array();
menu[0][0] = new Menu(true, '', 0, basepx, widthL1, OverL1, BackL1, 'itemBorder', 'itemText');
menu[0][1] = new Item1(HOME, "Home", basepath+'eindex.html', '', 1, 0, 0);
menu[0][2] = new Item1(dot, "What's New", basepath+'english/news_events/what_new/what_new.html', '', 1, 0, 0);
menu[0][3] = new Item1(dot, "News & Events", basepath+'english/news_events/news_maincontent.html', '', 1, 0, 1);
menu[0][4] = new Item1(dot, "About Us", basepath+'english/about_epd/aboutepd_maincontent.html', '', 1, 0, 2);
menu[0][5] = new Item1(dot, "Laws & Regulations", basepath+'english/laws_regulations/laws_maincontent.html', '', 1, 0, 3);
menu[0][6] = new Item1(dot, "International Conventions", basepath+'english/international_conventions/international_convention.html', '', 2, 0, 4);
menu[0][7] = new Item1(dot, "LegCo Matters", basepath+'english/news_events/legco/legco.html', '', 1, 0, 5);
menu[0][8] = new Item1(dot, "Boards and Committees", basepath+'english/boards/boards_maincontent.html', '', 2, 0, 6);
menu[0][9] = new Item1(dot, "Application for Licences", basepath+'english/application_for_licences/application_maincontent.html', '', 2, 0, 7);
menu[0][10] = new Item1(dot, "How You Can Help", basepath+'english/how_help/howhelp_maincontent.html', '', 1, 0, 8);
menu[0][11] = new Item1(dot, "Environmental Education", basepath+'english/envir_education/edu_maincontent.html', '', 2, 0, 9);
menu[0][12] = new Item1(dot, "Resources & Publications", basepath+'english/resources_pub/resourcespub_maincontent.html', '', 2, 0, 10);
menu[0][13] = new Item1(dot, "Access to Information", basepath+'english/access_info/access_info.html', '', 2, 0, 0);
menu[0][14] = new Item1(dot, "Business & Job Opportunities", basepath+'english/business_job/businessjob_maincontent.html', '', 2, 0, 11);
menu[0][15] = new Item1(dot, "Links", basepath+'english/links/env_links.html', '', 1, 0, 12);

menu[1] = new Array();
menu[1][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[1][1] = new Item2(space,"Highlights", basepath+'english/news_events/current_issue/current_issue.html', '', 1, 0, 0);
menu[1][2] = new Item2(space,"Letters to the Editors", basepath+'english/news_events/letters/letters.html', '', 1, 0, 0);
menu[1][3] = new Item2(space,"Events & Activities", basepath+'english/news_events/events/events.html', '', 1, 0, 0);
menu[1][4] = new Item2(space,"Press Releases", basepath+'english/news_events/press/press.html', '', 1, 0, 0);
menu[1][5] = new Item2(space,"Speeches & Presentations", basepath+'english/news_events/speech/speech.html', '', 1, 0, 0);
menu[1][6] = new Item2(space,"Notices", basepath+'english/news_events/notices/notices.html', '', 1, 0, 0);
menu[1][7] = new Item2(space,"Gazette Notices", basepath+'english/news_events/gazette/gazette.html', '', 1, 0, 0);
menu[1][8] = new Item2(space,"Tenders", basepath+'english/business_job/business_opp/tender.html', '', 1, 0, 0);
menu[1][9] = new Item2(space,"Vacancies", basepath+'english/business_job/job_opp/vacancies.html', '', 1, 0, 0);
menu[1][10] = new Item2(space,"Newsletter", basepath+'english/news_events/newsletter/newsletters.html', '', 1, 0, 0);
menu[1][11] = new Item2(space,"Other Announcements", basepath+'english/news_events/other/other.html', '', 1, 0, 0);

menu[2] = new Array();
menu[2][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[2][1] = new Item2(space,"Vision & Mission", basepath+'english/about_epd/vis_miss/about_epd.html', '', 1, 0, 0);
menu[2][2] = new Item2(space,"Performance Pledge", basepath+'english/about_epd/perf_pledge/perf_pledge.html', '', 1, 0, 0);
menu[2][3] = new Item2(space,"History & Structure", basepath+'english/about_epd/history/history.html', '', 1, 0, 0);
menu[2][4] = new Item2(space,"Organisation Chart", basepath+'english/about_epd/organ_chart/organ_chart.html', '', 1, 0, 0);
menu[2][5] = new Item2(space,"EPD's Work", basepath+'english/about_epd/epd_work/epd_work.html', '', 1, 0, 0);
menu[2][6] = new Item2(space,"Offices & Facilities", 'english/about_epd/facility/facility.html', '', 1, 0, 0);
menu[2][7] = new Item2(space,"Environmental Management in EPD", basepath+'english/about_epd/env_policy_mgt/env_policy_mgt.html', '', 2, 0, 0);
menu[2][8] = new Item2(space,"Safety & Health Management in EPD", basepath+'english/about_epd/safe/safe.html', '', 2, 0, 0);

menu[3] = new Array();
menu[3][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[3][1] = new Item2(space,"Environmental Legislation", basepath+'english/laws_regulations/envir_legislation/laws_maincontent_el.html', '', 1, 0, 0);
menu[3][2] = new Item2(space,"Compliance Guides", basepath+'english/laws_regulations/comp_guides/laws_maincontent_cg.html', '', 1, 0, 0);
menu[3][3] = new Item2(space,"Environmental Standards & Guidelines", basepath+'english/envir_standards/esg_maincontent.html', '', 2, 0, 0);
menu[3][4] = new Item2(space,"Environmental Compliance", basepath+'english/laws_regulations/enforcement/laws_maincontent_e.html', '', 1, 0, 0);

menu[4] = new Array();
menu[4][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[4][1] = new Item2(space,"Conservation", basepath+'english/international_conventions/conservation/conservation_main.html', '', 1, 0, 0);
menu[4][2] = new Item2(space,"Global Climate Change", basepath+'english/international_conventions/global_climate_change/global_climate_change_main.html', '', 1, 0, 0);
menu[4][3] = new Item2(space,"Hazardous Wastes", basepath+'english/international_conventions/hazardous_wastes/hazardous_wastes_main.html', '', 1, 0, 0);
menu[4][4] = new Item2(space,"Marine Pollution", basepath+'english/international_conventions/marine_pollution/marine_pollution_main.html', '', 1, 0, 0);
menu[4][5] = new Item2(space,"Ozone Layer Protection", basepath+'english/international_conventions/ozone/ozone_main.html', '', 1, 0, 0);
menu[4][6] = new Item2(space,"Persistent Organic Pollutants (POPs)", basepath+'english/international_conventions/pops/pops_main.html', '', 1, 0, 0);

menu[5] = new Array();
menu[5][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[5][1] = new Item2(space,"Finance Committee", basepath+'english/news_events/legco/finance_com.html', '', 1, 0, 0);
menu[5][2] = new Item2(space,"LegCo Questions & Replies", basepath+'english/news_events/legco/ques_reply.html', '', 1, 0, 0);
menu[5][3] = new Item2(space,"Panel on Environmental Affairs", basepath+'english/news_events/legco/ea_panel.html', '', 2, 0, 0);
menu[5][4] = new Item2(space,"LegCo Bills & Regulations", basepath+'english/news_events/legco/bills.html', '', 1, 0, 0);
menu[5][5] = new Item2(space,"LegCo Motion Debate", basepath+'english/news_events/legco/motion_debate.html', '', 1, 0, 0);

menu[6] = new Array();
menu[6][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[6][1] = new Item2(space,"Asbestos Administration Committee", basepath+'english/boards/asbestos/maincontent.html', '', 2, 0, 0);
menu[6][2] = new Item2(space,"Advisory Council on the Environment", basepath+'english/boards/advisory_council/maincontent.html', '', 2, 0, 0);
menu[6][3] = new Item2(space,"Advisory Group on Waste Management Facilities", basepath+'english/boards/advisory_group/maincontent.html', '', 2, 0, 0);
menu[6][4] = new Item2(space,"Air Pollution Control Appeal Board Panel", basepath+'english/boards/ap_appeal/maincontent.html', '', 2, 0, 0);
menu[6][5] = new Item2(space,"Dumping at Sea Appeal Board Panel", basepath+'english/boards/dumping_appeal/maincontent.html', '', 2, 0, 0);
menu[6][6] = new Item2(space,"Energy Efficiency and Conservation Sub-committee", 'http://www.enb.gov.hk/en/boards_committees/energy_subcommittee/index.html', '_blank', 2, 0, 0);
menu[6][7] = new Item2(space,"Environmental Impact Assessment Appeal Board Panel", basepath+'english/boards/eia_appeal/maincontent.html', '', 3, 0, 0);
menu[6][8] = new Item2(space,"Environmental Policy Working Group", basepath+'english/boards/envir_policy/maincontent.html', '', 2, 0, 0);
menu[6][9] = new Item2(space,"Environmental Campaign Committee", 'http://www.ecc.org.hk', '_blank', 2, 0, 0);
menu[6][10] = new Item2(space,"Environment and Conservation Fund Committee / Woo Wheelock Green Fund", basepath+'english/boards/ecfc/maincontent.html', '', 4, 0, 0);
menu[6][11] = new Item2(space,"Noise Control Appeal Board Panel", basepath+'english/boards/noise_appeal/maincontent.html', '', 2, 0, 0);
menu[6][12] = new Item2(space,"Waste Disposal Appeal Board Panel", basepath+'english/boards/waste_appeal/maincontent.html', '', 2, 0, 0);
menu[6][13] = new Item2(space,"Water Pollution Control Appeal Board Panel", basepath+'english/boards/water_appeal/maincontent.html', '', 2, 0, 0);

menu[7] = new Array();
menu[7][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[7][1] = new Item2(space,"On-line Application", basepath+'english/application_for_licences/online_applic/online_app.html', '', 1, 0, 0);
menu[7][2] = new Item2(space,"Application Forms", basepath+'english/application_for_licences/applic_froms/forms.html', '', 1, 0, 0);
menu[7][3] = new Item2(space,"Guidance Notes for Licence Application", basepath+'english/application_for_licences/guidance/guidance_licence.html', '', 2, 0, 0);
menu[7][4] = new Item2(space,"Where to Submit Application", basepath+'english/application_for_licences/sub_applic/application_maincontent38.html', '', 1, 0, 0);

menu[8] = new Array();
menu[8][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[8][1] = new Item2(space,"To Report Pollution", basepath+'english/how_help/report_pollution/reportpollution.html', '', 1, 0, 0);
menu[8][2] = new Item2(space,"Waste Prevention & Recovery", basepath+'english/environmentinhk/waste/prob_solutions/waste_ps_wr.html', '', 1, 0, 0);
menu[8][3] = new Item2(space,"Help Clean the Air", 'http://www.gov.hk/en/residents/environment/public/green/helpcleanair.htm', '_blank', 1, 0, 0);
menu[8][4] = new Item2(space,"Tips to Save the Earth", basepath+'english/how_help/tips_savearth/tips_save.html', '', 1, 0, 0);
menu[8][5] = new Item2(space,"Environmental Management Tools", basepath+'english/how_help/tools_ems/overview.html', '', 2, 0, 0);
menu[8][6] = new Item2(space,"Green Procurement", basepath+'english/how_help/green_procure/green_procure.html', '', 1, 0, 0);
menu[8][7] = new Item2(space,"Application for Funds", basepath+'english/how_help/app_funds/app_funds.html', '', 1, 0, 0);

menu[9] = new Array();
menu[9][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[9][1] = new Item2(space,"Environmental Education & Awareness in Hong Kong", basepath+'english/envir_education/enviredu_aware/overview.html', '', 2, 0, 0);
menu[9][2] = new Item2(space,"Environmental Education Packages", basepath+'english/envir_education/envir_explorer/packages_main.html', '', 2, 0, 0);
menu[9][3] = new Item2(space,"Environmental Resource Centres", basepath+'english/envir_education/envir_resourcectr/resource_ctr.html', '', 2, 0, 0);
menu[9][4] = new Item2(space,"Gallery", basepath+'english/envir_education/gallery/gallery.html', '', 1, 0, 0);

menu[10] = new Array();
menu[10][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[10][1] = new Item2(space,"Milestones in Hong Kong Environmental Protection", basepath+'english/resources_pub/history/history_hkep.html', '', 2, 0, 0);
menu[10][2] = new Item2(space,"Publications", basepath+'english/resources_pub/publications/publications.html', '', 1, 0, 0);
menu[10][3] = new Item2(space,"Resource Materials", basepath+'english/resources_pub/resource_materials/resource_materials.html', '', 1, 0, 0);
menu[10][4] = new Item2(space,"Environmental Legislation", basepath+'english/laws_regulations/envir_legislation/laws_maincontent_el.html', '', 1, 0, 0);
menu[10][5] = new Item2(space,"Environmental Statistics", basepath+'english/resources_pub/envir_info/envir_info.html', '', 1, 0, 0);
menu[10][6] = new Item2(space,"Environmental Standards & Guidelines", basepath+'english/envir_standards/esg_maincontent.html', '', 2, 0, 0);
menu[10][7] = new Item2(space,"Videos", basepath+'english/resources_pub/videos/video.html', '', 1, 0, 0);
menu[10][8] = new Item2(space,"English-Chinese Glossary", 'http://www.csb.gov.hk/hkgcsb/ol/netglos/environ/v11.htm', '_blank', 1, 0, 0);
menu[10][9] = new Item2(space,"FAQ", basepath+'english/resources_pub/faq/faq.html', '', 1, 0, 0);
menu[10][10] = new Item2(space,"Environmental Resource Centres", basepath+'english/envir_education/envir_resourcectr/resource_ctr.html', '', 2, 0, 0);

menu[11] = new Array();
menu[11][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[11][1] = new Item2(space,"Business Opportunities", basepath+'english/business_job/business_opp/busopp_maincont.html', '', 1, 0, 0);
menu[11][2] = new Item2(space,"Job Opportunities", basepath+'english/business_job/job_opp/jobopp_maincont.html', '', 1, 0, 0);

menu[12] = new Array();
menu[12][0] = new Menu(true, '>', widthL1, 0, widthL2, OverL2, BackL2, 'itemBorder', 'itemText');
menu[12][1] = new Item2(space,"Local", basepath+'english/links/local/link_local.html', '', 1, 0, 0);
menu[12][2] = new Item2(space,"Mainland China", basepath+'english/links/mainchina/link_mainchina.html', '', 1, 0, 0);
menu[12][3] = new Item2(space,"Overseas", basepath+'english/links/overseas/link_overseas.html', '', 1, 0, 0);
menu[12][4] = new Item2(space,"Recommended Links", basepath+'english/links/recommend/recommend.html', '', 1, 0, 0);

/* 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,y) {
   if(y==""){
	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 = textClass;
this.parentMenu = null;
this.parentItem = null;
this.ref = null;

}

function Item1(image, text, href, frame, length, spacing, target) {
this.image = image + ' alt="' + text + '" name="' + text + '"></td>';
this.text = text;
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 + '" name="' + text + '"></td>';
this.text = text;
this.href = href;
this.frame = frame;

if(length > 2) {
  this.length = heightL1 * (1.6 + (length-2)*0.7);
} 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);
}
