jQuery(function() {
    jQuery("#block1 em").css("opacity", "0");
    jQuery("#block1 em").hover(function() {
        jQuery(this).stop().animate({
            opacity: 1
        }, 'slow');
    },
	function() {
	    jQuery(this).stop().animate({
	        opacity: 0
	    }, 'slow');
	});
});

jQuery(function() {
    jQuery("#block2 em").css("opacity", "0");
    jQuery("#block2 em").hover(function() {
        jQuery(this).stop().animate({
            opacity: 1
        }, 'slow');
    },
	function() {
	    jQuery(this).stop().animate({
	        opacity: 0
	    }, 'slow');
	});
});

jQuery(function() {
    jQuery("#block3 em").css("opacity", "0");
    jQuery("#block3 em").hover(function() {
        jQuery(this).stop().animate({
            opacity: 1
        }, 'slow');
    },
	function() {
	    jQuery(this).stop().animate({
	        opacity: 0
	    }, 'slow');
	});
});


$(document).ready(function(){
		
		$(".alphabet a").each(function(i){
				var letter = $(this).text();
                if (letter == 'ALL'){
                        $(".jargon ul li").show();
                        return;
                }
                if ($(".jargon ul li a[name^="+letter+"]").length < 1){
                        //$(this).hide();
						$(this).replaceWith("<span>"+letter+"</span>");
                }			
        });

        $(".alphabet a").click(function(){
                var letter = $(this).text().addClass('red');
                if (letter == 'ALL'){
                        $(".jargon ul li").show();
                        return;
                }
				

                $(".jargon ul li").hide();
                $(".jargon ul li a[name^="+letter+"]").parent().show();
        });         
});
