$.fn.helpHint = function(text) {
    return this.each(function() {
    	
    	var textHint = text;
        if (text == null) {
        	textHint = $(this).attr('help');
        }
        
        var hint = $('<div class="hint-wrap" style="position: absolute; z-index: 9999"><div class="hint-box">'+ textHint +'</div></div>')
            .hide()
            .css('cursor', 'help')
            .css('opacity', 0.9)
            .mouseout(function(e) {          
                hint.fadeOut();
            })
            .click(function(e) {          
                hint.fadeOut();         
            });
            
        $(this).after(hint)
            .css('cursor', 'help')
            .mouseover(function(e) {          
                hint.css('left', e.pageX - 10);
                hint.css('top', e.pageY - 10);
            
                hint.fadeIn();            
            }); 
    });        
}
