// This just contains a function that will hide and show the
// solutions divs.  I included this in its own JS file so that
// the browser can catch it since it will be used across multiple pages

function toggleDiv(which) {
	var hiddenText = 'Expand to read more';
	var visibleText = 'Collapse'; 
	var expandImage = 'images/expansion_plus.gif';
	var collapseImage = 'images/collapse_minus.gif';
	
	if ($('#' + which + '_txt').html() == hiddenText) {
		// Show div and change text & image
		$('#' + which + '_sub').show('slow'); // If don't want animation remove 'slow'
		$('#' + which + '_txt').html(visibleText);
		document.images[which].src = collapseImage;
		
	} else {
		// Hide div and change text & image
		$('#' + which + '_sub').hide('slow'); // If don't want animation remove 'slow'
		$('#' + which + '_txt').html(hiddenText);
		document.images[which].src = expandImage;
	}
}