<!--
// handle displaying tooltips with pop-up titles and 
// changing the status line.
// If using in MouseOver and MouseOut make sure you return true in the event.

if (!document.layers&&!document.all&&!document.getElementById)
    event="test"
    
// function to show the tooltip
function showtip(current,e,text){
    window.status = text;
    if (document.getElementById || document.all){
        thetitle=text.split('<br>')
        if (thetitle.length>1){
            thetitles=''
            for (i=0;i<thetitle.length;i++)
            thetitles+=thetitle[i]
            current.title=thetitles
        }
        else
            current.title=text
    }

    else if (document.layers){
        document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;font-family:arial,helvitica;z-index:9">'+text+'</layer>')
        document.tooltip.document.close()
        document.tooltip.left=e.pageX+5
        document.tooltip.top=e.pageY+5
        document.tooltip.visibility="show"
    }
}

// function to hide the tooltip
function hidetip(){
    window.status= "";
    if (document.layers){
        document.tooltip.visibility="hidden"
    }
}
//-->

