$(function(){		   

	$('.list-txt a').addClass('linktxt')
 
 	$('.list-txt').each(function () {
        var time = 150;
        var hideDelay = 300;

        var hideDelayTimer = null;

        var beingShown = false;
        var shown = false;
        var trigger = $('.linktxt', this);
        var span = $('.txt', this);


        $([trigger.get(0)]).mouseover(function () {
            if (hideDelayTimer) clearTimeout(hideDelayTimer);
            if (beingShown || shown) {
                return;
            } else {
				beingShown = true;

                beingShown = false;
                shown = true;
				span.slideDown(time);		
            }

            return false;
        }).mouseout(function () {
            if (hideDelayTimer) clearTimeout(hideDelayTimer);
            hideDelayTimer = setTimeout(function () {
                hideDelayTimer = null;
                
                shown = false;
				span.slideUp(time);					 
            }, hideDelay);

            return false;
        });
    });
	
});

