if ( typeof( unibrowser ) == "undefined" ) {
    alert( "Hoverhelp only works with the functions contained in unibrowser lib! Please include it." );
}

function showHelp( evt ) {        
    var help = getHelp( evt);
    if ( !help ) {
        return;
    }
    var mousepos = unibrowser.getMousePosition( evt );
    help.style.display="block";
    help.style.top = mousepos[1] + 15 + "px";
    help.style.left = mousepos[0] + 15 + "px";
    var elem = unibrowser.getEventTarget( evt );
    if ( !elem ) {
        return;
    }
    elem.style.cursor = "help";
}

function hideHelp( evt ) {
    var help = getHelp( evt);
    if ( !help ) {
        return;
    }
    help.style.display="none";
}

function getHelp( evt ) {
    evt = unibrowser.getEvent( evt );
    if ( !evt ) {
        return "";
    }
    var elem = unibrowser.getEventTarget( evt );
    if ( !elem ) {
        return "";
    }
    if ( !document.getElementById ) {
        return "";
    }
    var id = "HELP_" + elem.id;
    var help = document.getElementById(id);
    if ( !help ) {
        return "";
    }
    return help;
}