$(document).ready(function(){
    
	$('ul.tools li').hover(function(){
	    $(this).find('span').show();
    }, function() {
        $(this).find('span').fadeOut('fast');
    });

    $("a.backToTop").click(function(){
        $('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });
    
    $("a.toggleBtn").click(function(){
        $('.entry ol').toggleClass("active").toggle();
        return false;
    });
    
    $('a.openAbout').click(function() {
        $('.aboutBox').slideToggle('slow');
        return false;
    });
    
    $('a.openContact').click(function() {
        $('.contactBox').slideToggle('slow');
        return false;
    });
	
	$('.tagList a').click(function() {
		$('.tagList a').removeClass('on');
		$("#showcase li:not(.remain)").fadeTo('slow', 0.1);
		var currentTag = $(this).attr('class');
		$('#showcase li.' + currentTag).fadeTo('fast', 1.0);
		$(this).addClass('on');
        return false;
    });
	
	$('.tagList a.tagListReset').click(function() {
		$('.tagList a').removeClass('on');
		$("#showcase li").fadeTo('fast', 1.0);
        return false;
    });
});
