$(function() {
	$('a.philosophys').click(function (event) {
		event.stopPropagation();
		var jqA = $(this);
		var display = 'block';
		var text = 'hide';
		if (jqA.data().display) {
			display = jqA.data().display;
			text = jqA.data().text;
		}
		if (display == 'block') {
			jqA.data('display', 'none');
			jqA.data('text', $(this).html());
		} else {
			jqA.data('display', 'block');
			jqA.data('text', 'hide'); 
		}
		$(this).prev().css('display', display);
		$(this).html(text);
		return false;
	});
	$('a.philosophy').click(function (event) {
		event.stopPropagation();
		var jqA = $(this);
		jqA.prev().slideToggle('slow');
		var text = 'hide';
		if (jqA.data().text) {
			text = jqA.data().text;
		}
		if (text == 'hide') {
			jqA.data('text', $(this).html());
		} else {
			jqA.data('text', 'hide'); 
		}
		$(this).html(text);
		return false;
	});
	$('a.why_should_children_join').click(function (event) {
		event.stopPropagation();
		var jqA = $(this);
		jqA.prev().slideToggle('slow');
		var text = 'hide';
		if (jqA.data().text) {
			text = jqA.data().text;
		}
		if (text == 'hide') {
			jqA.data('text', $(this).html());
		} else {
			jqA.data('text', 'hide'); 
		}
		$(this).html(text);
		return false;
	});
});


