/*
function init(){
	var stretchers = document.getElementsByClassName('char-element');
	var toggles = document.getElementsByClassName('char-toggler');
	var myAccordion = new fx.Accordion(
		toggles, stretchers, {opacity: false, height: true, duration: 600}
	);
	//hash functions
	var found = false;
	toggles.each(function(h3, i){
		var div = Element.find(h3, 'nextSibling');
			if (window.location.href.indexOf(h3.title) > 0) {
				myAccordion.showThisHideOpen(div);
				found = true;
			}
		});
		if (!found) myAccordion.showThisHideOpen(stretchers[0]);
}
*/
function show(elmId) {
	document.getElementById(elmId).style.display = 'block';
	document.getElementById(elmId).style.visibility = 'visible';
}

function hide(elmId) {
	document.getElementById(elmId).style.display = 'none';
	document.getElementById(elmId).style.visibility = 'hidden';
}

function showReview() {
	show('review-elm');
	hide('chars-elm');
}

function showChars() {
	hide('review-elm');
	show('chars-elm');
}

function showTopicImage(num) {
	document.getElementById('topic-image').src = '/images/'+topicImages[num];
}

