// Extended Tooltip Javascript // copyright 9th August 2002, by Stephen Chapman, Felgall Pty Ltd // permission is granted to use this javascript provided that the below code is not altered var DH = 0;var an = 0;var al = 0;var ai = 0; if (document.getElementById) {ai = 1; DH = 1;} else {if (document.all) {al = 1; DH = 1;} else { browserVersion = parseInt(navigator.appVersion); if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {an = 1; DH = 1;}}} function fd(oi, wS) { if (ai) return wS ? document.getElementById(oi).style:document.getElementById(oi); if (al) return wS ? document.all[oi].style: document.all[oi]; if (an) return document.layers[oi]; } function pw() { return window.innerWidth != null? window.innerWidth: document.body.clientWidth != null? document.body.clientWidth:null; } function popUp(evt,oi) { if (DH) {var wp = pw(); ds = fd(oi,1); dm = fd(oi,0); st = ds.visibility; if (dm.offsetWidth) ew = dm.offsetWidth; else if (dm.clip.width) ew = dm.clip.width; if (st == "visible" || st == "show") { ds.visibility = "hidden"; } else { if (evt.clientY || evt.pageY) { if (evt.pageY) { tv = evt.pageY + 10; lv = evt.pageX - (ew/4); } else { tv = evt.clientY + 10 + document.body.scrollTop; lv = evt.clientX - (ew/4) + document.body.scrollLeft; } if (lv < 2) lv = 2; else if (lv + ew > wp) lv -= ew/2; if (!an) {lv += 'px';tv += 'px'}; ds.left = lv; ds.top = tv; } ds.visibility = "visible"; } } }