isDOM = document.getElementById //DOM1 browser (MSIE 5+, Netscape 6, Opera 5+) isMSIE = document.all && document.all.item //Microsoft Internet Explorer 4+ isNetscape4 = document.layers //Netscape 4.* isOpera = window.opera //Opera isOpera5 = isOpera && isDOM //Opera 5+ isMSIE5 = isDOM && isMSIE && !isOpera //MSIE 5+ isMozilla = isNetscape6 = isDOM && !isMSIE && !isOpera var obj; function ts(e,what) { x = e.clientX; y = e.clientY; if(isMSIE5) { page_x = document.documentElement.scrollLeft; page_y = document.documentElement.scrollTop; } else { page_x = window.pageXOffset; page_y = window.pageYOffset; } obj = document.getElementById(what); if(obj) { obj.style.visibility = 'visible'; obj.style.left = x + page_x + 10 + 'px'; obj.style.top = y + page_y - obj.offsetHeight - 10 + 'px'; } return true; } function tc() { if(obj) obj.style.visibility = 'hidden'; return true; } function show(b) { document.getElementById(b).style.display = 'block'; return true; } function hide(b) { document.getElementById(b).style.display = 'none'; return true; } function do_show_prev(b) { show('prevs' + b); show('hide' + b); hide('show' + b); return true; } function do_hide_prev(b) { hide('prevs' + b); hide('hide' + b); show('show' + b); return true; }