$(document).ready(function(){
	$('div.event_roll > a')
		.each(function(){
			$(this).bind('click', function(e){
				var this_id = Number($(this).parent('div:first').attr('id').replace("event_", "").replace("_roll",""));
				var clicked = $('#event_' + this_id);
				$('.event_details:not(.hide):not([id=event_' + this_id + '])').addClass('hide');
				if(clicked.hasClass('hide')){clicked.removeClass('hide');}else{clicked.addClass('hide');}
				return false;
			});
		});
});
