        $(function (){
        
            $('.nt_tooltip').each(function () {
                
                var distance = 5;
                var time =250;
                var hideDelay = 500;
                
                var hideDelayTimer = null;
                var animation = false;
                var tipOn = false;
                
                var trigger = $(this);
                var tooltip = $('.blog_details_tooltip', this).css('opacity',0);
                
                $([trigger.get(0)]).hover(
                
                    function() {
                    
                        if (hideDelayTimer) clearTimeout(hideDelayTimer);
                        
                        if (animation || tipOn) {
                            return;
                        } else {
                        
                            tipOn = true;
                            
                            animation = true;
                            
                            tooltip.css({
                                display: 'block',
                                top: -190,
                                right: -200
                            }).animate({
                                opacity: 1,
                                top: '-=' + distance + 'px'
                            }, time,'swing', function (){
                                animation = false;
                                tipOn = true;
                            });
                        };
                    },
                    
                    function() {
                        
                        if (hideDelayTimer) clearTimeout(hideDelayTimer);
                        
                        hideDelatTimer = setTimeout(function () {
                        
                            hideDelayTimer = null;
                            
                            tooltip.animate({
                                opacity: 0
                            },time,'swing', function(){
                                tipOn = false;
                                tooltip.css('display','none');
                            });
                        });
                    }, 
                hideDelay);
            });
        });

