var isDOM = (document.getElementById ? true : false); var isIE4 = ((document.all && !isDOM) ? true : false); var isNS4 = (document.layers ? true : false); function getRef(id) { if (isDOM) return document.getElementById(id); if (isIE4) return document.all[id]; if (isNS4) return document.layers[id]; } function ViewLayers (id, img_id, path) { if (!isNS4) { var obj = getRef(id); if (obj.style.display == 'none') { obj.style.display = ''; getRef(img_id).src=path+'/'+'_str2.gif'; } else { obj.style.display = 'none'; getRef(img_id).src=path+'/'+'_str1.gif'; } } return false; } function MenuButtonMouseOver (id, path) { getRef(id).src=path+'/'+'01_on.gif'; return false; } function MenuButtonMouseOut (id, path) { getRef(id).src=path+'/'+'01_off.gif'; return false; }