var menuLineHeight = 16; var menuLineHeightV = 27; var d = document; function GEByID(id) { return d.all ? d.all[id] : d.getElementById(id); } function relPosXX(e) { return e.offsetLeft + (e.offsetParent != null && e.tagName != 'BODY' ? relPosXX(e.offsetParent) : 0); } function relPosYY(e) { return e.offsetTop + (e.offsetParent != null && e.tagName != 'BODY' ? relPosYY(e.offsetParent) : 0); } function displayMenu(n,x,y) { m = GEByID("menu"+n); m.style.visibility = 'visible'; m.style.left = x; m.style.top = y + menuLineHeight; } function displayMenuV(n,x,y) { m = GEByID("menu"+n); m.style.visibility = 'visible'; m.style.left = x; m.style.top = y + menuLineHeightV; } function showMenu(n) { m = GEByID("menu"+n); m.style.visibility = 'visible'; } function hideMenu(n) { m = GEByID("menu"+n); m.style.visibility = 'hidden'; } function newSubMenu(id) { d.write('
'); } function newSubMenuItem(hrf, txt, subId, count) { if (count > 20) { if (subId < (count / 2)) classTd = 'menuJS'; if (subId >= (count / 2)) classTd = 'menuJSNLeft'; if (subId == 0) classTd = 'menuJSTop'; if (subId == Math.ceil(count / 2)) classTd = 'menuJSTopNLeft'; if (subId < (count / 2)) d.write('