$(document).ready(function() {
	$('.entry').hide(); 
	$('.title').append('<span></span>');
	hashid=document.location.hash ;
	if(hashid)
	{
	hashid = hashid.replace('#', '');
	hashid = hashid-1;
	toggleBlock($('.entry').eq(hashid));
	};
	
	$('.post span, .post h3').each(function() {
		var trigger = $(this), state = false, el = trigger.parent().next('.entry');
		trigger.click(function(){
		state = !state;
				el.slideToggle();
			trigger.parent().parent().toggleClass('inactive');
		});
	});
});



function toggleBlock(el){
el.slideToggle();
el.parent().toggleClass('inactive');
}


