
var current = 'main'
var lastTabObj

function flipTo(f, tabObj) {
	tabObj.className = 'tabSelected'
	if (lastTabObj) lastTabObj.className = 'tabUnselected'
	lastTabObj = tabObj

	var n = document.getElementById('section_'+current).style
	if (!n) return

	n.visibility = 'hidden'
	n.overflow = 'hidden'

	var o = document.getElementById('section_'+f).style
	o.visibility = 'visible'

	if ((f == 'resources') || (f == 'about') || (f == 'classes')) {
		o.overflow = 'auto'
	}

	current = f
}
	

function init() {
	lastTabObj = document.getElementById('firstTab')
	//flipTo('main', lastTabObj)
}

function bigImage(adiv) {
	return true;
}
