<!--

/*
Copyright © MaXimuS 2001, All Rights Reserved.
Site: http://www.absolutegb.com/maximus
E-mail: maximus@nsimail.com
Script: Tool Tip
Version: 1.0
*/

IE4=document.all;NS4=document.layers;IE5=document.getElementById;
if (NS4){
document.captureEvents(Event.MOUSEMOVE);tooltip=document.layers['tooltip'];thetip=tooltip;}
if (IE5&&!IE4){tooltip=document.getElementById('tooltip');thetip=tooltip.style;}
if (IE4){thetip=document.all('tooltip').style}

if(IE4&&!IE5)thetip.width=1

function writeToolTip(message, width, bgcolor, fgcolor, bcolor, lalign, lvalign, x, y){
EXx=(x)?parseInt(x):0;EXy=(y)?parseInt(y):0;EXa=(lalign)?lalign:toolTipAlign;EXv=(lvalign)?lvalign:toolTipVAlign
message='<TABLE ID="ieTip" CELLPADDING=0 CELLSPACING=0 BORDER=0 BGCOLOR='+((bcolor)?bcolor:toolTipBorder)+' '+((width)?'WIDTH='+width:'')+'><TD><TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0 WIDTH=100%><TD '+((width)?'WIDTH='+width:'NOWRAP')+' BGCOLOR='+((bgcolor)?bgcolor:toolTipBGColor)+'><FONT COLOR='+((fgcolor)?fgcolor:toolTipFont[2])+' FACE='+toolTipFont[0]+' size='+toolTipFont[1]+'>'+message+'</TD></TABLE></TD></TABLE>'
if (IE5||IE4) {tooltip.innerHTML=message;}
if (NS4) {tooltip.document.write(message);tooltip.document.close();}
document.onmousemove=keepToolTip;
with(document.body||window) {
topS=(IE4)?scrollTop:pageYOffset;leftS=(IE4)?scrollLeft:pageXOffset;tScroll=(IE4&&IE5)?scrollTop:0;lScroll=(IE4&&IE5)?scrollLeft:0;docW=(IE4)?clientWidth:innerWidth-17;docH=(IE4)?clientHeight:innerHeight;tipW=(NS4)?tooltip.clip.right:(IE4&&!IE5)?ieTip.offsetWidth:tooltip.offsetWidth;tipH=(NS4)?tooltip.clip.bottom:(IE4&&!IE5)?ieTip.offsetHeight:tooltip.offsetHeight;}}

function keepToolTip(e) {
evntY=(IE4)?event.y+tScroll:e.pageY;evntX=(IE4)?event.x+lScroll:e.pageX;
with(thetip){
if(EXa=="left")left=evntX-tipW-12+EXx;else if(EXa=="center")left=evntX-(tipW/2)+EXx;else left=evntX+12+EXx;
if(EXv=="top")top=evntY-tipH-15+EXy;else top=evntY+20+EXy;
if (parseInt(top)+tipH>topS+docH)top=topS+docH-tipH;
if (parseInt(left)+tipW>leftS+docW)left=leftS+docW-tipW;
if (parseInt(top)<topS)top=topS;
if (parseInt(left)<leftS)left=leftS;
if(parseInt(left)<evntX&&parseInt(left)+tipW>evntX&&parseInt(top)-(evntY)<=5){
top=evntY-tipH-15;}
if(parseInt(top)<evntY&&parseInt(top)+tipH>evntY&&parseInt(left)-(evntX)<=5) {
left=evntX-tipW-15;}
visibility="visible"}}

function hideToolTip() {
thetip.visibility="hidden";
document.onmousemove=null;
if (IE4||IE5){tooltip.innerHTML=''}
if (NS4){tooltip.document.write('')}
thetip.left=0;thetip.top=0;}

//-->