var d = document;
var offsetfromcursorY = 15 // y offset of tooltip
var ie = d.all && !window.opera;
var ns6 = d.getElementById && !d.all;
var tipobj,op;
        
function tooltip(el,txt) {
    tipobj=d.getElementById('mess');
    tipobj.innerHTML = txt;
    op = 0.1;   
    tipobj.style.opacity = op; 
    tipobj.style.visibility="visible";
    el.onmousemove=positiontip;
    appear();
}

function hide_info(el) {
    d.getElementById('mess').style.visibility='hidden';
    el.onmousemove='';
}

function ietruebody(){
    return (d.compatMode && d.compatMode!="BackCompat")? d.documentElement : d.body
}

function positiontip(event) {

    if (!event) event = window.event;

    if (!event.target) {
        event.target = event.srcElement
    }

    curX = parseInt(event.target.style.left, 10) - 150;
    curY = parseInt(event.target.style.top, 10) - 100;

    $(tipobj).css({'left' : curX + "px"});
    $(tipobj).css({'top' : curY + "px"});

    return false;

}

function appear() { 

    tipobj.style.opacity = 1;
/*    tipobj.style.filter = 'alpha(opacity=' + 1 * 100 + ')';
    if(op < 1) {
        op += 0.1;
        tipobj.style.opacity = op;
        tipobj.style.filter = 'alpha(opacity=' + op * 100 + ')';
        t = setTimeout('appear()', 50);
    } */
}

