$(document).ready(function() {
		
    var path = document.location.toString();

    if (path.match('#')) {//if there's an anchor then scroll to the element that has that *class*
        var anchor = '#' + path.split('#')[1];
        var targetOffset = $(anchor.replace('#','.')).offset().top;
        $('html, body').animate({scrollTop:targetOffset}, 700, function() {
			$('#commentlist').fadeTo('fast', 0.0).fadeTo('fast', 1.0);
		});
    }

	$("p.read-less a").click(function () {
			$('.full-article').fadeOut('medium', function() {
				$("p.read-more a").fadeIn();
			});		
			return false;
	});

	$("p.read-more a").click(function () {
		$(this).fadeOut(function() {
			$(this).parent().next('div').fadeIn();
		});
		return false;
	});
	
	$(".social").click(function () {
		$(this).fadeOut('medium', function(){
			$(this).next('div').children('ul').animate({bottom:'6px'},{queue:false,duration:500});
		});
		return false;
	});
});