function show_biography(el) {
	var el1 = $('biography');
	
	el1.style.display = "block";
	fix_class(el, 'tabbed isActive');
	
	clear_all('biography');
}

function show_gallery(el) {
	var el2 = $('gallery');
	
	el2.style.display = "block";
	fix_class(el, 'tabbed isActive');
	
	clear_all('gallery');
}

function show_publications(el) {
	var el3 = $('publications');
	
	el3.style.display = "block";
	fix_class(el, 'tabbed isActive');
	
	clear_all('publications');
}


function fix_class(el, set_class, parrent) {
	wrapper = el.parentNode.parentNode.parentNode.parentNode;
	wrapper.className = set_class;
}

function clear_all(what) {
	var el1 = $('biography');
	var el2 = $('gallery');
	var el3 = $('publications');
	
	var elb1 = $('biography_link');
	var elb2 = $('gallery_link');
	var elb3 = $('publications_link');

	if (what != 'biography') { el1.style.display = "none"; }
	if (what != 'gallery') { el2.style.display = "none"; }
	if (what != 'publications') { el3.style.display = "none"; }
	
	if (what != 'biography') { elb1.className = 'tabbed'; }
	if (what != 'gallery') { elb2.className = 'tabbed'; }
	if (what != 'publications') { elb3.className = 'tabbed'; }
}