function tabOver (num) {
	var l = document.getElementById ('tab' + num + 'left');
	var c = document.getElementById ('tab' + num);
	var r = document.getElementById ('tab' + num + 'right');

	if (c.className == 'tabsel') return;
	
	l.className = "tablefthigh";
	c.className = "tabhigh";
	r.className = "tabrighthigh";
}

function tabOut (num) {
	var l = document.getElementById ('tab' + num + 'left');
	var c = document.getElementById ('tab' + num);
	var r = document.getElementById ('tab' + num + 'right');

	if (c.className == 'tabsel') return;

	l.className = "tableft";
	c.className = "tab";
	r.className = "tabright";
}

function tabSelect (num, total) {
	for (var i = 1; i <= total; i++) {
		if (i == num) continue;
		document.getElementById ('tab' + i + 'left').className = 'tableft';
		document.getElementById ('tab' + i).className = 'tab';
		document.getElementById ('tab' + i + 'right').className = 'tabright';
		document.getElementById ('tab' + i + 'content').style.display = 'none';
	}
	document.getElementById ('tab' + num + 'left').className = 'tableftsel';
	document.getElementById ('tab' + num).className = 'tabsel';
	document.getElementById ('tab' + num + 'right').className = 'tabrightsel';
	document.getElementById ('tab' + num + 'content').style.display = 'block';
}
