
    $(document).ready(function(){
       $('.helpicon').each(function () {
            
            var offset = $(this).offset();
            var top = offset.top ;
            var left = offset.left + $(this).width();
            
            $(this).after('<a style="height:18px;vertical-align:middle;" href="'+$(this).attr('href')+'"><img text="'+ $(this).attr('title')+'" width="19px" height="16px;" class="helpicon_img" src="typo3conf/ext/helpicon/res/images/module_help.gif"></a>');
            $(this).attr('title','');
         });
    });
    /*
    $(function () {     
          
            

         $('.helpicon_img').each(function () {
            var distance = 5;
            var time = 100;
            var hideDelay = 150;

            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var trigger = $(this);
            var info;


            $(this).mouseover(function () {
                var cont_text = $(this).attr('text');
                var html_cont = '<table id="dpop" class="popup"><tbody><tr><td id="topleft" class="corner"></td><td class="top"></td><td id="topright" class="corner"></td></tr><tr><td class="left"></td><td style="padding:0px;"><table class="popup-contents"><tbody><tr><td class="hilfe_content">' + cont_text + '</td></tr></tbody></table></td><td class="right"></td></tr><tr><td class="corner" id="bottomleft"></td><td class="bottom"><img width="30" height="29" alt="popup tail" src="typo3conf/ext/helpicon/res/images/bubble-tail2.gif"/></td><td id="bottomright" class="corner"></td></tr></tbody></table>';
                $('body').append(html_cont);
                info = $('.popup').css('opacity', 0);
                
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                var width = $('.popup').width();
                var trigger_width = $(this).width();
                var height = $('.popup').height();
                var w = width/2 - trigger_width/2;
                
                //$('.hilfe_content').html($(this).attr('title'));
                
                if (beingShown || shown) {
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;
                    var offset = $(this).offset(); 
                    //p.html( "left: " + offset.left + ", top: " + offset.top );
                    info.css({
                        top: offset.top-height+10,
                        left: offset.left - w,
                        display: 'block'
                    }).animate({
                        top: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) {clearTimeout(hideDelayTimer);}
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                        $('.popup').remove();
                    });
                  
                }, hideDelay);
                
                return false;
            });
        });
    });
*/