$(function () {
	
	$('.simple-accordion .item').each(function () {
		
		var content = $(this).find('.inner');
		
		$(this).find('h5').click(function () {
			
			if ($(this).hasClass('open')) {
				
				$(this).removeClass('open');
				content.slideUp();
				
			} else {
				$('.simple-accordion .item h5').removeClass('open');
				$('.simple-accordion .item .inner:visible').slideUp();
				$(this).addClass('open');
				content.slideDown();
			}
		});
		
	});

});