$(document).ready(function() {
		
	//activate questions
	$('li.question').each(function(k, el) {
	
		//hide answer
		$(el).next().css('display', 'none');
		
		//create button
		var button = document.createElement('p');
		button.className = 'mostrar';
		
		$(button).insertAfter($(el).next());
		$(button).bind('click', function() {
			
			if($(this).hasClass('mostrar')) {
				$(this).removeClass('mostrar').addClass('ocultar');
				$(this).prev().slideDown()
			} else {
				$(this).removeClass('ocultar').addClass('mostrar');
				$(this).prev().slideUp()
			}
			
		})
		
		$(el).bind('click', function() {
			$(button).trigger('click')
		})
	
	})

})
