/* === PICTURE FADE === */	
$("a img").fadeTo("fast", .9); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	
		$("a img").hover(function(){
			$(this).fadeTo("fast", 0.5); // This should set the opacity to 100% on hover
		},function(){
	   		$(this).fadeTo("fast", .9); // This should set the opacity back to 60% on mouseout
		});
		
				$('#single-wrapper .post-meta li a:not(#single-wrapper .post-meta li.current-cat a)').hover(function() {
				$(this).stop().animate({ backgroundColor: "#A7CACE",color: "#ffffff"  }, 'fast');
			}, function() {
		        $(this).stop().animate({ backgroundColor: "#ffffff", color: "#9C9C9C"  }, 'fast');
		 });



/* === Smooth Scroll === */

$(function(){
    $('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                $('html,body').animate({scrollTop: targetOffset}, 1000);
                return false;
            }
        }
    });
});
