$('.block').click(function(e){
var $this = $(this);
var $target = $(e.target);
if($this.is($target)) {
$('.hidden').slideToggle();
}
});
$('.block').click(function(e){
var $target = $(e.target);
if(!$target.attr('href')) {
$('.hidden').slideToggle();
}
});